Koha/koha-tmpl/opac-tmpl/bootstrap
Owen Leonard cb83128f62 Bug 22318: Extend Koha news feature to include other content areas
This patch lays the groundwork for using the Koha news tool to replace
OPAC system preferences which embed HTML content in the Koha interface.
This will allow multiple translations of these content blocks to be
created.

This adds a new template plugin, KohaNews. It has a single subroutine,
get(), which takes three parameters:

 - "location" -- the area of the template where the content will appear.
   This will correspond to the system preference it replaces:
   OpacMainUserBlock, OpacNavRight, etc.
 - "lang" -- the user's currently-selected language.
 - "library" -- the user's home library (if they are logged in)

A new "koha_news_block" block is added to the OPAC templates'
html_helpers include. The content area is activated in the template
using this syntax:

[% PROCESS koha_news_block news => KohaNews.get( location =>
"OpacNavRight", lang => news_lang, library => branchcode ) %]

Signed-off-by: Michal Denar <black23@gmail.com>

Signed-off-by: Michal Denar <black23@gmail.com>

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2019-04-18 10:47:03 +00:00
..
css Bug 22274: Compiled CSS 2019-04-17 10:31:03 +00:00
en Bug 22318: Extend Koha news feature to include other content areas 2019-04-18 10:47:03 +00:00
images Bug 22568: Replace RSS icon in the OPAC with Font Awesome 2019-03-23 09:40:29 +00:00
itemtypeimg
js Bug 21870: Convert browser alerts to modals: OPAC user summary 2019-02-26 14:36:17 +00:00
lib Bug 10659: Upgrade jQuery star ratings plugin 2019-02-15 18:42:46 +00:00