ppypp伦理天堂,91手机在线视频,免费在线观看黄色毛片,夜夜穞天天穞狠狠穞AV美女按摩

聯系官方銷售客服

1835022288

028-61286886

投訴 已解決 導航循環如何判斷是當前欄目就輸出樣式 3 0
迅睿CMS版本:4.6.1

導航循環如何判斷是當前欄目就輸出 style="display: flex;",不是當前欄目就輸出 style="display: none;"

 {category module=share pid=0}
 <li class="{if IS_SHARE && $catid && dr_in_array($catid, $t.catids)} active{/if}">
     <a  class="font-bold" href="{$t.url}" title="{$t.name}" {if $t.tid==2} target="_blank"{/if}>{$t.name}</a>
     {if $t.child}
  <ol class="x-head-nav-second none" style="display: flex;" >  
         {category module=share pid=$t.id  return=t2}
         <li class="{if $t2.child} dropdown-submenu{/if} {if IS_SHARE && $catid && dr_in_array($catid, $t2.catids)} active{/if}">
   <a class="flex" href="{$t2.url}">
          </a>
         </li>
         {/category}
     {/if}
  </ol>
 {/category}

官方提醒:使用category欄目循環標簽的生成工具,填寫參數就可以生成相關的代碼,每個參數后面都有用法解釋

解決方案