[cc-commits] [CC SVN] r15216 - in themes/creativecommons.org/trunk: . css img js

webmaster at creativecommons.org webmaster at creativecommons.org
Sun Sep 11 08:02:31 EDT 2011


Author: cxadams
Date: 2011-09-11 12:02:30 +0000 (Sun, 11 Sep 2011)
New Revision: 15216

Added:
   themes/creativecommons.org/trunk/img/XKCD-Science-back_300x200.jpg
   themes/creativecommons.org/trunk/img/black-cc_300x200.jpg
   themes/creativecommons.org/trunk/img/buttons_1_0_300x200.jpg
Modified:
   themes/creativecommons.org/trunk/css/primary.styles.css
   themes/creativecommons.org/trunk/home-buckets.php
   themes/creativecommons.org/trunk/js/script.js
Log:
implement product carousel for CC store bucket

Modified: themes/creativecommons.org/trunk/css/primary.styles.css
===================================================================
--- themes/creativecommons.org/trunk/css/primary.styles.css	2011-09-11 06:03:02 UTC (rev 15215)
+++ themes/creativecommons.org/trunk/css/primary.styles.css	2011-09-11 12:02:30 UTC (rev 15216)
@@ -563,3 +563,12 @@
 .bucket .frames li.current a {
 	background-position:0 -12px;
 }
+
+#store {
+	width: 300px;
+	margin: 0 auto;
+}
+
+#store .swag {
+	height: 200px;
+}

Modified: themes/creativecommons.org/trunk/home-buckets.php
===================================================================
--- themes/creativecommons.org/trunk/home-buckets.php	2011-09-11 06:03:02 UTC (rev 15215)
+++ themes/creativecommons.org/trunk/home-buckets.php	2011-09-11 12:02:30 UTC (rev 15216)
@@ -54,13 +54,12 @@
 									<h3 class="title">Global Network</h3>
 									<div class="content">
 										<div class="sample">
-											<img src="<?php bloginfo('stylesheet_directory'); ?>/img/africa.png" alt="Map"/>
 										</div>
 
 										<h5>CC Affiliate Network</h5>
 										<h6>Promoting CC Around the World</h6>
 
-										<p>The CC Affiliate Network consists of 100+ affiliates working to support and promote CC activities around the world.</p>
+										<p>The CC Affiliate Network consists of 100+ affiliates working working in over 70 jurisdictions to support and promote CC activities around the world.</p>
 
 										<p>The teams enage in public outreach, community building, translation, research, publicity, and in general, promoting sharing and our mission.</p>
 
@@ -96,7 +95,26 @@
 									<h3 class="title">CC Store</h3>
 									<div class="content">
 										<div class="sample">
-											<img src="https://creativecommons.net/sites/default/files/buttons_1_0.jpg" alt="CC Buttons" height="200" />
+											<div id="store">
+												<div class="swag">
+													<div class="slide">
+														<a href="https://creativecommons.net/content/1-buttons-set-5">
+														<img src="<?php bloginfo('stylesheet_directory'); ?>/img/buttons_1_0_300x200.jpg" alt="CC Buttons" />
+														</a>
+													</div>
+                                                                                                        <div class="slide">
+                                                                                                                <a href="https://creativecommons.net/content/t-shirt-science">
+                                                                                                                <img src="<?php bloginfo('stylesheet_directory'); ?>/img/XKCD-Science-back_300x200.jpg" alt="T-shirt: Science at creativecommons" />
+                                                                                                                </a>
+                                                                                                        </div>
+													<div class="slide">
+														<a href="https://creativecommons.net/sites/default/files/imagecache/product_list/black-cc.jpg">
+														<img src="<?php bloginfo('stylesheet_directory'); ?>/img/black-cc_300x200.jpg" alt="T-Shirt: CC Logo" />
+														</a>
+													</div>
+
+												</div>
+											</div>
 										</div>
 
 										<h5>Support CC</h5>

Added: themes/creativecommons.org/trunk/img/XKCD-Science-back_300x200.jpg
===================================================================
(Binary files differ)


Property changes on: themes/creativecommons.org/trunk/img/XKCD-Science-back_300x200.jpg
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: themes/creativecommons.org/trunk/img/black-cc_300x200.jpg
===================================================================
(Binary files differ)


Property changes on: themes/creativecommons.org/trunk/img/black-cc_300x200.jpg
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: themes/creativecommons.org/trunk/img/buttons_1_0_300x200.jpg
===================================================================
(Binary files differ)


Property changes on: themes/creativecommons.org/trunk/img/buttons_1_0_300x200.jpg
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Modified: themes/creativecommons.org/trunk/js/script.js
===================================================================
--- themes/creativecommons.org/trunk/js/script.js	2011-09-11 06:03:02 UTC (rev 15215)
+++ themes/creativecommons.org/trunk/js/script.js	2011-09-11 12:02:30 UTC (rev 15216)
@@ -77,6 +77,25 @@
 	});
   });
 
+  // Store slides
+  // ===============================
+
+  $(function() {
+	$("#store").slides({
+		container: 'swag',
+		generateNextPrev: false,
+		pagination: false,
+		generatePagination: false,
+		play: 7000,
+		pause: 7000,
+		effect: 'fade',
+		fadeSpeed: 500,
+		crossfade: 'true',
+		fadeEasing: 'easeOutQuad',
+		hoverPause: true
+	});
+  });
+
 });
 
 $(window).load( $('div.carousel').css('display', 'block') );



More information about the cc-commits mailing list