Bug 12663 - SCOUserCSS and SCOUserJS ignored on selfcheck login page
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / includes / doc-head-close.inc
index e346689..47918a4 100644 (file)
 [% IF ( bidi ) %]
     <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/right-to-left.css" />
 [% END %]
-[% IF ( OPACUserCSS ) %]<style type="text/css">[% OPACUserCSS %]</style>[% END %]
+[% IF SCO_login %]
+    [% SET SCOUserCSS = Koha.Preference('SCOUserCSS') %]
+    [% IF SCOUserCSS %]
+        <style type="text/css">[% SCOUserCSS %]</style>
+    [% END %]
+[% ELSE %]
+    [% IF ( OPACUserCSS ) %]<style type="text/css">[% OPACUserCSS %]</style>[% END %]
+[% END %]
 <link rel="unapi-server" type="application/xml" title="unAPI" href="[% OPACBaseURL %]/cgi-bin/koha/unapi" />
 [% PROCESS cssinclude %]
 <!-- Respond.js brings responsive layout behavior to IE < v.9 -->