Signed-off-by: Jeff Davis <jdavis@sitka.bclibraries.ca>
<link rel="stylesheet" type="text/css" href="[% ctx.media_prefix %]/css/skin/default/opac/semiauto-rtl.css[% ctx.cache_key %]" />
[% 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') %]
[% '<style>'; custom_css ; '</style>' %]
[% END %]
##############################################################################
ctx.show_reservations_tab = 'false';
+##############################################################################
+# Enable custom CSS via opac.patron.custom_css org setting
+##############################################################################
+ctx.allow_custom_css = 'false';
+
%]