Version Notes
1.0.2
Download this release
Release Info
Developer | Magento Core Team |
Extension | magento_colorbox |
Version | 1.0.2 |
Comparing to | |
See all releases |
Code changes from version 1.0.0 to 1.0.2
- app/design/frontend/base/default/layout/magazento_colorbox.xml +4 -4
- app/design/frontend/base/default/template/magazento/colorbox/images.phtml +0 -20
- app/design/frontend/base/default/template/magazento/colorbox/link.phtml +0 -16
- app/design/frontend/base/default/template/magazento/colorbox/media_1.phtml +0 -96
- app/design/frontend/base/default/template/magazento/colorbox/media_2.phtml +0 -73
- app/design/frontend/base/default/template/magazento/colorbox/media_3.phtml +0 -94
- app/design/frontend/base/default/template/magazento/colorbox/media_4.phtml +0 -82
- app/design/frontend/base/default/template/magazento/colorbox/script.phtml +0 -27
- package.xml +5 -5
app/design/frontend/base/default/layout/magazento_colorbox.xml
CHANGED
@@ -2,17 +2,17 @@
|
|
2 |
<layout version="0.1.0">
|
3 |
<catalog_product_view>
|
4 |
<reference name="product.info.media">
|
5 |
-
<action method="setTemplate" ifconfig="colorbox/
|
6 |
</reference>
|
7 |
</catalog_product_view>
|
8 |
|
9 |
<review_product_list>
|
10 |
<reference name="head">
|
11 |
-
<action method="addItem" ifconfig="colorbox/
|
12 |
-
<action method="addItem" ifconfig="colorbox/
|
13 |
</reference>
|
14 |
<reference name="product.info.media">
|
15 |
-
<action method="setTemplate" ifconfig="colorbox/
|
16 |
</reference>
|
17 |
</review_product_list>
|
18 |
|
2 |
<layout version="0.1.0">
|
3 |
<catalog_product_view>
|
4 |
<reference name="product.info.media">
|
5 |
+
<action method="setTemplate" ifconfig="colorbox/settings/enable"><template>magazento/colorbox/media.phtml</template></action>
|
6 |
</reference>
|
7 |
</catalog_product_view>
|
8 |
|
9 |
<review_product_list>
|
10 |
<reference name="head">
|
11 |
+
<action method="addItem" ifconfig="colorbox/settings/enable"><type>skin_css</type><name>css/easylightbox.css</name></action>
|
12 |
+
<action method="addItem" ifconfig="colorbox/settings/enable"><type>skin_js</type><name>js/lightbox.js</name></action>
|
13 |
</reference>
|
14 |
<reference name="product.info.media">
|
15 |
+
<action method="setTemplate" ifconfig="colorbox/settings/enable"><template>magazento/colorbox/media.phtml</template></action>
|
16 |
</reference>
|
17 |
</review_product_list>
|
18 |
|
app/design/frontend/base/default/template/magazento/colorbox/images.phtml
DELETED
@@ -1,20 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/* Popup Image Size */
|
3 |
-
if (strstr($_lightboxConfig['popupImageSize'], '_')) {
|
4 |
-
$popupImageSize = explode('_', $_lightboxConfig['popupImageSize'], 2);
|
5 |
-
} else {
|
6 |
-
$popupImageSize = array(0, 0);
|
7 |
-
}?>
|
8 |
-
|
9 |
-
<a href="<?php echo Mage::helper('easylightbox/image')
|
10 |
-
->init($this->imageAttributes['imagepath'])
|
11 |
-
->resize($this->imageAttributes['imagelightboxwidth'],$this->imageAttributes['imagelightboxheight']); ?>"
|
12 |
-
rel="lightbox[<?php echo $this->imageAttributes['imagegroup']; ?>]"
|
13 |
-
title="<?php echo $this->imageAttributes['imagetitle']; ?>"
|
14 |
-
onclick="return false;">
|
15 |
-
<img src="<?php echo Mage::helper('easylightbox/image')
|
16 |
-
->init($this->imageAttributes['imagepath'])
|
17 |
-
->resize($this->imageAttributes['imagepagewidth'], $this->imageAttributes['imagepageheight']); ?>"
|
18 |
-
alt="<?php echo $this->imageAttributes['imagetitle']; ?>"
|
19 |
-
/>
|
20 |
-
</a>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/base/default/template/magazento/colorbox/link.phtml
DELETED
@@ -1,16 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/* Popup Image Size */
|
3 |
-
if (strstr($_lightboxConfig['popupImageSize'], '_')) {
|
4 |
-
$popupImageSize = explode('_', $_lightboxConfig['popupImageSize'], 2);
|
5 |
-
} else {
|
6 |
-
$popupImageSize = array(0, 0);
|
7 |
-
}?>
|
8 |
-
|
9 |
-
<a href="<?php echo Mage::helper('easylightbox/image')
|
10 |
-
->init($this->imageAttributes['imagepath'])
|
11 |
-
->resize($this->imageAttributes['imagelightboxwidth'], $this->imageAttributes['imagelightboxheight']); ?>"
|
12 |
-
rel="lightbox[<?php echo $this->imageAttributes['imagegroup']; ?>]"
|
13 |
-
title="<?php echo $this->imageAttributes['imagetitle']; ?>"
|
14 |
-
onclick="return false;">
|
15 |
-
<?php echo $this->imageAttributes['imagetitle']; ?>
|
16 |
-
</a>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/base/default/template/magazento/colorbox/media_1.phtml
DELETED
@@ -1,96 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
$_product = $this->getProduct();
|
3 |
-
$_helper = $this->helper('catalog/output');
|
4 |
-
|
5 |
-
$_lightboxConfig = Mage::getStoreConfig('easy_lightbox/general');
|
6 |
-
/* Main Image Size */
|
7 |
-
if (strstr($_lightboxConfig['mainImageSize'], '_')) {
|
8 |
-
$mainImageSize = explode('_', $_lightboxConfig['mainImageSize'], 2);
|
9 |
-
} else {
|
10 |
-
$mainImageSize = array(265, 265);
|
11 |
-
}
|
12 |
-
/* Popup Image Size */
|
13 |
-
if (strstr($_lightboxConfig['popupImageSize'], '_')) {
|
14 |
-
$popupImageSize = explode('_', $_lightboxConfig['popupImageSize'], 2);
|
15 |
-
} else {
|
16 |
-
$popupImageSize = array(0, 0);
|
17 |
-
}
|
18 |
-
/* Additional Images Size */
|
19 |
-
if (strstr($_lightboxConfig['additionalImageSize'], '_')) {
|
20 |
-
$additionalImageSize = explode('_', $_lightboxConfig['additionalImageSize'], 2);
|
21 |
-
} else {
|
22 |
-
$additionalImageSize = array(60, 60);
|
23 |
-
}
|
24 |
-
|
25 |
-
$image = $this->helper('catalog/image')->init($_product, 'image');
|
26 |
-
if ($popupImageSize[0] > 0) {
|
27 |
-
$image = $this->helper('catalog/image')->init($_product, 'image')->resize($popupImageSize[0], $popupImageSize[1]);
|
28 |
-
}
|
29 |
-
|
30 |
-
?>
|
31 |
-
|
32 |
-
<?php if(!$_lightboxConfig['defaulzoom']): ?>
|
33 |
-
|
34 |
-
<?php
|
35 |
-
$maintitle = $this->htmlEscape($_product->getImageLabel());
|
36 |
-
if(($_lightboxConfig['productName'] != 0) && empty($maintitle)):
|
37 |
-
$maintitle = $_product->getName();
|
38 |
-
endif;
|
39 |
-
?>
|
40 |
-
|
41 |
-
<a href="<?php echo $image; ?>"
|
42 |
-
rel="lightbox[rotation]"
|
43 |
-
title="<?php echo $maintitle ;?>"
|
44 |
-
onclick="return false;"
|
45 |
-
><img src="<?php echo $this->helper('catalog/image')->init($_product, 'image')->resize($mainImageSize[0], $mainImageSize[1]); ?>" alt="<?php echo $this->htmlEscape($_product->getImageLabel());?>"
|
46 |
-
/></a>
|
47 |
-
|
48 |
-
|
49 |
-
<?php else: ?>
|
50 |
-
|
51 |
-
<p class="product-image-zoom">
|
52 |
-
<?php
|
53 |
-
$_img = '<img id="image" src="'.$this->helper('catalog/image')->init($_product, 'image').'" alt="'.$this->htmlEscape($this->getImageLabel()).'" title="'.$this->htmlEscape($this->getImageLabel()).'" />';
|
54 |
-
echo $_helper->productAttribute($_product, $_img, 'image')
|
55 |
-
?>
|
56 |
-
</p>
|
57 |
-
<p class="a-center" id="track_hint"><?php echo $this->__('Double click on above image to view full picture') ?></p>
|
58 |
-
|
59 |
-
<div class="image-zoom" id="track_outer">
|
60 |
-
<img id="zoom_out" src="<?php echo $this->getSkinUrl('images/slider_btn_zoom_out.gif') ?>" alt="<?php echo $this->__('Zoom Out') ?>" class="btn-zoom-out" />
|
61 |
-
<div id="track">
|
62 |
-
<div id="handle"></div>
|
63 |
-
</div>
|
64 |
-
<img id="zoom_in" src="<?php echo $this->getSkinUrl('images/slider_btn_zoom_in.gif') ?>" alt="<?php echo $this->__('Zoom In') ?>" class="btn-zoom-in" />
|
65 |
-
</div>
|
66 |
-
<script type="text/javascript">
|
67 |
-
Event.observe(window, 'load', function() {
|
68 |
-
product_zoom = new Product.Zoom('image', 'track', 'handle', 'zoom_in', 'zoom_out', 'track_hint');
|
69 |
-
});
|
70 |
-
</script>
|
71 |
-
|
72 |
-
<?php endif; ?>
|
73 |
-
|
74 |
-
<?php if (count($this->getGalleryImages()) > 0): ?>
|
75 |
-
<div class="more-views">
|
76 |
-
<h4><?php echo $this->__('More Views') ?></h4>
|
77 |
-
<ul>
|
78 |
-
<?php foreach ($this->getGalleryImages() as $_image): ?>
|
79 |
-
<?php
|
80 |
-
$subtitle = $this->htmlEscape($_image->getLabel());
|
81 |
-
if(($_lightboxConfig['productName'] != 0) && empty($subtitle)):
|
82 |
-
$subtitle = $_product->getName();
|
83 |
-
endif;
|
84 |
-
?>
|
85 |
-
<li>
|
86 |
-
<a href="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'image', $_image->getFile())->resize($popupImageSize[0], $popupImageSize[1]); ?>"
|
87 |
-
rel="lightbox[rotation]"
|
88 |
-
title="<?php echo $subtitle; ?>"
|
89 |
-
onclick="return false;"
|
90 |
-
><img src="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize($additionalImageSize[0], $additionalImageSize[1]); ?>" alt="<?php echo $subtitle; ?>"
|
91 |
-
/></a>
|
92 |
-
</li>
|
93 |
-
<?php endforeach; ?>
|
94 |
-
</ul>
|
95 |
-
</div>
|
96 |
-
<?php endif; ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/base/default/template/magazento/colorbox/media_2.phtml
DELETED
@@ -1,73 +0,0 @@
|
|
1 |
-
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
|
2 |
-
<script>
|
3 |
-
jQuery.noConflict();
|
4 |
-
jQuery(document).ready(function(){
|
5 |
-
//Examples of how to assign the ColorBox event to elements
|
6 |
-
jQuery(".group1").colorbox({rel:'group1'});
|
7 |
-
jQuery(".group2").colorbox({rel:'group2', transition:"fade"});
|
8 |
-
jQuery(".group3").colorbox({rel:'group3', transition:"none", width:"75%", height:"75%"});
|
9 |
-
jQuery(".group4").colorbox({rel:'group4', slideshow:true});
|
10 |
-
jQuery(".ajax").colorbox();
|
11 |
-
jQuery(".youtube").colorbox({iframe:true, innerWidth:425, innerHeight:344});
|
12 |
-
jQuery(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
|
13 |
-
jQuery(".inline").colorbox({inline:true, width:"50%"});
|
14 |
-
jQuery(".callbacks").colorbox({
|
15 |
-
onOpen:function(){ alert('onOpen: colorbox is about to open'); },
|
16 |
-
onLoad:function(){ alert('onLoad: colorbox has started to load the targeted content'); },
|
17 |
-
onComplete:function(){ alert('onComplete: colorbox has displayed the loaded content'); },
|
18 |
-
onCleanup:function(){ alert('onCleanup: colorbox has begun the close process'); },
|
19 |
-
onClosed:function(){ alert('onClosed: colorbox has completely closed'); }
|
20 |
-
});
|
21 |
-
|
22 |
-
//Example of preserving a JavaScript event for inline calls.
|
23 |
-
jQuery("#click").click(function(){
|
24 |
-
jQuery('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
|
25 |
-
return false;
|
26 |
-
});
|
27 |
-
});
|
28 |
-
</script>
|
29 |
-
|
30 |
-
<h2>Elastic Transition</h2>
|
31 |
-
<p><a class="group1" href="../content/ohoopee1.jpg" title="Me and my grandfather on the Ohoopee.">Grouped Photo 1</a></p>
|
32 |
-
<p><a class="group1" href="../content/ohoopee2.jpg" title="On the Ohoopee as a child">Grouped Photo 2</a></p>
|
33 |
-
<p><a class="group1" href="../content/ohoopee3.jpg" title="On the Ohoopee as an adult">Grouped Photo 3</a></p>
|
34 |
-
|
35 |
-
<h2>Fade Transition</h2>
|
36 |
-
<p><a class="group2" href="../content/ohoopee1.jpg" title="Me and my grandfather on the Ohoopee">Grouped Photo 1</a></p>
|
37 |
-
<p><a class="group2" href="../content/ohoopee2.jpg" title="On the Ohoopee as a child">Grouped Photo 2</a></p>
|
38 |
-
<p><a class="group2" href="../content/ohoopee3.jpg" title="On the Ohoopee as an adult">Grouped Photo 3</a></p>
|
39 |
-
|
40 |
-
<h2>No Transition + fixed width and height (75% of screen size)</h2>
|
41 |
-
<p><a class="group3" href="../content/ohoopee1.jpg" title="Me and my grandfather on the Ohoopee.">Grouped Photo 1</a></p>
|
42 |
-
<p><a class="group3" href="../content/ohoopee2.jpg" title="On the Ohoopee as a child">Grouped Photo 2</a></p>
|
43 |
-
<p><a class="group3" href="../content/ohoopee3.jpg" title="On the Ohoopee as an adult">Grouped Photo 3</a></p>
|
44 |
-
|
45 |
-
<h2>Slideshow</h2>
|
46 |
-
<p><a class="group4" href="../content/ohoopee1.jpg" title="Me and my grandfather on the Ohoopee.">Grouped Photo 1</a></p>
|
47 |
-
<p><a class="group4" href="../content/ohoopee2.jpg" title="On the Ohoopee as a child">Grouped Photo 2</a></p>
|
48 |
-
<p><a class="group4" href="../content/ohoopee3.jpg" title="On the Ohoopee as an adult">Grouped Photo 3</a></p>
|
49 |
-
|
50 |
-
<h2>Other Content Types</h2>
|
51 |
-
<p><a class='ajax' href="../content/ajax.html" title="Homer Defined">Outside HTML (Ajax)</a></p>
|
52 |
-
<p><a class='ajax' href="../content/flash.html" title="Royksopp: Remind Me">Flash / Video (Ajax/Embedded)</a></p>
|
53 |
-
<p><a class='youtube' href="http://www.youtube.com/embed/617ANIA5Rqs?rel=0&wmode=transparent" title="The Knife: We Share Our Mother's Health">Flash / Video (Iframe/Direct Link To YouTube)</a></p>
|
54 |
-
<p><a class='iframe' href="http://threadless.com">Outside Webpage (Iframe)</a></p>
|
55 |
-
<p><a class='inline' href="#inline_content">Inline HTML</a></p>
|
56 |
-
|
57 |
-
<h2>Demonstration of using callbacks</h2>
|
58 |
-
<p><a class='callbacks' href="../content/marylou.jpg" title="Marylou on Cumberland Island">Example with alerts</a>. Callbacks and event-hooks allow users to extend functionality without having to rewrite parts of the plugin.</p>
|
59 |
-
|
60 |
-
<!-- This contains the hidden content for inline calls -->
|
61 |
-
<div style='display:none'>
|
62 |
-
<div id='inline_content' style='padding:10px; background:#fff;'>
|
63 |
-
<p><strong>This content comes from a hidden element on this page.</strong></p>
|
64 |
-
<p>The inline option preserves bound JavaScript events and changes, and it puts the content back where it came from when it is closed.</p>
|
65 |
-
<p><a id="click" href="#" style='padding:5px; background:#ccc;'>Click me, it will be preserved!</a></p>
|
66 |
-
|
67 |
-
<p><strong>If you try to open a new ColorBox while it is already open, it will update itself with the new content.</strong></p>
|
68 |
-
<p>Updating Content Example:<br />
|
69 |
-
<a class="ajax" href="../content/flash.html">Click here to load new content</a></p>
|
70 |
-
</div>
|
71 |
-
</div>
|
72 |
-
|
73 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/base/default/template/magazento/colorbox/media_3.phtml
DELETED
@@ -1,94 +0,0 @@
|
|
1 |
-
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
|
2 |
-
<script src="<?php echo $this->getSkinUrl('magazento/colorbox/jquery.colorbox.js') ?>" type="text/javascript"></script>
|
3 |
-
<link rel="stylesheet"
|
4 |
-
href="<?php echo $this->getSkinUrl("magazento/colorbox/". Mage::getStoreConfig('colorbox/settings/skin') ."/colorbox.css") ?>" type="text/css" media="screen" />
|
5 |
-
|
6 |
-
<script>
|
7 |
-
jQuery.noConflict();
|
8 |
-
jQuery(document).ready(function(){
|
9 |
-
//Examples of how to assign the ColorBox event to elements
|
10 |
-
jQuery(".group2").colorbox(
|
11 |
-
{
|
12 |
-
transition: "elastic",
|
13 |
-
speed: 300,
|
14 |
-
width: false,
|
15 |
-
initialWidth: "600",
|
16 |
-
innerWidth: false,
|
17 |
-
maxWidth: false,
|
18 |
-
height: false,
|
19 |
-
initialHeight: "450",
|
20 |
-
innerHeight: false,
|
21 |
-
maxHeight: false,
|
22 |
-
|
23 |
-
//settings
|
24 |
-
// transition: "<?php echo Mage::getStoreConfig('colorbox/settings/transition') ?>",
|
25 |
-
// speed: <?php echo Mage::getStoreConfig('colorbox/settings/speed') ?>,
|
26 |
-
|
27 |
-
// scalePhotos: <?php echo Mage::getStoreConfig('colorbox/settings/scalephotos') ?>,
|
28 |
-
// scrolling: <?php echo Mage::getStoreConfig('colorbox/settings/scrolling') ?>,
|
29 |
-
// opacity: <?php echo Mage::getStoreConfig('colorbox/settings/opacity') ?>,
|
30 |
-
// open: <?php echo Mage::getStoreConfig('colorbox/settings/open') ?>,
|
31 |
-
// returnFocus: <?php echo Mage::getStoreConfig('colorbox/settings/returnfocus') ?>,
|
32 |
-
// overlayClose: <?php echo Mage::getStoreConfig('colorbox/settings/overlayclose') ?>,
|
33 |
-
// escKey: <?php echo Mage::getStoreConfig('colorbox/settings/esckey') ?>,
|
34 |
-
// arrowKey: <?php echo Mage::getStoreConfig('colorbox/settings/arrowkey') ?>,
|
35 |
-
// loop: <?php echo Mage::getStoreConfig('colorbox/settings/loop') ?>
|
36 |
-
//
|
37 |
-
// //dimensions start
|
38 |
-
// width: <?php echo Mage::getStoreConfig('colorbox/dimensions/width') ?>,
|
39 |
-
// initialWidth: "<?php echo Mage::getStoreConfig('colorbox/dimensions/initialwidth') ?>",
|
40 |
-
// innerWidth: <?php echo Mage::getStoreConfig('colorbox/dimensions/initialheight') ?>,
|
41 |
-
// maxWidth: <?php echo Mage::getStoreConfig('colorbox/dimensions/maxwidth') ?>,
|
42 |
-
//
|
43 |
-
// height: <?php echo Mage::getStoreConfig('colorbox/dimensions/height') ?>,
|
44 |
-
// initialHeight: "<?php echo Mage::getStoreConfig('colorbox/dimensions/initialheight') ?>",
|
45 |
-
// innerHeight: <?php echo Mage::getStoreConfig('colorbox/dimensions/innerheight') ?>,
|
46 |
-
// maxHeight: <?php echo Mage::getStoreConfig('colorbox/dimensions/maxheight') ?>,
|
47 |
-
//
|
48 |
-
// //internationalization
|
49 |
-
// current: <?php echo Mage::getStoreConfig('colorbox/internationalization/current') ?>,
|
50 |
-
// previous: <?php echo Mage::getStoreConfig('colorbox/internationalization/previous') ?>,
|
51 |
-
// next: <?php echo Mage::getStoreConfig('colorbox/internationalization/next') ?>,
|
52 |
-
// close: <?php echo Mage::getStoreConfig('colorbox/internationalization/close') ?>,
|
53 |
-
//
|
54 |
-
// //slideshow
|
55 |
-
// slideshow: <?php echo Mage::getStoreConfig('colorbox/slideshow/slideshow') ?>,
|
56 |
-
// slideshowAuto: <?php echo Mage::getStoreConfig('colorbox/slideshow/slideshowauto') ?>,
|
57 |
-
// slideshowSpeed: <?php echo Mage::getStoreConfig('colorbox/slideshow/slideshowspeed') ?>,
|
58 |
-
// slideshowStart: <?php echo Mage::getStoreConfig('colorbox/slideshow/slideshowstart') ?>,
|
59 |
-
// slideshowStop: <?php echo Mage::getStoreConfig('colorbox/slideshow/slideshowstop') ?>
|
60 |
-
}
|
61 |
-
);
|
62 |
-
});
|
63 |
-
</script>
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
<?php
|
68 |
-
$_product = $this->getProduct();
|
69 |
-
$_helper = $this->helper('catalog/output');
|
70 |
-
?>
|
71 |
-
<p class="product-image">
|
72 |
-
<a class="group2" href="<?php echo $this->helper('catalog/image')->init($_product, 'image')->resize(265); ?>">
|
73 |
-
<?php
|
74 |
-
$_img = '<img src="'.$this->helper('catalog/image')->init($_product, 'image')->resize(265).'" alt="'.$this->htmlEscape($this->getImageLabel()).'" title="'.$this->htmlEscape($this->getImageLabel()).'" />';
|
75 |
-
echo $_helper->productAttribute($_product, $_img, 'image');
|
76 |
-
?>
|
77 |
-
</a>
|
78 |
-
</p>
|
79 |
-
|
80 |
-
<?php if (count($this->getGalleryImages()) > 0): ?>
|
81 |
-
<div class="more-views">
|
82 |
-
<h2><?php echo $this->__('More Views') ?></h2>
|
83 |
-
<ul>
|
84 |
-
<?php foreach ($this->getGalleryImages() as $_image): ?>
|
85 |
-
<li>
|
86 |
-
<a class="group2" href="<?php echo $_image['url']; ?>" title="<?php echo $this->htmlEscape($_image->getLabel()) ?>">
|
87 |
-
<img src="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize(56); ?>"
|
88 |
-
width="56" height="56" alt="<?php echo $this->htmlEscape($_image->getLabel()) ?>" />
|
89 |
-
</a>
|
90 |
-
</li>
|
91 |
-
<?php endforeach; ?>
|
92 |
-
</ul>
|
93 |
-
</div>
|
94 |
-
<?php endif; ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/base/default/template/magazento/colorbox/media_4.phtml
DELETED
@@ -1,82 +0,0 @@
|
|
1 |
-
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
|
2 |
-
<script src="<?php echo $this->getSkinUrl('magazento/colorbox/jquery.colorbox.js') ?>" type="text/javascript"></script>
|
3 |
-
<link rel="stylesheet"
|
4 |
-
href="<?php echo $this->getSkinUrl("magazento/colorbox/". Mage::getStoreConfig('colorbox/settings/skin') ."/colorbox.css") ?>" type="text/css" media="screen" />
|
5 |
-
|
6 |
-
<script>
|
7 |
-
jQuery.noConflict();
|
8 |
-
jQuery(document).ready(function(){
|
9 |
-
//Examples of how to assign the ColorBox event to elements
|
10 |
-
jQuery(".group2").colorbox(
|
11 |
-
{
|
12 |
-
|
13 |
-
transition: "<?php echo Mage::getStoreConfig('colorbox/settings/transition') ?>",
|
14 |
-
speed: <?php echo Mage::getStoreConfig('colorbox/settings/speed') ?>,
|
15 |
-
scalePhotos: <?php echo Mage::getStoreConfig('colorbox/settings/scalephotos') ?>,
|
16 |
-
scrolling: <?php echo Mage::getStoreConfig('colorbox/settings/scrolling') ?>,
|
17 |
-
opacity: <?php echo Mage::getStoreConfig('colorbox/settings/opacity') ?>,
|
18 |
-
open: <?php echo Mage::getStoreConfig('colorbox/settings/open') ?>,
|
19 |
-
returnFocus: <?php echo Mage::getStoreConfig('colorbox/settings/returnfocus') ?>,
|
20 |
-
overlayClose: <?php echo Mage::getStoreConfig('colorbox/settings/overlayclose') ?>,
|
21 |
-
escKey: <?php echo Mage::getStoreConfig('colorbox/settings/esckey') ?>,
|
22 |
-
arrowKey: <?php echo Mage::getStoreConfig('colorbox/settings/arrowkey') ?>,
|
23 |
-
loop: <?php echo Mage::getStoreConfig('colorbox/settings/loop') ?>,
|
24 |
-
|
25 |
-
|
26 |
-
width: <?php echo Mage::getStoreConfig('colorbox/dimensions/width') ?>,
|
27 |
-
initialWidth: "<?php echo Mage::getStoreConfig('colorbox/dimensions/initialwidth') ?>",
|
28 |
-
innerWidth: <?php echo Mage::getStoreConfig('colorbox/dimensions/initialheight') ?>,
|
29 |
-
maxWidth: <?php echo Mage::getStoreConfig('colorbox/dimensions/maxwidth') ?>,
|
30 |
-
|
31 |
-
height: <?php echo Mage::getStoreConfig('colorbox/dimensions/height') ?>,
|
32 |
-
initialHeight: "<?php echo Mage::getStoreConfig('colorbox/dimensions/initialheight') ?>",
|
33 |
-
innerHeight: <?php echo Mage::getStoreConfig('colorbox/dimensions/innerheight') ?>,
|
34 |
-
maxHeight: <?php echo Mage::getStoreConfig('colorbox/dimensions/maxheight') ?>,
|
35 |
-
|
36 |
-
current: "<?php echo Mage::getStoreConfig('colorbox/internationalization/current') ?>",
|
37 |
-
previous: "<?php echo Mage::getStoreConfig('colorbox/internationalization/previous') ?>",
|
38 |
-
next: "<?php echo Mage::getStoreConfig('colorbox/internationalization/next') ?>",
|
39 |
-
close: "<?php echo Mage::getStoreConfig('colorbox/internationalization/close') ?>",
|
40 |
-
|
41 |
-
slideshow: <?php echo Mage::getStoreConfig('colorbox/slideshow/slideshow') ?>,
|
42 |
-
slideshowAuto: <?php echo Mage::getStoreConfig('colorbox/slideshow/slideshowauto') ?>,
|
43 |
-
slideshowSpeed: <?php echo Mage::getStoreConfig('colorbox/slideshow/slideshowspeed') ?>,
|
44 |
-
slideshowStart: "<?php echo Mage::getStoreConfig('colorbox/slideshow/slideshowstart') ?>",
|
45 |
-
slideshowStop: "<?php echo Mage::getStoreConfig('colorbox/slideshow/slideshowstop') ?>"
|
46 |
-
|
47 |
-
|
48 |
-
}
|
49 |
-
);
|
50 |
-
});
|
51 |
-
</script>
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
<?php
|
56 |
-
$_product = $this->getProduct();
|
57 |
-
$_helper = $this->helper('catalog/output');
|
58 |
-
?>
|
59 |
-
<p class="product-image">
|
60 |
-
<a class="group2" href="<?php echo $this->helper('catalog/image')->init($_product, 'image')->resize(265); ?>">
|
61 |
-
<?php
|
62 |
-
$_img = '<img src="'.$this->helper('catalog/image')->init($_product, 'image')->resize(265).'" alt="'.$this->htmlEscape($this->getImageLabel()).'" title="'.$this->htmlEscape($this->getImageLabel()).'" />';
|
63 |
-
echo $_helper->productAttribute($_product, $_img, 'image');
|
64 |
-
?>
|
65 |
-
</a>
|
66 |
-
</p>
|
67 |
-
|
68 |
-
<?php if (count($this->getGalleryImages()) > 0): ?>
|
69 |
-
<div class="more-views">
|
70 |
-
<h2><?php echo $this->__('More Views') ?></h2>
|
71 |
-
<ul>
|
72 |
-
<?php foreach ($this->getGalleryImages() as $_image): ?>
|
73 |
-
<li>
|
74 |
-
<a class="group2" href="<?php echo $_image['url']; ?>" title="<?php echo $this->htmlEscape($_image->getLabel()) ?>">
|
75 |
-
<img src="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize(56); ?>"
|
76 |
-
width="56" height="56" alt="<?php echo $this->htmlEscape($_image->getLabel()) ?>" />
|
77 |
-
</a>
|
78 |
-
</li>
|
79 |
-
<?php endforeach; ?>
|
80 |
-
</ul>
|
81 |
-
</div>
|
82 |
-
<?php endif; ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/base/default/template/magazento/colorbox/script.phtml
DELETED
@@ -1,27 +0,0 @@
|
|
1 |
-
<?php $_lightboxConfig = Mage::getStoreConfig('easy_lightbox/general'); ?>
|
2 |
-
<script type="text/javascript">
|
3 |
-
|
4 |
-
function initLightbox(){
|
5 |
-
new Lightbox({
|
6 |
-
fileLoadingImage: '<?php echo $this->getSkinUrl('images/lightbox/loading.gif') ?>',
|
7 |
-
fileBottomNavCloseImage: '<?php echo $this->getSkinUrl('images/lightbox/closelabel.gif') ?>',
|
8 |
-
overlayOpacity: <?php echo $_lightboxConfig['overlayOpacity'] ?>,
|
9 |
-
animate: <?php echo (($_lightboxConfig['animate'] > 0)? "1":"0"); ?>,
|
10 |
-
resizeSpeed: <?php echo $_lightboxConfig['resizeSpeed'] ?>,
|
11 |
-
borderSize: <?php echo $_lightboxConfig['borderSize'] ?>,
|
12 |
-
labelImage: '<?php echo $_lightboxConfig['labelImage'] ?>',
|
13 |
-
labelOf: '<?php echo $_lightboxConfig['labelOf'] ?>'
|
14 |
-
});
|
15 |
-
}
|
16 |
-
|
17 |
-
|
18 |
-
if (Prototype.Browser.IE) {
|
19 |
-
Event.observe(window, 'load', function(){ //KB927917 fix
|
20 |
-
initLightbox();
|
21 |
-
});
|
22 |
-
} else {
|
23 |
-
document.observe("dom:loaded", function(){
|
24 |
-
initLightbox();
|
25 |
-
});
|
26 |
-
}
|
27 |
-
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>magento_colorbox</name>
|
4 |
-
<version>1.0.
|
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. 
|
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.
|
13 |
<authors><author><name>volgodark</name><user>auto-converted</user><email>volgodark@gmail.com</email></author></authors>
|
14 |
-
<date>2012-
|
15 |
-
<time>20:
|
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="6a7da58bb6869b0de550916ce9e41ffc"/></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="
|
17 |
<compatible/>
|
18 |
<dependencies/>
|
19 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>magento_colorbox</name>
|
4 |
+
<version>1.0.2</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. 
|
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.2</notes>
|
13 |
<authors><author><name>volgodark</name><user>auto-converted</user><email>volgodark@gmail.com</email></author></authors>
|
14 |
+
<date>2012-08-01</date>
|
15 |
+
<time>08:20:59</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="6a7da58bb6869b0de550916ce9e41ffc"/></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="media.phtml" hash="601bea464452adbae189f93911b249f9"/></dir></dir></dir><dir name="layout"><file name="magazento_colorbox.xml" hash="cea9e6edd73e32061c6c1b3dbe7f5f93"/></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>
|