preview_material.html 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <html>
  2. <head>
  3. <meta charset="utf-8">
  4. <meta name="renderer" content="webkit">
  5. <meta name="referrer" content="never">
  6. <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0,viewport-fit=cover"/>
  7. <meta http-equiv="X-UA-COMPATIBLE" content="IE=edge,chrome=1">
  8. <title>{$info.value[$index]['title']}</title>
  9. <meta name="keywords" content="">
  10. <meta name="description" content="">
  11. <link rel="stylesheet" type="text/css" href="__STATIC__/ext/layui/css/layui.css">
  12. <link rel="stylesheet" href="SITEHOME_CSS/home.css">
  13. <link rel="stylesheet" href="WECHAT_CSS/wx_preview_graphic_message.css">
  14. <script src="__STATIC__/js/jquery-2.2.js"></script>
  15. </head>
  16. <body>
  17. <div class='preview-box'>
  18. <img class='head' src='WECHAT_IMG/mobile_head.png'/>
  19. <div class='graphic-message'>
  20. <h1 class='title'>{$info.value[$index]['title']}</h1>
  21. {if condition="$info.update_time eq 0"}
  22. <span class='time'>{$info['create_time']|time_to_date='Y-m-d'}</span>
  23. {else/}
  24. <span class='time'>{$info['update_time']|time_to_date='Y-m-d'}</span>
  25. {/if}
  26. <span class='author'>{$info.value[$index]['autor']}</span>
  27. <content>
  28. {if condition="$info.value[$index]['show_cover_pic'] == 1"}
  29. <div class="rich-media-thumb" id="media">
  30. <img onerror="this.parentNode.removeChild(this)" src="{$info.value[$index]['cover']['path']}">
  31. </div>
  32. {/if}
  33. {:html_entity_decode($info.value[$index]['content'])}
  34. </content>
  35. {if condition="!empty($info.value[$index]['url'])"}
  36. <a class='original-text' href="{$info.value[$index]['url']}">阅读原文</a>
  37. {/if}
  38. </div>
  39. </div>
  40. </body>
  41. <script>
  42. $(function () {
  43. $("img").each(function(){
  44. $(this).replaceWith(this);
  45. })
  46. })
  47. </script>
  48. </html>