'; // } $my_links=array(); //gotowe linki // echo "path_cat_id".$path_cat_id; if(is_numeric(path_cat_id)) {$cat_obj=taxonomy_get_term(path_cat_id); } // var_dump(debug_backtrace()); // print_r($node); $my_nodes=taxonomy_node_get_terms($node->nid); // pobieramy treminy powiązane z aktualnym węzłem // print_r($my_nodes); $my_tids=array(); $catTreeNew=Array(); foreach($my_nodes as $vocabulary) {if ($vocabulary->vid==1) {$language_name=$vocabulary->name; // echo 'language_name'.$language_name; $my_tids[]=$vocabulary->tid; switch ($language_name){ case'angielski': $locale='en'; break; case'polski': $locale='pl'; break; case'niemiecki': $locale='de'; break; } } elseif($vocabulary->vid==2) // jesli jestemy w słowniku kategorii { $catTree=taxonomy_get_tree($vocabulary->vid,$vocabulary->tid); $catTreeNew[$currentCatId]=$vocabulary->name; // $SubCategories=taxonomy_get_children($vocabulary->tid,$vocabulary->vid); if (count($catTree)>=1) //jesli mamy podkategorie wyswietlamy linki podakategorii zamiast wezlow {$my_links[]=l($vocabulary->name,"taxonomy/term/$vocabulary->tid", array('title' =>$vocabulary->name)); foreach($catTree as $SubCat) /////TODO chcemy tylko jednego rodzica najwyżesgo poziomu {$catTreeNew[$SubCat->tid]=$SubCat->name; // $catTreeNew[$SubCat->tid]['parents']=$SubCat->parents; $hasParents=false; foreach ($SubCat->parents as $parents=>$parentID) { if (array_key_exists($parentID,$catTreeNew)) //mozemy chyba tak dlatego ze jestetsmy juz w podkategorii {//echo '$parentID:='.$parentID; $tid_id=$SubCat->tid; // echo '$tid_id:='.$tid_id; //$catTreeNew[$parentID]['children'];$SubCat->name; if (!is_array($catTreeNew[$parentID]['children'])) {$catTreeNew[$parentID]['children']=Array($tid_id=>$SubCat->name); } else {$catTreeNew[$parentID]['children'][$tid_id]=$SubCat->name; } $hasParents=true; } } if ($hasParents) {unset($catTreeNew[$SubCat->tid]); } //$my_links[]=l($SubCat->name,"taxonomy/term/$SubCat->tid", array('title' =>$SubCat->title)); } $my_tids[]=$vocabulary->tid; } else {$my_tids[]=$vocabulary->tid;} /* if(is_array($catTreeNew)) {foreach($catTreeNew as $catId=>$cattemp) {if (array_key_exists($catId,)) { } } } */ // echo 'catTreeNew:::'; // print_r($catTreeNew); // echo "currentCatId".$currentCatId; // echo 'catTree:::'; // print_r($catTree); // echo 'end catTree:::'; } } $filelinks_top=''; if (is_array($node->files)) {foreach ($node->files as $thefile) {$filelinks_top.='

'.$thefile->description.'

';} } // $category_name_translated=trans_local($category_name,$locale); // $category_name_translated=$category_name; //#### nodes ktore nalezą do wszystkich $my_tids $related_nodes=taxonomy_select_nodes($my_tids, 'and', 0, false); if (db_num_rows($related_nodes) > 0) { while ($my_node = db_fetch_object($related_nodes)) { //$my_links[]=l($my_node->title,"node/$my_node->nid", array('title' => $my_node->title), 'class' => 'top_menu'); $link_title=t($my_node->title); $my_links[]=l($my_node->title,"node/$my_node->nid", array('title' =>$my_node->title)); //linki do artykolow } } ?> Galerie | One Brain
module == 'relatedlinks'){ print $block->content; return; } else if ( $block->module == 'menu') { ?> module == 'relatedlinks'){ print $block->content; return; } else if ( $block->module == 'menu') { ?>
module == 'relatedlinks'){ print $block->content; return; } else if ( $block->module == 'menu') { ?> module == 'relatedlinks'){ print $block->content; return; } else if ( $block->module == 'menu') { ?> module == 'relatedlinks'){ print $block->content; return; } else if ( $block->module == 'menu') { ?>
 

Galerie

'; foreach ($galleries as $gallery) { $content .= '
  • '; if ($gallery->count) $content.= l(image_display($gallery->latest, 'thumbnail'), 'image/tid/'.$gallery->tid, array(), NULL, NULL, FALSE, TRUE); $content.= "

    ".l($gallery->name, 'image/tid/'.$gallery->tid) . "

    \n"; $content.= '\n"; $content.= '

    ' . format_plural($gallery->count, 'Jest 1 zdjęcie w tej galerii', 'Jest @count zdjęć w tej galerii') . "

    \n"; if ($gallery->latest->changed) { // $content.= '

    '. t('Last updated: %date', array('%date' => format_date($gallery->latest->changed))) . "

    \n"; } $content.= "
  • \n"; } $content.= "\n"; } if (count($images)) { $height += 75; $content.= '
      '; foreach ($images as $image) { $content .= 'sticky) { $content .= ' class="sticky"'; } // $content .= ' style="height : '.$height .'px; width : '.$width.'px;"'; $content .= ">\n"; $content.='
      '; $content .= l(image_display($image, 'thumbnail'), 'node/'.$image->nid, array(), NULL, NULL, FALSE, TRUE); $content .="
      "; $content .= '

      '.l($image->title, 'node/'.$image->nid)."

      "; if (theme_get_setting('toggle_node_info_' . $image->type)) { // $content .= '
      '. t('Posted by: !name', array('!name' => theme('username', $image))) . "
      \n"; if ($image->created > 0) { // $content .= '
      '.format_date($image->created)."
      \n"; } } $content .= "\n"; } $content.= "
    \n"; } echo $content; ?>
     
    design ::: J&J.Kurowscy