<?php if ($val['child'] && get_setting('nav_menu_show_child') == 'Y') { ?> <div class="i_data_list i_pas"> <em class="i_arrows"></em> <?php foreach ($val['child'] AS $_key => $_val) { ?> <p class="i_list_p"><a href="home/explore/category-<?php echo $_val['id']; ?>"<?php if ($_val['id'] == $this->category_info['id']) { ?> style="font-weight:bold"<?php } ?>><?php echo $_val['title']; ?></a></p> <?php } ?> </div> <?php } ?>而数据库中储存的是0,1。上面代码判断的是N,Y