hi all. First of all sorry for my English, and PHP :D. My problem is I don't know what to write in (if fuction) :
function theme_uc_product_image($images){ static $rel_count = 0; $thickbox_enabled = module_exists('thickbox'); $first = array_shift($images);
$output .='<div class="product_image">'; if(){ //here I need to check if in taxonomy-term directory. $output .='<div class="little_image">'; $output .= '<a href="'.base_path().'node/'. check_url($first['nid']) .'">'; $output .= theme('imagecache', 'product', $first['filepath'], $first['alt'], $first['title']); $output .= '</a>'; $output .='</div>'; } else //else works in in node directory. { $output .='<div class="image_original">'; $output .= theme('imagecache', '_original', $first['filepath'], $first['alt'], $first['title']); $output .='</div>'; } $output .='</div>';
foreach ($images as $thumbnail){
$output .= '<a href="'. check_url(file_create_url($thumbnail['filepath'])) .'" title="'. $thumbnail['title'] .'" class="thickbox" rel="field_image_cache_'. $rel_count .'">';
$output .= theme('imagecache', 'thumbnail', $thumbnail['filepath'], $thumbnail['alt'], $thumbnail['title']);
$output .= '</a>';
}
I tried to check by 'image_images_per_page' 'nodes_per_page' something like that ( if($term>1) or if ($nodes_per_page>1)) and so long. Any body can help me? thanks.. Ruslan