article_show.html 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. {extend name="default/base/base_home" /}
  2. {block name="mall_main"}
  3. <div class="w1200">
  4. <div class="dsh-container wrapper">
  5. <div class="left">
  6. <div class="dsh-module dsh-module-style01">
  7. <div class="title">
  8. <h3>{$Think.lang.article_article_article_class}</h3>
  9. </div>
  10. <div class="content">
  11. <ul id="files" class="tree">
  12. {foreach name="sub_class_list" item="value"}
  13. <li><i class="tree-parent tree-parent-collapsed"></i><a href="{:url('Article/index',['ac_id'=>$value.id])}" {if condition="$value.id eq $Request.param.ac_id"}class="selected"{/if}>{$value.value}</a>
  14. {notempty name="$value.children"}
  15. <ul>
  16. {foreach name="$value.children" item="val"}
  17. <li><i class="tree-parent tree-parent-collapsed"></i><a href="{:url('Article/index',['ac_id'=>$val.id])}" {if condition="$val.id eq $Request.param.ac_id"}class="selected"{/if}>{$val.value}</a>
  18. </li>
  19. {/foreach}
  20. </ul>
  21. {/notempty}
  22. </li>
  23. {/foreach}
  24. </ul>
  25. </div>
  26. </div>
  27. <div class="dsh-module dsh-module-style03">
  28. <div class="title">
  29. <h3>{$Think.lang.article_article_new_article}</h3>
  30. </div>
  31. <div class="content">
  32. <ul class="dsh-sidebar-article-list">
  33. {notempty name="new_article_list"}
  34. {foreach name="new_article_list" item="v"}
  35. <li><i class="iconfont">&#xe687;</i>
  36. <a {if $v.article_url !=""}target="_blank"{/if} href="{if $v.article_url != ''} {$v.article_url}{else /} {:url('Article/show',['article_id'=>$v.article_id])}{/if}">
  37. {$v.article_title}
  38. </a>
  39. </li>
  40. {/foreach}
  41. {else /}
  42. <li>{$Think.lang.article_article_no_new_article}</li>
  43. {/notempty}
  44. </ul>
  45. </div>
  46. </div>
  47. </div>
  48. <div class="right">
  49. <div class="dsh-article-con">
  50. <h1>{$article.article_title}</h1>
  51. <h2>{:date('Y-m-d H:i',$article.article_time)}</h2>
  52. <div class="default">
  53. <p>{:htmlspecialchars_decode($article.article_content)}</p>
  54. </div>
  55. <div class="more_article">
  56. <span class="fl">{$Think.lang.article_show_previous}:
  57. {notempty name="pre_article"}
  58. <a {if $pre_article.article_url !=""}target="_blank"{/if} href="{if $pre_article.article_url !=''}{$pre_article.article_url}{else /}{:url('Article/show',['article_id'=>$pre_article.article_id])}{/if}">
  59. {$pre_article.article_title}
  60. </a>
  61. <time>{:date('Y-m-d H:i',$pre_article.article_time)}</time>
  62. {else /}
  63. {$Think.lang.article_article_not_found}
  64. {/notempty}
  65. </span> <span class="fr">{$Think.lang.article_show_next}:
  66. {notempty name="next_article"}
  67. <a {notempty name="next_article.article_url"}target="_blank"{/notempty} href="{notempty name="next_article.article_url"}{$next_article.article_url}{else /}{:url('Article/show',['article_id'=>$next_article.article_id])}{/notempty} ">{$next_article.article_title}</a>
  68. <time>{:date('Y-m-d H:i',$next_article.article_time)}</time>
  69. {else /}
  70. {$Think.lang.article_article_not_found}
  71. {/notempty}
  72. </span>
  73. </div>
  74. </div>
  75. </div>
  76. </div>
  77. </div>
  78. <script src="{$Think.HOME_SITE_ROOT}/js/search_category_menu.js"></script>
  79. <script>
  80. $(function(){
  81. $('#files').tree({
  82. expanded: 'li:lt(2)'
  83. });
  84. })
  85. </script>
  86. {/block}