From 7ec49e693abec6f31344284c02cbbf7c9a59c2f4 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 19 Mar 2008 15:18:53 -0500 Subject: [PATCH] Fix to enable OPACUserCSS preference (allows user to add CSS globally in the OPAC via an embedded style block) Signed-off-by: Joshua Ferraro --- C4/Auth.pm | 1 + .../prog/en/includes/doc-head-close.inc | 22 +++++++------------ 2 files changed, 9 insertions(+), 14 deletions(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index ab0116de5e..7e32b4b85a 100755 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -295,6 +295,7 @@ sub get_template_and_user { opaclargeimage => "" . C4::Context->preference("opaclargeimage"), opaclayoutstylesheet => "". C4::Context->preference("opaclayoutstylesheet"), opaccolorstylesheet => "". C4::Context->preference("opaccolorstylesheet"), + OPACUserCSS => "". C4::Context->preference("OPACUserCSS"), opaclanguagesdisplay => "". C4::Context->preference("opaclanguagesdisplay"), opacuserlogin => "" . C4::Context->preference("opacuserlogin"), OpacMainUserBlock => "" . C4::Context->preference("OpacMainUserBlock"), diff --git a/koha-tmpl/opac-tmpl/prog/en/includes/doc-head-close.inc b/koha-tmpl/opac-tmpl/prog/en/includes/doc-head-close.inc index c0912927b9..4a6cca8185 100644 --- a/koha-tmpl/opac-tmpl/prog/en/includes/doc-head-close.inc +++ b/koha-tmpl/opac-tmpl/prog/en/includes/doc-head-close.inc @@ -6,24 +6,24 @@ /lib/yui/button.css" /> /lib/yui/menu.css" /> /lib/yui/container.css" /> +" /> +/css/" />/css/opac.css" /> +/css/" /> +/css/print.css" /> +/lib/jquery/plugins/ui.tabs.css" /> + - -" /> -/css/" /> -/css/" />/css/opac.css" /> -/css/print.css" /> -/lib/jquery/plugins/ui.tabs.css" /> - + - - - -- 2.39.5