Version Notes
UI impovements in Admin Panel
Download this release
Release Info
Developer | AJAX-ZOOM |
Extension | AJAX_ZOOM |
Version | 1.0.9 |
Comparing to | |
See all releases |
Code changes from version 1.0.8 to 1.0.9
- app/code/local/Ax/Zoom/etc/config.xml +5 -5
- app/code/local/Ax/Zoom/etc/system.xml +4 -5
- app/code/local/Ax/Zoom/sql/axzoom_setup/install-0.0.1.php +13 -11
- app/design/adminhtml/default/default/template/axzoom/tab.phtml +3 -3
- app/design/adminhtml/default/default/template/axzoom/tab360-sets.phtml +68 -20
- app/design/adminhtml/default/default/template/axzoom/tab360-settings.phtml +22 -10
- app/design/adminhtml/default/default/template/axzoom/tab360.phtml +9 -13
- app/design/adminhtml/default/default/template/axzoom/uploader.phtml +62 -11
- app/etc/modules/Ax_Zoom.xml +3 -3
- package.xml +5 -5
app/code/local/Ax/Zoom/etc/config.xml
CHANGED
@@ -4,9 +4,9 @@
|
|
4 |
* Module: jQuery AJAX-ZOOM for Magento, /app/code/local/Ax/Zoom/etc/config.xml
|
5 |
* Copyright: Copyright (c) 2010-2015 Vadim Jacobi
|
6 |
* License Agreement: http://www.ajax-zoom.com/index.php?cid=download
|
7 |
-
* Version: 1.0.
|
8 |
-
* Date: 2015-
|
9 |
-
* Review: 2015-
|
10 |
* URL: http://www.ajax-zoom.com
|
11 |
* Documentation: http://www.ajax-zoom.com/index.php?cid=modules&module=magento
|
12 |
*
|
@@ -20,7 +20,7 @@
|
|
20 |
|
21 |
<modules>
|
22 |
<Ax_Zoom>
|
23 |
-
<version>1.0.
|
24 |
</Ax_Zoom>
|
25 |
</modules>
|
26 |
|
@@ -325,7 +325,7 @@
|
|
325 |
"es" : "Arrastrar para girar en 360º, pellizcar para ampliar y reducir"
|
326 |
}
|
327 |
</zoomMsg360_touch>
|
328 |
-
<preloadMouseOverImages>
|
329 |
<noImageAvailableClass>axZm_mouseOverNoImage</noImageAvailableClass>
|
330 |
<width>auto</width>
|
331 |
<height>auto</height>
|
4 |
* Module: jQuery AJAX-ZOOM for Magento, /app/code/local/Ax/Zoom/etc/config.xml
|
5 |
* Copyright: Copyright (c) 2010-2015 Vadim Jacobi
|
6 |
* License Agreement: http://www.ajax-zoom.com/index.php?cid=download
|
7 |
+
* Version: 1.0.9
|
8 |
+
* Date: 2015-12-01
|
9 |
+
* Review: 2015-12-01
|
10 |
* URL: http://www.ajax-zoom.com
|
11 |
* Documentation: http://www.ajax-zoom.com/index.php?cid=modules&module=magento
|
12 |
*
|
20 |
|
21 |
<modules>
|
22 |
<Ax_Zoom>
|
23 |
+
<version>1.0.9</version>
|
24 |
</Ax_Zoom>
|
25 |
</modules>
|
26 |
|
325 |
"es" : "Arrastrar para girar en 360º, pellizcar para ampliar y reducir"
|
326 |
}
|
327 |
</zoomMsg360_touch>
|
328 |
+
<preloadMouseOverImages>oneByOne</preloadMouseOverImages>
|
329 |
<noImageAvailableClass>axZm_mouseOverNoImage</noImageAvailableClass>
|
330 |
<width>auto</width>
|
331 |
<height>auto</height>
|
app/code/local/Ax/Zoom/etc/system.xml
CHANGED
@@ -4,9 +4,9 @@
|
|
4 |
* Module: jQuery AJAX-ZOOM for Magento, /app/code/local/Ax/Zoom/etc/system.xml
|
5 |
* Copyright: Copyright (c) 2010-2015 Vadim Jacobi
|
6 |
* License Agreement: http://www.ajax-zoom.com/index.php?cid=download
|
7 |
-
* Version: 1.0.
|
8 |
-
* Date: 2015-
|
9 |
-
* Review: 2015-
|
10 |
* URL: http://www.ajax-zoom.com
|
11 |
* Documentation: http://www.ajax-zoom.com/index.php?cid=modules&module=magento
|
12 |
*
|
@@ -1006,8 +1006,7 @@
|
|
1006 |
<preloadMouseOverImages>
|
1007 |
<label><![CDATA[<div class="notice-msg importantAZoption">preloadMouseOverImages</div>]]></label>
|
1008 |
<comment>Preload all preview and mouseover images, possible values: false, true, 'oneByOne'</comment>
|
1009 |
-
<frontend_type>
|
1010 |
-
<source_model>axzoom/yesno</source_model>
|
1011 |
<sort_order>240</sort_order>
|
1012 |
<show_in_default>1</show_in_default>
|
1013 |
<show_in_website>1</show_in_website>
|
4 |
* Module: jQuery AJAX-ZOOM for Magento, /app/code/local/Ax/Zoom/etc/system.xml
|
5 |
* Copyright: Copyright (c) 2010-2015 Vadim Jacobi
|
6 |
* License Agreement: http://www.ajax-zoom.com/index.php?cid=download
|
7 |
+
* Version: 1.0.9
|
8 |
+
* Date: 2015-12-01
|
9 |
+
* Review: 2015-12-01
|
10 |
* URL: http://www.ajax-zoom.com
|
11 |
* Documentation: http://www.ajax-zoom.com/index.php?cid=modules&module=magento
|
12 |
*
|
1006 |
<preloadMouseOverImages>
|
1007 |
<label><![CDATA[<div class="notice-msg importantAZoption">preloadMouseOverImages</div>]]></label>
|
1008 |
<comment>Preload all preview and mouseover images, possible values: false, true, 'oneByOne'</comment>
|
1009 |
+
<frontend_type>text</frontend_type>
|
|
|
1010 |
<sort_order>240</sort_order>
|
1011 |
<show_in_default>1</show_in_default>
|
1012 |
<show_in_website>1</show_in_website>
|
app/code/local/Ax/Zoom/sql/axzoom_setup/install-0.0.1.php
CHANGED
@@ -3,9 +3,9 @@
|
|
3 |
* Module: jQuery AJAX-ZOOM for Magento, install-0.0.1.php
|
4 |
* Copyright: Copyright (c) 2010-2015 Vadim Jacobi
|
5 |
* License Agreement: http://www.ajax-zoom.com/index.php?cid=download
|
6 |
-
* Version: 1.0.
|
7 |
-
* Date: 2015-
|
8 |
-
* Review: 2015-
|
9 |
* URL: http://www.ajax-zoom.com
|
10 |
* Documentation: http://www.ajax-zoom.com/index.php?cid=modules&module=magento
|
11 |
*
|
@@ -35,13 +35,15 @@ foreach (array('360', 'cache', 'zoomgallery', 'zoommap', 'zoomthumb', 'zoomtiles
|
|
35 |
if (!file_exists(Mage::getBaseDir() . '/js/axzoom/axZm') && ini_get('allow_url_fopen') ) {
|
36 |
$remoteFileContents = file_get_contents('http://www.ajax-zoom.com/download.php?ver=latest');
|
37 |
$localFilePath = Mage::getBaseDir() . '/js/axzoom/pic/tmp/jquery.ajaxZoom_ver_latest.zip';
|
38 |
-
|
39 |
-
file_put_contents($localFilePath, $remoteFileContents);
|
40 |
-
|
41 |
-
$zip = new ZipArchive;
|
42 |
-
$res = $zip->open($localFilePath);
|
43 |
-
$zip->extractTo(Mage::getBaseDir() . '/js/axzoom/pic/tmp/');
|
44 |
-
$zip->close();
|
45 |
|
46 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
}
|
3 |
* Module: jQuery AJAX-ZOOM for Magento, install-0.0.1.php
|
4 |
* Copyright: Copyright (c) 2010-2015 Vadim Jacobi
|
5 |
* License Agreement: http://www.ajax-zoom.com/index.php?cid=download
|
6 |
+
* Version: 1.0.9
|
7 |
+
* Date: 2015-12-01
|
8 |
+
* Review: 2015-12-01
|
9 |
* URL: http://www.ajax-zoom.com
|
10 |
* Documentation: http://www.ajax-zoom.com/index.php?cid=modules&module=magento
|
11 |
*
|
35 |
if (!file_exists(Mage::getBaseDir() . '/js/axzoom/axZm') && ini_get('allow_url_fopen') ) {
|
36 |
$remoteFileContents = file_get_contents('http://www.ajax-zoom.com/download.php?ver=latest');
|
37 |
$localFilePath = Mage::getBaseDir() . '/js/axzoom/pic/tmp/jquery.ajaxZoom_ver_latest.zip';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
|
39 |
+
if ($remoteFileContents !== false){
|
40 |
+
file_put_contents($localFilePath, $remoteFileContents);
|
41 |
+
|
42 |
+
$zip = new ZipArchive;
|
43 |
+
$res = $zip->open($localFilePath);
|
44 |
+
$zip->extractTo(Mage::getBaseDir() . '/js/axzoom/pic/tmp/');
|
45 |
+
$zip->close();
|
46 |
+
|
47 |
+
rename(Mage::getBaseDir() . '/js/axzoom/pic/tmp/axZm', Mage::getBaseDir() . '/js/axzoom/axZm');
|
48 |
+
}
|
49 |
}
|
app/design/adminhtml/default/default/template/axzoom/tab.phtml
CHANGED
@@ -3,9 +3,9 @@
|
|
3 |
* Module: jQuery AJAX-ZOOM for Magento, /app/design/adminhtml/default/default/template/axzoom/tab.phtml
|
4 |
* Copyright: Copyright (c) 2010-2015 Vadim Jacobi
|
5 |
* License Agreement: http://www.ajax-zoom.com/index.php?cid=download
|
6 |
-
* Version: 1.0.
|
7 |
-
* Date: 2015-
|
8 |
-
* Review: 2015-
|
9 |
* URL: http://www.ajax-zoom.com
|
10 |
* Documentation: http://www.ajax-zoom.com/index.php?cid=modules&module=magento
|
11 |
*
|
3 |
* Module: jQuery AJAX-ZOOM for Magento, /app/design/adminhtml/default/default/template/axzoom/tab.phtml
|
4 |
* Copyright: Copyright (c) 2010-2015 Vadim Jacobi
|
5 |
* License Agreement: http://www.ajax-zoom.com/index.php?cid=download
|
6 |
+
* Version: 1.0.9
|
7 |
+
* Date: 2015-12-01
|
8 |
+
* Review: 2015-12-01
|
9 |
* URL: http://www.ajax-zoom.com
|
10 |
* Documentation: http://www.ajax-zoom.com/index.php?cid=modules&module=magento
|
11 |
*
|
app/design/adminhtml/default/default/template/axzoom/tab360-sets.phtml
CHANGED
@@ -3,9 +3,9 @@
|
|
3 |
* Module: jQuery AJAX-ZOOM for Magento, /app/design/adminhtml/default/default/template/axzoom/tab360-sets.phtml
|
4 |
* Copyright: Copyright (c) 2010-2015 Vadim Jacobi
|
5 |
* License Agreement: http://www.ajax-zoom.com/index.php?cid=download
|
6 |
-
* Version: 1.0.
|
7 |
-
* Date: 2015-
|
8 |
-
* Review: 2015-
|
9 |
* URL: http://www.ajax-zoom.com
|
10 |
* Documentation: http://www.ajax-zoom.com/index.php?cid=modules&module=magento
|
11 |
*
|
@@ -29,9 +29,55 @@ $conf = Mage::getStoreConfig('axzoom_options');
|
|
29 |
.hide {
|
30 |
display: none !important;
|
31 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
#imageTableSetsRows .active td {
|
33 |
background-color: #FFFFE0 !important;
|
34 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
</style>
|
36 |
|
37 |
|
@@ -39,12 +85,11 @@ $conf = Mage::getStoreConfig('axzoom_options');
|
|
39 |
<div id="product-images360sets" class="entry-edit">
|
40 |
<div class="entry-edit-head">
|
41 |
<h4 class="icon-head head-edit-form fieldset-legend"><?php echo $this->__('360/3D Views') ?></h4>
|
|
|
42 |
</div>
|
43 |
<div class="fieldset fieldset-wide" id="group_fields9">
|
44 |
<div class="hor-scroll">
|
45 |
-
|
46 |
-
<a class="link_add" href="#"> <i class="icon-plus"></i> <?php echo $this->__('Add a new 360/3D view') ?></a>
|
47 |
-
</div>
|
48 |
<br>
|
49 |
|
50 |
<div class="row" id="newForm" style="display:none">
|
@@ -60,7 +105,7 @@ $conf = Mage::getStoreConfig('axzoom_options');
|
|
60 |
</tr>
|
61 |
<?php if ($setsGroups): ?>
|
62 |
<tr>
|
63 |
-
<td colspan="3"><
|
64 |
</tr>
|
65 |
<tr>
|
66 |
<td class="label"><label for="existing"><?php echo $this->__('Add to existing 3D as next row') ?></label></td>
|
@@ -114,7 +159,7 @@ $conf = Mage::getStoreConfig('axzoom_options');
|
|
114 |
<td></td>
|
115 |
<td>
|
116 |
<button type="button" class="scalable save save_set" >
|
117 |
-
<span
|
118 |
</button>
|
119 |
</td>
|
120 |
<td></td>
|
@@ -125,13 +170,13 @@ $conf = Mage::getStoreConfig('axzoom_options');
|
|
125 |
<br>
|
126 |
<div class="row">
|
127 |
<div class="grid">
|
128 |
-
<table class="data border" id="imageTableSets" >
|
129 |
<thead>
|
130 |
<tr class="headings">
|
131 |
-
<th><?php echo $this->__('Cover Image') ?></th>
|
132 |
-
<th><?php echo $this->__('Name') ?></th>
|
133 |
-
<th><?php echo $this->__('Active') ?></th>
|
134 |
-
<th class="last" style="width:240px;"><?php echo $this->__('Actions') ?></th>
|
135 |
</tr>
|
136 |
</thead>
|
137 |
<tbody id="imageTableSetsRows">
|
@@ -139,23 +184,23 @@ $conf = Mage::getStoreConfig('axzoom_options');
|
|
139 |
</table>
|
140 |
</div>
|
141 |
|
142 |
-
<table id="lineSet" style="display:none;">
|
143 |
<tr id="set_id" data-group="group_id">
|
144 |
<td><img src="../modules/ajaxzoom/views/img/image_path.gif" alt="legend" title="legend" class="img-thumbnail" /></td>
|
145 |
<td>legend</td>
|
146 |
<td>
|
147 |
<span class="switch prestashop-switch fixed-width-lg hide_class switch-status">
|
148 |
<input type="radio" name="status_field" id="status_field_on" value="1" checked_on />
|
149 |
-
<label class="t" for="status_field_on"><?php echo $this->__('Yes') ?></label>
|
150 |
<input type="radio" name="status_field" id="status_field_off" value="0" checked_off />
|
151 |
-
<label class="t" for="status_field_off"><?php echo $this->__('No') ?></label>
|
152 |
<a class="slide-button btn"></a>
|
153 |
</span>
|
154 |
</td>
|
155 |
<td>
|
156 |
-
<button class="delete_set scalable delete"
|
157 |
-
<button class="images_set scalable"
|
158 |
-
<button class="scalable preview_set hide_class"
|
159 |
</td>
|
160 |
</tr>
|
161 |
</table>
|
@@ -252,7 +297,8 @@ $conf = Mage::getStoreConfig('axzoom_options');
|
|
252 |
setLine(data.id_360set, data.path, "", data.name, data.status, data.id_360);
|
253 |
}
|
254 |
|
255 |
-
$('.link_add').find('i').removeClass('icon-minus').addClass('icon-plus');
|
|
|
256 |
$('#newForm').hide();
|
257 |
$('#set_name').val('');
|
258 |
$('#existing').val('');
|
@@ -294,9 +340,11 @@ $conf = Mage::getStoreConfig('axzoom_options');
|
|
294 |
|
295 |
if(icon.hasClass('icon-plus')) {
|
296 |
icon.removeClass('icon-plus').addClass('icon-minus');
|
|
|
297 |
$('#newForm').show();
|
298 |
} else {
|
299 |
icon.removeClass('icon-minus').addClass('icon-plus');
|
|
|
300 |
$('#newForm').hide();
|
301 |
}
|
302 |
});
|
3 |
* Module: jQuery AJAX-ZOOM for Magento, /app/design/adminhtml/default/default/template/axzoom/tab360-sets.phtml
|
4 |
* Copyright: Copyright (c) 2010-2015 Vadim Jacobi
|
5 |
* License Agreement: http://www.ajax-zoom.com/index.php?cid=download
|
6 |
+
* Version: 1.0.9
|
7 |
+
* Date: 2015-12-01
|
8 |
+
* Review: 2015-12-01
|
9 |
* URL: http://www.ajax-zoom.com
|
10 |
* Documentation: http://www.ajax-zoom.com/index.php?cid=modules&module=magento
|
11 |
*
|
29 |
.hide {
|
30 |
display: none !important;
|
31 |
}
|
32 |
+
|
33 |
+
#set_name{
|
34 |
+
width: 278px;
|
35 |
+
}
|
36 |
+
|
37 |
+
#save_set{
|
38 |
+
margin-top: 10px;
|
39 |
+
}
|
40 |
+
|
41 |
#imageTableSetsRows .active td {
|
42 |
background-color: #FFFFE0 !important;
|
43 |
}
|
44 |
+
|
45 |
+
#imageTableSetsRows .images_set>span {
|
46 |
+
padding-left: 20px;
|
47 |
+
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAb1BMVEUAAADo6Ojx8fHw8PDx8fHy8vLv7+/x8fH39/fw8PD6+vr7+/v29vb6+vr7+/v4+Pj8/Pz9/f37+/v8/Pz8/Pz+/v79/f39/f39/f39/f37+/v+/v7+/v7+/v7+/v79/f39/f3+/v79/f3+/v7////JrJzFAAAAInRSTlMAAgQKDBAYGiIuNDY4OkpaaHCNj6Glr7fL09/l7e/x+/39QQhj+gAAAF9JREFUeNqNztcOgCAMQNE6cOPeIK7+/zdKBEHfvEmT5qQPhT+tzLTfMCt35bAX+EX2hWCsiQUC4MWhvUh4Q+ViIF0QBYXIeaBFmRjOKTeg6zWUna5SsHGT+vRAG/zoAstNCsH1/nWyAAAAAElFTkSuQmCC);
|
48 |
+
background-repeat: no-repeat;
|
49 |
+
}
|
50 |
+
#imageTableSetsRows .preview_set>span {
|
51 |
+
padding-left: 20px;
|
52 |
+
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAA8klEQVQoU43MoUsEYRAF8Mclg4hsMB0iF8QgIqZDLi5m8yEGEf8CwyFWg4gYRIxy0b/gohhNJrkkKmK6tLret9/OzPsMG2TXvcM3ZYb3Y4D/Z9y0Z5Ni9PBvvcChXha7dfS+Wkf2GIKdFRc3K+Bz1h4YGGR3AmBXB1ns24Br+U46p6t6VwHSB5IZvWUIgV+yl7ZqgJ4wybfdop7T/FoJhK70ARvqKQC8NuxNj2s+2JNeAMCoYR/aqwF6RCf7fkNvaNlyCUjMF14n83pFYaAxSPkD4GPZcetAGo1Xvpt8p+VbmJy8Tc9RtjSFyIENXDQF/OYHw2GYt0Xo/PcAAAAASUVORK5CYII=);
|
53 |
+
background-repeat: no-repeat;
|
54 |
+
}
|
55 |
+
|
56 |
+
#file360-add-button span{
|
57 |
+
padding-left: 20px;
|
58 |
+
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAulBMVEUAAADj4+Pi4uLk5OTm5ubn5+fo6Ojy8vLn5+fv7+/w8PDo6Oj29vbv7+/29vb19fX39/f7+/v6+vr8/Pz7+/v+/v77+/v8/Pz8/Pz7+/v7+/v8/Pz9/f38/Pz9/f38/Pz8/Pz9/f37+/v9/f39/f38/Pz9/f38/Pz9/f3+/v7////7+/v8/Pz9/f39/f39/f39/f39/f39/f39/f38/Pz8/Pz9/f39/f3+/v7+/v79/f3+/v7+/v7///84WsHxAAAAPHRSTlMAAgQEBAQEBAYIDBAYHBweLD5ESlBgbnJ4h42PkZmdn6Ghp6eztbm7u729y8vP1dvd3+Hp7e/v8fP3+f27bAlAAAAAjklEQVR42mXIxwKCMBRE0WfvqIiKYseCFWyAZvL/v+WLISvurOZQvsPNtNMAdwQJ1TcDfy11Gbgz01jDdGOaaACkmvzs5xr0xbZt9a0/+McTb9FcCYhlg2EwVFU9xLUYHoOQ3L2URhc6RykDVNcWOmWqdMHwVBAXQ7zphZChUFeRI5JeIhwGkx08Apvy/QCdyxpVfEL2sAAAAABJRU5ErkJggg==);
|
59 |
+
background-repeat: no-repeat;
|
60 |
+
}
|
61 |
+
|
62 |
+
.link_add{
|
63 |
+
margin-top: 2px;
|
64 |
+
margin-bottom: 2px;
|
65 |
+
}
|
66 |
+
|
67 |
+
.link_add span{
|
68 |
+
padding-left: 20px;
|
69 |
+
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAFVBMVEUAAAD///////////////////////9Iz20EAAAABnRSTlMAMjxaYmqUPYFrAAAAKElEQVQI12NgwAvEknAwGAXNUgQFgAy2NCBIQGYwKbmlKing144TAABpqwir9l/p6wAAAABJRU5ErkJggg==);
|
70 |
+
background-repeat: no-repeat;
|
71 |
+
}
|
72 |
+
|
73 |
+
.link_add_opened span{
|
74 |
+
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAACVBMVEUAAAD9/f39/f0xxUhDAAAAA3RSTlMA1d8QVTrBAAAAFUlEQVR4AWMYOMAIB1ABJjgYOEcBABCrAB8vkuA9AAAAAElFTkSuQmCC);
|
75 |
+
}
|
76 |
+
|
77 |
+
|
78 |
+
#imageTableSets tr>td:nth-child(1){
|
79 |
+
width: 100px;
|
80 |
+
}
|
81 |
</style>
|
82 |
|
83 |
|
85 |
<div id="product-images360sets" class="entry-edit">
|
86 |
<div class="entry-edit-head">
|
87 |
<h4 class="icon-head head-edit-form fieldset-legend"><?php echo $this->__('360/3D Views') ?></h4>
|
88 |
+
<div class="right"><button class="link_add" href="#"> <i class="icon-plus"></i> <span><?php echo $this->__('Add a new 360/3D view') ?></span></button></div>
|
89 |
</div>
|
90 |
<div class="fieldset fieldset-wide" id="group_fields9">
|
91 |
<div class="hor-scroll">
|
92 |
+
|
|
|
|
|
93 |
<br>
|
94 |
|
95 |
<div class="row" id="newForm" style="display:none">
|
105 |
</tr>
|
106 |
<?php if ($setsGroups): ?>
|
107 |
<tr>
|
108 |
+
<td colspan="3"><span style="font-weight: bold; padding: 5px;"><?php echo $this->__('OR') ?></span></td>
|
109 |
</tr>
|
110 |
<tr>
|
111 |
<td class="label"><label for="existing"><?php echo $this->__('Add to existing 3D as next row') ?></label></td>
|
159 |
<td></td>
|
160 |
<td>
|
161 |
<button type="button" class="scalable save save_set" >
|
162 |
+
<span><?php echo $this->__('Add / Import') ?></span>
|
163 |
</button>
|
164 |
</td>
|
165 |
<td></td>
|
170 |
<br>
|
171 |
<div class="row">
|
172 |
<div class="grid">
|
173 |
+
<table class="data border" id="imageTableSets" cellspacing="0">
|
174 |
<thead>
|
175 |
<tr class="headings">
|
176 |
+
<th><?php echo $this->__('Cover Image'); ?></th>
|
177 |
+
<th><?php echo $this->__('Name'); ?></th>
|
178 |
+
<th><?php echo $this->__('Active'); ?></th>
|
179 |
+
<th class="last" style="width:240px;"><?php echo $this->__('Actions'); ?></th>
|
180 |
</tr>
|
181 |
</thead>
|
182 |
<tbody id="imageTableSetsRows">
|
184 |
</table>
|
185 |
</div>
|
186 |
|
187 |
+
<table id="lineSet" style="display:none;" cellspacing="0">
|
188 |
<tr id="set_id" data-group="group_id">
|
189 |
<td><img src="../modules/ajaxzoom/views/img/image_path.gif" alt="legend" title="legend" class="img-thumbnail" /></td>
|
190 |
<td>legend</td>
|
191 |
<td>
|
192 |
<span class="switch prestashop-switch fixed-width-lg hide_class switch-status">
|
193 |
<input type="radio" name="status_field" id="status_field_on" value="1" checked_on />
|
194 |
+
<label class="t" for="status_field_on"><?php echo $this->__('Yes'); ?></label>
|
195 |
<input type="radio" name="status_field" id="status_field_off" value="0" checked_off />
|
196 |
+
<label class="t" for="status_field_off"><?php echo $this->__('No'); ?></label>
|
197 |
<a class="slide-button btn"></a>
|
198 |
</span>
|
199 |
</td>
|
200 |
<td>
|
201 |
+
<button class="delete_set scalable delete"><span><?php echo $this->__('Delete'); ?></span></button>
|
202 |
+
<button class="images_set scalable"><span><?php echo $this->__('Images'); ?></span></button>
|
203 |
+
<button class="scalable preview_set hide_class"><span><?php echo $this->__('Preview'); ?></span></button>
|
204 |
</td>
|
205 |
</tr>
|
206 |
</table>
|
297 |
setLine(data.id_360set, data.path, "", data.name, data.status, data.id_360);
|
298 |
}
|
299 |
|
300 |
+
$('.link_add').removeClass('link_add_opened').find('i').removeClass('icon-minus').addClass('icon-plus');
|
301 |
+
|
302 |
$('#newForm').hide();
|
303 |
$('#set_name').val('');
|
304 |
$('#existing').val('');
|
340 |
|
341 |
if(icon.hasClass('icon-plus')) {
|
342 |
icon.removeClass('icon-plus').addClass('icon-minus');
|
343 |
+
$(this).addClass('link_add_opened')
|
344 |
$('#newForm').show();
|
345 |
} else {
|
346 |
icon.removeClass('icon-minus').addClass('icon-plus');
|
347 |
+
$(this).removeClass('link_add_opened')
|
348 |
$('#newForm').hide();
|
349 |
}
|
350 |
});
|
app/design/adminhtml/default/default/template/axzoom/tab360-settings.phtml
CHANGED
@@ -3,9 +3,9 @@
|
|
3 |
* Module: jQuery AJAX-ZOOM for Magento, /app/design/adminhtml/default/default/template/axzoom/tab360-settings.phtml
|
4 |
* Copyright: Copyright (c) 2010-2015 Vadim Jacobi
|
5 |
* License Agreement: http://www.ajax-zoom.com/index.php?cid=download
|
6 |
-
* Version: 1.0.
|
7 |
-
* Date: 2015-
|
8 |
-
* Review: 2015-
|
9 |
* URL: http://www.ajax-zoom.com
|
10 |
* Documentation: http://www.ajax-zoom.com/index.php?cid=modules&module=magento
|
11 |
*
|
@@ -42,8 +42,17 @@ if ($product->isConfigurable()) {
|
|
42 |
}
|
43 |
|
44 |
#pairRows textarea{
|
45 |
-
resize:vertical;
|
46 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
</style>
|
48 |
|
49 |
|
@@ -53,7 +62,7 @@ if ($product->isConfigurable()) {
|
|
53 |
</div>
|
54 |
<div class="fieldset fieldset-wide" id="group_fields9">
|
55 |
<div class="hor-scroll">
|
56 |
-
<table cellspacing="0" class="form-list">
|
57 |
<tbody>
|
58 |
<tr>
|
59 |
<td class="label"><label for="meta_title"><?php echo $this->__('AJAX ZOOM enabled for this product\'s detail view') ?></label></td>
|
@@ -78,7 +87,7 @@ if ($product->isConfigurable()) {
|
|
78 |
</div>
|
79 |
<div class="fieldset fieldset-wide" id="group_fields9">
|
80 |
<div class="hor-scroll">
|
81 |
-
<table cellspacing="0" class="form-list">
|
82 |
<tbody>
|
83 |
<tr>
|
84 |
<td class="label"><label for="meta_title"><?php echo $this->__('360/3D View') ?></label></td>
|
@@ -91,7 +100,7 @@ if ($product->isConfigurable()) {
|
|
91 |
<select id="id_360" name="id_360" style="min-width: 100px">
|
92 |
<option value=""><?php echo $this->__('Select') ?></option>
|
93 |
<?php foreach ($groups as $group): ?>
|
94 |
-
<option value="<?php echo $group['id_360'] ?>" data-settings="<?php echo urlencode($group['settings']) ?>" data-combinations="[<?php echo urlencode($group['combinations']) ?>]"><?php echo $group['name'] ?></option>
|
95 |
<?php endforeach; ?>
|
96 |
</select>
|
97 |
</td>
|
@@ -100,7 +109,7 @@ if ($product->isConfigurable()) {
|
|
100 |
<tr id="pairs" style="display:none;">
|
101 |
<td class="label"><label for="meta_title"><?php echo $this->__('Settings') ?></label></td>
|
102 |
<td class="value">
|
103 |
-
<table>
|
104 |
<thead>
|
105 |
<tr>
|
106 |
<th><?php echo $this->__('Name') ?></th>
|
@@ -116,14 +125,17 @@ if ($product->isConfigurable()) {
|
|
116 |
<td colspan="4">
|
117 |
<div class="row_">
|
118 |
<button class="scalable add link_add_option">
|
119 |
-
<span><span><span><?php echo $this->__('Add an option') ?></span></span></span>
|
120 |
</button>
|
121 |
</div>
|
|
|
|
|
|
|
122 |
</td>
|
123 |
</tr>
|
124 |
</tfoot>
|
125 |
</table>
|
126 |
-
<table id="pairTemplate" style="display: none">
|
127 |
<tr>
|
128 |
<td><input type="text" name="name[]" value="name_placeholder" class="pair-names"></td>
|
129 |
<td> : </td>
|
3 |
* Module: jQuery AJAX-ZOOM for Magento, /app/design/adminhtml/default/default/template/axzoom/tab360-settings.phtml
|
4 |
* Copyright: Copyright (c) 2010-2015 Vadim Jacobi
|
5 |
* License Agreement: http://www.ajax-zoom.com/index.php?cid=download
|
6 |
+
* Version: 1.0.9
|
7 |
+
* Date: 2015-12-01
|
8 |
+
* Review: 2015-12-01
|
9 |
* URL: http://www.ajax-zoom.com
|
10 |
* Documentation: http://www.ajax-zoom.com/index.php?cid=modules&module=magento
|
11 |
*
|
42 |
}
|
43 |
|
44 |
#pairRows textarea{
|
45 |
+
resize: vertical;
|
46 |
}
|
47 |
+
|
48 |
+
#pairRows td:nth-child(3){
|
49 |
+
padding-right: 10px;
|
50 |
+
}
|
51 |
+
|
52 |
+
.link_add_option{
|
53 |
+
margin-top: 5px;
|
54 |
+
}
|
55 |
+
|
56 |
</style>
|
57 |
|
58 |
|
62 |
</div>
|
63 |
<div class="fieldset fieldset-wide" id="group_fields9">
|
64 |
<div class="hor-scroll">
|
65 |
+
<table cellspacing="0" class="form-list" cellspacing="0">
|
66 |
<tbody>
|
67 |
<tr>
|
68 |
<td class="label"><label for="meta_title"><?php echo $this->__('AJAX ZOOM enabled for this product\'s detail view') ?></label></td>
|
87 |
</div>
|
88 |
<div class="fieldset fieldset-wide" id="group_fields9">
|
89 |
<div class="hor-scroll">
|
90 |
+
<table cellspacing="0" class="form-list" cellspacing="0">
|
91 |
<tbody>
|
92 |
<tr>
|
93 |
<td class="label"><label for="meta_title"><?php echo $this->__('360/3D View') ?></label></td>
|
100 |
<select id="id_360" name="id_360" style="min-width: 100px">
|
101 |
<option value=""><?php echo $this->__('Select') ?></option>
|
102 |
<?php foreach ($groups as $group): ?>
|
103 |
+
<option value="<?php echo $group['id_360']; ?>" data-settings="<?php echo urlencode($group['settings']) ?>" data-combinations="[<?php echo urlencode($group['combinations']) ?>]"><?php echo $group['name'] ?></option>
|
104 |
<?php endforeach; ?>
|
105 |
</select>
|
106 |
</td>
|
109 |
<tr id="pairs" style="display:none;">
|
110 |
<td class="label"><label for="meta_title"><?php echo $this->__('Settings') ?></label></td>
|
111 |
<td class="value">
|
112 |
+
<table cellspacing="0">
|
113 |
<thead>
|
114 |
<tr>
|
115 |
<th><?php echo $this->__('Name') ?></th>
|
125 |
<td colspan="4">
|
126 |
<div class="row_">
|
127 |
<button class="scalable add link_add_option">
|
128 |
+
<span><span><span><?php echo $this->__('Add an option'); ?></span></span></span>
|
129 |
</button>
|
130 |
</div>
|
131 |
+
<p class="note">
|
132 |
+
<?php echo $this->__('AJAX-ZOOM has several hundreds options. Most of them can be set dynamically over JS and here, some need to be set in the config file. The most important are already listed above but you can add more if needed! For more options directly related to 360 please refere to AJAX-ZOOM documentation.'); ?>
|
133 |
+
</p>
|
134 |
</td>
|
135 |
</tr>
|
136 |
</tfoot>
|
137 |
</table>
|
138 |
+
<table id="pairTemplate" style="display: none" cellspacing="0">
|
139 |
<tr>
|
140 |
<td><input type="text" name="name[]" value="name_placeholder" class="pair-names"></td>
|
141 |
<td> : </td>
|
app/design/adminhtml/default/default/template/axzoom/tab360.phtml
CHANGED
@@ -3,9 +3,9 @@
|
|
3 |
* Module: jQuery AJAX-ZOOM for Magento, /app/design/adminhtml/default/default/template/axzoom/tab360.phtml
|
4 |
* Copyright: Copyright (c) 2010-2015 Vadim Jacobi
|
5 |
* License Agreement: http://www.ajax-zoom.com/index.php?cid=download
|
6 |
-
* Version: 1.0.
|
7 |
-
* Date: 2015-
|
8 |
-
* Review: 2015-
|
9 |
* URL: http://www.ajax-zoom.com
|
10 |
* Documentation: http://www.ajax-zoom.com/index.php?cid=modules&module=magento
|
11 |
*
|
@@ -19,7 +19,7 @@
|
|
19 |
|
20 |
<input type="hidden" name="id_360set" id="id_360set" value="" />
|
21 |
|
22 |
-
<div id="product-images360" class="entry-edit" style="display:none">
|
23 |
<div class="entry-edit-head">
|
24 |
<h4 class="icon-head head-edit-form fieldset-legend"><?php echo $this->__('Images') ?></h4>
|
25 |
</div>
|
@@ -29,18 +29,13 @@
|
|
29 |
|
30 |
<div class="row">
|
31 |
<div class="form-group">
|
32 |
-
<label class="control-label col-lg-3 file_upload_label">
|
33 |
-
<span class="label-tooltip" data-toggle="tooltip" title="<?php echo $this->__('Format: JPG, GIF, PNG. Filesize: %s MB max', $maxImageSize) ?>">
|
34 |
-
<?php echo $this->__('Add a new image to this image set') ?>
|
35 |
-
</span>
|
36 |
-
</label>
|
37 |
<div class="col-lg-9">
|
38 |
<?php require "uploader.phtml"; ?>
|
39 |
</div>
|
40 |
</div>
|
41 |
</div>
|
42 |
<div class="grid">
|
43 |
-
<table class="data border" id="imageTable360">
|
44 |
<thead>
|
45 |
<tr class="headings">
|
46 |
<th><?php echo $this->__('Image') ?></th>
|
@@ -51,20 +46,20 @@
|
|
51 |
</tbody>
|
52 |
</table>
|
53 |
</div>
|
54 |
-
<table id="lineType360" style="display:none;">
|
55 |
<tr id="image_id">
|
56 |
<td>
|
57 |
<img src="<?php echo Mage::getModel('axzoom/ax360')->rootFolder() ?>js/axzoom/image_path.gif" alt="legend" title="legend" class="img-thumbnail" />
|
58 |
</td>
|
59 |
<td style="width:75px;">
|
60 |
<button type="button" class="delete_product_image360 scalable delete" >
|
61 |
-
<span
|
62 |
</button>
|
63 |
</td>
|
64 |
</tr>
|
65 |
</table>
|
66 |
<div class="panel-footer">
|
67 |
-
<button class="btn_cancel"><?php echo $this->__('Cancel') ?></button>
|
68 |
</div>
|
69 |
</div>
|
70 |
</div>
|
@@ -128,6 +123,7 @@
|
|
128 |
{
|
129 |
e.preventDefault();
|
130 |
$('#product-images360').hide();
|
|
|
131 |
});
|
132 |
|
133 |
|
3 |
* Module: jQuery AJAX-ZOOM for Magento, /app/design/adminhtml/default/default/template/axzoom/tab360.phtml
|
4 |
* Copyright: Copyright (c) 2010-2015 Vadim Jacobi
|
5 |
* License Agreement: http://www.ajax-zoom.com/index.php?cid=download
|
6 |
+
* Version: 1.0.9
|
7 |
+
* Date: 2015-12-01
|
8 |
+
* Review: 2015-12-01
|
9 |
* URL: http://www.ajax-zoom.com
|
10 |
* Documentation: http://www.ajax-zoom.com/index.php?cid=modules&module=magento
|
11 |
*
|
19 |
|
20 |
<input type="hidden" name="id_360set" id="id_360set" value="" />
|
21 |
|
22 |
+
<div id="product-images360" class="entry-edit" style="display: none">
|
23 |
<div class="entry-edit-head">
|
24 |
<h4 class="icon-head head-edit-form fieldset-legend"><?php echo $this->__('Images') ?></h4>
|
25 |
</div>
|
29 |
|
30 |
<div class="row">
|
31 |
<div class="form-group">
|
|
|
|
|
|
|
|
|
|
|
32 |
<div class="col-lg-9">
|
33 |
<?php require "uploader.phtml"; ?>
|
34 |
</div>
|
35 |
</div>
|
36 |
</div>
|
37 |
<div class="grid">
|
38 |
+
<table class="data border" id="imageTable360" cellspacing="0">
|
39 |
<thead>
|
40 |
<tr class="headings">
|
41 |
<th><?php echo $this->__('Image') ?></th>
|
46 |
</tbody>
|
47 |
</table>
|
48 |
</div>
|
49 |
+
<table id="lineType360" style="display:none;" cellspacing="0">
|
50 |
<tr id="image_id">
|
51 |
<td>
|
52 |
<img src="<?php echo Mage::getModel('axzoom/ax360')->rootFolder() ?>js/axzoom/image_path.gif" alt="legend" title="legend" class="img-thumbnail" />
|
53 |
</td>
|
54 |
<td style="width:75px;">
|
55 |
<button type="button" class="delete_product_image360 scalable delete" >
|
56 |
+
<span><?php echo $this->__('Delete this image') ?></span>
|
57 |
</button>
|
58 |
</td>
|
59 |
</tr>
|
60 |
</table>
|
61 |
<div class="panel-footer">
|
62 |
+
<button class="btn_cancel"><span><?php echo $this->__('Cancel') ?></span></button>
|
63 |
</div>
|
64 |
</div>
|
65 |
</div>
|
123 |
{
|
124 |
e.preventDefault();
|
125 |
$('#product-images360').hide();
|
126 |
+
$('#imageTableSetsRows tr').removeClass('active');
|
127 |
});
|
128 |
|
129 |
|
app/design/adminhtml/default/default/template/axzoom/uploader.phtml
CHANGED
@@ -3,9 +3,9 @@
|
|
3 |
* Module: jQuery AJAX-ZOOM for Magento, /app/design/adminhtml/default/default/template/axzoom/uploader.phtml
|
4 |
* Copyright: Copyright (c) 2010-2015 Vadim Jacobi
|
5 |
* License Agreement: http://www.ajax-zoom.com/index.php?cid=download
|
6 |
-
* Version: 1.0.
|
7 |
-
* Date: 2015-
|
8 |
-
* Review: 2015-
|
9 |
* URL: http://www.ajax-zoom.com
|
10 |
* Documentation: http://www.ajax-zoom.com/index.php?cid=modules&module=magento
|
11 |
*
|
@@ -20,7 +20,7 @@ $id = 'file360';
|
|
20 |
$name = 'file360';
|
21 |
$url = Mage::helper("adminhtml")->getUrl("axzoom/index/addProductImage360", array('id_product' => $productId));
|
22 |
$postMaxSize = return_bytes(ini_get('post_max_size'));
|
23 |
-
$maxFiles =
|
24 |
|
25 |
function return_bytes($val) {
|
26 |
$val = trim($val);
|
@@ -37,12 +37,59 @@ function return_bytes($val) {
|
|
37 |
}
|
38 |
?>
|
39 |
|
40 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
<div class="col-lg-12">
|
42 |
-
|
43 |
<button class="btn btn-default" data-style="expand-right" data-size="s" type="button" id="<?php echo $id ?>-add-button">
|
44 |
-
<i class="icon-folder-open"></i>
|
45 |
</button>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
</div>
|
47 |
</div>
|
48 |
<div class="well" style="display:none">
|
@@ -127,7 +174,7 @@ function return_bytes($val) {
|
|
127 |
|
128 |
}
|
129 |
}
|
130 |
-
$(data.context).find('button').remove();
|
131 |
}
|
132 |
},
|
133 |
}).on('fileuploadalways', function (e, data) {
|
@@ -138,6 +185,7 @@ function return_bytes($val) {
|
|
138 |
$('#<?php echo $id ?>-upload-button').unbind('click');
|
139 |
$('#<?php echo $id ?>-files-list').parent().hide();
|
140 |
}
|
|
|
141 |
}).on('fileuploadadd', function(e, data) {
|
142 |
if (typeof <?php echo $id ?>_max_files !== 'undefined') {
|
143 |
if (<?php echo $id ?>_total_files >= <?php echo $id ?>_max_files) {
|
@@ -147,10 +195,10 @@ function return_bytes($val) {
|
|
147 |
}
|
148 |
}
|
149 |
|
150 |
-
data.context = $('<div/>').addClass('form-group').appendTo($('#<?php echo $id ?>-files-list'));
|
151 |
var file_name = $('<span/>').append('<i class="icon-picture-o"></i> <strong>'+data.files[0].name+'</strong> ('+humanizeSize(data.files[0].size)+')').appendTo(data.context);
|
152 |
|
153 |
-
var button = $('<button/>').addClass('btn btn-default pull-right').prop('type', 'button').html('<i class="icon-trash"></i> Remove file').appendTo(data.context).on('click', function() {
|
154 |
<?php echo $id ?>_total_files--;
|
155 |
data.files = null;
|
156 |
|
@@ -169,20 +217,23 @@ function return_bytes($val) {
|
|
169 |
});
|
170 |
|
171 |
<?php echo $id ?>_total_files++;
|
|
|
172 |
}).on('fileuploadprocessalways', function (e, data) {
|
173 |
var index = data.index, file = data.files[index];
|
174 |
|
175 |
if (file.error) {
|
176 |
-
$('#<?php echo $id ?>-errors').append('<div class="form-group"><i class="icon-picture-o"></i> <strong>'+file.name+'</strong> ('+humanizeSize(file.size)+') : '+file.error+'</div>').parent().show();
|
177 |
$('#<?php echo $id ?>-files-list').html('').parent().hide();
|
178 |
$(data.context).find('button').trigger('click');
|
179 |
}
|
|
|
180 |
}).on('fileuploadsubmit', function (e, data) {
|
181 |
var params = new Object();
|
182 |
|
183 |
params['id_360set'] = $('#id_360set').val();
|
184 |
|
185 |
data.formData = params;
|
|
|
186 |
}).on('fileuploadstop', function (e, data) {
|
187 |
|
188 |
});
|
3 |
* Module: jQuery AJAX-ZOOM for Magento, /app/design/adminhtml/default/default/template/axzoom/uploader.phtml
|
4 |
* Copyright: Copyright (c) 2010-2015 Vadim Jacobi
|
5 |
* License Agreement: http://www.ajax-zoom.com/index.php?cid=download
|
6 |
+
* Version: 1.0.9
|
7 |
+
* Date: 2015-12-01
|
8 |
+
* Review: 2015-12-01
|
9 |
* URL: http://www.ajax-zoom.com
|
10 |
* Documentation: http://www.ajax-zoom.com/index.php?cid=modules&module=magento
|
11 |
*
|
20 |
$name = 'file360';
|
21 |
$url = Mage::helper("adminhtml")->getUrl("axzoom/index/addProductImage360", array('id_product' => $productId));
|
22 |
$postMaxSize = return_bytes(ini_get('post_max_size'));
|
23 |
+
$maxFiles = 120;
|
24 |
|
25 |
function return_bytes($val) {
|
26 |
$val = trim($val);
|
37 |
}
|
38 |
?>
|
39 |
|
40 |
+
<style type="text/css">
|
41 |
+
.file-row_az{
|
42 |
+
background-color: #fff;
|
43 |
+
border: 1px solid #ccc;
|
44 |
+
margin: 0.5em 0 0.5em 0;
|
45 |
+
padding: 0.5em 0.6em;
|
46 |
+
}
|
47 |
+
|
48 |
+
#file360-upload-button{
|
49 |
+
margin-bottom: 10px;
|
50 |
+
}
|
51 |
+
|
52 |
+
#file360-upload-button span{
|
53 |
+
padding-left: 20px;
|
54 |
+
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAflBMVEUAAADo6Ojs7Ozs7Ozv7+/n5+f19fX39/f19fX5+fnw8PD4+Pj5+fn6+vr7+/v7+/v7+/v6+vr6+vr8/Pz8/Pz8/Pz6+vr8/Pz7+/v8/Pz8/Pz9/f39/f39/f39/f39/f38/Pz9/f3+/v78/Pz+/v7+/v7+/v7+/v7+/v7///8NhBGQAAAAKXRSTlMAAgIEBAgMDhIcHh4mNjhGSlhgfH6Bh4mTl5+rrbHDzdPV19/n7/P3/SZ462sAAABbSURBVHjajYhHCoAwAARj7733Xvb/HzQEjXoRB5ZlhvzG9d7ubLv/dGMGFvt2tQNl1C4XajAa8Qx62y/AOg0W4ZRARe8jZEDBJaSTTFOmF7CQK5yUhSjhxOQHBxDGB7f22f/1AAAAAElFTkSuQmCC);
|
55 |
+
background-repeat: no-repeat;
|
56 |
+
}
|
57 |
+
|
58 |
+
#file360-files-list .file-row_az button>span{
|
59 |
+
padding-left: 20px;
|
60 |
+
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAVFBMVEUAAAD////s7Oz4+Pj29vbt7e339/f09PT4+Pj4+Pj4+Pj5+fn6+vr7+/v6+vr5+fn9/f38/Pz8/Pz8/Pz8/Pz7+/v9/f39/f38/Pz8/Pz8/Pz////7AOp8AAAAG3RSTlMAAhomKCwwOEZITFRUVmh2eoOHjY+Vmaevs8vqUEvPAAAASklEQVR4AaXIRw6AMAwEQNN7dyjs//9JFFYWN5CY48hHJbxWKFXd4R2qeYgKppEgMnLrTxoYE7Ya6FY4iyUGkvFfuAwo5kcQ48UFs6wJErHwwLUAAAAASUVORK5CYII=);
|
61 |
+
background-repeat: no-repeat;
|
62 |
+
}
|
63 |
+
|
64 |
+
.btn_cancel span{
|
65 |
+
padding-left: 20px;
|
66 |
+
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAA+ElEQVQoz4XRzy5DQRQH4FOJSrpvqok9a7HlHYQgEhYa7yEa+hQ8Ak/hT6RB4xHsJG57y01IxGcxtxcbZjYzv/kyZ3KmJv4eU9WqFYcxiNd4i4c4jnaVS3PdCLkL13LkttJJOl71gRN1IdTty3zanICmocyTwqLJjQueDc0mcICOFe8ezVVkD90E7o3VhV3caJSgbuwugTdXZdjDmVq5u1QkULgso5pz9CqQJ3BblgihoY+d3yW66FSPm/Po3bIODhKYNZSZr8iSwpPMUHPSqA2fMvumhTDjFB/WvjsZto2Ru9I3xsjGz1aH0NYz8KIwcKQ1yWv/ffcXQSMlGp3SsFgAAAAASUVORK5CYII=);
|
67 |
+
background-repeat: no-repeat;
|
68 |
+
}
|
69 |
+
|
70 |
+
.noteUpload_az{
|
71 |
+
background: rgba(0, 0, 0, 0) url("images/note_bg.gif") no-repeat scroll 1px 6px;
|
72 |
+
font-size: 11px;
|
73 |
+
margin: 0;
|
74 |
+
padding: 0 0 0 13px;
|
75 |
+
}
|
76 |
+
</style>
|
77 |
+
|
78 |
+
<div class="form-group clear">
|
79 |
<div class="col-lg-12">
|
80 |
+
|
81 |
<button class="btn btn-default" data-style="expand-right" data-size="s" type="button" id="<?php echo $id ?>-add-button">
|
82 |
+
<i class="icon-folder-open"></i> <span><?php echo $this->__('Select local images to add...') ?></span>
|
83 |
</button>
|
84 |
+
<button class="btn_cancel" style="margin-left: 5px"><span><?php echo $this->__('Cancel') ?></span></button>
|
85 |
+
<input id="<?php echo $id ?>" type="file" name="<?php echo $name ?>[]" data-url="<?php echo $url ?>" multiple="multiple" style="width:0px;height:0px;" />
|
86 |
+
|
87 |
+
<div class="form-list">
|
88 |
+
<p class="note" style="margin-bottom: 15px">
|
89 |
+
<?php echo $this->__('Add new image(s) to this image set. '); ?>
|
90 |
+
<?php echo $this->__('Format: JPG, GIF, PNG. Filesize: %s MB max (for each image)', intval($maxImageSize)); ?>
|
91 |
+
</p>
|
92 |
+
</div>
|
93 |
</div>
|
94 |
</div>
|
95 |
<div class="well" style="display:none">
|
174 |
|
175 |
}
|
176 |
}
|
177 |
+
$(data.context).find('button').parent().remove();
|
178 |
}
|
179 |
},
|
180 |
}).on('fileuploadalways', function (e, data) {
|
185 |
$('#<?php echo $id ?>-upload-button').unbind('click');
|
186 |
$('#<?php echo $id ?>-files-list').parent().hide();
|
187 |
}
|
188 |
+
|
189 |
}).on('fileuploadadd', function(e, data) {
|
190 |
if (typeof <?php echo $id ?>_max_files !== 'undefined') {
|
191 |
if (<?php echo $id ?>_total_files >= <?php echo $id ?>_max_files) {
|
195 |
}
|
196 |
}
|
197 |
|
198 |
+
data.context = $('<div/>').addClass('form-group clear file-row_az').appendTo($('#<?php echo $id ?>-files-list'));
|
199 |
var file_name = $('<span/>').append('<i class="icon-picture-o"></i> <strong>'+data.files[0].name+'</strong> ('+humanizeSize(data.files[0].size)+')').appendTo(data.context);
|
200 |
|
201 |
+
var button = $('<button/>').addClass('btn btn-default pull-right').prop('type', 'button').html('<i class="icon-trash"></i> <span><?php echo $this->__('Remove file') ?></span>').appendTo(data.context).on('click', function() {
|
202 |
<?php echo $id ?>_total_files--;
|
203 |
data.files = null;
|
204 |
|
217 |
});
|
218 |
|
219 |
<?php echo $id ?>_total_files++;
|
220 |
+
|
221 |
}).on('fileuploadprocessalways', function (e, data) {
|
222 |
var index = data.index, file = data.files[index];
|
223 |
|
224 |
if (file.error) {
|
225 |
+
$('#<?php echo $id ?>-errors').append('<div class="form-group clear"><i class="icon-picture-o"></i> <strong>'+file.name+'</strong> ('+humanizeSize(file.size)+') : '+file.error+'</div>').parent().show();
|
226 |
$('#<?php echo $id ?>-files-list').html('').parent().hide();
|
227 |
$(data.context).find('button').trigger('click');
|
228 |
}
|
229 |
+
|
230 |
}).on('fileuploadsubmit', function (e, data) {
|
231 |
var params = new Object();
|
232 |
|
233 |
params['id_360set'] = $('#id_360set').val();
|
234 |
|
235 |
data.formData = params;
|
236 |
+
|
237 |
}).on('fileuploadstop', function (e, data) {
|
238 |
|
239 |
});
|
app/etc/modules/Ax_Zoom.xml
CHANGED
@@ -4,9 +4,9 @@
|
|
4 |
* Module: jQuery AJAX-ZOOM for Magento, /app/etc/modules/Ax_Zoom.xml
|
5 |
* Copyright: Copyright (c) 2010-2015 Vadim Jacobi
|
6 |
* License Agreement: http://www.ajax-zoom.com/index.php?cid=download
|
7 |
-
* Version: 1.0.
|
8 |
-
* Date: 2015-
|
9 |
-
* Review: 2015-
|
10 |
* URL: http://www.ajax-zoom.com
|
11 |
* Documentation: http://www.ajax-zoom.com/index.php?cid=modules&module=magento
|
12 |
*
|
4 |
* Module: jQuery AJAX-ZOOM for Magento, /app/etc/modules/Ax_Zoom.xml
|
5 |
* Copyright: Copyright (c) 2010-2015 Vadim Jacobi
|
6 |
* License Agreement: http://www.ajax-zoom.com/index.php?cid=download
|
7 |
+
* Version: 1.0.9
|
8 |
+
* Date: 2015-12-01
|
9 |
+
* Review: 2015-12-01
|
10 |
* URL: http://www.ajax-zoom.com
|
11 |
* Documentation: http://www.ajax-zoom.com/index.php?cid=modules&module=magento
|
12 |
*
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>AJAX_ZOOM</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.ajax-zoom.com/index.php?cid=download">Commercial, demoware</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Responsive product detail view mousehover zoom extension with optional 360° spins or multilevel 3D</summary>
|
10 |
<description>Responsive, jQuery based mouse over zoom for viewing high resolution product images and optionally 360° spins or multilevel 3D. Image pyramid / tiles view in responsive Fancybox or full screen on click. Upload or import 360° images over admin interface. Optional responsive thumbnails slider integration. Instant (on-the-fly) generation of all thumbnails. Works great on touch-enabled devices. Free to download, install and test.</description>
|
11 |
-
<notes>
|
12 |
<authors><author><name>AJAX-ZOOM</name><user>vadus</user><email>support@ajax-zoom.com</email></author></authors>
|
13 |
-
<date>2015-
|
14 |
-
<time>
|
15 |
-
<contents><target name="magelocal"><dir><dir name="Ax"><dir><dir name="Zoom"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="License.php" hash="b45fed73aec988d00ca1032656b9ae5b"/></dir></dir></dir><dir name="Tabs"><file name="Tabid.php" hash="5e1b97911f28d1dc5d5fac6e59ca9c13"/></dir><file name="Tabs.php" hash="40a78742e8b28cea4877e305211a9c6c"/></dir></dir><dir name="Helper"><file name="Data.php" hash="0aebfbfed16082f2a04697bbf085a2f9"/><file name="Head.php" hash="aac81557eb8726c7cd2b936873c52dbc"/></dir><dir name="Model"><file name="Ax360.php" hash="4f023c2c5cfeb66e5f2b63f9447f34c3"/><file name="Ax360set.php" hash="465975902e4ec60cb974f8e6cb30b2fa"/><file name="Axproducts.php" hash="0b425dcdf48578e727829112e6cacfd0"/><file name="Galleryposition.php" hash="1fe09377be47053af14d556fbb494d29"/><file name="Observer.php" hash="6f2ef3a1b7e67582d4acdc4c7ecedeb7"/><file name="Position.php" hash="576c9eccfc8e222588e0016fd8894ac7"/><dir name="Resource"><dir name="Ax360"><file name="Collection.php" hash="48d7f85f932259fdd06a62f15068a853"/></dir><file name="Ax360.php" hash="ad69211cd904f734019946ece44c07c0"/><dir name="Ax360set"><file name="Collection.php" hash="614398a735db3e8aa9de460c89c1b038"/></dir><file name="Ax360set.php" hash="e8c94cfc8d75c19e4762c3afad93b187"/><dir name="Axproducts"><file name="Collection.php" hash="15f673a08dab33c7a77f25b4c6641946"/></dir><file name="Axproducts.php" hash="93b114dd25c5e3fe501a78040ce2b36c"/></dir><file name="Words.php" hash="3c0d65a98cdaf81606f77d253c3256ae"/><file name="Yesno.php" hash="8cea5e1c9d6110c5cd54c6ffeda50382"/></dir><dir name="controllers"><file name="IndexController.php" hash="c2c9f716eb54529e7844f988c5b3f2fd"/></dir><dir name="etc"><file name="config.xml" hash="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.2.1</min><max>5.6.99</max></php><extension><name>ionCube Loader</name><min/><max/></extension><extension><name>zip</name><min/><max/></extension></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>AJAX_ZOOM</name>
|
4 |
+
<version>1.0.9</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.ajax-zoom.com/index.php?cid=download">Commercial, demoware</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Responsive product detail view mousehover zoom extension with optional 360° spins or multilevel 3D</summary>
|
10 |
<description>Responsive, jQuery based mouse over zoom for viewing high resolution product images and optionally 360° spins or multilevel 3D. Image pyramid / tiles view in responsive Fancybox or full screen on click. Upload or import 360° images over admin interface. Optional responsive thumbnails slider integration. Instant (on-the-fly) generation of all thumbnails. Works great on touch-enabled devices. Free to download, install and test.</description>
|
11 |
+
<notes>UI impovements in Admin Panel</notes>
|
12 |
<authors><author><name>AJAX-ZOOM</name><user>vadus</user><email>support@ajax-zoom.com</email></author></authors>
|
13 |
+
<date>2015-12-01</date>
|
14 |
+
<time>15:59:21</time>
|
15 |
+
<contents><target name="magelocal"><dir><dir name="Ax"><dir><dir name="Zoom"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="License.php" hash="b45fed73aec988d00ca1032656b9ae5b"/></dir></dir></dir><dir name="Tabs"><file name="Tabid.php" hash="5e1b97911f28d1dc5d5fac6e59ca9c13"/></dir><file name="Tabs.php" hash="40a78742e8b28cea4877e305211a9c6c"/></dir></dir><dir name="Helper"><file name="Data.php" hash="0aebfbfed16082f2a04697bbf085a2f9"/><file name="Head.php" hash="aac81557eb8726c7cd2b936873c52dbc"/></dir><dir name="Model"><file name="Ax360.php" hash="4f023c2c5cfeb66e5f2b63f9447f34c3"/><file name="Ax360set.php" hash="465975902e4ec60cb974f8e6cb30b2fa"/><file name="Axproducts.php" hash="0b425dcdf48578e727829112e6cacfd0"/><file name="Galleryposition.php" hash="1fe09377be47053af14d556fbb494d29"/><file name="Observer.php" hash="6f2ef3a1b7e67582d4acdc4c7ecedeb7"/><file name="Position.php" hash="576c9eccfc8e222588e0016fd8894ac7"/><dir name="Resource"><dir name="Ax360"><file name="Collection.php" hash="48d7f85f932259fdd06a62f15068a853"/></dir><file name="Ax360.php" hash="ad69211cd904f734019946ece44c07c0"/><dir name="Ax360set"><file name="Collection.php" hash="614398a735db3e8aa9de460c89c1b038"/></dir><file name="Ax360set.php" hash="e8c94cfc8d75c19e4762c3afad93b187"/><dir name="Axproducts"><file name="Collection.php" hash="15f673a08dab33c7a77f25b4c6641946"/></dir><file name="Axproducts.php" hash="93b114dd25c5e3fe501a78040ce2b36c"/></dir><file name="Words.php" hash="3c0d65a98cdaf81606f77d253c3256ae"/><file name="Yesno.php" hash="8cea5e1c9d6110c5cd54c6ffeda50382"/></dir><dir name="controllers"><file name="IndexController.php" hash="c2c9f716eb54529e7844f988c5b3f2fd"/></dir><dir name="etc"><file name="config.xml" hash="e4ee6162a2eeaf1c7600fdb525063e96"/><file name="system.xml" hash="843241bfd1ee260b9a2320518ef5b5b1"/></dir><dir name="sql"><dir name="axzoom_setup"><file name="install-0.0.1.php" hash="ba3da6f585756889a43367811acdaf7f"/></dir></dir></dir></dir></dir></dir></target><target name="magedesign"><dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="axzoom.xml" hash="542d9cbf1adb9bf6f2887d9d5a124c4d"/></dir><dir name="template"><dir name="axzoom"><file name="tab.phtml" hash="63d78b8494d40a411cdb4361fe1d7c02"/><file name="tab360-sets.phtml" hash="f9cb4c5f0a46a576e86b405c996f6438"/><file name="tab360-settings.phtml" hash="4b685c21e77839dc9b08c3327dcfddbc"/><file name="tab360.phtml" hash="1e138b9a95f65f4a3b2109690ccddaa0"/><file name="uploader.phtml" hash="595904eea47868882200883d0c256c9c"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="axzoom.xml" hash="e7107f3d585d09d9b1b01f603b4a5d5e"/></dir><dir name="template"><dir name="ax_zoom"><dir><dir name="catalog"><dir name="product"><dir name="view"><file name="media.phtml" hash="4fc81acd4feec1b0e3777c3217334336"/></dir></dir></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir><dir name="modules"><file name="Ax_Zoom.xml" hash="33069afb3fd5c26823aa1e24f6573700"/></dir></dir></target><target name="magelocale"><dir><dir name="ru_RU"><file name="Ax_Zoom.csv" hash="ad9b1e1ad87a1187dbd076b43af97429"/></dir></dir></target><target name="mageweb"><dir><dir name="js"><dir name="axzoom"><file name="check_fallback.js" hash="e3b055d8f689d5b67f87a5d27aa4537b"/><file name="check_jquery.js" hash="2e9c357045f123583a4051f237e0b380"/><file name="check_jquery_admin.js" hash="b5b7dc978af43493ae973548093b553c"/><file name="image_path.gif" hash="bf922e182e18a02613f26ca5eaa4c560"/><file name="jquery-1.11.3.min.js" hash="1c1e3d814cc7278f801463874463e504"/><file name="jquery-migrate-1.2.1.min.js" hash="eb05d8d73b5b13d8d84308a4751ece96"/><file name="jquery.fileupload-process.js" hash="0da6f8ef76956f6ce7842dcf8941d1fa"/><file name="jquery.fileupload-validate.js" hash="561d450d59e39724999629cae64cd80e"/><file name="jquery.fileupload.js" hash="d4b3a5c4f6e69185727cfe98f17f0239"/><file name="jquery.livequery.htc" hash="6fddf8d185aa26ca790c9f435fee8bad"/><file name="jquery.livequery.min.js" hash="295403b41c10cc54df7c580e269088ca"/><file name="jquery.ui.widget.min.js" hash="2425a542e6dde093dd85ac0b5adc0141"/><file name="lic.php" hash="f41e4001ab878f0abba43c749cd6f610"/><file name="no_image-100x100.jpg" hash="ebbaa789d1a5e5b1bb6fdb9ccd683aa2"/><dir><dir name="pic"><file name="readme.txt" hash="763fdb72282a84d27d9a6c93e014775a"/></dir><dir name="preview"><file name="index.php" hash="c304cfb13785e145e95d5f21cc95bd12"/><file name="preview.php" hash="0ebbc68bf74927c95587decbe2f24626"/></dir><dir name="tmp"><file name="readme.txt" hash="b17a61b9642c5d472107ab7023c5c880"/></dir><dir name="zip"><file name="readme.txt" hash="2134ad018dd3da577df745a04d22899f"/><file name=".htaccess" hash="209634bb0238704c4874c35d615ae59e"/></dir></dir><file name="zoomConfigCustomAZ.inc.php" hash="51cabd3bcb03b729b16841abd03c8382"/><file name=".htaccess" hash="b974c32a345792b0bc2fad66c2236152"/></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.2.1</min><max>5.6.99</max></php><extension><name>ionCube Loader</name><min/><max/></extension><extension><name>zip</name><min/><max/></extension></required></dependencies>
|
18 |
</package>
|