|
|
发表于 2020-3-31 18:07:54
|
显示全部楼层
我翻了一下我写的代码
- <li class="menu-item -hasSubmenu"><a href="#"><?php _e('分类');?></a>
- <ul>
- <?php $this->widget('Widget_Metas_Category_List')->to($category);?>
- <?php while ($category->next()): ?>
- <li><a<?php if ($this->is('category', $category->slug)): ?> class="current"<?php endif;?> href="<?php $category->permalink();?>" title="<?php $category->name();?>"><?php $category->name();?></a></li>
- <?php endwhile;?>
- </ul>
- </li>
复制代码 |
|