人人商城

tabs.html 968B

12345678910111213141516171819202122232425262728
  1. {php $category = m('plugin')->getList(1);$apps = false;if ($_W['role'] == 'founder' || empty($_W['role']))$apps = true;}
  2. {loop $category $ck $cv}
  3. {if count($cv['plugins'])<=0}{php continue;}{/if}
  4. <div class='menu-header'>{$cv['name']}</div>
  5. <ul class="plugin_tabs">
  6. {loop $cv['plugins'] $plugin}
  7. {if com_run('perm::check_plugin',$plugin['identity'])}
  8. {ifp $plugin['identity']}
  9. <li {if $_GPC['p'] == $plugin['identity']}class="active"{/if}><a href="{php echo webUrl($plugin['identity'])}">{$plugin['name']}</a></li>
  10. {/if}
  11. {/if}
  12. {/loop}
  13. </ul>
  14. {/loop}
  15. {if $apps}
  16. <div class='menu-header'>更多应用</div>
  17. <ul class="plugin_tabs">
  18. <li><a href="{php echo webUrl('system/plugin/apps')}">应用中心</a></li>
  19. </ul>
  20. {/if}
  21. {if p("grant")}
  22. <ul class="plugin_tabs">
  23. <li><a href="{php echo webUrl('plugingrant')}">应用授权</a></li>
  24. </ul>
  25. {/if}