Bugzilla – Attachment 3355 Details for
Bug 5593
Change cart markup to allow for easier icon styling
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
signed-off patch
0001-SIGNED-OFF-Fix-for-Bug-5593-Change-cart-markup-to-al.patch (text/plain), 3.13 KB, created by
Katrin Fischer
on 2011-03-18 22:41:48 UTC
(
hide
)
Description:
signed-off patch
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2011-03-18 22:41:48 UTC
Size:
3.13 KB
patch
obsolete
>From 17b2b7c94cc1eaf8be39d4c794daaed599212f2c Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Fri, 7 Jan 2011 11:15:18 -0500 >Subject: [PATCH] [SIGNED-OFF] Fix for Bug 5593, Change cart markup to allow for easier icon styling >Content-Type: text/plain; charset="utf-8" > >Replacing inline cart image with a span with a unique ID. Adding >styling to the deafult CSS to give that span a background of the >same cart image as before. Custom CSS can override this with a >different image. > >Example for OPACUserCSS preference: > > background-image : url("/opac-tmpl/prog/famfamfam/silk/basket.png"); > width:16px; > height:16px; >} > >Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> > > background-image: url("/opac-tmpl/prog/famfamfam/silk/basket.png"); >} > >Will also change the cart image in opac detail view. >--- > koha-tmpl/opac-tmpl/prog/en/css/opac.css | 11 +++++++++++ > .../opac-tmpl/prog/en/includes/doc-head-close.inc | 2 +- > 2 files changed, 12 insertions(+), 1 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/prog/en/css/opac.css b/koha-tmpl/opac-tmpl/prog/en/css/opac.css >index 83b54ea..f04a51c 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/css/opac.css >+++ b/koha-tmpl/opac-tmpl/prog/en/css/opac.css >@@ -1654,6 +1654,17 @@ span.starMT { > * html #cartmenulink span, * html #listsmenulink span { > padding-top : 5px; > } >+ >+#cartmenulink span#carticon { >+ background: transparent url("../../images/cart.gif") top left no-repeat; >+ position: static; >+ width : 14px; >+ height:14px; >+ margin: 0.35em 0.45em 0 0.2em; >+ padding:0; >+ float: left; >+} >+ > #listsmenulink { > background : #9FBFFF; > } >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 d8a4423..de382ca 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 >@@ -48,7 +48,7 @@ > var MSG_NO_RECORD_ADDED = _("No item was added to your cart"); > var MSG_CONFIRM_DEL_BASKET = _("Are you sure you want to empty your cart?"); > var MSG_CONFIRM_DEL_RECORDS = _("Are you sure you want to remove the selected items?"); >- $("#cartDetails").ready(function(){ $("#cmspan").html("<a href=\"#\" id=\"cartmenulink\" class=\"\"><i><\/i><span><i><\/i><span><\/span><img src=\"/opac-tmpl/prog/images/cart.gif\" width=\"14\" height=\"14\" alt=\"\" border=\"0\" /> "+_("Cart")+"<span id=\"basketcount\"><\/span><\/span><\/a>"); }); <!-- TMPL_ELSE --><!-- TMPL_IF NAME="virtualshelves" --> >+ $("#cartDetails").ready(function(){ $("#cmspan").html("<a href=\"#\" id=\"cartmenulink\" class=\"\"><i><\/i><span><i><\/i><span><\/span><span id=\"carticon\"></span> "+_("Cart")+"<span id=\"basketcount\"><\/span><\/span><\/a>"); }); <!-- TMPL_ELSE --><!-- TMPL_IF NAME="virtualshelves" --> > var MSG_NO_RECORD_SELECTED = _("No item was selected");<!-- /TMPL_IF --><!-- /TMPL_IF --> > <!-- TMPL_IF NAME="opacuserlogin" --><!-- TMPL_IF NAME="TagsEnabled" -->var MSG_TAGS_DISABLED = _("Sorry, tags are not enabled on this system."); > var MSG_TAG_ALL_BAD = _("Error! Your tag was entirely markup code. It was NOT added. Please try again with plain text."); >-- >1.7.1 >
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 5593
:
2966
| 3355