You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

115 lines
4.3 KiB

  1. <div class="left bg-white">
  2. <style>
  3. .icon {
  4. width: 20px;
  5. height: 20px;
  6. display: inline-block;
  7. vertical-align: middle;
  8. margin-right: 10px;
  9. }
  10. .icon-home {
  11. background: url("{$kx.config.resurl}/template/kxwebno1/author/images/icon-home.png");
  12. }
  13. li.active .icon-home {
  14. background: url("{$kx.config.resurl}/template/kxwebno1/author/images/icon-home-active.png");
  15. }
  16. .icon-novel {
  17. background: url("{$kx.config.resurl}/template/kxwebno1/author/images/icon-novel.png");
  18. }
  19. li.active .icon-novel {
  20. background: url("{$kx.config.resurl}/template/kxwebno1/author/images/icon-novel-active.png");
  21. }
  22. .icon-stat {
  23. background: url("{$kx.config.resurl}/template/kxwebno1/author/images/icon-stat.png");
  24. }
  25. li.active .icon-stat {
  26. background: url("{$kx.config.resurl}/template/kxwebno1/author/images/icon-stat-active.png");
  27. }
  28. .icon-money {
  29. background: url("{$kx.config.resurl}/template/kxwebno1/author/images/icon-money.png");
  30. }
  31. li.active .icon-money {
  32. background: url("{$kx.config.resurl}/template/kxwebno1/author/images/icon-money-active.png");
  33. }
  34. .icon-userinfo {
  35. background: url("{$kx.config.resurl}/template/kxwebno1/author/images/icon-userinfo.png");
  36. }
  37. li.active .icon-userinfo {
  38. background: url("{$kx.config.resurl}/template/kxwebno1/author/images/icon-userinfo-active.png");
  39. }
  40. .add_novel:before{
  41. content: '+';
  42. width: 20px;
  43. height: 20px;
  44. display: inline-block;
  45. left: 60px;
  46. position: relative;
  47. margin-left: -20px;
  48. font-weight: 700;
  49. }
  50. .add_novel a{
  51. color: #929292 !important;
  52. }
  53. </style>
  54. <ul class="nav">
  55. <li class="{=$pagesign == 'home'?'active':''}">
  56. <a href="{link=author.author.index}">
  57. <i class="icon icon-home"></i>专区首页
  58. </a>
  59. </li>
  60. <li class="{=in_array($pagesign, ['novel','chapter'])?'active':''}">
  61. {if in_array($pagesign, ['novel','chapter'])}
  62. <a href="javascript:void(0);">
  63. <i class="icon icon-novel"></i>作品管理
  64. </a>
  65. <ul class="sub-nav">
  66. {loop=novels}
  67. <li class="{=$kx.get.novelid==$loop.id?'active':''}" style="width: 165px;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;">
  68. <a href="{link=author.chapter.index novelid=$loop.id}" title="{$loop.name}">{$loop.name}</a>
  69. </li>
  70. {/loop}
  71. <li class="add_novel"><a href="{link=author.novel.add}">创建作品</a></li>
  72. </ul>
  73. {else}
  74. <a href="{link=author.novel.index}">
  75. <i class="icon icon-novel"></i>作品管理
  76. </a>
  77. {/if}
  78. </li>
  79. <li class="{=$pagesign == 'stat'?'active':''}">
  80. <a href="{link=author.stat.index}">
  81. <i class="icon icon-stat"></i>数据统计
  82. </a>
  83. </li>
  84. <li class="{=in_array($pagesign, ['incomeindex','incomerecord','incomemanage','incomeguarantee'])?'active':''}">
  85. {if in_array($pagesign, ['incomeindex','incomerecord','incomemanage','incomeguarantee'])}
  86. <a href="javascript:void(0);">
  87. <i class="icon icon-money"></i>稿酬收入
  88. </a>
  89. <ul class="sub-nav">
  90. <li class="{=$pagesign=='incomerecord'?'active':''}"><a href="{link=author.income.record}">收入明细</a></li>
  91. <li class="{=in_array($pagesign, ['incomemanage','incomeguarantee'])?'active':''}"><a href="{link=author.income.manage}">提现管理</a></li>
  92. </ul>
  93. {else}
  94. <a href="{link=author.income.record}">
  95. <i class="icon icon-money"></i>稿酬收入
  96. </a>
  97. {/if}
  98. </li>
  99. <li class="{=$pagesign == 'authorinfo'?'active':''}">
  100. <a href="{link=author.author.info}">
  101. <i class="icon icon-userinfo"></i>作家资料
  102. </a>
  103. </li>
  104. </ul>
  105. </div>