To allow browsers to cache the correct version of the stylesheet, append a GET
param indicating the direction.
Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Ben Shum <ben@evergreener.net>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
[% END %]
<meta name = "viewport" content = "initial-scale = 1.0">
<link rel="stylesheet" type="text/css" href="[% ctx.media_prefix %]/css/skin/default/opac/semiauto.css" />
- <link rel="stylesheet" type="text/css" href="[% ctx.opac_root %]/css/style.css" />
+ <link rel="stylesheet" type="text/css" href="[% ctx.opac_root %]/css/style.css?dir=[%
+ IF ctx.get_i18n_l(ctx.eg_locale).rtl == 't' %]rtl[%
+ ELSE %]ltr[% END %]" />
[% IF ctx.get_i18n_l(ctx.eg_locale).rtl == 't' %]
<link rel="stylesheet" type="text/css" href="[% ctx.media_prefix %]/css/skin/default/opac/semiauto-rtl.css" />
[% END %]