Bug 22544: Move GetNewsToDisplay to Koha namespace
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / includes / html_helpers.inc
1 [% BLOCK options_for_libraries %]
2     [% FOREACH l IN libraries %]
3         [% IF l.selected %]
4             <option value="[% l.branchcode | html %]" selected="selected">[% l.branchname | html %]</option>
5         [% ELSE %]
6             <option value="[% l.branchcode | html %]">[% l.branchname | html %]</option>
7         [% END%]
8     [% END %]
9 [% END %]
10
11 [% BLOCK koha_news_block %]
12     [% IF ( news.content.count > 0 ) %]
13         <div id="[% news.location | html %]">
14             [% FOREACH n IN news.content %]
15                 <div class="[% n.lang | html %]_item">
16                     [% IF ( n.title && news.blocktitle ) %]
17                         <h4 class="[% n.lang | html %]_header">[% n.title | html %]</h4>
18                     [% END %]
19                     <div class="[% n.lang | html %]_body">[% n.content | $raw %]</div>
20                 </div>
21             [% END %]
22         </div>
23     [% END %]
24 [% END %]