streams/view/tpl/channels.tpl
marijus 4e9bd8b8f0 This is a fix to not interfere the ongoing adding of .generic-content-wrapper with the ongoing styling of redbasic theme.
adding of .generic-content-wrapper is needed and useful for derivative themes but it should not contain any styling information for redbasic theme. therefor i added .generic-content-wrapper-styled as a quickfix for spots where redbasic is not finished yet.
Sidenote: please avoid opening a div in one *.tpl and close it in another or (even worse) open a div in a *.tpl and close it in an already templatified mod/*.php. This will really make the code and templates very, very confusing.
2014-10-10 15:52:56 +02:00

34 lines
808 B
Smarty
Executable file

<div class="generic-content-wrapper-styled">
<h3>{{$header}}</h3>
{{if $links}}
{{foreach $links as $l}}
<a class="channels-links" href="{{$l.0}}" title="{{$l.1}}">{{$l.2}}</a>
{{/foreach}}
{{/if}}
<div class="channels-break"></div>
{{if $channel_usage_message}}
<div id="channel-usage-message" class="usage-message">
{{$channel_usage_message}}
</div>
{{/if}}
{{if $selected}}
<div id="selected-channel">
<div id="channels-selected">{{$msg_selected}}</div>
{{include file="channel.tpl" channel=$selected}}
</div>
<div class="channels-end selected"></div>
{{/if}}
<br />
<div id="channels-desc" class="descriptive-text">{{$desc}}</div>
<div id="all-channels">
{{foreach $all_channels as $chn}}
{{include file="channel.tpl" channel=$chn}}
{{/foreach}}
</div>
<div class="channels-end all"></div>
</div>