Move content filter HTML in a template
This commit is contained in:
parent
4cfb12e9d9
commit
48122733b8
2 changed files with 29 additions and 21 deletions
22
view/templates/wall/content_filter.tpl
Normal file
22
view/templates/wall/content_filter.tpl
Normal file
|
@ -0,0 +1,22 @@
|
|||
{{if count($reasons) > 1}}
|
||||
<ul class="content-filter-reasons">
|
||||
{{foreach $reasons as $reason}}
|
||||
<li>{{$reason|escape:html}}</li>
|
||||
{{/foreach}}
|
||||
</ul>
|
||||
<p>
|
||||
<button type="button" id="content-filter-wrap-{{$rnd}}" class="btn btn-default btn-small content-filter-button" onclick="openClose('content-filter-{{$rnd}}');">
|
||||
<i class="glyphicon glyphicon-eye-open"></i> {{$openclose}}
|
||||
</button>
|
||||
</p>
|
||||
{{else}}
|
||||
<p>
|
||||
{{$reasons.0|escape:html}}
|
||||
<button type="button" id="content-filter-wrap-{{$rnd}}" class="btn btn-default btn-xs content-filter-button" onclick="openClose('content-filter-{{$rnd}}');">
|
||||
<i class="glyphicon glyphicon-eye-open"></i> {{$openclose}}
|
||||
</button>
|
||||
</p>
|
||||
{{/if}}
|
||||
<div id="content-filter-{{$rnd}}" class="content-filter-content" style="display: none;">
|
||||
{{$html}}
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue