<{php}> $cats = $this->_tpl_vars['block']['categories']; $dirname = $this->_tpl_vars['block']['module_dirname']; for($i=0; $i < count($cats); $i++) { if($i == 0) { echo ''."\n"; } <{/php}>