Version Notes
Correction of minor errors.
Download this release
Release Info
Developer | Magento Core Team |
Extension | CTCR_View360 |
Version | 1.0.2.0 |
Comparing to | |
See all releases |
Code changes from version 1.0.1.0 to 1.0.2.0
app/code/community/CTCR/View360/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<CTCR_View360>
|
5 |
-
<version>1.0.
|
6 |
</CTCR_View360>
|
7 |
</modules>
|
8 |
|
2 |
<config>
|
3 |
<modules>
|
4 |
<CTCR_View360>
|
5 |
+
<version>1.0.2.0</version>
|
6 |
</CTCR_View360>
|
7 |
</modules>
|
8 |
|
app/code/community/CTCR/View360/etc/config.xml.bak
ADDED
@@ -0,0 +1,87 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<CTCR_View360>
|
5 |
+
<version>1.0.1.0</version>
|
6 |
+
</CTCR_View360>
|
7 |
+
</modules>
|
8 |
+
|
9 |
+
<global>
|
10 |
+
<helpers>
|
11 |
+
<view360>
|
12 |
+
<class>CTCR_View360_Helper</class>
|
13 |
+
</view360>
|
14 |
+
</helpers>
|
15 |
+
<resources>
|
16 |
+
<ctcrview360_setup>
|
17 |
+
<setup>
|
18 |
+
<module>CTCR_View360</module>
|
19 |
+
<class>CTCR_View360_Model_Resource_Setup</class>
|
20 |
+
</setup>
|
21 |
+
</ctcrview360_setup>
|
22 |
+
</resources>
|
23 |
+
</global>
|
24 |
+
|
25 |
+
<frontend>
|
26 |
+
<layout>
|
27 |
+
<updates>
|
28 |
+
<ctcr_view360>
|
29 |
+
<file>ctcr_view360.xml</file>
|
30 |
+
</ctcr_view360>
|
31 |
+
</updates>
|
32 |
+
</layout>
|
33 |
+
</frontend>
|
34 |
+
|
35 |
+
<adminhtml>
|
36 |
+
<acl>
|
37 |
+
<resources>
|
38 |
+
<admin>
|
39 |
+
<children>
|
40 |
+
<system>
|
41 |
+
<children>
|
42 |
+
<config>
|
43 |
+
<children>
|
44 |
+
<view360_config translate="title" module="view360">
|
45 |
+
<title>CTCR View360 Settings</title>
|
46 |
+
</view360_config>
|
47 |
+
</children>
|
48 |
+
</config>
|
49 |
+
</children>
|
50 |
+
</system>
|
51 |
+
</children>
|
52 |
+
</admin>
|
53 |
+
</resources>
|
54 |
+
</acl>
|
55 |
+
</adminhtml>
|
56 |
+
|
57 |
+
<default>
|
58 |
+
<ctcr_view360>
|
59 |
+
<general>
|
60 |
+
<enabled>1</enabled>
|
61 |
+
</general>
|
62 |
+
</ctcr_view360>
|
63 |
+
<view360_config>
|
64 |
+
<view360_group>
|
65 |
+
<view360_enabled>1</view360_enabled>
|
66 |
+
</view360_group>
|
67 |
+
<view360_popup>
|
68 |
+
<view360_popup_display>1</view360_popup_display>
|
69 |
+
<view360_popup_width>500</view360_popup_width>
|
70 |
+
<view360_popup_height>500</view360_popup_height>
|
71 |
+
<view360_popup_opacity>50</view360_popup_opacity>
|
72 |
+
<view360_popup_helptext>Drag to spin</view360_popup_helptext>
|
73 |
+
<view360_popup_link>360° View</view360_popup_link>
|
74 |
+
</view360_popup>
|
75 |
+
<view360_productimages>
|
76 |
+
<view360_show_images>1</view360_show_images>
|
77 |
+
<view360_productimages_width>56</view360_productimages_width>
|
78 |
+
<view360_productimages_height>56</view360_productimages_height>
|
79 |
+
<view360_show_images_popup>1</view360_show_images_popup>
|
80 |
+
<view360_show_images_popup_width>300</view360_show_images_popup_width>
|
81 |
+
<view360_show_images_popup_height>300</view360_show_images_popup_height>
|
82 |
+
<view360_show_images_popup_left>0</view360_show_images_popup_left>
|
83 |
+
<view360_show_images_popup_top>0</view360_show_images_popup_top>
|
84 |
+
</view360_productimages>
|
85 |
+
</view360_config>
|
86 |
+
</default>
|
87 |
+
</config>
|
app/design/frontend/default/default/template/ctcr/catalog/product/view/media.phtml
CHANGED
@@ -141,10 +141,16 @@
|
|
141 |
var alto = document.getElementById('image').height;
|
142 |
|
143 |
var src = "<?php echo $_xmlModel; ?>";
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
148 |
}
|
149 |
});
|
150 |
//]]>
|
@@ -187,13 +193,11 @@ if ((!$_3dModel || ($_3dModel && ($_productImages == 1 || $_popupModel == 1))) &
|
|
187 |
// Producto en modo popup display
|
188 |
if ($_popupModel == 1): ?>
|
189 |
<div class="contenedor-boton">
|
190 |
-
<input class="boton" type="button" value="<?php echo Mage::getStoreConfig('view360_config/view360_popup/view360_popup_link'); ?>" onclick="openpopup('popup1', <?php echo ($anchoPopup+4); ?>, <?php echo ($altoPopup+4); ?>, 1)"
|
191 |
</div>
|
192 |
<div id="popup1" class="popup">
|
193 |
<span class="texto-popup"><?php echo Mage::getStoreConfig('view360_config/view360_popup/view360_popup_helptext'); ?></span><br>
|
194 |
-
|
195 |
-
echo "<center><iframe src='".$_xmlModel."?width=".$anchoPopup."&height=".$altoPopup."&rel=1' frameborder='0' width='$anchoPopup' height='$altoPopup' scrolling='no'></iframe></center>";
|
196 |
-
?>
|
197 |
</div>
|
198 |
-
<div id="bg" class="popup_bg" style="opacity: <?php echo ($popupOpacidad/100); ?>; filter: alpha(opacity=<?php echo ($popupOpacidad); ?>);" onclick="closepopup('popup1')"></div>
|
199 |
<?php endif; ?>
|
141 |
var alto = document.getElementById('image').height;
|
142 |
|
143 |
var src = "<?php echo $_xmlModel; ?>";
|
144 |
+
try
|
145 |
+
{
|
146 |
+
document.getElementById('view360').src = src + "?width=" + ancho + "&height=" + alto;
|
147 |
+
document.getElementById('view360').width = ancho;
|
148 |
+
document.getElementById('view360').height = alto;
|
149 |
+
document.getElementById('productImage').style.display = "none";
|
150 |
+
}
|
151 |
+
catch(e)
|
152 |
+
{
|
153 |
+
}
|
154 |
}
|
155 |
});
|
156 |
//]]>
|
193 |
// Producto en modo popup display
|
194 |
if ($_popupModel == 1): ?>
|
195 |
<div class="contenedor-boton">
|
196 |
+
<input class="boton" type="button" value="<?php echo Mage::getStoreConfig('view360_config/view360_popup/view360_popup_link'); ?>" onclick="openpopup('popup1', 'popup3d', 'popup-bg', <?php echo ($anchoPopup+4); ?>, <?php echo ($altoPopup+4); ?>, 1)" />
|
197 |
</div>
|
198 |
<div id="popup1" class="popup">
|
199 |
<span class="texto-popup"><?php echo Mage::getStoreConfig('view360_config/view360_popup/view360_popup_helptext'); ?></span><br>
|
200 |
+
<center><iframe id="popup3d" class="popup3d" frameborder="0" scrolling="no" src="<?php echo $_xmlModel."?width=".$anchoPopup."&height=".$altoPopup."&rel=1" ?>" width="0" height="0"></iframe></center>
|
|
|
|
|
201 |
</div>
|
202 |
+
<div id="popup-bg" class="popup_bg" style="opacity: <?php echo ($popupOpacidad/100); ?>; filter: alpha(opacity=<?php echo ($popupOpacidad); ?>);" onclick="closepopup('popup1', 'popup3d', 'popup-bg')"></div>
|
203 |
<?php endif; ?>
|
js/ctcr/ctcrview360.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
var
|
1 |
+
var _0x9493=["\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74\x42\x79\x49\x64","\x73\x72\x63","\x69\x6E\x6E\x65\x72\x57\x69\x64\x74\x68","\x69\x6E\x6E\x65\x72\x48\x65\x69\x67\x68\x74","\x6E\x75\x6D\x62\x65\x72","\x63\x6F\x6D\x70\x61\x74\x4D\x6F\x64\x65","\x43\x53\x53\x31\x43\x6F\x6D\x70\x61\x74","\x63\x6C\x69\x65\x6E\x74\x57\x69\x64\x74\x68","\x64\x6F\x63\x75\x6D\x65\x6E\x74\x45\x6C\x65\x6D\x65\x6E\x74","\x63\x6C\x69\x65\x6E\x74\x48\x65\x69\x67\x68\x74","\x62\x6F\x64\x79","\x76\x69\x73\x69\x62\x69\x6C\x69\x74\x79","\x73\x74\x79\x6C\x65","\x76\x69\x73\x69\x62\x6C\x65","\x77\x69\x64\x74\x68","\x70\x78","\x68\x65\x69\x67\x68\x74","\x61\x70\x70\x4E\x61\x6D\x65","\x4D\x69\x63\x72\x6F\x73\x6F\x66\x74\x20\x49\x6E\x74\x65\x72\x6E\x65\x74\x20\x45\x78\x70\x6C\x6F\x72\x65\x72","\x63\x75\x72\x72\x65\x6E\x74\x53\x74\x79\x6C\x65","\x67\x65\x74\x43\x6F\x6D\x70\x75\x74\x65\x64\x53\x74\x79\x6C\x65","\x64\x65\x66\x61\x75\x6C\x74\x56\x69\x65\x77","\x6C\x65\x66\x74","\x74\x6F\x70","\x63\x6C\x6F\x73\x65\x70\x6F\x70\x75\x70\x28\x27","\x27\x2C\x20\x27","\x27\x29","\x69\x6E\x64\x65\x78\x4F\x66","\x69\x6E\x6E\x65\x72\x48\x54\x4D\x4C","\x3C\x61\x20\x68\x72\x65\x66\x3D\x22\x23\x22\x20\x6F\x6E\x63\x6C\x69\x63\x6B\x3D\x22\x63\x6C\x6F\x73\x65\x70\x6F\x70\x75\x70\x28\x27","\x27\x29\x22\x3E\x3C\x73\x70\x61\x6E\x20\x63\x6C\x61\x73\x73\x3D\x22\x63\x6C\x6F\x73\x65\x5F\x62\x75\x74\x74\x6F\x6E\x22\x3E\x58\x3C\x2F\x73\x70\x61\x6E\x3E\x3C\x2F\x61\x3E","\x6F\x6E\x6B\x65\x79\x70\x72\x65\x73\x73","\x6B\x65\x79\x43\x6F\x64\x65","\x68\x69\x64\x64\x65\x6E","\x30\x70\x78"];var pid;var frameId;var bgId;function changeProductImage(_0x1914x5,_0x1914x6){var _0x1914x7=document[_0x9493[0]](_0x1914x6);_0x1914x7[_0x9493[1]]=_0x1914x5;} ;function openpopup(_0x1914x6,_0x1914x9,_0x1914xa,_0x1914xb,_0x1914xc,_0x1914xd){pid=_0x1914x6;frameId=_0x1914x9;bgId=_0x1914xa;var _0x1914xe=window[_0x9493[2]];var _0x1914xf=window[_0x9493[3]];if( typeof _0x1914xe!=_0x9493[4]){if(document[_0x9493[5]]==_0x9493[6]){_0x1914xe=document[_0x9493[8]][_0x9493[7]];_0x1914xf=document[_0x9493[8]][_0x9493[9]];} else {_0x1914xe=document[_0x9493[10]][_0x9493[7]];_0x1914xf=document[_0x9493[10]][_0x9493[9]];} ;} ;var _0x1914x10=document[_0x9493[0]](_0x1914xa);_0x1914x10[_0x9493[12]][_0x9493[11]]=_0x9493[13];var _0x1914x11=document[_0x9493[0]](_0x1914x6);_0x1914x11[_0x9493[12]][_0x9493[11]]=_0x9493[13];var _0x1914x12=document[_0x9493[0]](frameId);_0x1914x12[_0x9493[12]][_0x9493[14]]=(_0x1914xb-4)+_0x9493[15];_0x1914x12[_0x9493[12]][_0x9493[16]]=(_0x1914xc-4)+_0x9493[15];if(navigator[_0x9493[17]]==_0x9493[18]){computedStyle=_0x1914x11[_0x9493[19]];} else {computedStyle=document[_0x9493[21]][_0x9493[20]](_0x1914x11,null);} ;var _0x1914x13=(_0x1914xe-_0x1914xb)/2;var _0x1914x14=(_0x1914xf-_0x1914xc)/2;_0x1914x11[_0x9493[12]][_0x9493[14]]=_0x1914xb+1+_0x9493[15];_0x1914x11[_0x9493[12]][_0x9493[16]]=_0x1914xc+23+_0x9493[15];_0x1914x11[_0x9493[12]][_0x9493[22]]=_0x1914x13+_0x9493[15];_0x1914x11[_0x9493[12]][_0x9493[23]]=_0x1914x14+_0x9493[15];if(_0x1914x11[_0x9493[28]][_0x9493[27]](_0x9493[24]+_0x1914x6+_0x9493[25]+_0x1914x9+_0x9493[25]+_0x1914xa+_0x9493[26])<0){_0x1914x11[_0x9493[28]]=_0x9493[29]+_0x1914x6+_0x9493[25]+_0x1914x9+_0x9493[25]+_0x1914xa+_0x9493[30]+_0x1914x11[_0x9493[28]];} ;window[_0x9493[31]]=keypress;} ;function keypress(_0x1914x16){try{if(_0x1914x16[_0x9493[32]]==207||_0x1914x16[_0x9493[32]]==27){closepopup(pid,frameId,bgId);} ;} catch(e){} ;} ;function closepopup(_0x1914x6,_0x1914x9,_0x1914xa){var _0x1914x10=document[_0x9493[0]](_0x1914xa);_0x1914x10[_0x9493[12]][_0x9493[11]]=_0x9493[33];var _0x1914x11=document[_0x9493[0]](_0x1914x6);_0x1914x11[_0x9493[12]][_0x9493[11]]=_0x9493[33];var _0x1914x12=document[_0x9493[0]](_0x1914x9);_0x1914x12[_0x9493[12]][_0x9493[14]]=_0x9493[34];_0x1914x12[_0x9493[12]][_0x9493[16]]=_0x9493[34];} ;
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>CTCR_View360</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
@@ -12,9 +12,9 @@
|
|
12 |
Install</description>
|
13 |
<notes>Correction of minor errors.</notes>
|
14 |
<authors><author><name>Centro Tecnológico del Calzado de La Rioja</name><user>auto-converted</user><email>info@ctcr.es</email></author></authors>
|
15 |
-
<date>2013-
|
16 |
-
<time>15:
|
17 |
-
<contents><target name="magecommunity"><dir name="CTCR"><dir name="View360"><dir name="Helper"><file name="Data.php" hash="018fcc732a68644223c2b02192c687a7"/></dir><dir name="Model"><dir name="Resource"><file name="Setup.php" hash="02ae06d96893fe9f7184595634bc5b84"/></dir></dir><dir name="etc"><file name="config.xml" hash="37f6289817d0f29cf8e318aa47dc9e68"/><file name="system.xml" hash="9c97eb139b55335453af4981df165f23"/></dir><dir name="sql"><dir name="ctcrview360_setup"><file name="mysql4-install-1.0.0.0.php" hash="6ab8e35d433caf15be538f3cd31cbe2f"/><file name="mysql4-upgrade-1.0.0.0-1.0.1.0.php" hash="5293f965a53e3cae05e72f52cd8fa3af"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="CTCR_View360.xml" hash="8c1f427f57ca920267f470ec4e3e7b86"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="css"><file name="ctcr_view360.css" hash="8c050dacbd048d955059ef2a0372f09e"/></dir></dir></dir></dir></target><target name="mage"><dir name="js"><dir name="ctcr"><file name="ctcrview360.js" hash="
|
18 |
<compatible/>
|
19 |
<dependencies/>
|
20 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>CTCR_View360</name>
|
4 |
+
<version>1.0.2.0</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
12 |
Install</description>
|
13 |
<notes>Correction of minor errors.</notes>
|
14 |
<authors><author><name>Centro Tecnológico del Calzado de La Rioja</name><user>auto-converted</user><email>info@ctcr.es</email></author></authors>
|
15 |
+
<date>2013-05-07</date>
|
16 |
+
<time>15:26:27</time>
|
17 |
+
<contents><target name="magecommunity"><dir name="CTCR"><dir name="View360"><dir name="Helper"><file name="Data.php" hash="018fcc732a68644223c2b02192c687a7"/></dir><dir name="Model"><dir name="Resource"><file name="Setup.php" hash="02ae06d96893fe9f7184595634bc5b84"/></dir></dir><dir name="etc"><file name="config.xml" hash="8e0a8949c14f49d2deace229884b92bb"/><file name="config.xml.bak" hash="37f6289817d0f29cf8e318aa47dc9e68"/><file name="system.xml" hash="9c97eb139b55335453af4981df165f23"/></dir><dir name="sql"><dir name="ctcrview360_setup"><file name="mysql4-install-1.0.0.0.php" hash="6ab8e35d433caf15be538f3cd31cbe2f"/><file name="mysql4-upgrade-1.0.0.0-1.0.1.0.php" hash="5293f965a53e3cae05e72f52cd8fa3af"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="CTCR_View360.xml" hash="8c1f427f57ca920267f470ec4e3e7b86"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="css"><file name="ctcr_view360.css" hash="8c050dacbd048d955059ef2a0372f09e"/></dir></dir></dir></dir></target><target name="mage"><dir name="js"><dir name="ctcr"><file name="ctcrview360.js" hash="dde171f781b236a2e50d79aa8e75209b"/></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="ctcr"><dir name="catalog"><dir name="product"><dir name="view"><file name="media.phtml" hash="4f9033d4e9f5c2cd7372540daede17d5"/></dir></dir></dir></dir></dir><dir name="layout"><file name="ctcr_view360.xml" hash="9768fd2a24973a852d2952875d4083bf"/></dir></dir></dir></dir></target></contents>
|
18 |
<compatible/>
|
19 |
<dependencies/>
|
20 |
</package>
|