Bug 22318: Extend Koha news feature to include other content areas
[koha-equinox.git] / koha-tmpl / opac-tmpl / bootstrap / en / includes / html_helpers.inc
index 2c7d349..8cb9d2f 100644 (file)
@@ -7,3 +7,16 @@
         [% END%]
     [% END %]
 [% END %]
+
+[% BLOCK koha_news_block %]
+    [% IF ( news.size > 0 ) %]
+        [% FOREACH n IN news %]
+            <div class="[% n.lang | html %]_item">
+                [% IF ( n.title ) %]
+                    <h4 class="[% n.lang | html %]_header">[% n.title | html %]</h4>
+                [% END %]
+                <div class="[% n.lang | html %]_body">[% n.content | $raw %]</div>
+            </div>
+        [% END %]
+    [% END %]
+[% END %]