user_sidenav_after.html 1.5 KB

123456789101112131415161718192021
  1. {if isset($sidenav) && $sidenav}
  2. <ul class="list-group">
  3. <li class="list-group-heading">{:__('内容管理')}</li>
  4. <!--如果需要直接跳转对应的模型(比如我的新闻,我的产品,发布新闻,发布产品),可以在链接后加上 ?model_id=模型ID -->
  5. {if in_array('myarchives', $sidenav)}
  6. <li class="list-group-item {:check_nav_active('cms.archives/my')}"><a href="{:url('index/cms.archives/my')}"><i class="fa fa-newspaper-o fa-fw"></i> {:__('我发布的文档')}</a></li>
  7. {/if}
  8. {if in_array('postarchives', $sidenav)}
  9. <li class="list-group-item {:check_nav_active('cms.archives/post')}"><a href="{:url('index/cms.archives/post')}"><i class="fa fa-pencil fa-fw"></i> {:__('发布文档')}</a></li>
  10. {/if}
  11. {if in_array('myorder', $sidenav)}
  12. <li class="list-group-item {:check_nav_active('cms.order/index')}"><a href="{:url('index/cms.order/index')}"><i class="fa fa-shopping-bag fa-fw"></i> {:__('我的消费订单')}</a></li>
  13. {/if}
  14. {if in_array('mycomment', $sidenav)}
  15. <li class="list-group-item {:check_nav_active('cms.comment/index')}"><a href="{:url('index/cms.comment/index')}"><i class="fa fa-comments fa-fw"></i> {:__('我发表的评论')}</a></li>
  16. {/if}
  17. {if in_array('mycollection', $sidenav)}
  18. <li class="list-group-item {:check_nav_active('cms.collection/index')}"><a href="{:url('index/cms.collection/index')}"><i class="fa fa-bookmark fa-fw"></i> {:__('我的收藏')}</a></li>
  19. {/if}
  20. </ul>
  21. {/if}