Bugzilla – Attachment 9677 Details for
Bug 7500
Use CSS Sprites in the OPAC for faster page loading
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7500 [FOLLOW-UP][Social networks] Use CSS Sprites for faster page loading
Bug-7500-FOLLOW-UPSocial-networks-Use-CSS-Sprites-.patch (text/plain), 4.32 KB, created by
Owen Leonard
on 2012-05-21 13:40:18 UTC
(
hide
)
Description:
Bug 7500 [FOLLOW-UP][Social networks] Use CSS Sprites for faster page loading
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2012-05-21 13:40:18 UTC
Size:
4.32 KB
patch
obsolete
>From 200f158f3503811a36b99b6605e4409d83a7030b Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Mon, 21 May 2012 09:39:31 -0400 >Subject: [PATCH] Bug 7500 [FOLLOW-UP][Social networks] Use CSS Sprites for > faster page loading >Content-Type: text/plain; charset="utf-8" > >This patch adds a new sprite image for social network links. >The page markup has been modified to accommodate the image- >replacement technique used to display the images. > >When testing be sure to clear your cache to load the new CSS. >--- > koha-tmpl/opac-tmpl/prog/en/css/opac.css | 42 ++++++++++++++++++++ > koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt | 14 +++---- > 2 files changed, 49 insertions(+), 7 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/prog/en/css/opac.css b/koha-tmpl/opac-tmpl/prog/en/css/opac.css >index 0cc7f2d..f0690d8 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/css/opac.css >+++ b/koha-tmpl/opac-tmpl/prog/en/css/opac.css >@@ -2405,6 +2405,48 @@ span.sep { > text-shadow: 1px 1px 0 #FFF; > } > >+#social_networks span { >+ color: #274D7F; >+ display : block; >+ float : left; >+ font-size: 85%; >+ font-weight: bold; >+ line-height: 2em; >+ margin : .5em 0 .5em .5em !important; >+} >+#social_networks a { >+ background: transparent url("../../images/social-sprite.png") no-repeat; >+ display: block; >+ height : 20px !important; >+ width : 20px; >+ text-indent : -999em; >+} >+ >+#social_networks div { >+ float : left !important; >+ margin : .5em 0 .5em .2em !important; >+} >+ >+#social_networks #facebook { >+ background-position : -7px -35px; >+} >+ >+#social_networks #twitter { >+ background-position : -7px -5px; >+} >+ >+#social_networks #linkedin { >+ background-position : -7px -95px; >+} >+ >+#social_networks #delicious { >+ background-position : -7px -66px; >+} >+ >+#social_networks #email { >+ background-position : -7px -126px; >+} >+ > /* ## BABELTHEQUE ##Â */ > /* Uncomment if babeltheque configuration no contains these lines */ > /* >diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt >index cc59fb2..2ab8f80 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt >+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt >@@ -1206,14 +1206,14 @@ YAHOO.util.Event.onContentReady("furtherm", function () { > [% END %] > > [% IF ( SocialNetworks ) %] >- <div class="social_networks"> >+ <div id="social_networks"> > <span>Share</span> >- <a href="http://www.facebook.com/sharer.php?u=[% current_url |url %]&t=[% title |url %]" title="Share on Facebook"><img alt="Share on Facebook" src="/opac-tmpl/prog/images/socnet/facebook16.png" /></a> >- <a href="http://twitter.com/share" title="Share on Twitter"><img alt="Share on Twitter" src="/opac-tmpl/prog/images/socnet/twitter16.png" /></a> >- <a href="http://www.linkedin.com/shareArticle?mini=true&url=[% current_url |url %]&title=[% title |url %]" title="Share on LinkedIn"><img alt="Share on LinkedIn" src="/opac-tmpl/prog/images/socnet/linkedin16.png" /></a> >- <a href="http://www.delicious.com/save?url=[% current_url |url %]&title=[% title |url %]" title="Share on Delicious"><img alt="Share on Delicious" src="/opac-tmpl/prog/images/socnet/delicious16.gif" /></a> >- <g:plusone size="small"></g:plusone> >- <a href="mailto:ADRESSE?subject=TO READ : [% title %]>&body=[% title %]> [% current_url |url %]" title="Share by email"><img alt="Share by email" src="/opac-tmpl/prog/images/socnet/mailto16.png" /></a> >+ <div><a id="facebook" href="http://www.facebook.com/sharer.php?u=[% current_url |url %]&t=[% title |url %]" title="Share on Facebook">Facebook</a></div> >+ <div><a id="twitter" href="http://twitter.com/share" title="Share on Twitter">Twitter</a></div> >+ <div><a id="linkedin" href="http://www.linkedin.com/shareArticle?mini=true&url=[% current_url |url %]&title=[% title |url %]" title="Share on LinkedIn">LinkedIn</a></div> >+ <div><a id="delicious" href="http://www.delicious.com/save?url=[% current_url |url %]&title=[% title |url %]" title="Share on Delicious">Delicious</a></div> >+ <div><a id="email" href="mailto:ADRESSE?subject=TO READ : [% title %]>&body=[% title %]> [% current_url |url %]" title="Share by email">Email</a></div> >+ <div><g:plusone size="small"></g:plusone></div> > </div> > [% END %] > >-- >1.7.9.5
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 7500
:
9226
|
9239
|
9241
|
9594
|
9599
|
9623
|
9677
|
9678
|
9679
|
9680
|
11398
|
11399
|
12165
|
13314
|
13386
|
13421