Shuo/client/views/toggle.tpl

20 lines
372 B
Smarty
Raw Normal View History

2014-09-27 23:47:04 +00:00
{{#toggle}}
2014-09-27 19:17:05 +00:00
<div class="toggle-content">
{{#equal type "image"}}
2014-09-27 20:39:14 +00:00
<a href="{{link}}" target="_blank">
<img src="{{link}}">
2014-09-27 19:17:05 +00:00
</a>
{{else}}
2014-09-27 20:39:14 +00:00
<a href="{{link}}" target="_blank">
{{#if thumb}}
<img src="{{thumb}}" class="thumb">
{{/if}}
2014-09-27 20:39:14 +00:00
<div class="head">{{{head}}}</div>
<div class="body">
{{body}}
</div>
</a>
2014-09-27 19:17:05 +00:00
{{/equal}}
</div>
2014-09-27 23:47:04 +00:00
{{/toggle}}