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