magento_colorbox - Version 1.0.7

Version Notes

1.0.7

Download this release

Release Info

Developer volgodark
Extension magento_colorbox
Version 1.0.7
Comparing to
See all releases


Code changes from version 1.0.6 to 1.0.7

app/code/community/Magazento/Colorbox/etc/config.xml CHANGED
@@ -3,7 +3,7 @@
3
  <config>
4
  <modules>
5
  <Magazento_Colorbox>
6
- <version>1.0.0</version>
7
  </Magazento_Colorbox>
8
  </modules>
9
  <frontend>
3
  <config>
4
  <modules>
5
  <Magazento_Colorbox>
6
+ <version>1.0.7</version>
7
  </Magazento_Colorbox>
8
  </modules>
9
  <frontend>
app/design/frontend/base/default/template/magazento/colorbox/magazento.phtml CHANGED
@@ -7,4 +7,4 @@
7
  margin: 0;
8
  }
9
  </style>
10
- <p class="magazento-powered">Powered by <a href="http://www.magazento.com/english/magento-ext/magazento-extensions" target="_blank">Magento extensions</a> - <a href="http://www.magazento.com/english/magento-ext/magazento-extensions/magento-one-step-page-checkout" target="_blank">Magento modules</a></p>
7
  margin: 0;
8
  }
9
  </style>
10
+ <p class="magazento-powered">Powered by <a href="http://www.magazento.com/english/magento-ext/magazento-extensions" target="_blank">Magento extensions</a> - <a href="http://www.magazento.com/english/magento-ext/magazento-extensions/magento-one-step-page-checkout" target="_blank">Magento checkout</a></p>
app/design/frontend/base/default/template/magazento/colorbox/media.phtml CHANGED
@@ -58,26 +58,56 @@
58
  $_helper = $this->helper('catalog/output');
59
  ?>
60
  <p class="product-image">
61
- <a class="magazento-colorbox" href="<?php echo $this->helper('catalog/image')->init($_product, 'image')->resize(265); ?>">
62
  <?php
63
  $_img = '<img src="'.$this->helper('catalog/image')->init($_product, 'image')->resize(265).'" alt="'.$this->htmlEscape($this->getImageLabel()).'" title="'.$this->htmlEscape($this->getImageLabel()).'" />';
64
  echo $_helper->productAttribute($_product, $_img, 'image');
65
  ?>
66
  </a>
 
 
 
 
 
 
 
67
  </p>
68
 
69
  <?php if (count($this->getGalleryImages()) > 0): ?>
70
  <div class="more-views">
71
  <h2><?php echo $this->__('More Views') ?></h2>
72
  <ul>
73
- <?php foreach ($this->getGalleryImages() as $_image): ?>
74
  <li>
75
- <a class="magazento-colorbox" href="<?php echo $_image['url']; ?>" title="<?php echo $this->htmlEscape($_image->getLabel()) ?>">
 
 
 
 
 
 
 
 
 
76
  <img src="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize(56); ?>"
77
  width="56" height="56" alt="<?php echo $this->htmlEscape($_image->getLabel()) ?>" />
78
  </a>
79
  </li>
 
80
  <?php endforeach; ?>
81
  </ul>
82
  </div>
83
  <?php endif; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
  $_helper = $this->helper('catalog/output');
59
  ?>
60
  <p class="product-image">
61
+ <a id="productimagemain" class="magazento-colorbox" href="<?php echo $this->helper('catalog/image')->init($_product, 'image')->resize(265); ?>">
62
  <?php
63
  $_img = '<img src="'.$this->helper('catalog/image')->init($_product, 'image')->resize(265).'" alt="'.$this->htmlEscape($this->getImageLabel()).'" title="'.$this->htmlEscape($this->getImageLabel()).'" />';
64
  echo $_helper->productAttribute($_product, $_img, 'image');
65
  ?>
66
  </a>
67
+
68
+ <?php $i=0; foreach ($this->getGalleryImages() as $_image): ?>
69
+ <a style="display:none" id="productimage<?php echo $i ?>" class="magazento-colorbox" href="<?php echo $this->helper('catalog/image')->init($_product, 'image')->resize(265); ?>">
70
+ <img src="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize(265); ?>" title="<?php echo $this->htmlEscape($this->getImageLabel()); ?> alt="<?php echo $this->htmlEscape($_image->getLabel()) ?>" />
71
+ <?php $i++ ?>
72
+ </a>
73
+ <?php endforeach; ?>
74
  </p>
75
 
76
  <?php if (count($this->getGalleryImages()) > 0): ?>
77
  <div class="more-views">
78
  <h2><?php echo $this->__('More Views') ?></h2>
79
  <ul>
 
80
  <li>
81
+ <a onmouseover="showProductImage('productimagemain');" class="magazento-colorbox" href="<?php echo $this->helper('catalog/image')->init($_product, 'image')->resize(265); ?>">
82
+ <?php
83
+ $_img = '<img src="'.$this->helper('catalog/image')->init($_product, 'image')->resize(56).'" alt="'.$this->htmlEscape($this->getImageLabel()).'" title="'.$this->htmlEscape($this->getImageLabel()).'" />';
84
+ echo $_helper->productAttribute($_product, $_img, 'image');
85
+ ?>
86
+ </a>
87
+ </li>
88
+ <?php $i=0; foreach ($this->getGalleryImages() as $_image): ?>
89
+ <li>
90
+ <a onmouseover="showProductImage('productimage<?php echo $i ?>');" class="magazento-colorbox" href="<?php echo $_image['url']; ?>" title="<?php echo $this->htmlEscape($_image->getLabel()) ?>">
91
  <img src="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize(56); ?>"
92
  width="56" height="56" alt="<?php echo $this->htmlEscape($_image->getLabel()) ?>" />
93
  </a>
94
  </li>
95
+ <?php $i++ ?>
96
  <?php endforeach; ?>
97
  </ul>
98
  </div>
99
  <?php endif; ?>
100
+
101
+
102
+ <script type="text/javascript">
103
+ function showProductImage(id) {
104
+ // alert(id);
105
+ var imgcount = <?php echo count($this->getGalleryImages()); ?>;
106
+ document.getElementById('productimagemain').style.display = 'none';
107
+ for (var i = 0; i < imgcount; i++) {
108
+ document.getElementById('productimage'+i).style.display = 'none';
109
+ }
110
+ document.getElementById(id).style.display = 'block';
111
+ }
112
+ </script>
113
+
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>magento_colorbox</name>
4
- <version>1.0.6</version>
5
  <stability>stable</stability>
6
  <license>GPL</license>
7
  <channel>community</channel>
@@ -9,11 +9,11 @@
9
  <summary>Colorbox Magento integtaion. A lightweight customizable lightbox plugin for Magento.</summary>
10
  <description>Tested in: jQuery 1.4.3+ in Firefox, Safari, Chrome, Internet Explorer 6, 7, 8, 9, Opera 11. &#xD;
11
  Adds Colorbox/Lightbox functionality to images, grouped on product pages. Works for Magento CE 1.4+ and Magento EE 1.9+. Comes with different themes.</description>
12
- <notes>1.0.6</notes>
13
- <authors><author><name>volgodark</name><user>auto-converted</user><email>volgodark@gmail.com</email></author></authors>
14
- <date>2012-08-13</date>
15
- <time>06:01:19</time>
16
- <contents><target name="magecommunity"><dir name="Magazento"><dir name="Colorbox"><dir name="Block"><file name="Developer.php" hash="e528aada4c7131265b139e67911789b2"/></dir><dir name="Helper"><file name="Data.php" hash="35da1a2c8bdb5fda6978d09ac2ed081f"/></dir><dir name="Model"><dir name="Source"><file name="Boolean.php" hash="31ded6c3e83de9588aefee41f087be41"/><file name="Skin.php" hash="e78e4fc350dbcc30597251b4cec6f5e6"/><file name="Transition.php" hash="aeba0a23773251d870d6220fe90cc691"/></dir><file name="List.php" hash="c2cff3c5a744e1c3af5f23c3f5e2da74"/></dir><dir name="etc"><file name="config.xml" hash="672a08221a22427850dfa809e4916c4e"/><file name="system.xml" hash="723aa05422b30586f7beec4b2b2384b3"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="magazento"><dir name="colorbox"><file name="magazento.phtml" hash="9527f885460f5dd7ffe41d1600b7006e"/><file name="media.phtml" hash="d4c224d8f3fd0877c30576ea024d856a"/></dir></dir></dir><dir name="layout"><file name="magazento_colorbox.xml" hash="8405d36b91203e066e48d8ce133b61e8"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Magazento_Colorbox.xml" hash="d0927f9a22b3b668f99057f6018a239f"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="magazento"><dir name="colorbox"><dir name="skin1"><dir name="images"><dir name="ie6"><file name="borderBottomCenter.png" hash="1936585831e8bcf4eb5ef1081c8e2574"/><file name="borderBottomLeft.png" hash="7ceeb01563f030dc47837fd8bad29488"/><file name="borderBottomRight.png" hash="297fb77440870d91f519bcecdb312725"/><file name="borderMiddleLeft.png" hash="64df0244eeaade27764d2cf33606527b"/><file name="borderMiddleRight.png" hash="9fa458eaaa35b80b2452f35a1d6b4d0c"/><file name="borderTopCenter.png" hash="01ecb01841270f3a765aadf4900929f3"/><file name="borderTopLeft.png" hash="bf4949b95b09d255edd9bcb8358a3557"/><file name="borderTopRight.png" hash="51315fa19507a33d5f1b5411598593e7"/></dir><file name="border.png" hash="7ca8a1d2eb0763b35c266cd54bee2fa5"/><file name="controls.png" hash="b68b9ecaae424de4862ba0d055b7a560"/><file name="loading.gif" hash="e6611f867d63754b7a2a974fb0a0e7dc"/><file name="loading_background.png" hash="acf427e932fb9413700a4b8b58b41eec"/><file name="overlay.png" hash="790376e15a036959e358a19d4a7ea437"/></dir><file name="colorbox.css" hash="1a7dd23f5d2962260d5bb26a57046db1"/></dir><dir name="skin2"><dir name="images"><file name="controls.png" hash="e9bdd308d0c5978e837e5aba1c5712d6"/><file name="loading.gif" hash="8732a6660b528fadfaeb35bcf568875f"/></dir><file name="colorbox.css" hash="251a08f1ee2c1220805b4cef193a19e0"/><file name="index.html" hash="78353f64a2cf4a4016a0351ef98328fe"/></dir><dir name="skin3"><dir name="images"><file name="controls.png" hash="26156c32573f430fc4454fb551ac67f2"/><file name="loading.gif" hash="8732a6660b528fadfaeb35bcf568875f"/></dir><file name="colorbox.css" hash="1862958fc873589e07dc2e12b5faa549"/><file name="index.html" hash="78353f64a2cf4a4016a0351ef98328fe"/></dir><dir name="skin4"><dir name="images"><dir name="ie6"><file name="borderBottomCenter.png" hash="3f90207da36603df0c149c492bddbb0c"/><file name="borderBottomLeft.png" hash="3262aa0a44269611921af9ead46f0895"/><file name="borderBottomRight.png" hash="a5f6d0d9be6462600cd30a84faab6363"/><file name="borderMiddleLeft.png" hash="eb8abe31d7b850f14bf5eb4543e8c59d"/><file name="borderMiddleRight.png" hash="b644333625c0412bb2b40e2dc64e60fb"/><file name="borderTopCenter.png" hash="ec720341598256324261994c1ea5afce"/><file name="borderTopLeft.png" hash="748c78f393f4f0894ea38a15400dfb51"/><file name="borderTopRight.png" hash="97c3bc0be76863db1a81cedb8ecb3b92"/></dir><file name="border1.png" hash="416e964cc063395fc2db26e463987609"/><file name="border2.png" hash="50cdcf6bc41aeac05c43095f4074f6f4"/><file name="loading.gif" hash="b5e24db8f84eb4eac09c88f804f36df2"/></dir><file name="colorbox.css" hash="08d9e0000045c2fa70ee6fcb8be26464"/><file name="index.html" hash="78353f64a2cf4a4016a0351ef98328fe"/></dir><dir name="skin5"><dir name="images"><file name="border.png" hash="84ac39cb765f507aa1aef0f657c5e4bf"/><file name="controls.png" hash="5aec7ed684b6fe4dbeffabb73378962c"/><file name="loading.gif" hash="e6611f867d63754b7a2a974fb0a0e7dc"/><file name="loading_background.png" hash="7c96a54b079f79d48db5c29c3a538b83"/></dir><file name="colorbox.css" hash="2452c075ac9cf205c13d5b0c459f83b5"/><file name="index.html" hash="78353f64a2cf4a4016a0351ef98328fe"/></dir><file name="jquery.colorbox.js" hash="5f6f6fb1da2f569029c97b3832c3fa78"/><file name="logo_onecheckout.jpg" hash="cf71a3d20cf06abaf99521651c2fe3d1"/><file name="logo_pdf.jpg" hash="5a0d745372115da1d61168e2529c0c0d"/><file name="logo_sitemap.jpg" hash="937495eec93cb1640b6244bff4cb31a2"/><file name="menu_box.jpg" hash="e76e4c6b62b096ca87175eb0f5270062"/></dir></dir></dir></dir></dir></target></contents>
17
  <compatible/>
18
- <dependencies/>
19
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>magento_colorbox</name>
4
+ <version>1.0.7</version>
5
  <stability>stable</stability>
6
  <license>GPL</license>
7
  <channel>community</channel>
9
  <summary>Colorbox Magento integtaion. A lightweight customizable lightbox plugin for Magento.</summary>
10
  <description>Tested in: jQuery 1.4.3+ in Firefox, Safari, Chrome, Internet Explorer 6, 7, 8, 9, Opera 11. &#xD;
11
  Adds Colorbox/Lightbox functionality to images, grouped on product pages. Works for Magento CE 1.4+ and Magento EE 1.9+. Comes with different themes.</description>
12
+ <notes>1.0.7</notes>
13
+ <authors><author><name>volgodark</name><user>volgodark</user><email>volgodark@gmail.com</email></author></authors>
14
+ <date>2012-12-20</date>
15
+ <time>12:12:56</time>
16
+ <contents><target name="magecommunity"><dir name="Magazento"><dir name="Colorbox"><dir name="Block"><file name="Developer.php" hash="e528aada4c7131265b139e67911789b2"/></dir><dir name="Helper"><file name="Data.php" hash="35da1a2c8bdb5fda6978d09ac2ed081f"/></dir><dir name="Model"><file name="List.php" hash="c2cff3c5a744e1c3af5f23c3f5e2da74"/><dir name="Source"><file name="Boolean.php" hash="31ded6c3e83de9588aefee41f087be41"/><file name="Skin.php" hash="e78e4fc350dbcc30597251b4cec6f5e6"/><file name="Transition.php" hash="aeba0a23773251d870d6220fe90cc691"/></dir></dir><dir name="etc"><file name="config.xml" hash="5d412fc4386329b77c58513e10a03def"/><file name="system.xml" hash="723aa05422b30586f7beec4b2b2384b3"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="magazento"><dir name="colorbox"><file name="magazento.phtml" hash="6f89be12f5c1824ff9f6becc025ab1d9"/><file name="media.phtml" hash="4e2e53dfa0e72ae2f1198ec95547565a"/></dir></dir></dir><dir name="layout"><file name="magazento_colorbox.xml" hash="8405d36b91203e066e48d8ce133b61e8"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Magazento_Colorbox.xml" hash="d0927f9a22b3b668f99057f6018a239f"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="magazento"><dir name="colorbox"><file name="jquery.colorbox.js" hash="5f6f6fb1da2f569029c97b3832c3fa78"/><file name="logo_onecheckout.jpg" hash="cf71a3d20cf06abaf99521651c2fe3d1"/><file name="logo_pdf.jpg" hash="5a0d745372115da1d61168e2529c0c0d"/><file name="logo_sitemap.jpg" hash="937495eec93cb1640b6244bff4cb31a2"/><file name="menu_box.jpg" hash="e76e4c6b62b096ca87175eb0f5270062"/><dir><dir name="skin1"><file name="colorbox.css" hash="1a7dd23f5d2962260d5bb26a57046db1"/><dir name="images"><file name="border.png" hash="7ca8a1d2eb0763b35c266cd54bee2fa5"/><file name="controls.png" hash="b68b9ecaae424de4862ba0d055b7a560"/><dir name="ie6"><file name="borderBottomCenter.png" hash="1936585831e8bcf4eb5ef1081c8e2574"/><file name="borderBottomLeft.png" hash="7ceeb01563f030dc47837fd8bad29488"/><file name="borderBottomRight.png" hash="297fb77440870d91f519bcecdb312725"/><file name="borderMiddleLeft.png" hash="64df0244eeaade27764d2cf33606527b"/><file name="borderMiddleRight.png" hash="9fa458eaaa35b80b2452f35a1d6b4d0c"/><file name="borderTopCenter.png" hash="01ecb01841270f3a765aadf4900929f3"/><file name="borderTopLeft.png" hash="bf4949b95b09d255edd9bcb8358a3557"/><file name="borderTopRight.png" hash="51315fa19507a33d5f1b5411598593e7"/></dir><file name="loading.gif" hash="e6611f867d63754b7a2a974fb0a0e7dc"/><file name="loading_background.png" hash="acf427e932fb9413700a4b8b58b41eec"/><file name="overlay.png" hash="790376e15a036959e358a19d4a7ea437"/></dir></dir><dir name="skin2"><file name="colorbox.css" hash="251a08f1ee2c1220805b4cef193a19e0"/><dir name="images"><file name="controls.png" hash="e9bdd308d0c5978e837e5aba1c5712d6"/><file name="loading.gif" hash="8732a6660b528fadfaeb35bcf568875f"/></dir><file name="index.html" hash="78353f64a2cf4a4016a0351ef98328fe"/></dir><dir name="skin3"><file name="colorbox.css" hash="1862958fc873589e07dc2e12b5faa549"/><dir name="images"><file name="controls.png" hash="26156c32573f430fc4454fb551ac67f2"/><file name="loading.gif" hash="8732a6660b528fadfaeb35bcf568875f"/></dir><file name="index.html" hash="78353f64a2cf4a4016a0351ef98328fe"/></dir><dir name="skin4"><file name="colorbox.css" hash="08d9e0000045c2fa70ee6fcb8be26464"/><dir name="images"><file name="border1.png" hash="416e964cc063395fc2db26e463987609"/><file name="border2.png" hash="50cdcf6bc41aeac05c43095f4074f6f4"/><dir name="ie6"><file name="borderBottomCenter.png" hash="3f90207da36603df0c149c492bddbb0c"/><file name="borderBottomLeft.png" hash="3262aa0a44269611921af9ead46f0895"/><file name="borderBottomRight.png" hash="a5f6d0d9be6462600cd30a84faab6363"/><file name="borderMiddleLeft.png" hash="eb8abe31d7b850f14bf5eb4543e8c59d"/><file name="borderMiddleRight.png" hash="b644333625c0412bb2b40e2dc64e60fb"/><file name="borderTopCenter.png" hash="ec720341598256324261994c1ea5afce"/><file name="borderTopLeft.png" hash="748c78f393f4f0894ea38a15400dfb51"/><file name="borderTopRight.png" hash="97c3bc0be76863db1a81cedb8ecb3b92"/></dir><file name="loading.gif" hash="b5e24db8f84eb4eac09c88f804f36df2"/></dir><file name="index.html" hash="78353f64a2cf4a4016a0351ef98328fe"/></dir><dir name="skin5"><file name="colorbox.css" hash="2452c075ac9cf205c13d5b0c459f83b5"/><dir name="images"><file name="border.png" hash="84ac39cb765f507aa1aef0f657c5e4bf"/><file name="controls.png" hash="5aec7ed684b6fe4dbeffabb73378962c"/><file name="loading.gif" hash="e6611f867d63754b7a2a974fb0a0e7dc"/><file name="loading_background.png" hash="7c96a54b079f79d48db5c29c3a538b83"/></dir><file name="index.html" hash="78353f64a2cf4a4016a0351ef98328fe"/></dir></dir></dir></dir></dir></dir></dir></target></contents>
17
  <compatible/>
18
+ <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
19
  </package>