From: Jeff Davis Date: Tue, 7 Apr 2020 19:08:37 +0000 (-0700) Subject: LP#1869971: allow/disallow use of custom CSS org setting in TPAC X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=7044fbc1d19fcc5dc0bf3664e5338d76ee2b93f1;p=working%2FEvergreen.git LP#1869971: allow/disallow use of custom CSS org setting in TPAC Signed-off-by: Jeff Davis --- diff --git a/Open-ILS/src/templates/opac/parts/base.tt2 b/Open-ILS/src/templates/opac/parts/base.tt2 index b6c2876a8a..5d1e0bd289 100644 --- a/Open-ILS/src/templates/opac/parts/base.tt2 +++ b/Open-ILS/src/templates/opac/parts/base.tt2 @@ -17,7 +17,7 @@ [% END %] - [% IF ctx.get_org_setting(ctx.search_ou, 'opac.patron.custom_css') %] + [% IF ctx.allow_custom_css == 'true' AND ctx.get_org_setting(ctx.search_ou, 'opac.patron.custom_css') %] [% custom_css = ctx.get_org_setting(ctx.search_ou, 'opac.patron.custom_css') %] [% '' %] [% END %] diff --git a/Open-ILS/src/templates/opac/parts/config.tt2 b/Open-ILS/src/templates/opac/parts/config.tt2 index 48b4f0fee5..acebac7380 100644 --- a/Open-ILS/src/templates/opac/parts/config.tt2 +++ b/Open-ILS/src/templates/opac/parts/config.tt2 @@ -275,4 +275,9 @@ ctx.max_cart_size = 500; ############################################################################## ctx.show_reservations_tab = 'false'; +############################################################################## +# Enable custom CSS via opac.patron.custom_css org setting +############################################################################## +ctx.allow_custom_css = 'false'; + %]