{foreach $data["categoryList"] as $categoryId} {loop type="category" name="category_list" id=$categoryId} {$category_id = $ID} {$width = 150} {$height = 150} {$categoryTitle = ""}
{loop name="category_thumbnail" type="image" category=$category_id width=$width height=$height resize_mode="borders" limit="1"} {$categoryTitle} {/loop} {elseloop rel="category_thumbnail"} {$categoryTitle} {/elseloop}
{$categoryTitle|default:$TITLE}
{/loop} {/foreach}