Bug 27796: (QA follow-up) Missing filters
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / intranetstylesheet.inc
1 [% USE raw %]
2 [% USE Asset %]
3 [% SET intranetstylesheet='staff-global.css' UNLESS intranetstylesheet %]
4 [% IF (intranetstylesheet.match('^https?:|^\/')) %]
5     <link rel="stylesheet" type="text/css" href="[% intranetstylesheet | html %]" />
6 [% ELSE %]
7     [% Asset.css("css/" _ intranetstylesheet) | $raw %]
8 [% END %]
9
10 <!-- local colors -->
11 [% IF ( intranetcolorstylesheet ) %]
12     [% IF (intranetcolorstylesheet.match('^https?:|^\/')) %]
13         <link rel="stylesheet" type="text/css" href="[% intranetcolorstylesheet | html %]" />
14     [% ELSE %]
15         <link rel="stylesheet" type="text/css" href="[% interface | html %]/[% theme | html %]/css/[% intranetcolorstylesheet | html %]" />
16     [% END %]
17 [% END %]