Version Notes
-Added option append or prepend Orbitvu photos to original Magento images
Download this release
Release Info
| Developer | Développeurs EnvoiMoinsCher.com |
| Extension | Orbitvu_Sun |
| Version | 1.0.14 |
| Comparing to | |
| See all releases | |
Code changes from version 1.0.13 to 1.0.14
- app/code/community/Orbitvu/Sun/Block/AppendPrepend.php +51 -0
- app/code/community/Orbitvu/Sun/controllers/OrbitvuDatabaseDriver.php +3 -0
- app/code/community/Orbitvu/Sun/etc/config.xml +1 -1
- app/code/community/Orbitvu/Sun/etc/system.xml +10 -1
- app/code/community/Orbitvu/Sun/sql/sun_setup/mysql4-upgrade-1.0.13-1.0.14.php +20 -0
- app/design/frontend/base/default/template/orbitvu/product/view/media.phtml +103 -43
- package.xml +5 -6
app/code/community/Orbitvu/Sun/Block/AppendPrepend.php
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* @category Orbitvu
|
| 4 |
+
* @package Orbitvu_SelfHosted
|
| 5 |
+
* @copyright Copyright (C) 2014 Orbitvu (http://www.orbitvu.com)
|
| 6 |
+
* @license http://www.orbitvu.com/plugins/license
|
| 7 |
+
* @version 1.0.0
|
| 8 |
+
*/
|
| 9 |
+
|
| 10 |
+
class Orbitvu_Sun_Block_AppendPrepend
|
| 11 |
+
{
|
| 12 |
+
|
| 13 |
+
/*
|
| 14 |
+
* Options list
|
| 15 |
+
*/
|
| 16 |
+
public function OrbitvuAppendPrependOptions() {
|
| 17 |
+
return array(
|
| 18 |
+
'append' => Mage::helper('adminhtml')->__('Append'),
|
| 19 |
+
'prepend' => Mage::helper('adminhtml')->__('Prepend')
|
| 20 |
+
);
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
/**
|
| 24 |
+
* Options getter
|
| 25 |
+
*
|
| 26 |
+
* @return array
|
| 27 |
+
*/
|
| 28 |
+
public function toOptionArray() {
|
| 29 |
+
$array = $this->OrbitvuAppendPrependOptions();
|
| 30 |
+
|
| 31 |
+
$ret = array();
|
| 32 |
+
foreach ($array as $key => $value) {
|
| 33 |
+
$ret[] = array(
|
| 34 |
+
'value' => $key,
|
| 35 |
+
'label' => $value
|
| 36 |
+
);
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
return $ret;
|
| 40 |
+
}
|
| 41 |
+
|
| 42 |
+
/**
|
| 43 |
+
* Get options in "key-value" format
|
| 44 |
+
*
|
| 45 |
+
* @return array
|
| 46 |
+
*/
|
| 47 |
+
public function toArray() {
|
| 48 |
+
return $this->OrbitvuAppendPrependOptions();
|
| 49 |
+
}
|
| 50 |
+
}
|
| 51 |
+
?>
|
app/code/community/Orbitvu/Sun/controllers/OrbitvuDatabaseDriver.php
CHANGED
|
@@ -140,6 +140,7 @@ class OrbitvuDatabaseDriver {
|
|
| 140 |
'hover_delay' => $this->make_boolean(Mage::getStoreConfig('orbitvu/mode/hover_delay')),
|
| 141 |
'teaser' => $this->make_boolean(Mage::getStoreConfig('orbitvu/mode/teaser')),
|
| 142 |
'html5' => $this->make_boolean(Mage::getStoreConfig('orbitvu/mode/html5')),
|
|
|
|
| 143 |
'orbittour_thumbnails' => Mage::getStoreConfig('orbitvu/mode/orbittour_thumbnails')
|
| 144 |
);
|
| 145 |
//---------------------------------------------------------------------------------------------------
|
|
@@ -218,6 +219,7 @@ class OrbitvuDatabaseDriver {
|
|
| 218 |
('default', 0, 'orbitvu/api/access_token', '1567f2b4a02a8bfc5d8aacf0f44b16157e149d29'),
|
| 219 |
('default', 0, 'orbitvu/mode/orbittour_thumbnails', 'right_views'),
|
| 220 |
('default', 0, 'orbitvu/mode/html5', 'yes'),
|
|
|
|
| 221 |
('default', 0, 'orbitvu/mode/hover_delay', '2'),
|
| 222 |
('default', 0, 'orbitvu/mode/teaser', 'autorotate'),
|
| 223 |
('default', 0, 'orbitvu/mode/hover_mode', '1'),
|
|
@@ -287,6 +289,7 @@ class OrbitvuDatabaseDriver {
|
|
| 287 |
('teaser', 'autorotate', 'mode', ''),
|
| 288 |
('hover_delay', '2', 'mode', ''),
|
| 289 |
('html5', 'yes', 'mode', ''),
|
|
|
|
| 290 |
('orbittour_thumbnails', 'right_views', 'mode', ''),
|
| 291 |
('first_time', 'true', 'main', '');
|
| 292 |
|
| 140 |
'hover_delay' => $this->make_boolean(Mage::getStoreConfig('orbitvu/mode/hover_delay')),
|
| 141 |
'teaser' => $this->make_boolean(Mage::getStoreConfig('orbitvu/mode/teaser')),
|
| 142 |
'html5' => $this->make_boolean(Mage::getStoreConfig('orbitvu/mode/html5')),
|
| 143 |
+
'append_prepend' => Mage::getStoreConfig('orbitvu/mode/append_prepend'),
|
| 144 |
'orbittour_thumbnails' => Mage::getStoreConfig('orbitvu/mode/orbittour_thumbnails')
|
| 145 |
);
|
| 146 |
//---------------------------------------------------------------------------------------------------
|
| 219 |
('default', 0, 'orbitvu/api/access_token', '1567f2b4a02a8bfc5d8aacf0f44b16157e149d29'),
|
| 220 |
('default', 0, 'orbitvu/mode/orbittour_thumbnails', 'right_views'),
|
| 221 |
('default', 0, 'orbitvu/mode/html5', 'yes'),
|
| 222 |
+
('default', 0, 'orbitvu/mode/append_prepend', 'append'),
|
| 223 |
('default', 0, 'orbitvu/mode/hover_delay', '2'),
|
| 224 |
('default', 0, 'orbitvu/mode/teaser', 'autorotate'),
|
| 225 |
('default', 0, 'orbitvu/mode/hover_mode', '1'),
|
| 289 |
('teaser', 'autorotate', 'mode', ''),
|
| 290 |
('hover_delay', '2', 'mode', ''),
|
| 291 |
('html5', 'yes', 'mode', ''),
|
| 292 |
+
('append_prepend', 'append', 'mode', ''),
|
| 293 |
('orbittour_thumbnails', 'right_views', 'mode', ''),
|
| 294 |
('first_time', 'true', 'main', '');
|
| 295 |
|
app/code/community/Orbitvu/Sun/etc/config.xml
CHANGED
|
@@ -9,7 +9,7 @@
|
|
| 9 |
<config>
|
| 10 |
<modules>
|
| 11 |
<Orbitvu_Sun>
|
| 12 |
-
<version>1.0.
|
| 13 |
</Orbitvu_Sun>
|
| 14 |
</modules>
|
| 15 |
<global>
|
| 9 |
<config>
|
| 10 |
<modules>
|
| 11 |
<Orbitvu_Sun>
|
| 12 |
+
<version>1.0.14</version>
|
| 13 |
</Orbitvu_Sun>
|
| 14 |
</modules>
|
| 15 |
<global>
|
app/code/community/Orbitvu/Sun/etc/system.xml
CHANGED
|
@@ -164,7 +164,16 @@
|
|
| 164 |
<show_in_website>0</show_in_website>
|
| 165 |
<show_in_store>0</show_in_store>
|
| 166 |
</orbittour_thumbnails>
|
| 167 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 168 |
</fields>
|
| 169 |
</mode>
|
| 170 |
|
| 164 |
<show_in_website>0</show_in_website>
|
| 165 |
<show_in_store>0</show_in_store>
|
| 166 |
</orbittour_thumbnails>
|
| 167 |
+
<append_prepend translate="label comment">
|
| 168 |
+
<label>Append or prepend ORBITVU PHOTOS</label>
|
| 169 |
+
<comment><![CDATA[Append or prepend ORBITVU PHOTOS in front image gallery (to the begin or end of gallery thumbnail list)]]></comment>
|
| 170 |
+
<frontend_type>select</frontend_type>
|
| 171 |
+
<source_model>Orbitvu_Sun_Block_AppendPrepend</source_model>
|
| 172 |
+
<sort_order>80</sort_order>
|
| 173 |
+
<show_in_default>1</show_in_default>
|
| 174 |
+
<show_in_website>0</show_in_website>
|
| 175 |
+
<show_in_store>0</show_in_store>
|
| 176 |
+
</append_prepend>
|
| 177 |
</fields>
|
| 178 |
</mode>
|
| 179 |
|
app/code/community/Orbitvu/Sun/sql/sun_setup/mysql4-upgrade-1.0.13-1.0.14.php
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Orbitvu PHP eCommerce Orbitvu DB drivers
|
| 4 |
+
* @Copyright: Orbitvu Sp. z o.o. is the owner of full rights to this code
|
| 5 |
+
*
|
| 6 |
+
* @For: Magento
|
| 7 |
+
*/
|
| 8 |
+
|
| 9 |
+
/*
|
| 10 |
+
* Start installation
|
| 11 |
+
*/
|
| 12 |
+
|
| 13 |
+
$installer = $this;
|
| 14 |
+
$installer->startSetup();
|
| 15 |
+
|
| 16 |
+
$installer->run("INSERT IGNORE INTO {$this->getTable('core_config_data')} (`path`, `value`) VALUES ('orbitvu/mode/append_prepend', 'append')");
|
| 17 |
+
$installer->run("INSERT IGNORE INTO {$this->getTable('orbitvu_configuration')} (`var`, `value`, `type`, `info`) VALUES ('append_prepend', 'append', 'mode', '')");
|
| 18 |
+
|
| 19 |
+
$installer->endSetup();
|
| 20 |
+
?>
|
app/design/frontend/base/default/template/orbitvu/product/view/media.phtml
CHANGED
|
@@ -46,6 +46,8 @@ $_orbitvu_gallery['height'] = (str_replace('px', '', $_orbitvu_gallery['img_heig
|
|
| 46 |
$_orbitvu_gallery['img_width_tn_marg'] = (str_replace('px', '', $_orbitvu_gallery['img_width_tn']) + str_replace('px', '', $_orbitvu_gallery['img_tn_margin'])).'px';
|
| 47 |
$_orbitvu_gallery['img_height_tn_marg'] = (str_replace('px', '', $_orbitvu_gallery['img_height_tn']) + str_replace('px', '', $_orbitvu_gallery['img_tn_margin'])).'px';
|
| 48 |
|
|
|
|
|
|
|
| 49 |
if (!$_orbitvu_gallery['scroll']) {
|
| 50 |
$_orbitvu_gallery['scroll'] = 'yes';
|
| 51 |
}
|
|
@@ -63,35 +65,7 @@ if ((strpos($_orbitvu_gallery['img_width'], 'px') !== false) && (strpos($_orbitv
|
|
| 63 |
$ratio = (string)$ratio.'%';
|
| 64 |
}
|
| 65 |
|
| 66 |
-
//-------------------------------------------------------------------------------------------------------
|
| 67 |
-
/*
|
| 68 |
-
* Get original product images
|
| 69 |
-
*/
|
| 70 |
-
foreach ($this->getGalleryImages() as $_image) {
|
| 71 |
-
$current_array = array();
|
| 72 |
-
// original image
|
| 73 |
-
//-------------------------------------------------------------------------------------------------------
|
| 74 |
-
$this_url = $this->helper('catalog/image')->init($this->getProduct(), 'image', $_image->getFile());
|
| 75 |
-
$thumbs_list[] = (string)$this_url;
|
| 76 |
-
$jspreloader[] = '\''.((string)$this_url).'\'';
|
| 77 |
-
$current_array['path'] = (string)$this_url;
|
| 78 |
-
//-------------------------------------------------------------------------------------------------------
|
| 79 |
-
// thumbnail 538x300
|
| 80 |
-
//-------------------------------------------------------------------------------------------------------
|
| 81 |
-
$this_url_tn = $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize(str_replace('px', '', $_orbitvu_gallery['img_width']), str_replace('px', '', $_orbitvu_gallery['img_height']));
|
| 82 |
-
$jspreloader_tn[] = '\''.((string)$this_url_tn).'\'';
|
| 83 |
-
$current_array['path_tn'] = (string)$this_url_tn;
|
| 84 |
-
//-------------------------------------------------------------------------------------------------------
|
| 85 |
-
// thumbnail 75x75
|
| 86 |
-
//-------------------------------------------------------------------------------------------------------
|
| 87 |
-
$this_url_tn2 = $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize(str_replace('px', '', $_orbitvu_gallery['img_width_tn']), str_replace('px', '', $_orbitvu_gallery['img_height_tn']));
|
| 88 |
-
$current_array['path_tn2'] = (string)$this_url_tn2;
|
| 89 |
-
//-------------------------------------------------------------------------------------------------------
|
| 90 |
|
| 91 |
-
//-------------------------------------------------------------------------------------------------------
|
| 92 |
-
$images_list[] = $current_array;
|
| 93 |
-
//-------------------------------------------------------------------------------------------------------
|
| 94 |
-
}
|
| 95 |
//-------------------------------------------------------------------------------------------------------
|
| 96 |
/*
|
| 97 |
* Item template
|
|
@@ -101,7 +75,7 @@ $_media_item_tpl = '
|
|
| 101 |
<a class="orbitvu-gallery-item-link" id="orbitvu-{id}" href="{path}" target="_blank">
|
| 102 |
<img src="{path_tn2}" alt="" />
|
| 103 |
</a>
|
| 104 |
-
</li>
|
| 105 |
';
|
| 106 |
|
| 107 |
$_presentation_item_tpl = '
|
|
@@ -109,7 +83,7 @@ $_presentation_item_tpl = '
|
|
| 109 |
<a class="orbitvu-gallery-item-link" id="orbitvu-{id}" rel="presentation-360" href="{path}" target="_blank">
|
| 110 |
<img src="{path_tn2}" alt="" /><span class="orbitvu-gallery-item-desc"><span class="orbitvu-icon orbitvu-icon-type-1"></span></span>
|
| 111 |
</a>
|
| 112 |
-
</li>
|
| 113 |
';
|
| 114 |
|
| 115 |
$_orbittour_item_tpl = '
|
|
@@ -117,27 +91,61 @@ $_orbittour_item_tpl = '
|
|
| 117 |
<a class="orbitvu-gallery-item-link" id="orbitvu-{id}" rel="presentation-tour" href="{path}" target="_blank">
|
| 118 |
<img src="{path_tn2}" alt="" /><span class="orbitvu-gallery-item-desc"><span class="orbitvu-icon orbitvu-icon-type-0"></span></span>
|
| 119 |
</a>
|
| 120 |
-
</li>
|
| 121 |
';
|
| 122 |
//-------------------------------------------------------------------------------------------------------
|
|
|
|
| 123 |
$all_items = 0;
|
| 124 |
$_out_items = '';
|
| 125 |
$i = 0;
|
| 126 |
$first_image = '';
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
*/
|
| 130 |
//-------------------------------------------------------------------------------------------------------
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 136 |
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 141 |
}
|
| 142 |
//-------------------------------------------------------------------------------------------------------
|
| 143 |
if (isset($images_list[0]['path_tn'])) {
|
|
@@ -260,6 +268,58 @@ if (count($presentation['items']) > 0) {
|
|
| 260 |
}
|
| 261 |
}
|
| 262 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 263 |
//-------------------------------------------------------------------------------------------------------
|
| 264 |
/*
|
| 265 |
* Display output
|
| 46 |
$_orbitvu_gallery['img_width_tn_marg'] = (str_replace('px', '', $_orbitvu_gallery['img_width_tn']) + str_replace('px', '', $_orbitvu_gallery['img_tn_margin'])).'px';
|
| 47 |
$_orbitvu_gallery['img_height_tn_marg'] = (str_replace('px', '', $_orbitvu_gallery['img_height_tn']) + str_replace('px', '', $_orbitvu_gallery['img_tn_margin'])).'px';
|
| 48 |
|
| 49 |
+
$append_prepend = $_Orbitvu->GetConfiguration('append_prepend'); //append or prepend orbitvu thumbnails to the front image product original images
|
| 50 |
+
|
| 51 |
if (!$_orbitvu_gallery['scroll']) {
|
| 52 |
$_orbitvu_gallery['scroll'] = 'yes';
|
| 53 |
}
|
| 65 |
$ratio = (string)$ratio.'%';
|
| 66 |
}
|
| 67 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 69 |
//-------------------------------------------------------------------------------------------------------
|
| 70 |
/*
|
| 71 |
* Item template
|
| 75 |
<a class="orbitvu-gallery-item-link" id="orbitvu-{id}" href="{path}" target="_blank">
|
| 76 |
<img src="{path_tn2}" alt="" />
|
| 77 |
</a>
|
| 78 |
+
</li>
|
| 79 |
';
|
| 80 |
|
| 81 |
$_presentation_item_tpl = '
|
| 83 |
<a class="orbitvu-gallery-item-link" id="orbitvu-{id}" rel="presentation-360" href="{path}" target="_blank">
|
| 84 |
<img src="{path_tn2}" alt="" /><span class="orbitvu-gallery-item-desc"><span class="orbitvu-icon orbitvu-icon-type-1"></span></span>
|
| 85 |
</a>
|
| 86 |
+
</li>
|
| 87 |
';
|
| 88 |
|
| 89 |
$_orbittour_item_tpl = '
|
| 91 |
<a class="orbitvu-gallery-item-link" id="orbitvu-{id}" rel="presentation-tour" href="{path}" target="_blank">
|
| 92 |
<img src="{path_tn2}" alt="" /><span class="orbitvu-gallery-item-desc"><span class="orbitvu-icon orbitvu-icon-type-0"></span></span>
|
| 93 |
</a>
|
| 94 |
+
</li>
|
| 95 |
';
|
| 96 |
//-------------------------------------------------------------------------------------------------------
|
| 97 |
+
|
| 98 |
$all_items = 0;
|
| 99 |
$_out_items = '';
|
| 100 |
$i = 0;
|
| 101 |
$first_image = '';
|
| 102 |
+
|
| 103 |
+
if ($append_prepend != 'prepend') {
|
|
|
|
| 104 |
//-------------------------------------------------------------------------------------------------------
|
| 105 |
+
/*
|
| 106 |
+
* Get original product images
|
| 107 |
+
*/
|
| 108 |
+
foreach ($this->getGalleryImages() as $_image) {
|
| 109 |
+
$current_array = array();
|
| 110 |
+
// original image
|
| 111 |
+
//-------------------------------------------------------------------------------------------------------
|
| 112 |
+
$this_url = $this->helper('catalog/image')->init($this->getProduct(), 'image', $_image->getFile());
|
| 113 |
+
$thumbs_list[] = (string)$this_url;
|
| 114 |
+
$jspreloader[] = '\''.((string)$this_url).'\'';
|
| 115 |
+
$current_array['path'] = (string)$this_url;
|
| 116 |
+
//-------------------------------------------------------------------------------------------------------
|
| 117 |
+
// thumbnail 538x300
|
| 118 |
+
//-------------------------------------------------------------------------------------------------------
|
| 119 |
+
$this_url_tn = $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize(str_replace('px', '', $_orbitvu_gallery['img_width']), str_replace('px', '', $_orbitvu_gallery['img_height']));
|
| 120 |
+
$jspreloader_tn[] = '\''.((string)$this_url_tn).'\'';
|
| 121 |
+
$current_array['path_tn'] = (string)$this_url_tn;
|
| 122 |
+
//-------------------------------------------------------------------------------------------------------
|
| 123 |
+
// thumbnail 75x75
|
| 124 |
+
//-------------------------------------------------------------------------------------------------------
|
| 125 |
+
$this_url_tn2 = $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize(str_replace('px', '', $_orbitvu_gallery['img_width_tn']), str_replace('px', '', $_orbitvu_gallery['img_height_tn']));
|
| 126 |
+
$current_array['path_tn2'] = (string)$this_url_tn2;
|
| 127 |
+
//-------------------------------------------------------------------------------------------------------
|
| 128 |
+
|
| 129 |
+
//-------------------------------------------------------------------------------------------------------
|
| 130 |
+
$images_list[] = $current_array;
|
| 131 |
+
//-------------------------------------------------------------------------------------------------------
|
| 132 |
+
}
|
| 133 |
|
| 134 |
+
/*
|
| 135 |
+
* Magento images
|
| 136 |
+
*/
|
| 137 |
+
//-------------------------------------------------------------------------------------------------------
|
| 138 |
+
foreach ($images_list as $item) {
|
| 139 |
+
if ($i == 0) $item['class'] = ' orbitvu_active';
|
| 140 |
+
else $item['class'] = '';
|
| 141 |
+
|
| 142 |
+
$item['id'] = $all_items;
|
| 143 |
+
|
| 144 |
+
$_out_items .= $observer->UseTemplate($item, $_media_item_tpl);
|
| 145 |
+
|
| 146 |
+
$i++;
|
| 147 |
+
$all_items++;
|
| 148 |
+
}
|
| 149 |
}
|
| 150 |
//-------------------------------------------------------------------------------------------------------
|
| 151 |
if (isset($images_list[0]['path_tn'])) {
|
| 268 |
}
|
| 269 |
}
|
| 270 |
|
| 271 |
+
|
| 272 |
+
|
| 273 |
+
/*
|
| 274 |
+
* Magento images
|
| 275 |
+
*/
|
| 276 |
+
if ($append_prepend == 'prepend') {
|
| 277 |
+
//-------------------------------------------------------------------------------------------------------
|
| 278 |
+
/*
|
| 279 |
+
* Get original product images
|
| 280 |
+
*/
|
| 281 |
+
foreach ($this->getGalleryImages() as $_image) {
|
| 282 |
+
$current_array = array();
|
| 283 |
+
// original image
|
| 284 |
+
//-------------------------------------------------------------------------------------------------------
|
| 285 |
+
$this_url = $this->helper('catalog/image')->init($this->getProduct(), 'image', $_image->getFile());
|
| 286 |
+
$thumbs_list[] = (string)$this_url;
|
| 287 |
+
$jspreloader[] = '\''.((string)$this_url).'\'';
|
| 288 |
+
$current_array['path'] = (string)$this_url;
|
| 289 |
+
//-------------------------------------------------------------------------------------------------------
|
| 290 |
+
// thumbnail 538x300
|
| 291 |
+
//-------------------------------------------------------------------------------------------------------
|
| 292 |
+
$this_url_tn = $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize(str_replace('px', '', $_orbitvu_gallery['img_width']), str_replace('px', '', $_orbitvu_gallery['img_height']));
|
| 293 |
+
$jspreloader_tn[] = '\''.((string)$this_url_tn).'\'';
|
| 294 |
+
$current_array['path_tn'] = (string)$this_url_tn;
|
| 295 |
+
//-------------------------------------------------------------------------------------------------------
|
| 296 |
+
// thumbnail 75x75
|
| 297 |
+
//-------------------------------------------------------------------------------------------------------
|
| 298 |
+
$this_url_tn2 = $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_image->getFile())->resize(str_replace('px', '', $_orbitvu_gallery['img_width_tn']), str_replace('px', '', $_orbitvu_gallery['img_height_tn']));
|
| 299 |
+
$current_array['path_tn2'] = (string)$this_url_tn2;
|
| 300 |
+
//-------------------------------------------------------------------------------------------------------
|
| 301 |
+
|
| 302 |
+
//-------------------------------------------------------------------------------------------------------
|
| 303 |
+
$images_list[] = $current_array;
|
| 304 |
+
//-------------------------------------------------------------------------------------------------------
|
| 305 |
+
}
|
| 306 |
+
|
| 307 |
+
//-------------------------------------------------------------------------------------------------------
|
| 308 |
+
foreach ($images_list as $item) {
|
| 309 |
+
if ($i == 0) $item['class'] = ' orbitvu_active';
|
| 310 |
+
else $item['class'] = '';
|
| 311 |
+
|
| 312 |
+
$item['id'] = $all_items;
|
| 313 |
+
|
| 314 |
+
$_out_items .= $observer->UseTemplate($item, $_media_item_tpl);
|
| 315 |
+
|
| 316 |
+
$i++;
|
| 317 |
+
$all_items++;
|
| 318 |
+
}
|
| 319 |
+
}
|
| 320 |
+
|
| 321 |
+
|
| 322 |
+
|
| 323 |
//-------------------------------------------------------------------------------------------------------
|
| 324 |
/*
|
| 325 |
* Display output
|
package.xml
CHANGED
|
@@ -1,19 +1,18 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Orbitvu_Sun</name>
|
| 4 |
-
<version>1.0.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license>Commercial</license>
|
| 7 |
<channel>community</channel>
|
| 8 |
<extends/>
|
| 9 |
<summary>Automate and improve your customer's expierience with dynamic zoom, 360°/3D spins, product tours using ORBITVU imaging solution.</summary>
|
| 10 |
<description>Orbitvu SUN Product Teleporting extension will improve your store product experience with interactive product tours, 360°/3D image spins and dynamic zoom on desktop and mobile. It will automate and facilitate your imaging workflow as never before. This extension is provided by ORBITVU – the global leader for automated imaging solutions.</description>
|
| 11 |
-
<notes>-
|
| 12 |
-
-Fixed curl timeout</notes>
|
| 13 |
<authors><author><name>Orbitvu</name><user>dev</user><email>dev@orbitvu.com</email></author></authors>
|
| 14 |
-
<date>2015-
|
| 15 |
-
<time>
|
| 16 |
-
<contents><target name="magecommunity"><dir name="Orbitvu"><dir name="Sun"><dir><dir name="Block"><dir name="Adminhtml"><dir name="Catalog"><dir name="Product"><file name="Grid.php" hash="c12a6f672ceb379b9633a328e4fe499c"/><file name="Gridrenderer.php" hash="b86affaf935201508bb02e4b8975c988"/></dir></dir><dir name="Tabs"><file name="Tabid.php" hash="b90c1cac87797ebf579b7ebe694e53d3"/></dir><file name="Tabs.php" hash="cfa2df401d503f300f615d979f8eeab5"/></dir><file name="Delay.php" hash="570f327292c20cfc3e2ec5faf0687116"/><file name="Html5.php" hash="b7a6020751d85af690eed068a0f5eaf8"/><file name="KeyComment.php" hash="3a832bb181f1e709d5cf4bba4f55338f"/><file name="Orbittour.php" hash="f9d6c22b7c37b58771119dc2af3f0b00"/><dir name="Product"><dir name="View"><file name="Media.php" hash="d6c5268510a19afcd3ef273634913373"/></dir></dir><file name="Scroll.php" hash="f54d18dfb2445ae147746071527e56e4"/><file name="Syncsku.php" hash="dd57437599190a466d9ccf3ec8d47890"/><file name="Teaser.php" hash="f67f531671bcad679b433d7635236a35"/></dir><dir name="Helper"><file name="Data.php" hash="24762472300a32b09082a45d15959fc1"/></dir><dir name="Model"><file name="Observer.php" hash="0a684163858a6f72a54b9d32b88bbed2"/><dir name="Resource"><file name="Setup.php" hash="2cfd8dccd322e056cb4816e697bd9efd"/><file name="Sun.php" hash="8322d1a43b6aee941dc297bf31253504"/></dir></dir><dir name="controllers"><file name="OrbitvuAdmin.php" hash="3665e28d7022a064913395ee118a6561"/><file name="OrbitvuConnect.php" hash="d87d6644be82202d8cab14eec54a687a"/><file name="OrbitvuDatabaseDriver.php" hash="
|
| 17 |
<compatible/>
|
| 18 |
<dependencies><required><php><min>5.0.0</min><max>6.0.0</max></php></required></dependencies>
|
| 19 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Orbitvu_Sun</name>
|
| 4 |
+
<version>1.0.14</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license>Commercial</license>
|
| 7 |
<channel>community</channel>
|
| 8 |
<extends/>
|
| 9 |
<summary>Automate and improve your customer's expierience with dynamic zoom, 360°/3D spins, product tours using ORBITVU imaging solution.</summary>
|
| 10 |
<description>Orbitvu SUN Product Teleporting extension will improve your store product experience with interactive product tours, 360°/3D image spins and dynamic zoom on desktop and mobile. It will automate and facilitate your imaging workflow as never before. This extension is provided by ORBITVU – the global leader for automated imaging solutions.</description>
|
| 11 |
+
<notes>-Added option append or prepend Orbitvu photos to original Magento images</notes>
|
|
|
|
| 12 |
<authors><author><name>Orbitvu</name><user>dev</user><email>dev@orbitvu.com</email></author></authors>
|
| 13 |
+
<date>2015-11-30</date>
|
| 14 |
+
<time>07:41:28</time>
|
| 15 |
+
<contents><target name="magecommunity"><dir name="Orbitvu"><dir name="Sun"><dir><dir name="Block"><dir name="Adminhtml"><dir name="Catalog"><dir name="Product"><file name="Grid.php" hash="c12a6f672ceb379b9633a328e4fe499c"/><file name="Gridrenderer.php" hash="b86affaf935201508bb02e4b8975c988"/></dir></dir><dir name="Tabs"><file name="Tabid.php" hash="b90c1cac87797ebf579b7ebe694e53d3"/></dir><file name="Tabs.php" hash="cfa2df401d503f300f615d979f8eeab5"/></dir><file name="AppendPrepend.php" hash="c7f8191d8bfd82f4b53dba38de5c5e9b"/><file name="Delay.php" hash="570f327292c20cfc3e2ec5faf0687116"/><file name="Html5.php" hash="b7a6020751d85af690eed068a0f5eaf8"/><file name="KeyComment.php" hash="3a832bb181f1e709d5cf4bba4f55338f"/><file name="Orbittour.php" hash="f9d6c22b7c37b58771119dc2af3f0b00"/><dir name="Product"><dir name="View"><file name="Media.php" hash="d6c5268510a19afcd3ef273634913373"/></dir></dir><file name="Scroll.php" hash="f54d18dfb2445ae147746071527e56e4"/><file name="Syncsku.php" hash="dd57437599190a466d9ccf3ec8d47890"/><file name="Teaser.php" hash="f67f531671bcad679b433d7635236a35"/></dir><dir name="Helper"><file name="Data.php" hash="24762472300a32b09082a45d15959fc1"/></dir><dir name="Model"><file name="Observer.php" hash="0a684163858a6f72a54b9d32b88bbed2"/><dir name="Resource"><file name="Setup.php" hash="2cfd8dccd322e056cb4816e697bd9efd"/><file name="Sun.php" hash="8322d1a43b6aee941dc297bf31253504"/></dir></dir><dir name="controllers"><file name="OrbitvuAdmin.php" hash="3665e28d7022a064913395ee118a6561"/><file name="OrbitvuConnect.php" hash="d87d6644be82202d8cab14eec54a687a"/><file name="OrbitvuDatabaseDriver.php" hash="b4946acbc20ebc7b9b3f9da3ab96ea42"/><file name="OrbitvuDatabaseInterface.php" hash="cae8470ed463903bb62389dc948f51c4"/><file name="OrbitvuDebugger.php" hash="b77202848b43fbc7861845f352ab3239"/><file name="OrbitvuTests.php" hash="dde56bcf50d16cf7613a4e3ae4093a30"/></dir><dir name="etc"><file name="adminhtml.xml" hash="ff6ac1784a5e92f6937411bebdea2811"/><file name="config.xml" hash="f35751a46e3a228f0c57ea66fe8c7cd6"/><file name="local.xml" hash="d41d8cd98f00b204e9800998ecf8427e"/><file name="system.xml" hash="7d63d0dcd19ed511bf797bdcf33a5d6f"/><file name="translations.xml" hash="47ff4445ef63971e669c5f34cd2376fb"/></dir><dir name="sql"><dir name="sun_setup"><file name="mysql4-install-1.0.0.php" hash="59cda0e64aa6ad62bf9af90ef033ffe0"/><file name="mysql4-install-1.0.1.php" hash="59cda0e64aa6ad62bf9af90ef033ffe0"/><file name="mysql4-install-1.0.10.php" hash="502629e7f477aae069d913afd1541325"/><file name="mysql4-install-1.0.2.php" hash="59cda0e64aa6ad62bf9af90ef033ffe0"/><file name="mysql4-install-1.0.3.php" hash="59cda0e64aa6ad62bf9af90ef033ffe0"/><file name="mysql4-install-1.0.4.php" hash="59cda0e64aa6ad62bf9af90ef033ffe0"/><file name="mysql4-install-1.0.5.php" hash="59cda0e64aa6ad62bf9af90ef033ffe0"/><file name="mysql4-install-1.0.6.php" hash="59cda0e64aa6ad62bf9af90ef033ffe0"/><file name="mysql4-install-1.0.7.php" hash="59cda0e64aa6ad62bf9af90ef033ffe0"/><file name="mysql4-install-1.0.8.php" hash="502629e7f477aae069d913afd1541325"/><file name="mysql4-install-1.0.9.php" hash="502629e7f477aae069d913afd1541325"/><file name="mysql4-upgrade-1.0.0-1.0.1.php" hash="aecb76aad6bec961bbe742405af812ff"/><file name="mysql4-upgrade-1.0.1-1.0.2.php" hash="aecb76aad6bec961bbe742405af812ff"/><file name="mysql4-upgrade-1.0.10-1.0.11.php" hash="968a1b44e87d5e34a26a59b862e6baed"/><file name="mysql4-upgrade-1.0.11-1.0.12.php" hash="968a1b44e87d5e34a26a59b862e6baed"/><file name="mysql4-upgrade-1.0.12-1.0.13.php" hash="968a1b44e87d5e34a26a59b862e6baed"/><file name="mysql4-upgrade-1.0.13-1.0.14.php" hash="3a956770b98ceb47dd854f2e3da6fbcc"/><file name="mysql4-upgrade-1.0.2-1.0.3.php" hash="aecb76aad6bec961bbe742405af812ff"/><file name="mysql4-upgrade-1.0.3-1.0.4.php" hash="aecb76aad6bec961bbe742405af812ff"/><file name="mysql4-upgrade-1.0.4-1.0.5.php" hash="aecb76aad6bec961bbe742405af812ff"/><file name="mysql4-upgrade-1.0.5-1.0.6.php" hash="0707469d392c0552614b875e1a1cb13e"/><file name="mysql4-upgrade-1.0.6-1.0.7.php" hash="968a1b44e87d5e34a26a59b862e6baed"/><file name="mysql4-upgrade-1.0.7-1.0.8.php" hash="968a1b44e87d5e34a26a59b862e6baed"/><file name="mysql4-upgrade-1.0.8-1.0.9.php" hash="968a1b44e87d5e34a26a59b862e6baed"/><file name="mysql4-upgrade-1.0.9-1.0.10.php" hash="968a1b44e87d5e34a26a59b862e6baed"/></dir></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="sun"><file name="orbitvu.phtml" hash="9609c61706a40e1133b5707e6f4c8f2e"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="sun.xml" hash="08f04468f5e883345cad2e6f5f9c4666"/></dir><dir name="template"><dir name="orbitvu"><dir name="product"><dir name="view"><file name="media.phtml" hash="74892ee2e74a2bcdb29f1eafb311587e"/></dir></dir></dir></dir></dir></dir></dir></target><target name="magemedia"><dir name="orbitvu"><file name="black.png" hash="64dcb45b20e5e2e0cc07c62a843f8f68"/><file name="blue.png" hash="fa8b00e52ec0bf7cb9937b1d5789740c"/><file name="loader.gif" hash="875eec6b429c57e0eff9ba7c182072cd"/><file name="logo.png" hash="622ada057aadbe23af717431e85ef94f"/><file name="orbit.png" hash="c390d8598792d9cc86b19e9afef0ea4a"/><file name="placeholder.png" hash="43b6e81dc733e7d8fb279e54b5f39b3f"/><dir><dir name="thumbnails"><file name="index" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></dir><file name="white.png" hash="ff7713f7b45a4b7a4b5d8304eb3c655c"/></dir></target><target name="mage"><dir name="."><file name="crossdomain.xml" hash="6960cde6dd98feb5406c6b185521b041"/><file name="ORBITVU-SUN-PRODUCT-TELEPORTING-EN.pdf" hash="069f8c15618e9ffe28dfc1e1efb6adf8"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Orbitvu_Sun.csv" hash="7c5ea48271819e56b9253d2660012728"/></dir></target><target name="mageetc"><dir name="modules"><file name="Orbitvu_Sun.xml" hash="76f32cd06e5fb1aa4eda72a34c010d99"/></dir></target></contents>
|
| 16 |
<compatible/>
|
| 17 |
<dependencies><required><php><min>5.0.0</min><max>6.0.0</max></php></required></dependencies>
|
| 18 |
</package>
|
