Version Notes
This script lets you view a magnified portion of any image upon moving your mouse over it. A magnifying glass appears alongside the image displaying the magnified area on demand. The user can toggle the zoom level by using the mousewheel. It's great to use on product images, photos, or other images with lots of details you want users to be able to get into on command.
Download this release
Release Info
Developer | Magento Core Team |
Extension | VS_Featurezoom |
Version | 1.1.0 |
Comparing to | |
See all releases |
Code changes from version 1.10.0 to 1.1.0
- app/code/community/VS/Featurezoom/Model/Magnifierpos.php +4 -19
- app/code/community/VS/Featurezoom/etc/config.xml +3 -3
- app/code/community/VS/Featurezoom/etc/system.xml +7 -1
- app/design/frontend/default/default/layout/featurezoom.xml +2 -2
- app/design/frontend/default/default/template/featurezoom/media.phtml +2 -2
- package.xml +4 -4
app/code/community/VS/Featurezoom/Model/Magnifierpos.php
CHANGED
@@ -1,26 +1,11 @@
|
|
1 |
<?php
|
2 |
-
/**
|
3 |
-
* aheadWorks Co.
|
4 |
-
*
|
5 |
-
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
-
* This source file is subject to the EULA
|
8 |
-
* that is bundled with this package in the file LICENSE.txt.
|
9 |
-
* It is also available through the world-wide-web at this URL:
|
10 |
-
* http://ecommerce.aheadworks.com/LICENSE-L.txt
|
11 |
-
*
|
12 |
-
* @category AW
|
13 |
-
* @package AW_Blog
|
14 |
-
* @copyright Copyright (c) 2009-2010 aheadWorks Co. (http://www.aheadworks.com)
|
15 |
-
* @license http://ecommerce.aheadworks.com/LICENSE-L.txt
|
16 |
-
*/
|
17 |
|
18 |
class VS_Featurezoom_Model_Magnifierpos{
|
19 |
protected $_options;
|
20 |
const MAGNIFIERPOS_RIGHT = 'right';
|
21 |
const MAGNIFIERPOS_LEFT = 'left';
|
22 |
-
const MAGNIFIERPOS_TOP = 'top';
|
23 |
-
const MAGNIFIERPOS_BOTTOM = 'bottom'
|
24 |
|
25 |
public function toOptionArray(){
|
26 |
if (!$this->_options) {
|
@@ -32,14 +17,14 @@ class VS_Featurezoom_Model_Magnifierpos{
|
|
32 |
'value'=>self::MAGNIFIERPOS_LEFT,
|
33 |
'label'=>Mage::helper('featurezoom')->__('Left')
|
34 |
);
|
35 |
-
$this->_options[] = array(
|
36 |
'value'=>self::MAGNIFIERPOS_TOP,
|
37 |
'label'=>Mage::helper('featurezoom')->__('Top')
|
38 |
);
|
39 |
$this->_options[] = array(
|
40 |
'value'=>self::MAGNIFIERPOS_BOTTOM,
|
41 |
'label'=>Mage::helper('featurezoom')->__('Bottom')
|
42 |
-
)
|
43 |
}
|
44 |
return $this->_options;
|
45 |
}
|
1 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
class VS_Featurezoom_Model_Magnifierpos{
|
4 |
protected $_options;
|
5 |
const MAGNIFIERPOS_RIGHT = 'right';
|
6 |
const MAGNIFIERPOS_LEFT = 'left';
|
7 |
+
/* const MAGNIFIERPOS_TOP = 'top';
|
8 |
+
const MAGNIFIERPOS_BOTTOM = 'bottom';*/
|
9 |
|
10 |
public function toOptionArray(){
|
11 |
if (!$this->_options) {
|
17 |
'value'=>self::MAGNIFIERPOS_LEFT,
|
18 |
'label'=>Mage::helper('featurezoom')->__('Left')
|
19 |
);
|
20 |
+
/* $this->_options[] = array(
|
21 |
'value'=>self::MAGNIFIERPOS_TOP,
|
22 |
'label'=>Mage::helper('featurezoom')->__('Top')
|
23 |
);
|
24 |
$this->_options[] = array(
|
25 |
'value'=>self::MAGNIFIERPOS_BOTTOM,
|
26 |
'label'=>Mage::helper('featurezoom')->__('Bottom')
|
27 |
+
);*/
|
28 |
}
|
29 |
return $this->_options;
|
30 |
}
|
app/code/community/VS/Featurezoom/etc/config.xml
CHANGED
@@ -49,8 +49,8 @@
|
|
49 |
<end>10</end>
|
50 |
</zoomrange>
|
51 |
<magnifiersize>
|
52 |
-
<height>
|
53 |
-
<width>
|
54 |
</magnifiersize>
|
55 |
</featurezoom>
|
56 |
|
@@ -74,7 +74,7 @@
|
|
74 |
<config>
|
75 |
<children>
|
76 |
<featurezoom>
|
77 |
-
<title>
|
78 |
</featurezoom>
|
79 |
</children>
|
80 |
</config>
|
49 |
<end>10</end>
|
50 |
</zoomrange>
|
51 |
<magnifiersize>
|
52 |
+
<height>200</height>
|
53 |
+
<width>200</width>
|
54 |
</magnifiersize>
|
55 |
</featurezoom>
|
56 |
|
74 |
<config>
|
75 |
<children>
|
76 |
<featurezoom>
|
77 |
+
<title>VS Featurezoom</title>
|
78 |
</featurezoom>
|
79 |
</children>
|
80 |
</config>
|
app/code/community/VS/Featurezoom/etc/system.xml
CHANGED
@@ -1,10 +1,16 @@
|
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
|
3 |
<config>
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
<sections>
|
5 |
<featurezoom translate="label" >
|
6 |
<label>VS Feature Zoom</label>
|
7 |
-
<tab>
|
8 |
<frontend_type>text</frontend_type>
|
9 |
<sort_order>90</sort_order>
|
10 |
<show_in_default>1</show_in_default>
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
|
3 |
<config>
|
4 |
+
<tabs>
|
5 |
+
<vs_extensions>
|
6 |
+
<label>VS Extensions</label>
|
7 |
+
<sort_order>195</sort_order>
|
8 |
+
</vs_extensions>
|
9 |
+
</tabs>
|
10 |
<sections>
|
11 |
<featurezoom translate="label" >
|
12 |
<label>VS Feature Zoom</label>
|
13 |
+
<tab>vs_extensions</tab>
|
14 |
<frontend_type>text</frontend_type>
|
15 |
<sort_order>90</sort_order>
|
16 |
<show_in_default>1</show_in_default>
|
app/design/frontend/default/default/layout/featurezoom.xml
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
<catalog_product_view>
|
6 |
<reference name="head">
|
7 |
-
<action method="addJs"><script>VS/jquery-1.3.2.min.js</script></action>
|
8 |
<action method="addJs" ifconfig="featurezoom/general/enabled"><script>VS/featuredimagezoomer.js</script></action>
|
9 |
</reference>
|
10 |
<reference name="product.info.media">
|
@@ -14,7 +14,7 @@
|
|
14 |
|
15 |
<review_product_list>
|
16 |
<reference name="head">
|
17 |
-
<action method="addJs"><script>VS/jquery-1.3.2.min.js</script></action>
|
18 |
<action method="addJs" ifconfig="featurezoom/general/enabled"><script>VS/featuredimagezoomer.js</script></action>
|
19 |
|
20 |
</reference>
|
4 |
|
5 |
<catalog_product_view>
|
6 |
<reference name="head">
|
7 |
+
<action method="addJs" ifconfig="featurezoom/general/enabled"><script>VS/jquery-1.3.2.min.js</script></action>
|
8 |
<action method="addJs" ifconfig="featurezoom/general/enabled"><script>VS/featuredimagezoomer.js</script></action>
|
9 |
</reference>
|
10 |
<reference name="product.info.media">
|
14 |
|
15 |
<review_product_list>
|
16 |
<reference name="head">
|
17 |
+
<action method="addJs" ifconfig="featurezoom/general/enabled"><script>VS/jquery-1.3.2.min.js</script></action>
|
18 |
<action method="addJs" ifconfig="featurezoom/general/enabled"><script>VS/featuredimagezoomer.js</script></action>
|
19 |
|
20 |
</reference>
|
app/design/frontend/default/default/template/featurezoom/media.phtml
CHANGED
@@ -69,11 +69,11 @@
|
|
69 |
|
70 |
<style type="text/css">
|
71 |
.magnifyarea{ /* CSS to add shadow to magnified image. Optional */
|
72 |
-
|
73 |
-webkit-box-shadow: 5px 5px 7px #818181;
|
74 |
-moz-box-shadow: 5px 5px 7px #818181;
|
75 |
filter: progid:DXImageTransform.Microsoft.dropShadow(color=#818181, offX=5, offY=5, positive=true);
|
76 |
-
background: white
|
77 |
}
|
78 |
</style>
|
79 |
|
69 |
|
70 |
<style type="text/css">
|
71 |
.magnifyarea{ /* CSS to add shadow to magnified image. Optional */
|
72 |
+
/* box-shadow: 5px 5px 7px #818181;
|
73 |
-webkit-box-shadow: 5px 5px 7px #818181;
|
74 |
-moz-box-shadow: 5px 5px 7px #818181;
|
75 |
filter: progid:DXImageTransform.Microsoft.dropShadow(color=#818181, offX=5, offY=5, positive=true);
|
76 |
+
background: white;*/
|
77 |
}
|
78 |
</style>
|
79 |
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>VS_Featurezoom</name>
|
4 |
-
<version>1.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
@@ -10,9 +10,9 @@
|
|
10 |
<description>This script lets you view a magnified portion of any image upon moving your mouse over it. A magnifying glass appears alongside the image displaying the magnified area on demand. The user can toggle the zoom level by using the mousewheel. It's great to use on product images, photos, or other images with lots of details you want users to be able to get into on command.</description>
|
11 |
<notes>This script lets you view a magnified portion of any image upon moving your mouse over it. A magnifying glass appears alongside the image displaying the magnified area on demand. The user can toggle the zoom level by using the mousewheel. It's great to use on product images, photos, or other images with lots of details you want users to be able to get into on command.</notes>
|
12 |
<authors><author><name>virendra kumar sharma</name><user>auto-converted</user><email>bhardwajveerendra@gmail.com</email></author></authors>
|
13 |
-
<date>2011-
|
14 |
-
<time>
|
15 |
-
<contents><target name="magecommunity"><dir name="VS"><dir name="Featurezoom"><dir name="Helper"><file name="Data.php" hash="77e3dc4cd8081d329bbadc986625c956"/></dir><dir name="Model"><file name="Magnifierpos.php" hash="
|
16 |
<compatible/>
|
17 |
<dependencies/>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>VS_Featurezoom</name>
|
4 |
+
<version>1.1.0</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
10 |
<description>This script lets you view a magnified portion of any image upon moving your mouse over it. A magnifying glass appears alongside the image displaying the magnified area on demand. The user can toggle the zoom level by using the mousewheel. It's great to use on product images, photos, or other images with lots of details you want users to be able to get into on command.</description>
|
11 |
<notes>This script lets you view a magnified portion of any image upon moving your mouse over it. A magnifying glass appears alongside the image displaying the magnified area on demand. The user can toggle the zoom level by using the mousewheel. It's great to use on product images, photos, or other images with lots of details you want users to be able to get into on command.</notes>
|
12 |
<authors><author><name>virendra kumar sharma</name><user>auto-converted</user><email>bhardwajveerendra@gmail.com</email></author></authors>
|
13 |
+
<date>2011-08-03</date>
|
14 |
+
<time>06:36:11</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="VS"><dir name="Featurezoom"><dir name="Helper"><file name="Data.php" hash="77e3dc4cd8081d329bbadc986625c956"/></dir><dir name="Model"><file name="Magnifierpos.php" hash="d82b11878765931a4f4c22dde4f42cb4"/></dir><dir name="etc"><file name="config.xml" hash="b53b4deeacce50319e877e59d0dbf4b8"/><file name="system.xml" hash="e3d6c89280c321c7b3fe148b4c0006f0"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="featurezoom.xml" hash="354fa596df2e6b4c8c79285338d7eab5"/></dir><dir name="template"><dir name="featurezoom"><file name="media.phtml" hash="3dcc77e1756b69413b631485864b654c"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="VS_Featurezoom.xml" hash="87d922669f0ad2ceec5df652a2e76485"/></dir></target><target name="mage"><dir name="js"><dir name="VS"><file name="featuredimagezoomer.js" hash="e06ca70bcdd7964f3b4097f6b30561e3"/><file name="jquery-1.3.2.min.js" hash="25e59325cb47d2ab5ea650d47f431a9c"/><file name="opc-ajax-loader.gif" hash="e805ea7eca1f34c75ba0f93780d32d38"/><file name="spinningred.gif" hash="46893b8266d278b9a81d65cdd1d8f8bf"/></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies/>
|
18 |
</package>
|