|
|
Forum moderator: bigblog |
uCoz Community For Webmasters Design Customization if cid class |
if cid class |
Hello.
I got code like that: Code <?if($IMG_URL1$)?><div class="view-news-img"><img src="$IMG_URL1$" width="470" height="148" alt="$TITLE$"><span>$CATEGORY_NAME$</span></div><?else><?if($IMG_URL1$)?><img src="$IMG_URL1$" alt="$TITLE$"><?endif?><?endif?> .. as we can see I got my own div class added, BUT if I want to categorize by CID my entries with two div classes? I tried something like that: Code <?if($CID$=1)?> <?if($IMG_URL1$)?><div class="view-news-img"><img src="$IMG_URL1$" width="470" height="148" alt="$TITLE$"><span>$CATEGORY_NAME$</span></div><?else><?if($IMG_URL1$)?><img src="$IMG_URL1$" alt="$TITLE$"><?endif?><?endif?> <?endif?> <?if($CID$=2)?> <?if($IMG_URL1$)?><div class="view-news-img2"><img src="$IMG_URL1$" width="470" height="148" alt="$TITLE$"><span>$CATEGORY_NAME$</span></div><?else><?if($IMG_URL1$)?><img src="$IMG_URL1$" alt="$TITLE$"><?endif?><?endif?> <?endif?> .. but it doesn't work.. where could be problem? ty. |
| |||
| |||