user.html 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  1. {layout name="common/layout" /}
  2. <style>
  3. body.skin-white {
  4. padding-top: 59px;
  5. }
  6. @keyframes wave-animation {
  7. 0% {
  8. transform: translateX(0) translateZ(0) scaleY(1)
  9. }
  10. 50% {
  11. transform: translateX(-25%) translateZ(0) scaleY(0.55)
  12. }
  13. 100% {
  14. transform: translateX(-50%) translateZ(0) scaleY(1)
  15. }
  16. }
  17. .wave-wrapper {
  18. height: 430px;
  19. position: relative;
  20. }
  21. .wave-inner {
  22. position: absolute;
  23. width: 100%;
  24. overflow: hidden;
  25. height: 430px;
  26. bottom: -1px;
  27. background: #374486;
  28. }
  29. .wave-bg-top {
  30. z-index: 15;
  31. opacity: 0.5;
  32. }
  33. .wave-bg-middle {
  34. z-index: 10;
  35. opacity: 0.75;
  36. }
  37. .wave-bg-bottom {
  38. z-index: 5;
  39. }
  40. .wave-item {
  41. position: absolute;
  42. left: 0;
  43. width: 200%;
  44. height: 430px;
  45. background-repeat: repeat no-repeat;
  46. background-position: 0 bottom;
  47. transform-origin: center bottom;
  48. }
  49. .wave-top {
  50. background-size: 50% 100px;
  51. }
  52. .wave-animation .wave-top {
  53. animation: wave-animation 3s;
  54. -webkit-animation: wave-animation 3s;
  55. -webkit-animation-delay: 1s;
  56. animation-delay: 1s;
  57. }
  58. .wave-middle {
  59. background-size: 50% 120px;
  60. }
  61. .wave-animation .wave-middle {
  62. animation: wave-animation 10s linear infinite;
  63. }
  64. .wave-bottom {
  65. background-size: 50% 100px;
  66. }
  67. .wave-animation .wave-bottom {
  68. animation: wave-animation 15s linear infinite;
  69. }
  70. .userinfo {
  71. position: absolute;
  72. z-index: 99;
  73. text-align: center;
  74. width: 100%;
  75. top: 0;
  76. color: #fff;
  77. }
  78. .header-logo {
  79. margin-top: 60px;
  80. margin-bottom: 20px;
  81. }
  82. .userinfo-avatar {
  83. background: rgba(0, 0, 0, 0.12);
  84. display: inline-block;
  85. position: relative;
  86. padding: 20px;
  87. border-radius: 50%;
  88. min-width: 120px;
  89. }
  90. .userinfo-avatar img {
  91. width: 110px;
  92. height: 110px;
  93. }
  94. .nav-noborder > li.active > a, .nav-noborder > li.active > a:focus, .nav-noborder > li.active > a:hover {
  95. border-color: #fff;
  96. }
  97. .nav-noborder {
  98. border-bottom: none;
  99. }
  100. .comment-content {
  101. border-radius: 3px;
  102. padding: 12px;
  103. border: none;
  104. background: #fafafa;
  105. margin-bottom: 0;
  106. }
  107. .comment-content div {
  108. line-height: 20px !important;
  109. margin-bottom: 0px;
  110. margin-top: 0 !important;
  111. font-size: 14px !important;
  112. font-weight: 400;
  113. color: #777;
  114. font-family: 'Source Sans Pro', sans-serif;
  115. }
  116. .statistics-nums {
  117. margin-top: 5px;
  118. color: #999;
  119. }
  120. .statistics a:hover {
  121. text-decoration: none;
  122. }
  123. .statistics a:hover .statistics-nums {
  124. color: #374486;
  125. }
  126. </style>
  127. <div class="wave-wrapper wave-animation">
  128. <div class="userinfo">
  129. <div class="header-logo">
  130. <a href="{:addon_url('cms/user/index',[':id'=>$__USER__['id']],false)}" class="userinfo-avatar">
  131. <img class="img-circle" src="{$__USER__.avatar|cdnurl|htmlentities}" alt="{$__USER__.nickname|htmlentities}">
  132. </a>
  133. </div>
  134. <h2 class="">
  135. <span><strong>{$__USER__.nickname|htmlentities}</strong></span>
  136. </h2>
  137. <h5 class="">
  138. <span>{$__USER__.bio|default="这家伙很懒,什么也没写"|htmlentities}</span>
  139. </h5>
  140. </div>
  141. <div class="wave-inner wave-bg-top">
  142. <div class="wave-item wave-top" style="background-image: url('__ADDON__/img/wave-top.png')"></div>
  143. </div>
  144. <div class="wave-inner wave-bg-middle">
  145. <div class="wave-item wave-middle" style="background-image: url('__ADDON__/img/wave-mid.png')"></div>
  146. </div>
  147. <div class="wave-inner wave-bg-bottom">
  148. <div class="wave-item wave-bottom" style="background-image: url('__ADDON__/img/wave-bot.png')"></div>
  149. </div>
  150. </div>
  151. <div class="container-fluid" style="padding:0px 0 50px 0;background:#fff;">
  152. <header class="space-header">
  153. <div class="container">
  154. <div class="row">
  155. <div class="col-xs-12 col-sm-8 col-md-4 col-md-offset-4">
  156. <div class="row statistics pt-1 text-center" style="border-top:none;">
  157. <div class="col-xs-4">
  158. <div class="statistics-text">文章</div>
  159. <a href="{:addon_url('cms/user/index',[':id'=>$__USER__['id']],false)}/archives">
  160. <div class="statistics-nums">{$statistics.archives}</div>
  161. </a>
  162. </div>
  163. <div class="col-xs-4">
  164. <div class="statistics-text">评论</div>
  165. <a href="{:addon_url('cms/user/index',[':id'=>$__USER__['id']],false)}/comment">
  166. <div class="statistics-nums">{$statistics.comments}</div>
  167. </a>
  168. </div>
  169. <div class="col-xs-4">
  170. <div class="statistics-text">加入时间</div>
  171. <div class="statistics-nums">{$__USER__.jointime|human_date}</div>
  172. </div>
  173. </div>
  174. </div>
  175. </div>
  176. </div>
  177. </header>
  178. </div>
  179. <div class="container" id="content-container">
  180. <div class="row mt-4 mb-4">
  181. <div class="col-md-8 col-sm-12">
  182. <ul class="nav nav-tabs nav-noborder mb-10 mt-20">
  183. <li class="active"><a href="javascript:;">{$title|htmlentities}</a></li>
  184. </ul>
  185. <div class="tab-inner" style="background:#fff;padding:15px;">
  186. {if $type == 'archives'}
  187. <div class="article-list">
  188. {volist name="archivesList" id="item"}
  189. {include file="common/item" /}
  190. {/volist}
  191. </div>
  192. {include file="common/pageinfo" /}
  193. {else/}
  194. <div class="article-list">
  195. {volist name="commentList" id="item"}
  196. <article class="article-item">
  197. <div class="media">
  198. <div class="media-left">
  199. <a href="{$item.source.url}">
  200. <div class="embed-responsive embed-responsive-4by3 img-zoom">
  201. <img src="{$item.source.image}">
  202. </div>
  203. </a>
  204. </div>
  205. <div class="media-body">
  206. <h3 class="article-title">
  207. <a href="{$item.source.url}" {if isset($item.source.style) && $item.source.style}style="{$item.source.style_text|default=''}" {/if}>{$item.source.title|htmlentities}</a>
  208. </h3>
  209. <div class="comment-content">
  210. <div>{$item.content}</div>
  211. </div>
  212. <div class="article-tag">
  213. <span itemprop="date"><i class="fa fa-calendar"></i> {:date("Y年m月d日", $item['createtime'])}</span>
  214. </div>
  215. </div>
  216. </div>
  217. </article>
  218. {/volist}
  219. </div>
  220. {include file="common/pageinfo" /}
  221. {/if}
  222. </div>
  223. </div>
  224. <div class="col-md-4 col-sm-12">
  225. <div class="article-sidebar">
  226. <!-- S 会员菜单 -->
  227. <div class="panel panel-default">
  228. <div class="panel-body">
  229. <ul class="nav nav-pills nav-stacked space-nav">
  230. <li class="{:$type=='archives'?'active':''}"><a href="{:addon_url('cms/user/index',[':id'=>$__USER__['id']],false)}/archives">{:$user&&$user['id']==$__USER__.id?'我':'TA'}的文章</a></li>
  231. <li class="{:$type=='comment'?'active':''}"><a href="{:addon_url('cms/user/index',[':id'=>$__USER__['id']],false)}/comment">{:$user&&$user['id']==$__USER__.id?'我':'TA'}的评论</a></li>
  232. </ul>
  233. </div>
  234. </div>
  235. <!-- E 会员菜单 -->
  236. <div class="panel panel-blockimg">
  237. {cms:block name="sidebarad1" /}
  238. </div>
  239. </div>
  240. </div>
  241. </div>
  242. </div>