advertisement 模版数据标签
参数说明
名称 | 代码 | 备注 |
---|---|---|
filename | 调用代码 | 后台模版动态标签 |
as | $vo | 复值变量 |
as属性列表
名称 | 代码 | 备注 |
---|---|---|
名称 | name | |
调用代码 | code | |
标题名称 | title | |
标题名称(英) | etitle | |
跳转连接 | url | |
跳转连接(英) | eurl | |
图片内容 | imges | |
图片内容(英) | eimges | |
叙述长文 | content | |
叙述长文(英) | econtent |
循环调用方法一
{advertisement banna as $vo}
banna=调用代码code,如果多个就循环出来
<div class="flash">
<ul class="bxslider">
{advertisement filename="banna" as="$vo"}
<li>
<a href="{$vo.url}">
<img src="{$vo.imges}" alt="{$vo.title}" />
</a>
</li>
{/advertisement}
</ul>
</div>
单一调用方法二
{$advertisement.advantage-4.title}
advantage-4=调用代码code
<div class="row">
<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;">
<div class="col-sm-3 col-md-3">
<a href="" target="_blank">
<img src="{$advertisement.advantage-1.imges}" alt="{$advertisement.advantage-1.title}">
</a>
</div>
<div class="col-sm-9 col-md-9">
<h4>
<a href="" target="_blank">
{$advertisement.advantage-1.title}
</a>
</h4>
<span>
{$advertisement.advantage-1.content}
</span>
</div>
</div>
<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;">
<div class="col-sm-3 col-md-3">
<a href="" target="_blank">
<img src="{$advertisement.advantage-2.imges}" alt="{$advertisement.advantage-2.title}">
</a>
</div>
<div class="col-sm-9 col-md-9">
<h4>
<a href="" target="_blank">
{$advertisement.advantage-2.title}
</a>
</h4>
<span>
{$advertisement.advantage-2.content}
</span>
</div>
</div>
<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;">
<div class="col-sm-3 col-md-3">
<a href="" target="_blank">
<img src="{$advertisement.advantage-3.imges}" alt="{$advertisement.advantage-3.title}">
</a>
</div>
<div class="col-sm-9 col-md-9">
<h4>
<a href="" target="_blank">
{$advertisement.advantage-3.title}
</a>
</h4>
<span>
{$advertisement.advantage-3.content}
</span>
</div>
</div>
<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;">
<div class="col-sm-3 col-md-3">
<a href="" target="_blank">
<img src="{$advertisement.advantage-4.imges}" alt="{$advertisement.advantage-4.title}">
</a>
</div>
<div class="col-sm-9 col-md-9">
<h4>
<a href="" target="_blank">
{$advertisement.advantage-4.title}
</a>
</h4>
<span>
{$advertisement.advantage-4.content}
</span>
</div>
</div>
</div>
- 上一条:
- 下一条: exhibition 循环数据标签