OneThink-nav标签
程序员文章站
2022-03-18 10:17:46
...
/* 导航列表 */ public function _nav($tag, $content){ trace($tag); trace($content); trace("end"); $field = empty($tag['field']) ? 'true' : $tag['field']; $tree = empty($tag['tree'])? false : true; $parse = $parse = 'field('.$field.')->where("status=1")->order("sort")->select();'; if($tree){ $parse .= '$__NAV__ = list_to_tree($__NAV__, "id", "pid", "_");'; } $parse .= '?>'; $parse .= $content; $parse .= ' '; // trace($parse); return $parse; }
使用自定义标签
上一篇: 鼠标触发移动的分层菜单 层菜单moveMenu_导航菜单
下一篇: dedecms怎么修改css