Bugzilla – Attachment 18637 Details for
Bug 9558
Customize CSS for mobile
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Bug 9558 - Customize CSS for mobile
SIGNED-OFF-Bug-9558---Customize-CSS-for-mobile.patch (text/plain), 2.26 KB, created by
Srdjan Jankovic
on 2013-06-04 06:09:18 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 9558 - Customize CSS for mobile
Filename:
MIME Type:
Creator:
Srdjan Jankovic
Created:
2013-06-04 06:09:18 UTC
Size:
2.26 KB
patch
obsolete
>From bb41eafbb2fc906df3d4d89fe6a841ebdd8e8112 Mon Sep 17 00:00:00 2001 >From: Zachary Spalding <spalding@senylrc.org> >Date: Fri, 17 May 2013 14:11:05 -0400 >Subject: [PATCH] [SIGNED-OFF] Bug 9558 - Customize CSS for mobile > >It is possible to use an environment variable to specify a custom >stylesheet for different libraries in a multi-library system: >$ENV{'OPAC_CSS_OVERRIDE'}. This patch adds an additional option to >override the CCSR theme's mobile stylesheet. > >The changes in this patch are courtesy Zachary Spalding as described in >Bug 9558. Patch and test plan created by Owen Leonard. > >Signed-off-by: Srdjan <srdjan@catalyst.net.nz> >--- > C4/Auth.pm | 1 + > koha-tmpl/opac-tmpl/ccsr/en/includes/doc-head-close.inc | 3 +++ > 2 files changed, 4 insertions(+) > >diff --git a/C4/Auth.pm b/C4/Auth.pm >index 9dba387..d68b41e 100644 >--- a/C4/Auth.pm >+++ b/C4/Auth.pm >@@ -409,6 +409,7 @@ sub get_template_and_user { > OPACBaseURL => ($in->{'query'}->https() ? "https://" : "http://") . $ENV{'SERVER_NAME'} . > ($ENV{'SERVER_PORT'} eq ($in->{'query'}->https() ? "443" : "80") ? '' : ":$ENV{'SERVER_PORT'}"), > opac_css_override => $ENV{'OPAC_CSS_OVERRIDE'}, >+ opac_css_override_mobile => $ENV{'OPAC_CSS_OVERRIDE_MOBILE'}, > opac_search_limit => $opac_search_limit, > opac_limit_override => $opac_limit_override, > OpacBrowser => C4::Context->preference("OpacBrowser"), >diff --git a/koha-tmpl/opac-tmpl/ccsr/en/includes/doc-head-close.inc b/koha-tmpl/opac-tmpl/ccsr/en/includes/doc-head-close.inc >index fcbab2a..eb71770 100644 >--- a/koha-tmpl/opac-tmpl/ccsr/en/includes/doc-head-close.inc >+++ b/koha-tmpl/opac-tmpl/ccsr/en/includes/doc-head-close.inc >@@ -18,6 +18,9 @@ > <link rel="stylesheet" type="text/css" href="[% themelang %]/css/[% opaccolorstylesheet %]" /> > [% END %] > [% END %] >+[% IF ( opac_css_override_mobile ) %] >+ <link rel="stylesheet" type="text/css" media="screen and (max-width:700px)" href="[% themelang %]/css/[% opac_css_override_mobile %]" /> >+ [% END %] > [% IF ( opac_css_override ) %] > <link rel="stylesheet" type="text/css" href="[% themelang %]/css/[% opac_css_override %]" /> > [% END %] >-- >1.8.1.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 9558
:
18218
| 18637