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