advertisement 模版数据标签

属性列表

名称 代码 备注
名称 name
调用代码 code
标题名称 title
标题名称(英) etitle
跳转连接 url
跳转连接(英) eurl
图片内容 imges
图片内容(英) eimges
叙述长文 content
叙述长文(英) econtent

循环调用方法一

{advertisement banna as $vo}banna=调用代码code,如果多个就循环出来

  1. <div class="flash">
  2. <ul class="bxslider">
  3. {advertisement banna as $vo}
  4. <li>
  5. <a href="{$vo.url}">
  6. <img src="{__STATICS__}/{$vo.imges}" alt="{$vo.title}" />
  7. </a>
  8. </li>
  9. {/advertisement}
  10. </ul>
  11. </div>

单一调用方法二

{$advertisement.advantage-4.title}advantage-4=调用代码code

  1. <div class="row">
  2. <div class="col-sm-6 col-md-6 advantage_col" data-move-y="200px" style="transition: all 1s ease 0s, opacity 1.5s ease 0s; opacity: 1;">
  3. <div class="col-sm-3 col-md-3">
  4. <a href="" target="_blank">
  5. <img src="{$advertisement.advantage-1.imges}" alt="{$advertisement.advantage-1.title}">
  6. </a>
  7. </div>
  8. <div class="col-sm-9 col-md-9">
  9. <h4>
  10. <a href="" target="_blank">
  11. {$advertisement.advantage-1.title}
  12. </a>
  13. </h4>
  14. <span>
  15. {$advertisement.advantage-1.content}
  16. </span>
  17. </div>
  18. </div>
  19. <div class="col-sm-6 col-md-6 advantage_col" data-move-y="200px" style="transition: all 1s ease 0s, opacity 1.5s ease 0s; opacity: 1;">
  20. <div class="col-sm-3 col-md-3">
  21. <a href="" target="_blank">
  22. <img src="{$advertisement.advantage-2.imges}" alt="{$advertisement.advantage-2.title}">
  23. </a>
  24. </div>
  25. <div class="col-sm-9 col-md-9">
  26. <h4>
  27. <a href="" target="_blank">
  28. {$advertisement.advantage-2.title}
  29. </a>
  30. </h4>
  31. <span>
  32. {$advertisement.advantage-2.content}
  33. </span>
  34. </div>
  35. </div>
  36. <div class="col-sm-6 col-md-6 advantage_col" data-move-y="200px" style="transition: all 1s ease 0s, opacity 1.5s ease 0s; opacity: 1;">
  37. <div class="col-sm-3 col-md-3">
  38. <a href="" target="_blank">
  39. <img src="{$advertisement.advantage-3.imges}" alt="{$advertisement.advantage-3.title}">
  40. </a>
  41. </div>
  42. <div class="col-sm-9 col-md-9">
  43. <h4>
  44. <a href="" target="_blank">
  45. {$advertisement.advantage-3.title}
  46. </a>
  47. </h4>
  48. <span>
  49. {$advertisement.advantage-3.content}
  50. </span>
  51. </div>
  52. </div>
  53. <div class="col-sm-6 col-md-6 advantage_col" data-move-y="200px" style="transition: all 1s ease 0s, opacity 1.5s ease 0s; opacity: 1;">
  54. <div class="col-sm-3 col-md-3">
  55. <a href="" target="_blank">
  56. <img src="{$advertisement.advantage-4.imges}" alt="{$advertisement.advantage-4.title}">
  57. </a>
  58. </div>
  59. <div class="col-sm-9 col-md-9">
  60. <h4>
  61. <a href="" target="_blank">
  62. {$advertisement.advantage-4.title}
  63. </a>
  64. </h4>
  65. <span>
  66. {$advertisement.advantage-4.content}
  67. </span>
  68. </div>
  69. </div>
  70. </div>