remove "internal" templates, use "tpl/" folder for smarty3 templates,
move smarty3 templates in "tpl/" folder, add util/precompile_smarty.php utility, add precompiled templates
This commit is contained in:
33
view/tpl/channels.tpl
Normal file → Executable file
33
view/tpl/channels.tpl
Normal file → Executable file
@@ -1,22 +1,27 @@
|
||||
<h3>$header</h3>
|
||||
{{*
|
||||
* AUTOMATICALLY GENERATED TEMPLATE
|
||||
* DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
|
||||
*
|
||||
*}}
|
||||
<h3>{{$header}}</h3>
|
||||
|
||||
|
||||
{{ if $links }}
|
||||
{{ for $links as $l }}
|
||||
<a class="channels-links" href="$l.0" title="$l.1">$l.2</a>
|
||||
{{ endfor }}
|
||||
{{ endif }}
|
||||
{{if $links}}
|
||||
{{foreach $links as $l}}
|
||||
<a class="channels-links" href="{{$l.0}}" title="{{$l.1}}">{{$l.2}}</a>
|
||||
{{/foreach}}
|
||||
{{/if}}
|
||||
|
||||
{{ if $selected }}
|
||||
<div id="channels-selected">$msg_selected</div>
|
||||
{{ inc channel.tpl with $channel=$selected }}{{ endinc }}
|
||||
{{if $selected}}
|
||||
<div id="channels-selected">{{$msg_selected}}</div>
|
||||
{{include file="channel.tpl" channel=$selected}}
|
||||
<div class="channels-end selected"></div>
|
||||
{{ endif }}
|
||||
{{/if}}
|
||||
|
||||
<div id="channels-desc" class="descriptive-text">$desc</div>
|
||||
<div id="channels-desc" class="descriptive-text">{{$desc}}</div>
|
||||
|
||||
{{ for $all_channels as $chn }}
|
||||
{{ inc channel.tpl with $channel=$chn }}{{ endinc }}
|
||||
{{ endfor }}
|
||||
{{foreach $all_channels as $chn}}
|
||||
{{include file="channel.tpl" channel=$chn}}
|
||||
{{/foreach}}
|
||||
|
||||
<div class="channels-end all"></div>
|
||||
|
||||
Reference in New Issue
Block a user