chore: 重写初始提交(清空历史,整理后全量提交)
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
{notempty name="adSlots[$slot]"}
|
||||
<div class="ad-slot ad-slot-{$slot}">
|
||||
{volist name="adSlots[$slot]" id="ad"}
|
||||
<div class="ad-item ad-type-{$ad.type}">
|
||||
{switch name="ad.type"}
|
||||
{case value="1"}
|
||||
{if condition="$ad.url"}
|
||||
<a href="{$ad.url}" target="_blank" rel="nofollow">
|
||||
<img src="{$ad.image}" alt="{$ad.title}" title="{$ad.title}">
|
||||
</a>
|
||||
{else /}
|
||||
<img src="{$ad.image}" alt="{$ad.title}" title="{$ad.title}">
|
||||
{/if}
|
||||
{/case}
|
||||
{case value="2"}
|
||||
{if condition="$ad.url"}
|
||||
<a href="{$ad.url}" target="_blank" rel="nofollow" class="ad-text-link">{$ad.content}</a>
|
||||
{else /}
|
||||
<span class="ad-text">{$ad.content}</span>
|
||||
{/if}
|
||||
{/case}
|
||||
{case value="3"}
|
||||
{$ad.content|raw}
|
||||
{/case}
|
||||
{/switch}
|
||||
</div>
|
||||
{/volist}
|
||||
</div>
|
||||
{/notempty}
|
||||
Reference in New Issue
Block a user