Version Notes
Compatibility testing for EE 1.14 and CE 1.9
Download this release
Release Info
Developer | Eric Burleson |
Extension | invodo_video |
Version | 0.1.6 |
Comparing to | |
See all releases |
Code changes from version 0.1.3 to 0.1.6
- app/code/community/Invodo/Video/Block/Adminhtml/Cms/Wysiwyg/Images/Content.php +44 -44
- app/code/community/Invodo/Video/Block/Adminhtml/System/Config/Form.php +63 -63
- app/code/community/Invodo/Video/Block/Adminhtml/System/Config/Form/Field/Autoplay.php +56 -55
- app/code/community/Invodo/Video/Block/Adminhtml/System/Config/Form/Field/Export.php +56 -56
- app/code/community/Invodo/Video/Block/Adminhtml/System/Config/Form/Field/Overlayactionsource.php +50 -50
- app/code/community/Invodo/Video/Block/Adminhtml/System/Config/Form/Field/Videoresolution.php +55 -55
- app/code/community/Invodo/Video/Block/Adminhtml/Widget/Form/Element/Dependence.php +55 -0
- app/code/community/Invodo/Video/Block/Adminhtml/Widget/Renderer/Autoplay.php +52 -52
- app/code/community/Invodo/Video/Block/Adminhtml/Widget/Renderer/Overlayactionsource.php +57 -56
- app/code/community/Invodo/Video/Block/Adminhtml/Widget/Renderer/Sourcetype.php +62 -62
- app/code/community/Invodo/Video/Block/Adminhtml/Widget/Renderer/Sourcevalue.php +48 -48
- app/code/community/Invodo/Video/Block/Adminhtml/Widget/Renderer/Videoresolution.php +60 -59
- app/code/community/Invodo/Video/Block/Conversion/Abstract.php +110 -110
- app/code/community/Invodo/Video/Block/Conversion/Register.php +42 -42
- app/code/community/Invodo/Video/Block/Conversion/Session.php +44 -44
- app/code/community/Invodo/Video/Block/Init.php +98 -98
- app/code/community/Invodo/Video/Block/Product/Video/Abstract.php +116 -116
- app/code/community/Invodo/Video/Block/Product/Video/Inline.php +73 -73
- app/code/community/Invodo/Video/Block/Product/Video/Overlay.php +87 -87
- app/code/community/Invodo/Video/Block/Product/Video/Overlay/Default.php +67 -66
- app/code/community/Invodo/Video/Block/Widget.php +144 -153
- app/code/community/Invodo/Video/Helper/Data.php +183 -182
- app/code/community/Invodo/Video/Helper/Wysiwyg/Images.php +50 -50
- app/code/community/Invodo/Video/Invodo - Magento Connect - EULA - V1.0 11-20-13.pdf +0 -0
- app/code/community/Invodo/Video/Model/Config.php +61 -61
- app/code/community/Invodo/Video/Model/Observer.php +123 -122
- app/code/community/Invodo/Video/Model/Observer/Adminhtml.php +90 -113
- app/code/community/Invodo/Video/Model/Product/Export.php +91 -90
- app/code/community/Invodo/Video/Model/Product/Export/Adapter.php +55 -55
- app/code/community/Invodo/Video/Model/Product/Export/Entity.php +262 -262
- app/code/community/Invodo/Video/Model/Session.php +72 -72
- app/code/community/Invodo/Video/Model/Widget/Source/Autoplay.php +55 -55
- app/code/community/Invodo/Video/Model/Widget/Source/Overlayaction.php +59 -59
- app/code/community/Invodo/Video/Model/Widget/Source/Sourcetype.php +55 -55
- app/code/community/Invodo/Video/Model/Widget/Source/Videotype.php +55 -55
- app/code/community/Invodo/Video/controllers/Adminhtml/Cms/Wysiwyg/ImagesController.php +51 -51
- app/code/community/Invodo/Video/controllers/Adminhtml/ExportController.php +71 -65
- app/code/community/Invodo/Video/data/invodo_video_setup/data-upgrade-0.1.0-0.1.1.php +38 -44
- app/code/community/Invodo/Video/data/invodo_video_setup/data-upgrade-0.1.5-0.1.6.php +71 -0
- app/code/community/Invodo/Video/etc/adminhtml.xml +48 -48
- app/code/community/Invodo/Video/etc/config.xml +136 -140
- app/code/community/Invodo/Video/etc/system.xml +150 -150
- app/code/community/Invodo/Video/etc/widget.xml +128 -128
- app/code/community/Invodo/Video/readme.md +0 -6
- app/code/community/Invodo/Video/sql/invodo_video_setup/install-0.1.0.php +65 -66
- app/design/adminhtml/default/default/template/invodo/video/system/config/form/renderer/overlayactionsource.phtml +35 -35
- app/design/adminhtml/default/default/template/invodo/video/system/config/form/renderer/videoresolution.phtml +70 -70
- app/design/adminhtml/default/default/template/invodo/video/widget/form/renderer/autoplay.phtml +47 -47
- app/design/adminhtml/default/default/template/invodo/video/widget/form/renderer/overlayactionsource.phtml +48 -48
- app/design/adminhtml/default/default/template/invodo/video/widget/form/renderer/sourcetype.phtml +50 -50
- app/design/adminhtml/default/default/template/invodo/video/widget/form/renderer/videoresolution.phtml +76 -76
- app/design/frontend/base/default/layout/invodo_video.xml +53 -53
- app/design/frontend/base/default/template/invodo/video/conversion.phtml +38 -38
- app/design/frontend/base/default/template/invodo/video/init.phtml +37 -37
- app/design/frontend/base/default/template/invodo/video/product/view/inline/community.phtml +58 -58
- app/design/frontend/base/default/template/invodo/video/product/view/inline/enterprise.phtml +62 -61
- app/design/frontend/base/default/template/invodo/video/product/view/inline/rwd.phtml +72 -0
- app/design/frontend/base/default/template/invodo/video/product/view/overlay.phtml +65 -65
- app/design/frontend/base/default/template/invodo/video/product/view/overlay/default.phtml +55 -55
- app/design/frontend/base/default/template/invodo/video/widget.phtml +72 -72
- app/design/frontend/enterprise/default/layout/invodo_video.xml +53 -53
- app/design/frontend/rwd/default/layout/invodo_video.xml +54 -0
- app/etc/modules/Invodo_Video.xml +9 -9
- package.xml +10 -10
app/code/community/Invodo/Video/Block/Adminhtml/Cms/Wysiwyg/Images/Content.php
CHANGED
@@ -1,45 +1,45 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* NOTICE OF LICENSE
|
4 |
-
*
|
5 |
-
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
-
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
-
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
-
* display and use the Software (in object code only) only on the computers
|
9 |
-
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
-
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
-
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
-
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
-
* unless such Update is accompanied by or references a separate license
|
14 |
-
* agreement in which case the terms and conditions of that agreement will
|
15 |
-
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
-
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
-
* as provided herein, the term of each individual license granted under this
|
18 |
-
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
-
* as otherwise set forth herein.Each party recognizes that
|
20 |
-
* Company grants no licenses except for the license expressly set forth.
|
21 |
-
*
|
22 |
-
* @category Invodo
|
23 |
-
* @package Invodo_Video
|
24 |
-
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
-
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
-
*/
|
27 |
-
|
28 |
-
/**
|
29 |
-
* Replaces default insert url
|
30 |
-
*
|
31 |
-
* @category Invodo
|
32 |
-
* @package Invodo_Video
|
33 |
-
*/
|
34 |
-
class Invodo_Video_Block_Adminhtml_Cms_Wysiwyg_Images_Content extends Mage_Adminhtml_Block_Cms_Wysiwyg_Images_Content
|
35 |
-
{
|
36 |
-
/**
|
37 |
-
* New directory action target URL
|
38 |
-
*
|
39 |
-
* @return string
|
40 |
-
*/
|
41 |
-
public function getOnInsertUrl()
|
42 |
-
{
|
43 |
-
return $this->getUrl('invodo_video/adminhtml_cms_wysiwyg_images/onInsert');
|
44 |
-
}
|
45 |
}
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* NOTICE OF LICENSE
|
4 |
+
*
|
5 |
+
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
+
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
+
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
+
* display and use the Software (in object code only) only on the computers
|
9 |
+
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
+
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
+
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
+
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
+
* unless such Update is accompanied by or references a separate license
|
14 |
+
* agreement in which case the terms and conditions of that agreement will
|
15 |
+
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
+
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
+
* as provided herein, the term of each individual license granted under this
|
18 |
+
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
+
* as otherwise set forth herein.Each party recognizes that
|
20 |
+
* Company grants no licenses except for the license expressly set forth.
|
21 |
+
*
|
22 |
+
* @category Invodo
|
23 |
+
* @package Invodo_Video
|
24 |
+
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
+
*/
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Replaces default insert url
|
30 |
+
*
|
31 |
+
* @category Invodo
|
32 |
+
* @package Invodo_Video
|
33 |
+
*/
|
34 |
+
class Invodo_Video_Block_Adminhtml_Cms_Wysiwyg_Images_Content extends Mage_Adminhtml_Block_Cms_Wysiwyg_Images_Content
|
35 |
+
{
|
36 |
+
/**
|
37 |
+
* New directory action target URL
|
38 |
+
*
|
39 |
+
* @return string
|
40 |
+
*/
|
41 |
+
public function getOnInsertUrl()
|
42 |
+
{
|
43 |
+
return $this->getUrl('invodo_video/adminhtml_cms_wysiwyg_images/onInsert');
|
44 |
+
}
|
45 |
}
|
app/code/community/Invodo/Video/Block/Adminhtml/System/Config/Form.php
CHANGED
@@ -1,64 +1,64 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* NOTICE OF LICENSE
|
4 |
-
*
|
5 |
-
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
-
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
-
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
-
* display and use the Software (in object code only) only on the computers
|
9 |
-
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
-
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
-
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
-
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
-
* unless such Update is accompanied by or references a separate license
|
14 |
-
* agreement in which case the terms and conditions of that agreement will
|
15 |
-
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
-
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
-
* as provided herein, the term of each individual license granted under this
|
18 |
-
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
-
* as otherwise set forth herein.Each party recognizes that
|
20 |
-
* Company grants no licenses except for the license expressly set forth.
|
21 |
-
*
|
22 |
-
* @category Invodo
|
23 |
-
* @package Invodo_Video
|
24 |
-
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
-
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
-
*/
|
27 |
-
|
28 |
-
/**
|
29 |
-
* Renders form
|
30 |
-
*
|
31 |
-
* @category Invodo
|
32 |
-
* @package Invodo_Video
|
33 |
-
*/
|
34 |
-
class Invodo_Video_Block_Adminhtml_System_Config_Form extends Mage_Adminhtml_Block_System_Config_Form
|
35 |
-
{
|
36 |
-
/**
|
37 |
-
* Adds specific field types
|
38 |
-
*
|
39 |
-
* @return array
|
40 |
-
*/
|
41 |
-
protected function _getAdditionalElementTypes()
|
42 |
-
{
|
43 |
-
$types = parent::_getAdditionalElementTypes();
|
44 |
-
$types['autoplay'] = $this->_getClassName('autoplay');
|
45 |
-
$types['videoresolution'] = $this->_getClassName('videoresolution');
|
46 |
-
$types['overlayactionsource'] = $this->_getClassName('overlayactionsource');
|
47 |
-
$types['export'] = $this->_getClassName('export');
|
48 |
-
|
49 |
-
return $types;
|
50 |
-
}
|
51 |
-
|
52 |
-
/**
|
53 |
-
* Gets class name
|
54 |
-
*
|
55 |
-
* @param string $class
|
56 |
-
* @return string
|
57 |
-
*/
|
58 |
-
protected function _getClassName($class)
|
59 |
-
{
|
60 |
-
$class = 'invodo_video/adminhtml_system_config_form_field_' . $class;
|
61 |
-
|
62 |
-
return Mage::getConfig()->getBlockClassName($class);
|
63 |
-
}
|
64 |
}
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* NOTICE OF LICENSE
|
4 |
+
*
|
5 |
+
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
+
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
+
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
+
* display and use the Software (in object code only) only on the computers
|
9 |
+
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
+
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
+
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
+
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
+
* unless such Update is accompanied by or references a separate license
|
14 |
+
* agreement in which case the terms and conditions of that agreement will
|
15 |
+
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
+
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
+
* as provided herein, the term of each individual license granted under this
|
18 |
+
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
+
* as otherwise set forth herein.Each party recognizes that
|
20 |
+
* Company grants no licenses except for the license expressly set forth.
|
21 |
+
*
|
22 |
+
* @category Invodo
|
23 |
+
* @package Invodo_Video
|
24 |
+
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
+
*/
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Renders form
|
30 |
+
*
|
31 |
+
* @category Invodo
|
32 |
+
* @package Invodo_Video
|
33 |
+
*/
|
34 |
+
class Invodo_Video_Block_Adminhtml_System_Config_Form extends Mage_Adminhtml_Block_System_Config_Form
|
35 |
+
{
|
36 |
+
/**
|
37 |
+
* Adds specific field types
|
38 |
+
*
|
39 |
+
* @return array
|
40 |
+
*/
|
41 |
+
protected function _getAdditionalElementTypes()
|
42 |
+
{
|
43 |
+
$types = parent::_getAdditionalElementTypes();
|
44 |
+
$types['autoplay'] = $this->_getClassName('autoplay');
|
45 |
+
$types['videoresolution'] = $this->_getClassName('videoresolution');
|
46 |
+
$types['overlayactionsource'] = $this->_getClassName('overlayactionsource');
|
47 |
+
$types['export'] = $this->_getClassName('export');
|
48 |
+
|
49 |
+
return $types;
|
50 |
+
}
|
51 |
+
|
52 |
+
/**
|
53 |
+
* Gets class name
|
54 |
+
*
|
55 |
+
* @param string $class
|
56 |
+
* @return string
|
57 |
+
*/
|
58 |
+
protected function _getClassName($class)
|
59 |
+
{
|
60 |
+
$class = 'invodo_video/adminhtml_system_config_form_field_' . $class;
|
61 |
+
|
62 |
+
return Mage::getConfig()->getBlockClassName($class);
|
63 |
+
}
|
64 |
}
|
app/code/community/Invodo/Video/Block/Adminhtml/System/Config/Form/Field/Autoplay.php
CHANGED
@@ -1,56 +1,57 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* NOTICE OF LICENSE
|
4 |
-
*
|
5 |
-
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
-
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
-
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
-
* display and use the Software (in object code only) only on the computers
|
9 |
-
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
-
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
-
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
-
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
-
* unless such Update is accompanied by or references a separate license
|
14 |
-
* agreement in which case the terms and conditions of that agreement will
|
15 |
-
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
-
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
-
* as provided herein, the term of each individual license granted under this
|
18 |
-
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
-
* as otherwise set forth herein.Each party recognizes that
|
20 |
-
* Company grants no licenses except for the license expressly set forth.
|
21 |
-
*
|
22 |
-
* @category Invodo
|
23 |
-
* @package Invodo_Video
|
24 |
-
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
-
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
-
*/
|
27 |
-
|
28 |
-
/**
|
29 |
-
* Renders form element
|
30 |
-
*
|
31 |
-
* @category Invodo
|
32 |
-
* @package Invodo_Video
|
33 |
-
*/
|
34 |
-
class Invodo_Video_Block_Adminhtml_System_Config_Form_Field_Autoplay extends Varien_Data_Form_Element_Radios
|
35 |
-
{
|
36 |
-
/**
|
37 |
-
* Retrieves element html
|
38 |
-
*
|
39 |
-
* @return string
|
40 |
-
*/
|
41 |
-
public function getElementHtml()
|
42 |
-
{
|
43 |
-
$disabled = $this->getDisabled();
|
44 |
-
$html = sprintf('<div id="%s">%s</div>', $this->getHtmlId(), parent::getElementHtml());
|
45 |
-
|
46 |
-
if ($disabled) {
|
47 |
-
$html = str_replace('type="radio"', 'disabled type="radio"', $html);
|
48 |
-
|
49 |
-
foreach ($this->getValues() as $option) {
|
50 |
-
$html .= sprintf('<input type="hidden" id="%s" checked="checked">',
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
|
|
56 |
}
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* NOTICE OF LICENSE
|
4 |
+
*
|
5 |
+
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
+
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
+
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
+
* display and use the Software (in object code only) only on the computers
|
9 |
+
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
+
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
+
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
+
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
+
* unless such Update is accompanied by or references a separate license
|
14 |
+
* agreement in which case the terms and conditions of that agreement will
|
15 |
+
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
+
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
+
* as provided herein, the term of each individual license granted under this
|
18 |
+
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
+
* as otherwise set forth herein.Each party recognizes that
|
20 |
+
* Company grants no licenses except for the license expressly set forth.
|
21 |
+
*
|
22 |
+
* @category Invodo
|
23 |
+
* @package Invodo_Video
|
24 |
+
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
+
*/
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Renders form element
|
30 |
+
*
|
31 |
+
* @category Invodo
|
32 |
+
* @package Invodo_Video
|
33 |
+
*/
|
34 |
+
class Invodo_Video_Block_Adminhtml_System_Config_Form_Field_Autoplay extends Varien_Data_Form_Element_Radios
|
35 |
+
{
|
36 |
+
/**
|
37 |
+
* Retrieves element html
|
38 |
+
*
|
39 |
+
* @return string
|
40 |
+
*/
|
41 |
+
public function getElementHtml()
|
42 |
+
{
|
43 |
+
$disabled = $this->getDisabled();
|
44 |
+
$html = sprintf('<div id="%s">%s</div>', $this->getHtmlId(), parent::getElementHtml());
|
45 |
+
|
46 |
+
if ($disabled) {
|
47 |
+
$html = str_replace('type="radio"', 'disabled type="radio"', $html);
|
48 |
+
|
49 |
+
foreach ($this->getValues() as $option) {
|
50 |
+
$html .= sprintf('<input type="hidden" id="%s" checked="checked">',
|
51 |
+
$this->getHtmlId() . $option['value'] . '_inherit');
|
52 |
+
}
|
53 |
+
}
|
54 |
+
|
55 |
+
return $html;
|
56 |
+
}
|
57 |
}
|
app/code/community/Invodo/Video/Block/Adminhtml/System/Config/Form/Field/Export.php
CHANGED
@@ -1,57 +1,57 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* NOTICE OF LICENSE
|
4 |
-
*
|
5 |
-
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
-
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
-
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
-
* display and use the Software (in object code only) only on the computers
|
9 |
-
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
-
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
-
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
-
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
-
* unless such Update is accompanied by or references a separate license
|
14 |
-
* agreement in which case the terms and conditions of that agreement will
|
15 |
-
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
-
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
-
* as provided herein, the term of each individual license granted under this
|
18 |
-
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
-
* as otherwise set forth herein.Each party recognizes that
|
20 |
-
* Company grants no licenses except for the license expressly set forth.
|
21 |
-
*
|
22 |
-
* @category Invodo
|
23 |
-
* @package Invodo_Video
|
24 |
-
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
-
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
-
*/
|
27 |
-
|
28 |
-
/**
|
29 |
-
* Renders form element
|
30 |
-
*
|
31 |
-
* @category Invodo
|
32 |
-
* @package Invodo_Video
|
33 |
-
*/
|
34 |
-
class Invodo_Video_Block_Adminhtml_System_Config_Form_Field_Export extends Varien_Data_Form_Element_Abstract
|
35 |
-
{
|
36 |
-
/**
|
37 |
-
* Retrieves element html
|
38 |
-
*
|
39 |
-
* @return string
|
40 |
-
*/
|
41 |
-
public function getElementHtml()
|
42 |
-
{
|
43 |
-
$buttonBlock = $this->getForm()->getParent()->getLayout()->createBlock('adminhtml/widget_button');
|
44 |
-
$params = array(
|
45 |
-
'website' => $buttonBlock->getRequest()->getParam('website')
|
46 |
-
);
|
47 |
-
|
48 |
-
$url = Mage::helper('adminhtml')->getUrl('invodo_video/adminhtml_export/export', $params);
|
49 |
-
$data = array(
|
50 |
-
'label' => Mage::helper('invodo_video')->__('Export'),
|
51 |
-
'onclick' => "setLocation('$url')",
|
52 |
-
'class' => '',
|
53 |
-
);
|
54 |
-
|
55 |
-
return $buttonBlock->setData($data)->toHtml();
|
56 |
-
}
|
57 |
}
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* NOTICE OF LICENSE
|
4 |
+
*
|
5 |
+
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
+
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
+
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
+
* display and use the Software (in object code only) only on the computers
|
9 |
+
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
+
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
+
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
+
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
+
* unless such Update is accompanied by or references a separate license
|
14 |
+
* agreement in which case the terms and conditions of that agreement will
|
15 |
+
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
+
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
+
* as provided herein, the term of each individual license granted under this
|
18 |
+
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
+
* as otherwise set forth herein.Each party recognizes that
|
20 |
+
* Company grants no licenses except for the license expressly set forth.
|
21 |
+
*
|
22 |
+
* @category Invodo
|
23 |
+
* @package Invodo_Video
|
24 |
+
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
+
*/
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Renders form element
|
30 |
+
*
|
31 |
+
* @category Invodo
|
32 |
+
* @package Invodo_Video
|
33 |
+
*/
|
34 |
+
class Invodo_Video_Block_Adminhtml_System_Config_Form_Field_Export extends Varien_Data_Form_Element_Abstract
|
35 |
+
{
|
36 |
+
/**
|
37 |
+
* Retrieves element html
|
38 |
+
*
|
39 |
+
* @return string
|
40 |
+
*/
|
41 |
+
public function getElementHtml()
|
42 |
+
{
|
43 |
+
$buttonBlock = $this->getForm()->getParent()->getLayout()->createBlock('adminhtml/widget_button');
|
44 |
+
$params = array(
|
45 |
+
'website' => $buttonBlock->getRequest()->getParam('website')
|
46 |
+
);
|
47 |
+
|
48 |
+
$url = Mage::helper('adminhtml')->getUrl('invodo_video/adminhtml_export/export', $params);
|
49 |
+
$data = array(
|
50 |
+
'label' => Mage::helper('invodo_video')->__('Export'),
|
51 |
+
'onclick' => "setLocation('$url')",
|
52 |
+
'class' => '',
|
53 |
+
);
|
54 |
+
|
55 |
+
return $buttonBlock->setData($data)->toHtml();
|
56 |
+
}
|
57 |
}
|
app/code/community/Invodo/Video/Block/Adminhtml/System/Config/Form/Field/Overlayactionsource.php
CHANGED
@@ -1,51 +1,51 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* NOTICE OF LICENSE
|
4 |
-
*
|
5 |
-
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
-
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
-
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
-
* display and use the Software (in object code only) only on the computers
|
9 |
-
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
-
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
-
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
-
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
-
* unless such Update is accompanied by or references a separate license
|
14 |
-
* agreement in which case the terms and conditions of that agreement will
|
15 |
-
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
-
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
-
* as provided herein, the term of each individual license granted under this
|
18 |
-
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
-
* as otherwise set forth herein.Each party recognizes that
|
20 |
-
* Company grants no licenses except for the license expressly set forth.
|
21 |
-
*
|
22 |
-
* @category Invodo
|
23 |
-
* @package Invodo_Video
|
24 |
-
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
-
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
-
*/
|
27 |
-
|
28 |
-
/**
|
29 |
-
* Renders form element
|
30 |
-
*
|
31 |
-
* @category Invodo
|
32 |
-
* @package Invodo_Video
|
33 |
-
*/
|
34 |
-
class Invodo_Video_Block_Adminhtml_System_Config_Form_Field_Overlayactionsource extends Varien_Data_Form_Element_Text
|
35 |
-
{
|
36 |
-
/**
|
37 |
-
* Retrieves element html
|
38 |
-
*
|
39 |
-
* @return string
|
40 |
-
*/
|
41 |
-
public function getElementHtml()
|
42 |
-
{
|
43 |
-
/** @var Mage_Core_Block_Template $block */
|
44 |
-
$block = Mage::app()->getLayout()->createBlock('core/template');
|
45 |
-
$block->setTemplate('invodo/video/system/config/form/renderer/overlayactionsource.phtml');
|
46 |
-
$block->setElement($this);
|
47 |
-
$block->setHeightElementId(str_replace('width', 'height', $this->getHtmlId()));
|
48 |
-
|
49 |
-
return $block->toHtml();
|
50 |
-
}
|
51 |
}
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* NOTICE OF LICENSE
|
4 |
+
*
|
5 |
+
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
+
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
+
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
+
* display and use the Software (in object code only) only on the computers
|
9 |
+
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
+
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
+
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
+
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
+
* unless such Update is accompanied by or references a separate license
|
14 |
+
* agreement in which case the terms and conditions of that agreement will
|
15 |
+
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
+
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
+
* as provided herein, the term of each individual license granted under this
|
18 |
+
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
+
* as otherwise set forth herein.Each party recognizes that
|
20 |
+
* Company grants no licenses except for the license expressly set forth.
|
21 |
+
*
|
22 |
+
* @category Invodo
|
23 |
+
* @package Invodo_Video
|
24 |
+
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
+
*/
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Renders form element
|
30 |
+
*
|
31 |
+
* @category Invodo
|
32 |
+
* @package Invodo_Video
|
33 |
+
*/
|
34 |
+
class Invodo_Video_Block_Adminhtml_System_Config_Form_Field_Overlayactionsource extends Varien_Data_Form_Element_Text
|
35 |
+
{
|
36 |
+
/**
|
37 |
+
* Retrieves element html
|
38 |
+
*
|
39 |
+
* @return string
|
40 |
+
*/
|
41 |
+
public function getElementHtml()
|
42 |
+
{
|
43 |
+
/** @var Mage_Core_Block_Template $block */
|
44 |
+
$block = Mage::app()->getLayout()->createBlock('core/template');
|
45 |
+
$block->setTemplate('invodo/video/system/config/form/renderer/overlayactionsource.phtml');
|
46 |
+
$block->setElement($this);
|
47 |
+
$block->setHeightElementId(str_replace('width', 'height', $this->getHtmlId()));
|
48 |
+
|
49 |
+
return $block->toHtml();
|
50 |
+
}
|
51 |
}
|
app/code/community/Invodo/Video/Block/Adminhtml/System/Config/Form/Field/Videoresolution.php
CHANGED
@@ -1,56 +1,56 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* NOTICE OF LICENSE
|
4 |
-
*
|
5 |
-
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
-
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
-
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
-
* display and use the Software (in object code only) only on the computers
|
9 |
-
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
-
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
-
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
-
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
-
* unless such Update is accompanied by or references a separate license
|
14 |
-
* agreement in which case the terms and conditions of that agreement will
|
15 |
-
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
-
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
-
* as provided herein, the term of each individual license granted under this
|
18 |
-
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
-
* as otherwise set forth herein.Each party recognizes that
|
20 |
-
* Company grants no licenses except for the license expressly set forth.
|
21 |
-
*
|
22 |
-
* @category Invodo
|
23 |
-
* @package Invodo_Video
|
24 |
-
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
-
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
-
*/
|
27 |
-
|
28 |
-
/**
|
29 |
-
* Renders form element
|
30 |
-
*
|
31 |
-
* @category Invodo
|
32 |
-
* @package Invodo_Video
|
33 |
-
*/
|
34 |
-
class Invodo_Video_Block_Adminhtml_System_Config_Form_Field_Videoresolution extends Varien_Data_Form_Element_Text
|
35 |
-
{
|
36 |
-
/**
|
37 |
-
* Retrieves element html
|
38 |
-
*
|
39 |
-
* @return string
|
40 |
-
*/
|
41 |
-
public function getElementHtml()
|
42 |
-
{
|
43 |
-
/** @var Mage_Core_Block_Template $block */
|
44 |
-
$block = Mage::app()->getLayout()->createBlock('core/template');
|
45 |
-
$block->setTemplate('invodo/video/system/config/form/renderer/videoresolution.phtml');
|
46 |
-
$block->setElement($this);
|
47 |
-
|
48 |
-
/** @var Invodo_Video_Helper_Data $helper */
|
49 |
-
$helper = Mage::helper('invodo_video');
|
50 |
-
$resolution = $helper->splitResolution($this->getValue());
|
51 |
-
$block->addData($resolution);
|
52 |
-
$this->setValue(implode('x', $resolution));
|
53 |
-
|
54 |
-
return $block->toHtml();
|
55 |
-
}
|
56 |
}
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* NOTICE OF LICENSE
|
4 |
+
*
|
5 |
+
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
+
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
+
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
+
* display and use the Software (in object code only) only on the computers
|
9 |
+
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
+
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
+
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
+
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
+
* unless such Update is accompanied by or references a separate license
|
14 |
+
* agreement in which case the terms and conditions of that agreement will
|
15 |
+
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
+
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
+
* as provided herein, the term of each individual license granted under this
|
18 |
+
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
+
* as otherwise set forth herein.Each party recognizes that
|
20 |
+
* Company grants no licenses except for the license expressly set forth.
|
21 |
+
*
|
22 |
+
* @category Invodo
|
23 |
+
* @package Invodo_Video
|
24 |
+
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
+
*/
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Renders form element
|
30 |
+
*
|
31 |
+
* @category Invodo
|
32 |
+
* @package Invodo_Video
|
33 |
+
*/
|
34 |
+
class Invodo_Video_Block_Adminhtml_System_Config_Form_Field_Videoresolution extends Varien_Data_Form_Element_Text
|
35 |
+
{
|
36 |
+
/**
|
37 |
+
* Retrieves element html
|
38 |
+
*
|
39 |
+
* @return string
|
40 |
+
*/
|
41 |
+
public function getElementHtml()
|
42 |
+
{
|
43 |
+
/** @var Mage_Core_Block_Template $block */
|
44 |
+
$block = Mage::app()->getLayout()->createBlock('core/template');
|
45 |
+
$block->setTemplate('invodo/video/system/config/form/renderer/videoresolution.phtml');
|
46 |
+
$block->setElement($this);
|
47 |
+
|
48 |
+
/** @var Invodo_Video_Helper_Data $helper */
|
49 |
+
$helper = Mage::helper('invodo_video');
|
50 |
+
$resolution = $helper->splitResolution($this->getValue());
|
51 |
+
$block->addData($resolution);
|
52 |
+
$this->setValue(implode('x', $resolution));
|
53 |
+
|
54 |
+
return $block->toHtml();
|
55 |
+
}
|
56 |
}
|
app/code/community/Invodo/Video/Block/Adminhtml/Widget/Form/Element/Dependence.php
ADDED
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* NOTICE OF LICENSE
|
4 |
+
*
|
5 |
+
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
+
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
+
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
+
* display and use the Software (in object code only) only on the computers
|
9 |
+
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
+
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
+
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
+
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
+
* unless such Update is accompanied by or references a separate license
|
14 |
+
* agreement in which case the terms and conditions of that agreement will
|
15 |
+
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
+
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
+
* as provided herein, the term of each individual license granted under this
|
18 |
+
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
+
* as otherwise set forth herein.Each party recognizes that
|
20 |
+
* Company grants no licenses except for the license expressly set forth.
|
21 |
+
*
|
22 |
+
* @category Invodo
|
23 |
+
* @package Invodo_Video
|
24 |
+
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
+
*/
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Renders form element
|
30 |
+
*
|
31 |
+
* @category Invodo
|
32 |
+
* @package Invodo_Video
|
33 |
+
*/
|
34 |
+
class Invodo_Video_Block_Adminhtml_Widget_Form_Element_Dependence
|
35 |
+
extends Mage_Adminhtml_Block_Widget_Form_Element_Dependence
|
36 |
+
{
|
37 |
+
/**
|
38 |
+
* Register field name dependence one from each other by specified values
|
39 |
+
*
|
40 |
+
*
|
41 |
+
* @param string $fieldName
|
42 |
+
* @param string $fieldNameFrom
|
43 |
+
* @param string|array $refValues
|
44 |
+
* @return Mage_Adminhtml_Block_Widget_Form_Element_Dependence
|
45 |
+
*/
|
46 |
+
public function addFieldDependence($fieldName, $fieldNameFrom, $refValues)
|
47 |
+
{
|
48 |
+
if (version_compare(Mage::getVersion(), '1.7.0.0', '<')) {
|
49 |
+
$this->_depends[$fieldName][$fieldNameFrom] = $refValues;
|
50 |
+
return $this;
|
51 |
+
} else {
|
52 |
+
return parent::addFieldDependence($fieldName, $fieldNameFrom, $refValues);
|
53 |
+
}
|
54 |
+
}
|
55 |
+
}
|
app/code/community/Invodo/Video/Block/Adminhtml/Widget/Renderer/Autoplay.php
CHANGED
@@ -1,53 +1,53 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* NOTICE OF LICENSE
|
4 |
-
*
|
5 |
-
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
-
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
-
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
-
* display and use the Software (in object code only) only on the computers
|
9 |
-
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
-
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
-
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
-
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
-
* unless such Update is accompanied by or references a separate license
|
14 |
-
* agreement in which case the terms and conditions of that agreement will
|
15 |
-
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
-
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
-
* as provided herein, the term of each individual license granted under this
|
18 |
-
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
-
* as otherwise set forth herein.Each party recognizes that
|
20 |
-
* Company grants no licenses except for the license expressly set forth.
|
21 |
-
*
|
22 |
-
* @category Invodo
|
23 |
-
* @package Invodo_Video
|
24 |
-
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
-
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
-
*/
|
27 |
-
|
28 |
-
/**
|
29 |
-
* Renders form element
|
30 |
-
*
|
31 |
-
* @category Invodo
|
32 |
-
* @package Invodo_Video
|
33 |
-
*/
|
34 |
-
class Invodo_Video_Block_Adminhtml_Widget_Renderer_Autoplay extends Mage_Core_Block_Abstract
|
35 |
-
{
|
36 |
-
/**
|
37 |
-
*
|
38 |
-
* @param Varien_Data_Form_Element_Abstract $element Form Element
|
39 |
-
* @return Varien_Data_Form_Element_Abstract
|
40 |
-
*/
|
41 |
-
public function prepareElementHtml(Varien_Data_Form_Element_Abstract $element)
|
42 |
-
{
|
43 |
-
$renderer = $element->getRenderer();
|
44 |
-
|
45 |
-
if ($renderer instanceof Mage_Adminhtml_Block_Widget_Form_Renderer_Fieldset_Element) {
|
46 |
-
$newRenderer = clone $renderer;
|
47 |
-
$newRenderer->setTemplate('invodo/video/widget/form/renderer/autoplay.phtml');
|
48 |
-
$element->setRenderer($newRenderer);
|
49 |
-
}
|
50 |
-
|
51 |
-
return $element;
|
52 |
-
}
|
53 |
}
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* NOTICE OF LICENSE
|
4 |
+
*
|
5 |
+
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
+
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
+
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
+
* display and use the Software (in object code only) only on the computers
|
9 |
+
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
+
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
+
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
+
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
+
* unless such Update is accompanied by or references a separate license
|
14 |
+
* agreement in which case the terms and conditions of that agreement will
|
15 |
+
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
+
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
+
* as provided herein, the term of each individual license granted under this
|
18 |
+
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
+
* as otherwise set forth herein.Each party recognizes that
|
20 |
+
* Company grants no licenses except for the license expressly set forth.
|
21 |
+
*
|
22 |
+
* @category Invodo
|
23 |
+
* @package Invodo_Video
|
24 |
+
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
+
*/
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Renders form element
|
30 |
+
*
|
31 |
+
* @category Invodo
|
32 |
+
* @package Invodo_Video
|
33 |
+
*/
|
34 |
+
class Invodo_Video_Block_Adminhtml_Widget_Renderer_Autoplay extends Mage_Core_Block_Abstract
|
35 |
+
{
|
36 |
+
/**
|
37 |
+
*
|
38 |
+
* @param Varien_Data_Form_Element_Abstract $element Form Element
|
39 |
+
* @return Varien_Data_Form_Element_Abstract
|
40 |
+
*/
|
41 |
+
public function prepareElementHtml(Varien_Data_Form_Element_Abstract $element)
|
42 |
+
{
|
43 |
+
$renderer = $element->getRenderer();
|
44 |
+
|
45 |
+
if ($renderer instanceof Mage_Adminhtml_Block_Widget_Form_Renderer_Fieldset_Element) {
|
46 |
+
$newRenderer = clone $renderer;
|
47 |
+
$newRenderer->setTemplate('invodo/video/widget/form/renderer/autoplay.phtml');
|
48 |
+
$element->setRenderer($newRenderer);
|
49 |
+
}
|
50 |
+
|
51 |
+
return $element;
|
52 |
+
}
|
53 |
}
|
app/code/community/Invodo/Video/Block/Adminhtml/Widget/Renderer/Overlayactionsource.php
CHANGED
@@ -1,57 +1,58 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* NOTICE OF LICENSE
|
4 |
-
*
|
5 |
-
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
-
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
-
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
-
* display and use the Software (in object code only) only on the computers
|
9 |
-
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
-
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
-
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
-
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
-
* unless such Update is accompanied by or references a separate license
|
14 |
-
* agreement in which case the terms and conditions of that agreement will
|
15 |
-
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
-
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
-
* as provided herein, the term of each individual license granted under this
|
18 |
-
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
-
* as otherwise set forth herein.Each party recognizes that
|
20 |
-
* Company grants no licenses except for the license expressly set forth.
|
21 |
-
*
|
22 |
-
* @category Invodo
|
23 |
-
* @package Invodo_Video
|
24 |
-
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
-
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
-
*/
|
27 |
-
|
28 |
-
/**
|
29 |
-
* Renders form element
|
30 |
-
*
|
31 |
-
* @category Invodo
|
32 |
-
* @package Invodo_Video
|
33 |
-
*/
|
34 |
-
class Invodo_Video_Block_Adminhtml_Widget_Renderer_Overlayactionsource extends
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
*
|
47 |
-
*
|
48 |
-
* @
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
$element
|
54 |
-
|
55 |
-
|
56 |
-
|
|
|
57 |
}
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* NOTICE OF LICENSE
|
4 |
+
*
|
5 |
+
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
+
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
+
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
+
* display and use the Software (in object code only) only on the computers
|
9 |
+
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
+
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
+
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
+
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
+
* unless such Update is accompanied by or references a separate license
|
14 |
+
* agreement in which case the terms and conditions of that agreement will
|
15 |
+
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
+
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
+
* as provided herein, the term of each individual license granted under this
|
18 |
+
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
+
* as otherwise set forth herein.Each party recognizes that
|
20 |
+
* Company grants no licenses except for the license expressly set forth.
|
21 |
+
*
|
22 |
+
* @category Invodo
|
23 |
+
* @package Invodo_Video
|
24 |
+
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
+
*/
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Renders form element
|
30 |
+
*
|
31 |
+
* @category Invodo
|
32 |
+
* @package Invodo_Video
|
33 |
+
*/
|
34 |
+
class Invodo_Video_Block_Adminhtml_Widget_Renderer_Overlayactionsource extends
|
35 |
+
Mage_Adminhtml_Block_Widget_Form_Renderer_Fieldset_Element
|
36 |
+
{
|
37 |
+
/**
|
38 |
+
* Sets template
|
39 |
+
*/
|
40 |
+
protected function _construct()
|
41 |
+
{
|
42 |
+
$this->setTemplate('invodo/video/widget/form/renderer/overlayactionsource.phtml');
|
43 |
+
}
|
44 |
+
|
45 |
+
/**
|
46 |
+
* Add special behavior to form element
|
47 |
+
*
|
48 |
+
* @param Varien_Data_Form_Element_Abstract $element
|
49 |
+
* @return string
|
50 |
+
*/
|
51 |
+
public function render(Varien_Data_Form_Element_Abstract $element)
|
52 |
+
{
|
53 |
+
$this->_element = $element;
|
54 |
+
$element->unsetData('label');
|
55 |
+
|
56 |
+
return $this->toHtml();
|
57 |
+
}
|
58 |
}
|
app/code/community/Invodo/Video/Block/Adminhtml/Widget/Renderer/Sourcetype.php
CHANGED
@@ -1,63 +1,63 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* NOTICE OF LICENSE
|
4 |
-
*
|
5 |
-
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
-
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
-
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
-
* display and use the Software (in object code only) only on the computers
|
9 |
-
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
-
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
-
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
-
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
-
* unless such Update is accompanied by or references a separate license
|
14 |
-
* agreement in which case the terms and conditions of that agreement will
|
15 |
-
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
-
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
-
* as provided herein, the term of each individual license granted under this
|
18 |
-
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
-
* as otherwise set forth herein.Each party recognizes that
|
20 |
-
* Company grants no licenses except for the license expressly set forth.
|
21 |
-
*
|
22 |
-
* @category Invodo
|
23 |
-
* @package Invodo_Video
|
24 |
-
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
-
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
-
*/
|
27 |
-
|
28 |
-
/**
|
29 |
-
* Renders form element
|
30 |
-
*
|
31 |
-
* @category Invodo
|
32 |
-
* @package Invodo_Video
|
33 |
-
*/
|
34 |
-
class Invodo_Video_Block_Adminhtml_Widget_Renderer_Sourcetype extends Mage_Core_Block_Abstract
|
35 |
-
{
|
36 |
-
/**
|
37 |
-
* Prepares element
|
38 |
-
*
|
39 |
-
* @param Varien_Data_Form_Element_Abstract $element Form Element
|
40 |
-
* @return Varien_Data_Form_Element_Abstract
|
41 |
-
*/
|
42 |
-
public function prepareElementHtml(Varien_Data_Form_Element_Abstract $element)
|
43 |
-
{
|
44 |
-
$element->setData('separator', '<br />');
|
45 |
-
$element->setRequired(false);
|
46 |
-
$element->setClass($element->getClass() . ' validate-one-required-by-name');
|
47 |
-
|
48 |
-
if ($element->getValue() === null) {
|
49 |
-
$element->setValue(Invodo_Video_Helper_Data::SOURCE_TYPE_REF);
|
50 |
-
}
|
51 |
-
|
52 |
-
/** @var Mage_Adminhtml_Block_Widget_Form_Renderer_Fieldset_Element $renderer */
|
53 |
-
$renderer = $element->getRenderer();
|
54 |
-
|
55 |
-
if ($renderer instanceof Mage_Adminhtml_Block_Widget_Form_Renderer_Fieldset_Element) {
|
56 |
-
$newRenderer = clone $renderer;
|
57 |
-
$newRenderer->setTemplate('invodo/video/widget/form/renderer/sourcetype.phtml');
|
58 |
-
$element->setRenderer($newRenderer);
|
59 |
-
}
|
60 |
-
|
61 |
-
return $element;
|
62 |
-
}
|
63 |
}
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* NOTICE OF LICENSE
|
4 |
+
*
|
5 |
+
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
+
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
+
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
+
* display and use the Software (in object code only) only on the computers
|
9 |
+
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
+
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
+
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
+
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
+
* unless such Update is accompanied by or references a separate license
|
14 |
+
* agreement in which case the terms and conditions of that agreement will
|
15 |
+
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
+
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
+
* as provided herein, the term of each individual license granted under this
|
18 |
+
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
+
* as otherwise set forth herein.Each party recognizes that
|
20 |
+
* Company grants no licenses except for the license expressly set forth.
|
21 |
+
*
|
22 |
+
* @category Invodo
|
23 |
+
* @package Invodo_Video
|
24 |
+
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
+
*/
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Renders form element
|
30 |
+
*
|
31 |
+
* @category Invodo
|
32 |
+
* @package Invodo_Video
|
33 |
+
*/
|
34 |
+
class Invodo_Video_Block_Adminhtml_Widget_Renderer_Sourcetype extends Mage_Core_Block_Abstract
|
35 |
+
{
|
36 |
+
/**
|
37 |
+
* Prepares element
|
38 |
+
*
|
39 |
+
* @param Varien_Data_Form_Element_Abstract $element Form Element
|
40 |
+
* @return Varien_Data_Form_Element_Abstract
|
41 |
+
*/
|
42 |
+
public function prepareElementHtml(Varien_Data_Form_Element_Abstract $element)
|
43 |
+
{
|
44 |
+
$element->setData('separator', '<br />');
|
45 |
+
$element->setRequired(false);
|
46 |
+
$element->setClass($element->getClass() . ' validate-one-required-by-name');
|
47 |
+
|
48 |
+
if ($element->getValue() === null) {
|
49 |
+
$element->setValue(Invodo_Video_Helper_Data::SOURCE_TYPE_REF);
|
50 |
+
}
|
51 |
+
|
52 |
+
/** @var Mage_Adminhtml_Block_Widget_Form_Renderer_Fieldset_Element $renderer */
|
53 |
+
$renderer = $element->getRenderer();
|
54 |
+
|
55 |
+
if ($renderer instanceof Mage_Adminhtml_Block_Widget_Form_Renderer_Fieldset_Element) {
|
56 |
+
$newRenderer = clone $renderer;
|
57 |
+
$newRenderer->setTemplate('invodo/video/widget/form/renderer/sourcetype.phtml');
|
58 |
+
$element->setRenderer($newRenderer);
|
59 |
+
}
|
60 |
+
|
61 |
+
return $element;
|
62 |
+
}
|
63 |
}
|
app/code/community/Invodo/Video/Block/Adminhtml/Widget/Renderer/Sourcevalue.php
CHANGED
@@ -1,49 +1,49 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* NOTICE OF LICENSE
|
4 |
-
*
|
5 |
-
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
-
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
-
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
-
* display and use the Software (in object code only) only on the computers
|
9 |
-
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
-
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
-
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
-
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
-
* unless such Update is accompanied by or references a separate license
|
14 |
-
* agreement in which case the terms and conditions of that agreement will
|
15 |
-
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
-
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
-
* as provided herein, the term of each individual license granted under this
|
18 |
-
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
-
* as otherwise set forth herein.Each party recognizes that
|
20 |
-
* Company grants no licenses except for the license expressly set forth.
|
21 |
-
*
|
22 |
-
* @category Invodo
|
23 |
-
* @package Invodo_Video
|
24 |
-
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
-
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
-
*/
|
27 |
-
|
28 |
-
/**
|
29 |
-
* Renders form element
|
30 |
-
*
|
31 |
-
* @category Invodo
|
32 |
-
* @package Invodo_Video
|
33 |
-
*/
|
34 |
-
class Invodo_Video_Block_Adminhtml_Widget_Renderer_Sourcevalue extends Mage_Core_Block_Abstract
|
35 |
-
{
|
36 |
-
/**
|
37 |
-
* Prepares element
|
38 |
-
*
|
39 |
-
* @param Varien_Data_Form_Element_Abstract $element Form Element
|
40 |
-
* @return Varien_Data_Form_Element_Abstract
|
41 |
-
*/
|
42 |
-
public function prepareElementHtml(Varien_Data_Form_Element_Abstract $element)
|
43 |
-
{
|
44 |
-
$element->unsetData('label');
|
45 |
-
$element->setData('maxlength', 500);
|
46 |
-
|
47 |
-
return $element;
|
48 |
-
}
|
49 |
}
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* NOTICE OF LICENSE
|
4 |
+
*
|
5 |
+
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
+
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
+
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
+
* display and use the Software (in object code only) only on the computers
|
9 |
+
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
+
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
+
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
+
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
+
* unless such Update is accompanied by or references a separate license
|
14 |
+
* agreement in which case the terms and conditions of that agreement will
|
15 |
+
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
+
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
+
* as provided herein, the term of each individual license granted under this
|
18 |
+
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
+
* as otherwise set forth herein.Each party recognizes that
|
20 |
+
* Company grants no licenses except for the license expressly set forth.
|
21 |
+
*
|
22 |
+
* @category Invodo
|
23 |
+
* @package Invodo_Video
|
24 |
+
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
+
*/
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Renders form element
|
30 |
+
*
|
31 |
+
* @category Invodo
|
32 |
+
* @package Invodo_Video
|
33 |
+
*/
|
34 |
+
class Invodo_Video_Block_Adminhtml_Widget_Renderer_Sourcevalue extends Mage_Core_Block_Abstract
|
35 |
+
{
|
36 |
+
/**
|
37 |
+
* Prepares element
|
38 |
+
*
|
39 |
+
* @param Varien_Data_Form_Element_Abstract $element Form Element
|
40 |
+
* @return Varien_Data_Form_Element_Abstract
|
41 |
+
*/
|
42 |
+
public function prepareElementHtml(Varien_Data_Form_Element_Abstract $element)
|
43 |
+
{
|
44 |
+
$element->unsetData('label');
|
45 |
+
$element->setData('maxlength', 500);
|
46 |
+
|
47 |
+
return $element;
|
48 |
+
}
|
49 |
}
|
app/code/community/Invodo/Video/Block/Adminhtml/Widget/Renderer/Videoresolution.php
CHANGED
@@ -1,60 +1,61 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* NOTICE OF LICENSE
|
4 |
-
*
|
5 |
-
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
-
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
-
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
-
* display and use the Software (in object code only) only on the computers
|
9 |
-
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
-
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
-
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
-
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
-
* unless such Update is accompanied by or references a separate license
|
14 |
-
* agreement in which case the terms and conditions of that agreement will
|
15 |
-
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
-
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
-
* as provided herein, the term of each individual license granted under this
|
18 |
-
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
-
* as otherwise set forth herein.Each party recognizes that
|
20 |
-
* Company grants no licenses except for the license expressly set forth.
|
21 |
-
*
|
22 |
-
* @category Invodo
|
23 |
-
* @package Invodo_Video
|
24 |
-
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
-
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
-
*/
|
27 |
-
|
28 |
-
/**
|
29 |
-
* Renders form element
|
30 |
-
*
|
31 |
-
* @category Invodo
|
32 |
-
* @package Invodo_Video
|
33 |
-
*/
|
34 |
-
class Invodo_Video_Block_Adminhtml_Widget_Renderer_Videoresolution extends
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
*
|
47 |
-
*
|
48 |
-
* @
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
$helper
|
54 |
-
$
|
55 |
-
$
|
56 |
-
$
|
57 |
-
|
58 |
-
|
59 |
-
|
|
|
60 |
}
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* NOTICE OF LICENSE
|
4 |
+
*
|
5 |
+
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
+
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
+
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
+
* display and use the Software (in object code only) only on the computers
|
9 |
+
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
+
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
+
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
+
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
+
* unless such Update is accompanied by or references a separate license
|
14 |
+
* agreement in which case the terms and conditions of that agreement will
|
15 |
+
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
+
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
+
* as provided herein, the term of each individual license granted under this
|
18 |
+
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
+
* as otherwise set forth herein.Each party recognizes that
|
20 |
+
* Company grants no licenses except for the license expressly set forth.
|
21 |
+
*
|
22 |
+
* @category Invodo
|
23 |
+
* @package Invodo_Video
|
24 |
+
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
+
*/
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Renders form element
|
30 |
+
*
|
31 |
+
* @category Invodo
|
32 |
+
* @package Invodo_Video
|
33 |
+
*/
|
34 |
+
class Invodo_Video_Block_Adminhtml_Widget_Renderer_Videoresolution extends
|
35 |
+
Mage_Adminhtml_Block_Widget_Form_Renderer_Fieldset_Element
|
36 |
+
{
|
37 |
+
/**
|
38 |
+
* Sets template
|
39 |
+
*/
|
40 |
+
protected function _construct()
|
41 |
+
{
|
42 |
+
$this->setTemplate('invodo/video/widget/form/renderer/videoresolution.phtml');
|
43 |
+
}
|
44 |
+
|
45 |
+
/**
|
46 |
+
* Renders element
|
47 |
+
*
|
48 |
+
* @param Varien_Data_Form_Element_Abstract $element
|
49 |
+
* @return string
|
50 |
+
*/
|
51 |
+
public function render(Varien_Data_Form_Element_Abstract $element)
|
52 |
+
{
|
53 |
+
/** @var Invodo_Video_Helper_Data $helper */
|
54 |
+
$helper = Mage::helper('invodo_video');
|
55 |
+
$resolution = $helper->splitResolution($element->getValue());
|
56 |
+
$this->addData($resolution);
|
57 |
+
$element->setValue(implode('x', $resolution));
|
58 |
+
|
59 |
+
return parent::render($element);
|
60 |
+
}
|
61 |
}
|
app/code/community/Invodo/Video/Block/Conversion/Abstract.php
CHANGED
@@ -1,111 +1,111 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* NOTICE OF LICENSE
|
4 |
-
*
|
5 |
-
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
-
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
-
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
-
* display and use the Software (in object code only) only on the computers
|
9 |
-
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
-
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
-
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
-
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
-
* unless such Update is accompanied by or references a separate license
|
14 |
-
* agreement in which case the terms and conditions of that agreement will
|
15 |
-
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
-
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
-
* as provided herein, the term of each individual license granted under this
|
18 |
-
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
-
* as otherwise set forth herein.Each party recognizes that
|
20 |
-
* Company grants no licenses except for the license expressly set forth.
|
21 |
-
*
|
22 |
-
* @category Invodo
|
23 |
-
* @package Invodo_Video
|
24 |
-
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
-
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
-
*/
|
27 |
-
|
28 |
-
/**
|
29 |
-
* Renders conversion section
|
30 |
-
*
|
31 |
-
* @category Invodo
|
32 |
-
* @package Invodo_Video
|
33 |
-
*/
|
34 |
-
abstract class Invodo_Video_Block_Conversion_Abstract extends Mage_Core_Block_Template
|
35 |
-
{
|
36 |
-
/**
|
37 |
-
* All events
|
38 |
-
*
|
39 |
-
* @var array
|
40 |
-
*/
|
41 |
-
protected $_events = array();
|
42 |
-
|
43 |
-
/**
|
44 |
-
* Set events property, checks ability to render
|
45 |
-
*
|
46 |
-
* @return Mage_Core_Block_Abstract
|
47 |
-
*/
|
48 |
-
protected function _toHtml()
|
49 |
-
{
|
50 |
-
/** @var Invodo_Video_Helper_Data $helper */
|
51 |
-
$helper = Mage::helper('invodo_video');
|
52 |
-
|
53 |
-
if (!$helper->isEnabled()) {
|
54 |
-
return '';
|
55 |
-
}
|
56 |
-
|
57 |
-
/** @var Invodo_Video_Model_Config $config */
|
58 |
-
$config = Mage::getSingleton('invodo_video/config');
|
59 |
-
|
60 |
-
if (!$config->getGeneralConfig('enable_conversion_tracking')) {
|
61 |
-
return '';
|
62 |
-
}
|
63 |
-
|
64 |
-
$this->_initEvents();
|
65 |
-
|
66 |
-
if (!count($this->_events)) {
|
67 |
-
return '';
|
68 |
-
}
|
69 |
-
|
70 |
-
return parent::_toHtml();
|
71 |
-
}
|
72 |
-
|
73 |
-
/**
|
74 |
-
* Initializes events property
|
75 |
-
*
|
76 |
-
* @return void
|
77 |
-
*/
|
78 |
-
protected abstract function _initEvents();
|
79 |
-
|
80 |
-
/**
|
81 |
-
* Retrieves events
|
82 |
-
*
|
83 |
-
* @return array
|
84 |
-
*/
|
85 |
-
public function getEvents()
|
86 |
-
{
|
87 |
-
return $this->_events;
|
88 |
-
}
|
89 |
-
|
90 |
-
/**
|
91 |
-
* Retrieves event name
|
92 |
-
*
|
93 |
-
* @param array $event
|
94 |
-
* @return bool
|
95 |
-
*/
|
96 |
-
public function getEventName(array $event)
|
97 |
-
{
|
98 |
-
return isset($event['name']) ? $event['name'] : false;
|
99 |
-
}
|
100 |
-
|
101 |
-
/**
|
102 |
-
* Retrieves event params
|
103 |
-
*
|
104 |
-
* @param array $event
|
105 |
-
* @return bool|string
|
106 |
-
*/
|
107 |
-
public function getEventParams(array $event)
|
108 |
-
{
|
109 |
-
return isset($event['params']) ? json_encode($event['params']) : false;
|
110 |
-
}
|
111 |
}
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* NOTICE OF LICENSE
|
4 |
+
*
|
5 |
+
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
+
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
+
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
+
* display and use the Software (in object code only) only on the computers
|
9 |
+
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
+
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
+
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
+
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
+
* unless such Update is accompanied by or references a separate license
|
14 |
+
* agreement in which case the terms and conditions of that agreement will
|
15 |
+
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
+
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
+
* as provided herein, the term of each individual license granted under this
|
18 |
+
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
+
* as otherwise set forth herein.Each party recognizes that
|
20 |
+
* Company grants no licenses except for the license expressly set forth.
|
21 |
+
*
|
22 |
+
* @category Invodo
|
23 |
+
* @package Invodo_Video
|
24 |
+
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
+
*/
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Renders conversion section
|
30 |
+
*
|
31 |
+
* @category Invodo
|
32 |
+
* @package Invodo_Video
|
33 |
+
*/
|
34 |
+
abstract class Invodo_Video_Block_Conversion_Abstract extends Mage_Core_Block_Template
|
35 |
+
{
|
36 |
+
/**
|
37 |
+
* All events
|
38 |
+
*
|
39 |
+
* @var array
|
40 |
+
*/
|
41 |
+
protected $_events = array();
|
42 |
+
|
43 |
+
/**
|
44 |
+
* Set events property, checks ability to render
|
45 |
+
*
|
46 |
+
* @return Mage_Core_Block_Abstract
|
47 |
+
*/
|
48 |
+
protected function _toHtml()
|
49 |
+
{
|
50 |
+
/** @var Invodo_Video_Helper_Data $helper */
|
51 |
+
$helper = Mage::helper('invodo_video');
|
52 |
+
|
53 |
+
if (!$helper->isEnabled()) {
|
54 |
+
return '';
|
55 |
+
}
|
56 |
+
|
57 |
+
/** @var Invodo_Video_Model_Config $config */
|
58 |
+
$config = Mage::getSingleton('invodo_video/config');
|
59 |
+
|
60 |
+
if (!$config->getGeneralConfig('enable_conversion_tracking')) {
|
61 |
+
return '';
|
62 |
+
}
|
63 |
+
|
64 |
+
$this->_initEvents();
|
65 |
+
|
66 |
+
if (!count($this->_events)) {
|
67 |
+
return '';
|
68 |
+
}
|
69 |
+
|
70 |
+
return parent::_toHtml();
|
71 |
+
}
|
72 |
+
|
73 |
+
/**
|
74 |
+
* Initializes events property
|
75 |
+
*
|
76 |
+
* @return void
|
77 |
+
*/
|
78 |
+
protected abstract function _initEvents();
|
79 |
+
|
80 |
+
/**
|
81 |
+
* Retrieves events
|
82 |
+
*
|
83 |
+
* @return array
|
84 |
+
*/
|
85 |
+
public function getEvents()
|
86 |
+
{
|
87 |
+
return $this->_events;
|
88 |
+
}
|
89 |
+
|
90 |
+
/**
|
91 |
+
* Retrieves event name
|
92 |
+
*
|
93 |
+
* @param array $event
|
94 |
+
* @return bool
|
95 |
+
*/
|
96 |
+
public function getEventName(array $event)
|
97 |
+
{
|
98 |
+
return isset($event['name']) ? $event['name'] : false;
|
99 |
+
}
|
100 |
+
|
101 |
+
/**
|
102 |
+
* Retrieves event params
|
103 |
+
*
|
104 |
+
* @param array $event
|
105 |
+
* @return bool|string
|
106 |
+
*/
|
107 |
+
public function getEventParams(array $event)
|
108 |
+
{
|
109 |
+
return isset($event['params']) ? json_encode($event['params']) : false;
|
110 |
+
}
|
111 |
}
|
app/code/community/Invodo/Video/Block/Conversion/Register.php
CHANGED
@@ -1,43 +1,43 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* NOTICE OF LICENSE
|
4 |
-
*
|
5 |
-
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
-
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
-
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
-
* display and use the Software (in object code only) only on the computers
|
9 |
-
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
-
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
-
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
-
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
-
* unless such Update is accompanied by or references a separate license
|
14 |
-
* agreement in which case the terms and conditions of that agreement will
|
15 |
-
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
-
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
-
* as provided herein, the term of each individual license granted under this
|
18 |
-
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
-
* as otherwise set forth herein.Each party recognizes that
|
20 |
-
* Company grants no licenses except for the license expressly set forth.
|
21 |
-
*
|
22 |
-
* @category Invodo
|
23 |
-
* @package Invodo_Video
|
24 |
-
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
-
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
-
*/
|
27 |
-
|
28 |
-
/**
|
29 |
-
* Renders conversion section from registry
|
30 |
-
*
|
31 |
-
* @category Invodo
|
32 |
-
* @package Invodo_Video
|
33 |
-
*/
|
34 |
-
class Invodo_Video_Block_Conversion_Register extends Invodo_Video_Block_Conversion_Abstract
|
35 |
-
{
|
36 |
-
/**
|
37 |
-
* @see Invodo_Video_Block_Conversion_Abstract::_initEvents
|
38 |
-
*/
|
39 |
-
protected function _initEvents()
|
40 |
-
{
|
41 |
-
$this->_events = (array)Mage::registry(Invodo_Video_Helper_Data::EVENTS_REGISTRY_NAME);
|
42 |
-
}
|
43 |
}
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* NOTICE OF LICENSE
|
4 |
+
*
|
5 |
+
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
+
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
+
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
+
* display and use the Software (in object code only) only on the computers
|
9 |
+
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
+
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
+
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
+
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
+
* unless such Update is accompanied by or references a separate license
|
14 |
+
* agreement in which case the terms and conditions of that agreement will
|
15 |
+
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
+
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
+
* as provided herein, the term of each individual license granted under this
|
18 |
+
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
+
* as otherwise set forth herein.Each party recognizes that
|
20 |
+
* Company grants no licenses except for the license expressly set forth.
|
21 |
+
*
|
22 |
+
* @category Invodo
|
23 |
+
* @package Invodo_Video
|
24 |
+
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
+
*/
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Renders conversion section from registry
|
30 |
+
*
|
31 |
+
* @category Invodo
|
32 |
+
* @package Invodo_Video
|
33 |
+
*/
|
34 |
+
class Invodo_Video_Block_Conversion_Register extends Invodo_Video_Block_Conversion_Abstract
|
35 |
+
{
|
36 |
+
/**
|
37 |
+
* @see Invodo_Video_Block_Conversion_Abstract::_initEvents
|
38 |
+
*/
|
39 |
+
protected function _initEvents()
|
40 |
+
{
|
41 |
+
$this->_events = (array)Mage::registry(Invodo_Video_Helper_Data::EVENTS_REGISTRY_NAME);
|
42 |
+
}
|
43 |
}
|
app/code/community/Invodo/Video/Block/Conversion/Session.php
CHANGED
@@ -1,45 +1,45 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* NOTICE OF LICENSE
|
4 |
-
*
|
5 |
-
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
-
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
-
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
-
* display and use the Software (in object code only) only on the computers
|
9 |
-
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
-
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
-
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
-
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
-
* unless such Update is accompanied by or references a separate license
|
14 |
-
* agreement in which case the terms and conditions of that agreement will
|
15 |
-
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
-
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
-
* as provided herein, the term of each individual license granted under this
|
18 |
-
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
-
* as otherwise set forth herein.Each party recognizes that
|
20 |
-
* Company grants no licenses except for the license expressly set forth.
|
21 |
-
*
|
22 |
-
* @category Invodo
|
23 |
-
* @package Invodo_Video
|
24 |
-
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
-
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
-
*/
|
27 |
-
|
28 |
-
/**
|
29 |
-
* Renders conversion section from session
|
30 |
-
*
|
31 |
-
* @category Invodo
|
32 |
-
* @package Invodo_Video
|
33 |
-
*/
|
34 |
-
class Invodo_Video_Block_Conversion_Session extends Invodo_Video_Block_Conversion_Abstract
|
35 |
-
{
|
36 |
-
/**
|
37 |
-
* @see Invodo_Video_Block_Conversion_Abstract::_initEvents
|
38 |
-
*/
|
39 |
-
protected function _initEvents()
|
40 |
-
{
|
41 |
-
/** @var Invodo_Video_Model_Session $session */
|
42 |
-
$session = Mage::getSingleton('invodo_video/session');
|
43 |
-
$this->_events = $session->getEvents(true);
|
44 |
-
}
|
45 |
}
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* NOTICE OF LICENSE
|
4 |
+
*
|
5 |
+
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
+
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
+
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
+
* display and use the Software (in object code only) only on the computers
|
9 |
+
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
+
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
+
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
+
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
+
* unless such Update is accompanied by or references a separate license
|
14 |
+
* agreement in which case the terms and conditions of that agreement will
|
15 |
+
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
+
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
+
* as provided herein, the term of each individual license granted under this
|
18 |
+
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
+
* as otherwise set forth herein.Each party recognizes that
|
20 |
+
* Company grants no licenses except for the license expressly set forth.
|
21 |
+
*
|
22 |
+
* @category Invodo
|
23 |
+
* @package Invodo_Video
|
24 |
+
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
+
*/
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Renders conversion section from session
|
30 |
+
*
|
31 |
+
* @category Invodo
|
32 |
+
* @package Invodo_Video
|
33 |
+
*/
|
34 |
+
class Invodo_Video_Block_Conversion_Session extends Invodo_Video_Block_Conversion_Abstract
|
35 |
+
{
|
36 |
+
/**
|
37 |
+
* @see Invodo_Video_Block_Conversion_Abstract::_initEvents
|
38 |
+
*/
|
39 |
+
protected function _initEvents()
|
40 |
+
{
|
41 |
+
/** @var Invodo_Video_Model_Session $session */
|
42 |
+
$session = Mage::getSingleton('invodo_video/session');
|
43 |
+
$this->_events = $session->getEvents(true);
|
44 |
+
}
|
45 |
}
|
app/code/community/Invodo/Video/Block/Init.php
CHANGED
@@ -1,99 +1,99 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* NOTICE OF LICENSE
|
4 |
-
*
|
5 |
-
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
-
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
-
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
-
* display and use the Software (in object code only) only on the computers
|
9 |
-
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
-
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
-
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
-
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
-
* unless such Update is accompanied by or references a separate license
|
14 |
-
* agreement in which case the terms and conditions of that agreement will
|
15 |
-
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
-
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
-
* as provided herein, the term of each individual license granted under this
|
18 |
-
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
-
* as otherwise set forth herein.Each party recognizes that
|
20 |
-
* Company grants no licenses except for the license expressly set forth.
|
21 |
-
*
|
22 |
-
* @category Invodo
|
23 |
-
* @package Invodo_Video
|
24 |
-
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
-
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
-
*/
|
27 |
-
|
28 |
-
/**
|
29 |
-
* Initializes js library
|
30 |
-
*
|
31 |
-
* @category Invodo
|
32 |
-
* @package Invodo_Video
|
33 |
-
*/
|
34 |
-
class Invodo_Video_Block_Init extends Mage_Core_Block_Template
|
35 |
-
{
|
36 |
-
/**
|
37 |
-
* Retrieves page name (title)
|
38 |
-
*
|
39 |
-
* @return string
|
40 |
-
*/
|
41 |
-
public function getPageName()
|
42 |
-
{
|
43 |
-
/** @var Mage_Page_Block_Html_Head $head */
|
44 |
-
$head = $this->getLayout()->getBlock('head');
|
45 |
-
|
46 |
-
if ($head) {
|
47 |
-
return $head->getTitle();
|
48 |
-
}
|
49 |
-
|
50 |
-
return Mage::getStoreConfig('design/head/default_title');
|
51 |
-
}
|
52 |
-
|
53 |
-
/**
|
54 |
-
* Retrieves page type
|
55 |
-
*
|
56 |
-
* @return string
|
57 |
-
*/
|
58 |
-
public function getPageType()
|
59 |
-
{
|
60 |
-
$request = Mage::app()->getFrontController()->getRequest();
|
61 |
-
|
62 |
-
if ($request->getModuleName() == 'catalog') {
|
63 |
-
switch ($request->getControllerName()) {
|
64 |
-
case 'product':
|
65 |
-
$pageType = 'Product';
|
66 |
-
break;
|
67 |
-
|
68 |
-
case 'category':
|
69 |
-
$pageType = 'Category';
|
70 |
-
break;
|
71 |
-
|
72 |
-
default:
|
73 |
-
$pageType = 'Other';
|
74 |
-
}
|
75 |
-
|
76 |
-
} else {
|
77 |
-
$pageType = 'Other';
|
78 |
-
}
|
79 |
-
|
80 |
-
return $pageType;
|
81 |
-
}
|
82 |
-
|
83 |
-
/**
|
84 |
-
* Checks module enabled correctly
|
85 |
-
*
|
86 |
-
* @return string
|
87 |
-
*/
|
88 |
-
protected function _toHtml()
|
89 |
-
{
|
90 |
-
/** @var Invodo_Video_Helper_Data $helper */
|
91 |
-
$helper = Mage::helper('invodo_video');
|
92 |
-
|
93 |
-
if (!$helper->isEnabled()) {
|
94 |
-
return '';
|
95 |
-
}
|
96 |
-
|
97 |
-
return parent::_toHtml();
|
98 |
-
}
|
99 |
}
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* NOTICE OF LICENSE
|
4 |
+
*
|
5 |
+
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
+
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
+
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
+
* display and use the Software (in object code only) only on the computers
|
9 |
+
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
+
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
+
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
+
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
+
* unless such Update is accompanied by or references a separate license
|
14 |
+
* agreement in which case the terms and conditions of that agreement will
|
15 |
+
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
+
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
+
* as provided herein, the term of each individual license granted under this
|
18 |
+
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
+
* as otherwise set forth herein.Each party recognizes that
|
20 |
+
* Company grants no licenses except for the license expressly set forth.
|
21 |
+
*
|
22 |
+
* @category Invodo
|
23 |
+
* @package Invodo_Video
|
24 |
+
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
+
*/
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Initializes js library
|
30 |
+
*
|
31 |
+
* @category Invodo
|
32 |
+
* @package Invodo_Video
|
33 |
+
*/
|
34 |
+
class Invodo_Video_Block_Init extends Mage_Core_Block_Template
|
35 |
+
{
|
36 |
+
/**
|
37 |
+
* Retrieves page name (title)
|
38 |
+
*
|
39 |
+
* @return string
|
40 |
+
*/
|
41 |
+
public function getPageName()
|
42 |
+
{
|
43 |
+
/** @var Mage_Page_Block_Html_Head $head */
|
44 |
+
$head = $this->getLayout()->getBlock('head');
|
45 |
+
|
46 |
+
if ($head) {
|
47 |
+
return $head->getTitle();
|
48 |
+
}
|
49 |
+
|
50 |
+
return Mage::getStoreConfig('design/head/default_title');
|
51 |
+
}
|
52 |
+
|
53 |
+
/**
|
54 |
+
* Retrieves page type
|
55 |
+
*
|
56 |
+
* @return string
|
57 |
+
*/
|
58 |
+
public function getPageType()
|
59 |
+
{
|
60 |
+
$request = Mage::app()->getFrontController()->getRequest();
|
61 |
+
|
62 |
+
if ($request->getModuleName() == 'catalog') {
|
63 |
+
switch ($request->getControllerName()) {
|
64 |
+
case 'product':
|
65 |
+
$pageType = 'Product';
|
66 |
+
break;
|
67 |
+
|
68 |
+
case 'category':
|
69 |
+
$pageType = 'Category';
|
70 |
+
break;
|
71 |
+
|
72 |
+
default:
|
73 |
+
$pageType = 'Other';
|
74 |
+
}
|
75 |
+
|
76 |
+
} else {
|
77 |
+
$pageType = 'Other';
|
78 |
+
}
|
79 |
+
|
80 |
+
return $pageType;
|
81 |
+
}
|
82 |
+
|
83 |
+
/**
|
84 |
+
* Checks module enabled correctly
|
85 |
+
*
|
86 |
+
* @return string
|
87 |
+
*/
|
88 |
+
protected function _toHtml()
|
89 |
+
{
|
90 |
+
/** @var Invodo_Video_Helper_Data $helper */
|
91 |
+
$helper = Mage::helper('invodo_video');
|
92 |
+
|
93 |
+
if (!$helper->isEnabled()) {
|
94 |
+
return '';
|
95 |
+
}
|
96 |
+
|
97 |
+
return parent::_toHtml();
|
98 |
+
}
|
99 |
}
|
app/code/community/Invodo/Video/Block/Product/Video/Abstract.php
CHANGED
@@ -1,117 +1,117 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* NOTICE OF LICENSE
|
4 |
-
*
|
5 |
-
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
-
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
-
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
-
* display and use the Software (in object code only) only on the computers
|
9 |
-
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
-
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
-
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
-
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
-
* unless such Update is accompanied by or references a separate license
|
14 |
-
* agreement in which case the terms and conditions of that agreement will
|
15 |
-
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
-
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
-
* as provided herein, the term of each individual license granted under this
|
18 |
-
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
-
* as otherwise set forth herein.Each party recognizes that
|
20 |
-
* Company grants no licenses except for the license expressly set forth.
|
21 |
-
*
|
22 |
-
* @category Invodo
|
23 |
-
* @package Invodo_Video
|
24 |
-
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
-
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
-
*/
|
27 |
-
|
28 |
-
/**
|
29 |
-
* Abstract renderer for product page
|
30 |
-
*
|
31 |
-
* @category Invodo
|
32 |
-
* @package Invodo_Video
|
33 |
-
*/
|
34 |
-
abstract class Invodo_Video_Block_Product_Video_Abstract extends Mage_Catalog_Block_Product_View_Abstract
|
35 |
-
{
|
36 |
-
/**
|
37 |
-
* Config
|
38 |
-
*
|
39 |
-
* @var Invodo_Video_Model_Config
|
40 |
-
*/
|
41 |
-
protected $_config;
|
42 |
-
|
43 |
-
/**
|
44 |
-
* Initializes config
|
45 |
-
*/
|
46 |
-
protected function _construct()
|
47 |
-
{
|
48 |
-
$this->_config = Mage::getSingleton('invodo_video/config');
|
49 |
-
|
50 |
-
return parent::_construct();
|
51 |
-
}
|
52 |
-
|
53 |
-
/**
|
54 |
-
* Retrieves video type
|
55 |
-
*
|
56 |
-
* @return int
|
57 |
-
*/
|
58 |
-
public abstract function getVideoType();
|
59 |
-
|
60 |
-
/**
|
61 |
-
* Check if we can render
|
62 |
-
*
|
63 |
-
* @return string
|
64 |
-
*/
|
65 |
-
protected function _toHtml()
|
66 |
-
{
|
67 |
-
/** @var Invodo_Video_Helper_Data $helper */
|
68 |
-
$helper = Mage::helper('invodo_video');
|
69 |
-
|
70 |
-
if (!$helper->isEnabled()) {
|
71 |
-
return '';
|
72 |
-
}
|
73 |
-
|
74 |
-
// enabled or not on PDP
|
75 |
-
if (!$this->_config->getGeneralConfig('enabled_on_pdp')) {
|
76 |
-
return '';
|
77 |
-
}
|
78 |
-
|
79 |
-
// can render according to PDP type configuration
|
80 |
-
if ($this->getVideoType() != $this->_config->getGeneralConfig('pdp_video_type')) {
|
81 |
-
return '';
|
82 |
-
}
|
83 |
-
|
84 |
-
// check if product video disabled for current product
|
85 |
-
if ($this->getProduct()->getData('invodo_video_enabled') !== null
|
86 |
-
&& !$this->getProduct()->getData('invodo_video_enabled')
|
87 |
-
) {
|
88 |
-
return '';
|
89 |
-
}
|
90 |
-
|
91 |
-
if (!$this->_canShow()) {
|
92 |
-
return '';
|
93 |
-
}
|
94 |
-
|
95 |
-
return parent::_toHtml();
|
96 |
-
}
|
97 |
-
|
98 |
-
/**
|
99 |
-
* Checks if we can show our block
|
100 |
-
*
|
101 |
-
* @return bool
|
102 |
-
*/
|
103 |
-
protected function _canShow()
|
104 |
-
{
|
105 |
-
return true;
|
106 |
-
}
|
107 |
-
|
108 |
-
/**
|
109 |
-
* Retrieves video source value
|
110 |
-
*
|
111 |
-
* @return string
|
112 |
-
*/
|
113 |
-
public function getSourceValue()
|
114 |
-
{
|
115 |
-
return addslashes($this->getProduct()->getSku());
|
116 |
-
}
|
117 |
}
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* NOTICE OF LICENSE
|
4 |
+
*
|
5 |
+
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
+
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
+
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
+
* display and use the Software (in object code only) only on the computers
|
9 |
+
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
+
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
+
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
+
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
+
* unless such Update is accompanied by or references a separate license
|
14 |
+
* agreement in which case the terms and conditions of that agreement will
|
15 |
+
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
+
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
+
* as provided herein, the term of each individual license granted under this
|
18 |
+
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
+
* as otherwise set forth herein.Each party recognizes that
|
20 |
+
* Company grants no licenses except for the license expressly set forth.
|
21 |
+
*
|
22 |
+
* @category Invodo
|
23 |
+
* @package Invodo_Video
|
24 |
+
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
+
*/
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Abstract renderer for product page
|
30 |
+
*
|
31 |
+
* @category Invodo
|
32 |
+
* @package Invodo_Video
|
33 |
+
*/
|
34 |
+
abstract class Invodo_Video_Block_Product_Video_Abstract extends Mage_Catalog_Block_Product_View_Abstract
|
35 |
+
{
|
36 |
+
/**
|
37 |
+
* Config
|
38 |
+
*
|
39 |
+
* @var Invodo_Video_Model_Config
|
40 |
+
*/
|
41 |
+
protected $_config;
|
42 |
+
|
43 |
+
/**
|
44 |
+
* Initializes config
|
45 |
+
*/
|
46 |
+
protected function _construct()
|
47 |
+
{
|
48 |
+
$this->_config = Mage::getSingleton('invodo_video/config');
|
49 |
+
|
50 |
+
return parent::_construct();
|
51 |
+
}
|
52 |
+
|
53 |
+
/**
|
54 |
+
* Retrieves video type
|
55 |
+
*
|
56 |
+
* @return int
|
57 |
+
*/
|
58 |
+
public abstract function getVideoType();
|
59 |
+
|
60 |
+
/**
|
61 |
+
* Check if we can render
|
62 |
+
*
|
63 |
+
* @return string
|
64 |
+
*/
|
65 |
+
protected function _toHtml()
|
66 |
+
{
|
67 |
+
/** @var Invodo_Video_Helper_Data $helper */
|
68 |
+
$helper = Mage::helper('invodo_video');
|
69 |
+
|
70 |
+
if (!$helper->isEnabled()) {
|
71 |
+
return '';
|
72 |
+
}
|
73 |
+
|
74 |
+
// enabled or not on PDP
|
75 |
+
if (!$this->_config->getGeneralConfig('enabled_on_pdp')) {
|
76 |
+
return '';
|
77 |
+
}
|
78 |
+
|
79 |
+
// can render according to PDP type configuration
|
80 |
+
if ($this->getVideoType() != $this->_config->getGeneralConfig('pdp_video_type')) {
|
81 |
+
return '';
|
82 |
+
}
|
83 |
+
|
84 |
+
// check if product video disabled for current product
|
85 |
+
if ($this->getProduct()->getData('invodo_video_enabled') !== null
|
86 |
+
&& !$this->getProduct()->getData('invodo_video_enabled')
|
87 |
+
) {
|
88 |
+
return '';
|
89 |
+
}
|
90 |
+
|
91 |
+
if (!$this->_canShow()) {
|
92 |
+
return '';
|
93 |
+
}
|
94 |
+
|
95 |
+
return parent::_toHtml();
|
96 |
+
}
|
97 |
+
|
98 |
+
/**
|
99 |
+
* Checks if we can show our block
|
100 |
+
*
|
101 |
+
* @return bool
|
102 |
+
*/
|
103 |
+
protected function _canShow()
|
104 |
+
{
|
105 |
+
return true;
|
106 |
+
}
|
107 |
+
|
108 |
+
/**
|
109 |
+
* Retrieves video source value
|
110 |
+
*
|
111 |
+
* @return string
|
112 |
+
*/
|
113 |
+
public function getSourceValue()
|
114 |
+
{
|
115 |
+
return addslashes($this->getProduct()->getSku());
|
116 |
+
}
|
117 |
}
|
app/code/community/Invodo/Video/Block/Product/Video/Inline.php
CHANGED
@@ -1,74 +1,74 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* NOTICE OF LICENSE
|
4 |
-
*
|
5 |
-
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
-
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
-
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
-
* display and use the Software (in object code only) only on the computers
|
9 |
-
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
-
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
-
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
-
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
-
* unless such Update is accompanied by or references a separate license
|
14 |
-
* agreement in which case the terms and conditions of that agreement will
|
15 |
-
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
-
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
-
* as provided herein, the term of each individual license granted under this
|
18 |
-
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
-
* as otherwise set forth herein.Each party recognizes that
|
20 |
-
* Company grants no licenses except for the license expressly set forth.
|
21 |
-
*
|
22 |
-
* @category Invodo
|
23 |
-
* @package Invodo_Video
|
24 |
-
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
-
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
-
*/
|
27 |
-
|
28 |
-
/**
|
29 |
-
* Renders inline type of video on PDP
|
30 |
-
*
|
31 |
-
* @category Invodo
|
32 |
-
* @package Invodo_Video
|
33 |
-
*
|
34 |
-
* Retrieves video width
|
35 |
-
* @method int getWidth()
|
36 |
-
*
|
37 |
-
* Retrieves video height
|
38 |
-
* @method int getHeight()
|
39 |
-
*/
|
40 |
-
class Invodo_Video_Block_Product_Video_Inline extends Invodo_Video_Block_Product_Video_Abstract
|
41 |
-
{
|
42 |
-
/**
|
43 |
-
* Sets width and height
|
44 |
-
*/
|
45 |
-
protected function _construct()
|
46 |
-
{
|
47 |
-
parent::_construct();
|
48 |
-
|
49 |
-
/** @var Invodo_Video_Helper_Data $helper */
|
50 |
-
$helper = Mage::helper('invodo_video');
|
51 |
-
$resolution = $helper->splitResolution($this->_config->getGeneralConfig('pdp_video_resolution'));
|
52 |
-
$this->addData($resolution);
|
53 |
-
|
54 |
-
return $this;
|
55 |
-
}
|
56 |
-
|
57 |
-
/**
|
58 |
-
* @see Invodo_Video_Block_Product_Video_Abstract::getVideoType
|
59 |
-
*/
|
60 |
-
public function getVideoType()
|
61 |
-
{
|
62 |
-
return Invodo_Video_Helper_Data::VIDEO_TYPE_INLINE;
|
63 |
-
}
|
64 |
-
|
65 |
-
/**
|
66 |
-
* Retrieves auto-play flag
|
67 |
-
*
|
68 |
-
* @return int
|
69 |
-
*/
|
70 |
-
public function getAutoPlay()
|
71 |
-
{
|
72 |
-
return $this->_config->getGeneralConfig('pdp_video_auto_play');
|
73 |
-
}
|
74 |
}
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* NOTICE OF LICENSE
|
4 |
+
*
|
5 |
+
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
+
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
+
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
+
* display and use the Software (in object code only) only on the computers
|
9 |
+
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
+
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
+
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
+
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
+
* unless such Update is accompanied by or references a separate license
|
14 |
+
* agreement in which case the terms and conditions of that agreement will
|
15 |
+
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
+
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
+
* as provided herein, the term of each individual license granted under this
|
18 |
+
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
+
* as otherwise set forth herein.Each party recognizes that
|
20 |
+
* Company grants no licenses except for the license expressly set forth.
|
21 |
+
*
|
22 |
+
* @category Invodo
|
23 |
+
* @package Invodo_Video
|
24 |
+
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
+
*/
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Renders inline type of video on PDP
|
30 |
+
*
|
31 |
+
* @category Invodo
|
32 |
+
* @package Invodo_Video
|
33 |
+
*
|
34 |
+
* Retrieves video width
|
35 |
+
* @method int getWidth()
|
36 |
+
*
|
37 |
+
* Retrieves video height
|
38 |
+
* @method int getHeight()
|
39 |
+
*/
|
40 |
+
class Invodo_Video_Block_Product_Video_Inline extends Invodo_Video_Block_Product_Video_Abstract
|
41 |
+
{
|
42 |
+
/**
|
43 |
+
* Sets width and height
|
44 |
+
*/
|
45 |
+
protected function _construct()
|
46 |
+
{
|
47 |
+
parent::_construct();
|
48 |
+
|
49 |
+
/** @var Invodo_Video_Helper_Data $helper */
|
50 |
+
$helper = Mage::helper('invodo_video');
|
51 |
+
$resolution = $helper->splitResolution($this->_config->getGeneralConfig('pdp_video_resolution'));
|
52 |
+
$this->addData($resolution);
|
53 |
+
|
54 |
+
return $this;
|
55 |
+
}
|
56 |
+
|
57 |
+
/**
|
58 |
+
* @see Invodo_Video_Block_Product_Video_Abstract::getVideoType
|
59 |
+
*/
|
60 |
+
public function getVideoType()
|
61 |
+
{
|
62 |
+
return Invodo_Video_Helper_Data::VIDEO_TYPE_INLINE;
|
63 |
+
}
|
64 |
+
|
65 |
+
/**
|
66 |
+
* Retrieves auto-play flag
|
67 |
+
*
|
68 |
+
* @return int
|
69 |
+
*/
|
70 |
+
public function getAutoPlay()
|
71 |
+
{
|
72 |
+
return $this->_config->getGeneralConfig('pdp_video_auto_play');
|
73 |
+
}
|
74 |
}
|
app/code/community/Invodo/Video/Block/Product/Video/Overlay.php
CHANGED
@@ -1,88 +1,88 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* NOTICE OF LICENSE
|
4 |
-
*
|
5 |
-
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
-
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
-
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
-
* display and use the Software (in object code only) only on the computers
|
9 |
-
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
-
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
-
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
-
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
-
* unless such Update is accompanied by or references a separate license
|
14 |
-
* agreement in which case the terms and conditions of that agreement will
|
15 |
-
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
-
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
-
* as provided herein, the term of each individual license granted under this
|
18 |
-
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
-
* as otherwise set forth herein.Each party recognizes that
|
20 |
-
* Company grants no licenses except for the license expressly set forth.
|
21 |
-
*
|
22 |
-
* @category Invodo
|
23 |
-
* @package Invodo_Video
|
24 |
-
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
-
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
-
*/
|
27 |
-
|
28 |
-
/**
|
29 |
-
* Renders overlay type of video on PDP
|
30 |
-
*
|
31 |
-
* @category Invodo
|
32 |
-
* @package Invodo_Video
|
33 |
-
*/
|
34 |
-
class Invodo_Video_Block_Product_Video_Overlay extends Invodo_Video_Block_Product_Video_Overlay_Default
|
35 |
-
{
|
36 |
-
/**
|
37 |
-
* Media block
|
38 |
-
*
|
39 |
-
* @var Mage_Catalog_Block_Product_View_Media
|
40 |
-
*/
|
41 |
-
protected $_media = null;
|
42 |
-
|
43 |
-
/**
|
44 |
-
* Initializes media variable
|
45 |
-
*
|
46 |
-
* @return Mage_Core_Block_Abstract|void
|
47 |
-
*/
|
48 |
-
protected function _beforeToHtml()
|
49 |
-
{
|
50 |
-
parent::_construct();
|
51 |
-
|
52 |
-
$this->_media = $this->getLayout()->getBlock('product.info.media');
|
53 |
-
}
|
54 |
-
|
55 |
-
/**
|
56 |
-
* Checks if gallery images already exists
|
57 |
-
*
|
58 |
-
* @return bool
|
59 |
-
*/
|
60 |
-
public function isGalleryImagesExists()
|
61 |
-
{
|
62 |
-
if (!$this->_media) {
|
63 |
-
return false;
|
64 |
-
}
|
65 |
-
|
66 |
-
return count($this->_media->getGalleryImages()) ? true : false;
|
67 |
-
}
|
68 |
-
|
69 |
-
/**
|
70 |
-
* Checks if we can show our block
|
71 |
-
*
|
72 |
-
* @return bool
|
73 |
-
*/
|
74 |
-
protected function _canShow()
|
75 |
-
{
|
76 |
-
if (!$this->_media) {
|
77 |
-
return false;
|
78 |
-
}
|
79 |
-
|
80 |
-
$images = $this->_media->getGalleryImages();
|
81 |
-
|
82 |
-
if (is_array($images) && !count($images)) {
|
83 |
-
return false;
|
84 |
-
}
|
85 |
-
|
86 |
-
return true;
|
87 |
-
}
|
88 |
}
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* NOTICE OF LICENSE
|
4 |
+
*
|
5 |
+
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
+
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
+
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
+
* display and use the Software (in object code only) only on the computers
|
9 |
+
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
+
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
+
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
+
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
+
* unless such Update is accompanied by or references a separate license
|
14 |
+
* agreement in which case the terms and conditions of that agreement will
|
15 |
+
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
+
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
+
* as provided herein, the term of each individual license granted under this
|
18 |
+
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
+
* as otherwise set forth herein.Each party recognizes that
|
20 |
+
* Company grants no licenses except for the license expressly set forth.
|
21 |
+
*
|
22 |
+
* @category Invodo
|
23 |
+
* @package Invodo_Video
|
24 |
+
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
+
*/
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Renders overlay type of video on PDP
|
30 |
+
*
|
31 |
+
* @category Invodo
|
32 |
+
* @package Invodo_Video
|
33 |
+
*/
|
34 |
+
class Invodo_Video_Block_Product_Video_Overlay extends Invodo_Video_Block_Product_Video_Overlay_Default
|
35 |
+
{
|
36 |
+
/**
|
37 |
+
* Media block
|
38 |
+
*
|
39 |
+
* @var Mage_Catalog_Block_Product_View_Media
|
40 |
+
*/
|
41 |
+
protected $_media = null;
|
42 |
+
|
43 |
+
/**
|
44 |
+
* Initializes media variable
|
45 |
+
*
|
46 |
+
* @return Mage_Core_Block_Abstract|void
|
47 |
+
*/
|
48 |
+
protected function _beforeToHtml()
|
49 |
+
{
|
50 |
+
parent::_construct();
|
51 |
+
|
52 |
+
$this->_media = $this->getLayout()->getBlock('product.info.media');
|
53 |
+
}
|
54 |
+
|
55 |
+
/**
|
56 |
+
* Checks if gallery images already exists
|
57 |
+
*
|
58 |
+
* @return bool
|
59 |
+
*/
|
60 |
+
public function isGalleryImagesExists()
|
61 |
+
{
|
62 |
+
if (!$this->_media) {
|
63 |
+
return false;
|
64 |
+
}
|
65 |
+
|
66 |
+
return count($this->_media->getGalleryImages()) ? true : false;
|
67 |
+
}
|
68 |
+
|
69 |
+
/**
|
70 |
+
* Checks if we can show our block
|
71 |
+
*
|
72 |
+
* @return bool
|
73 |
+
*/
|
74 |
+
protected function _canShow()
|
75 |
+
{
|
76 |
+
if (!$this->_media) {
|
77 |
+
return false;
|
78 |
+
}
|
79 |
+
|
80 |
+
$images = $this->_media->getGalleryImages();
|
81 |
+
|
82 |
+
if (is_array($images) && !count($images)) {
|
83 |
+
return false;
|
84 |
+
}
|
85 |
+
|
86 |
+
return true;
|
87 |
+
}
|
88 |
}
|
app/code/community/Invodo/Video/Block/Product/Video/Overlay/Default.php
CHANGED
@@ -1,67 +1,68 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* NOTICE OF LICENSE
|
4 |
-
*
|
5 |
-
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
-
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
-
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
-
* display and use the Software (in object code only) only on the computers
|
9 |
-
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
-
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
-
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
-
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
-
* unless such Update is accompanied by or references a separate license
|
14 |
-
* agreement in which case the terms and conditions of that agreement will
|
15 |
-
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
-
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
-
* as provided herein, the term of each individual license granted under this
|
18 |
-
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
-
* as otherwise set forth herein.Each party recognizes that
|
20 |
-
* Company grants no licenses except for the license expressly set forth.
|
21 |
-
*
|
22 |
-
* @category Invodo
|
23 |
-
* @package Invodo_Video
|
24 |
-
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
-
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
-
*/
|
27 |
-
|
28 |
-
/**
|
29 |
-
* Default renderer for overlay type
|
30 |
-
*
|
31 |
-
* @category Invodo
|
32 |
-
* @package Invodo_Video
|
33 |
-
*/
|
34 |
-
class Invodo_Video_Block_Product_Video_Overlay_Default extends Invodo_Video_Block_Product_Video_Abstract
|
35 |
-
{
|
36 |
-
/**
|
37 |
-
* @see Invodo_Video_Block_Product_Video_Abstract::getVideoType
|
38 |
-
*/
|
39 |
-
public function getVideoType()
|
40 |
-
{
|
41 |
-
return Invodo_Video_Helper_Data::VIDEO_TYPE_OVERLAY;
|
42 |
-
}
|
43 |
-
|
44 |
-
/**
|
45 |
-
* Retrieves path to image for CTA
|
46 |
-
*
|
47 |
-
* @return string
|
48 |
-
*/
|
49 |
-
public function getOverlayActionSource()
|
50 |
-
{
|
51 |
-
switch ($this->_config->getGeneralConfig('pdp_overlay_action')) {
|
52 |
-
case Invodo_Video_Helper_Data::OVERLAY_ACTION_CUSTOM_IMAGE:
|
53 |
-
$source = "'" . Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA) .
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
|
|
67 |
}
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* NOTICE OF LICENSE
|
4 |
+
*
|
5 |
+
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
+
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
+
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
+
* display and use the Software (in object code only) only on the computers
|
9 |
+
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
+
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
+
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
+
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
+
* unless such Update is accompanied by or references a separate license
|
14 |
+
* agreement in which case the terms and conditions of that agreement will
|
15 |
+
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
+
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
+
* as provided herein, the term of each individual license granted under this
|
18 |
+
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
+
* as otherwise set forth herein.Each party recognizes that
|
20 |
+
* Company grants no licenses except for the license expressly set forth.
|
21 |
+
*
|
22 |
+
* @category Invodo
|
23 |
+
* @package Invodo_Video
|
24 |
+
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
+
*/
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Default renderer for overlay type
|
30 |
+
*
|
31 |
+
* @category Invodo
|
32 |
+
* @package Invodo_Video
|
33 |
+
*/
|
34 |
+
class Invodo_Video_Block_Product_Video_Overlay_Default extends Invodo_Video_Block_Product_Video_Abstract
|
35 |
+
{
|
36 |
+
/**
|
37 |
+
* @see Invodo_Video_Block_Product_Video_Abstract::getVideoType
|
38 |
+
*/
|
39 |
+
public function getVideoType()
|
40 |
+
{
|
41 |
+
return Invodo_Video_Helper_Data::VIDEO_TYPE_OVERLAY;
|
42 |
+
}
|
43 |
+
|
44 |
+
/**
|
45 |
+
* Retrieves path to image for CTA
|
46 |
+
*
|
47 |
+
* @return string
|
48 |
+
*/
|
49 |
+
public function getOverlayActionSource()
|
50 |
+
{
|
51 |
+
switch ($this->_config->getGeneralConfig('pdp_overlay_action')) {
|
52 |
+
case Invodo_Video_Helper_Data::OVERLAY_ACTION_CUSTOM_IMAGE:
|
53 |
+
$source = "'" . Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA) .
|
54 |
+
$this->_config->getGeneralConfig('pdp_overlay_action_source') . "'";
|
55 |
+
break;
|
56 |
+
|
57 |
+
case Invodo_Video_Helper_Data::OVERLAY_ACTION_INVODO_THUMBNAIL:
|
58 |
+
$source = sprintf('Invodo.Pod.getThumbnailByMpd("%s")', $this->getSourceValue());
|
59 |
+
break;
|
60 |
+
|
61 |
+
case Invodo_Video_Helper_Data::OVERLAY_ACTION_INVODO_PREVIEW:
|
62 |
+
$source = sprintf('Invodo.Pod.getPosterByMpd("%s")', $this->getSourceValue());
|
63 |
+
break;
|
64 |
+
}
|
65 |
+
|
66 |
+
return $source;
|
67 |
+
}
|
68 |
}
|
app/code/community/Invodo/Video/Block/Widget.php
CHANGED
@@ -1,153 +1,144 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* NOTICE OF LICENSE
|
4 |
-
*
|
5 |
-
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
-
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
-
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
-
* display and use the Software (in object code only) only on the computers
|
9 |
-
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
-
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
-
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
-
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
-
* unless such Update is accompanied by or references a separate license
|
14 |
-
* agreement in which case the terms and conditions of that agreement will
|
15 |
-
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
-
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
-
* as provided herein, the term of each individual license granted under this
|
18 |
-
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
-
* as otherwise set forth herein.Each party recognizes that
|
20 |
-
* Company grants no licenses except for the license expressly set forth.
|
21 |
-
*
|
22 |
-
* @category Invodo
|
23 |
-
* @package Invodo_Video
|
24 |
-
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
-
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
-
*/
|
27 |
-
|
28 |
-
/**
|
29 |
-
* Renders widget
|
30 |
-
*
|
31 |
-
* @category Invodo
|
32 |
-
* @package Invodo_Video
|
33 |
-
*
|
34 |
-
* Retrieves source type
|
35 |
-
* @method string getSourceType()
|
36 |
-
*
|
37 |
-
* Retrieves auto-play option
|
38 |
-
* @method bool getAutoPlay()
|
39 |
-
*
|
40 |
-
* Retrieves overlay action type
|
41 |
-
* @method bool getOverlayAction()
|
42 |
-
*
|
43 |
-
* Retrieves video width
|
44 |
-
* @method int getWidth()
|
45 |
-
*
|
46 |
-
* Retrieves video height
|
47 |
-
* @method int getHeight()
|
48 |
-
*/
|
49 |
-
class Invodo_Video_Block_Widget extends Mage_Core_Block_Template
|
50 |
-
implements Mage_Widget_Block_Interface
|
51 |
-
{
|
52 |
-
/**
|
53 |
-
* Sets video size
|
54 |
-
*
|
55 |
-
* @return Mage_Core_Block_Abstract
|
56 |
-
*/
|
57 |
-
protected function _beforeToHtml()
|
58 |
-
{
|
59 |
-
/** @var Invodo_Video_Helper_Data $helper */
|
60 |
-
$helper = Mage::helper('invodo_video');
|
61 |
-
$resolution = $helper->splitResolution($this->getData('video_resolution'));
|
62 |
-
$this->addData($resolution);
|
63 |
-
|
64 |
-
return parent::_beforeToHtml();
|
65 |
-
}
|
66 |
-
|
67 |
-
/**
|
68 |
-
* Checks module enabled correctly
|
69 |
-
*
|
70 |
-
* @return string
|
71 |
-
*/
|
72 |
-
protected function _toHtml()
|
73 |
-
{
|
74 |
-
/** @var Invodo_Video_Helper_Data $helper */
|
75 |
-
$helper = Mage::helper('invodo_video');
|
76 |
-
|
77 |
-
if (!$helper->isEnabled()) {
|
78 |
-
return '';
|
79 |
-
}
|
80 |
-
|
81 |
-
return parent::_toHtml();
|
82 |
-
}
|
83 |
-
|
84 |
-
/**
|
85 |
-
* Widget type is inline
|
86 |
-
*
|
87 |
-
* @return bool
|
88 |
-
*/
|
89 |
-
public function isInlineType()
|
90 |
-
{
|
91 |
-
return $this->getData('video_type') == Invodo_Video_Helper_Data::VIDEO_TYPE_INLINE;
|
92 |
-
}
|
93 |
-
|
94 |
-
/**
|
95 |
-
*
|
96 |
-
*
|
97 |
-
* @return
|
98 |
-
*/
|
99 |
-
public function
|
100 |
-
{
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
*
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
case Invodo_Video_Helper_Data::OVERLAY_ACTION_INVODO_PREVIEW:
|
147 |
-
$source = sprintf('Invodo.Pod.getPosterByMpd("%s")', $this->getSourceValue());
|
148 |
-
break;
|
149 |
-
}
|
150 |
-
|
151 |
-
return $source;
|
152 |
-
}
|
153 |
-
}
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* NOTICE OF LICENSE
|
4 |
+
*
|
5 |
+
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
+
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
+
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
+
* display and use the Software (in object code only) only on the computers
|
9 |
+
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
+
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
+
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
+
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
+
* unless such Update is accompanied by or references a separate license
|
14 |
+
* agreement in which case the terms and conditions of that agreement will
|
15 |
+
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
+
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
+
* as provided herein, the term of each individual license granted under this
|
18 |
+
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
+
* as otherwise set forth herein.Each party recognizes that
|
20 |
+
* Company grants no licenses except for the license expressly set forth.
|
21 |
+
*
|
22 |
+
* @category Invodo
|
23 |
+
* @package Invodo_Video
|
24 |
+
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
+
*/
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Renders widget
|
30 |
+
*
|
31 |
+
* @category Invodo
|
32 |
+
* @package Invodo_Video
|
33 |
+
*
|
34 |
+
* Retrieves source type
|
35 |
+
* @method string getSourceType()
|
36 |
+
*
|
37 |
+
* Retrieves auto-play option
|
38 |
+
* @method bool getAutoPlay()
|
39 |
+
*
|
40 |
+
* Retrieves overlay action type
|
41 |
+
* @method bool getOverlayAction()
|
42 |
+
*
|
43 |
+
* Retrieves video width
|
44 |
+
* @method int getWidth()
|
45 |
+
*
|
46 |
+
* Retrieves video height
|
47 |
+
* @method int getHeight()
|
48 |
+
*/
|
49 |
+
class Invodo_Video_Block_Widget extends Mage_Core_Block_Template
|
50 |
+
implements Mage_Widget_Block_Interface
|
51 |
+
{
|
52 |
+
/**
|
53 |
+
* Sets video size
|
54 |
+
*
|
55 |
+
* @return Mage_Core_Block_Abstract
|
56 |
+
*/
|
57 |
+
protected function _beforeToHtml()
|
58 |
+
{
|
59 |
+
/** @var Invodo_Video_Helper_Data $helper */
|
60 |
+
$helper = Mage::helper('invodo_video');
|
61 |
+
$resolution = $helper->splitResolution($this->getData('video_resolution'));
|
62 |
+
$this->addData($resolution);
|
63 |
+
|
64 |
+
return parent::_beforeToHtml();
|
65 |
+
}
|
66 |
+
|
67 |
+
/**
|
68 |
+
* Checks module enabled correctly
|
69 |
+
*
|
70 |
+
* @return string
|
71 |
+
*/
|
72 |
+
protected function _toHtml()
|
73 |
+
{
|
74 |
+
/** @var Invodo_Video_Helper_Data $helper */
|
75 |
+
$helper = Mage::helper('invodo_video');
|
76 |
+
|
77 |
+
if (!$helper->isEnabled()) {
|
78 |
+
return '';
|
79 |
+
}
|
80 |
+
|
81 |
+
return parent::_toHtml();
|
82 |
+
}
|
83 |
+
|
84 |
+
/**
|
85 |
+
* Widget type is inline
|
86 |
+
*
|
87 |
+
* @return bool
|
88 |
+
*/
|
89 |
+
public function isInlineType()
|
90 |
+
{
|
91 |
+
return $this->getData('video_type') == Invodo_Video_Helper_Data::VIDEO_TYPE_INLINE;
|
92 |
+
}
|
93 |
+
|
94 |
+
/**
|
95 |
+
* Retrieves source type as api param name
|
96 |
+
*
|
97 |
+
* @return string
|
98 |
+
*/
|
99 |
+
public function getSourceTypeName()
|
100 |
+
{
|
101 |
+
if ($this->getSourceType() == Invodo_Video_Helper_Data::SOURCE_TYPE_MPD) {
|
102 |
+
return 'mpd';
|
103 |
+
} else {
|
104 |
+
return 'refId';
|
105 |
+
}
|
106 |
+
}
|
107 |
+
|
108 |
+
/**
|
109 |
+
* Retrieves source value
|
110 |
+
*
|
111 |
+
* @return string
|
112 |
+
*/
|
113 |
+
public function getSourceValue()
|
114 |
+
{
|
115 |
+
$value = $this->getData('source_value');
|
116 |
+
|
117 |
+
return addslashes($value);
|
118 |
+
}
|
119 |
+
|
120 |
+
/**
|
121 |
+
* Retrieves path to image for CTA
|
122 |
+
*
|
123 |
+
* @return string
|
124 |
+
*/
|
125 |
+
public function getOverlayActionSource()
|
126 |
+
{
|
127 |
+
switch ($this->getOverlayAction()) {
|
128 |
+
case Invodo_Video_Helper_Data::OVERLAY_ACTION_CUSTOM_IMAGE:
|
129 |
+
$source = "'" . Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA) .
|
130 |
+
$this->getData('overlay_action_source') . "'";
|
131 |
+
break;
|
132 |
+
|
133 |
+
case Invodo_Video_Helper_Data::OVERLAY_ACTION_INVODO_THUMBNAIL:
|
134 |
+
$source = sprintf('Invodo.Pod.getThumbnailByMpd("%s")', $this->getSourceValue());
|
135 |
+
break;
|
136 |
+
|
137 |
+
case Invodo_Video_Helper_Data::OVERLAY_ACTION_INVODO_PREVIEW:
|
138 |
+
$source = sprintf('Invodo.Pod.getPosterByMpd("%s")', $this->getSourceValue());
|
139 |
+
break;
|
140 |
+
}
|
141 |
+
|
142 |
+
return $source;
|
143 |
+
}
|
144 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Invodo/Video/Helper/Data.php
CHANGED
@@ -1,183 +1,184 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* NOTICE OF LICENSE
|
4 |
-
*
|
5 |
-
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
-
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
-
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
-
* display and use the Software (in object code only) only on the computers
|
9 |
-
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
-
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
-
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
-
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
-
* unless such Update is accompanied by or references a separate license
|
14 |
-
* agreement in which case the terms and conditions of that agreement will
|
15 |
-
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
-
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
-
* as provided herein, the term of each individual license granted under this
|
18 |
-
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
-
* as otherwise set forth herein.Each party recognizes that
|
20 |
-
* Company grants no licenses except for the license expressly set forth.
|
21 |
-
*
|
22 |
-
* @category Invodo
|
23 |
-
* @package Invodo_Video
|
24 |
-
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
-
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
-
*/
|
27 |
-
|
28 |
-
/**
|
29 |
-
* Module helper
|
30 |
-
*
|
31 |
-
* @category Invodo
|
32 |
-
* @package Invodo_Video
|
33 |
-
*/
|
34 |
-
class Invodo_Video_Helper_Data extends Mage_Core_Helper_Abstract
|
35 |
-
{
|
36 |
-
/**
|
37 |
-
* Video type: inline
|
38 |
-
*
|
39 |
-
* @var int
|
40 |
-
*/
|
41 |
-
const VIDEO_TYPE_INLINE = 1;
|
42 |
-
|
43 |
-
/**
|
44 |
-
* Video type: overlay
|
45 |
-
*
|
46 |
-
* @var int
|
47 |
-
*/
|
48 |
-
const VIDEO_TYPE_OVERLAY = 2;
|
49 |
-
|
50 |
-
/**
|
51 |
-
* Source type: POD ID
|
52 |
-
*
|
53 |
-
* @var int
|
54 |
-
*/
|
55 |
-
const SOURCE_TYPE_POD = 1;
|
56 |
-
|
57 |
-
/**
|
58 |
-
* Source type: MPD ID
|
59 |
-
*
|
60 |
-
* @var int
|
61 |
-
*/
|
62 |
-
const SOURCE_TYPE_MPD = 2;
|
63 |
-
|
64 |
-
/**
|
65 |
-
* Source type: REF ID
|
66 |
-
*
|
67 |
-
* @var int
|
68 |
-
*/
|
69 |
-
const SOURCE_TYPE_REF = 3;
|
70 |
-
|
71 |
-
/**
|
72 |
-
* Default video width
|
73 |
-
*
|
74 |
-
* @var string
|
75 |
-
*/
|
76 |
-
const DEFAULT_VIDEO_WIDTH = 480;
|
77 |
-
|
78 |
-
/**
|
79 |
-
* Default video width
|
80 |
-
*
|
81 |
-
* @var string
|
82 |
-
*/
|
83 |
-
const DEFAULT_VIDEO_HEIGHT = 270;
|
84 |
-
|
85 |
-
/**
|
86 |
-
* Overlay call-to-action: custom image
|
87 |
-
* @var int
|
88 |
-
*/
|
89 |
-
const OVERLAY_ACTION_CUSTOM_IMAGE = 1;
|
90 |
-
|
91 |
-
/**
|
92 |
-
* Overlay call-to-action: invodo thumbnail
|
93 |
-
*
|
94 |
-
* @var int
|
95 |
-
*/
|
96 |
-
const OVERLAY_ACTION_INVODO_THUMBNAIL = 2;
|
97 |
-
|
98 |
-
/**
|
99 |
-
* Overlay call-to-action: invodo previw
|
100 |
-
*
|
101 |
-
* @var int
|
102 |
-
*/
|
103 |
-
const OVERLAY_ACTION_INVODO_PREVIEW = 3;
|
104 |
-
|
105 |
-
/**
|
106 |
-
* Events name in registry
|
107 |
-
*
|
108 |
-
* @var string
|
109 |
-
*/
|
110 |
-
const EVENTS_REGISTRY_NAME = 'invodo_video_events';
|
111 |
-
|
112 |
-
/**
|
113 |
-
* Increment id
|
114 |
-
*
|
115 |
-
* @var int
|
116 |
-
*/
|
117 |
-
protected static $_incrementId = 0;
|
118 |
-
|
119 |
-
/**
|
120 |
-
* Retrieves Video script tag
|
121 |
-
*
|
122 |
-
* @return string
|
123 |
-
*/
|
124 |
-
public function getScriptTag()
|
125 |
-
{
|
126 |
-
/** @var Invodo_Video_Model_Config $config */
|
127 |
-
$config = Mage::getSingleton('invodo_video/config');
|
128 |
-
$siteKey = $config->getGeneralConfig('site_key');
|
129 |
-
|
130 |
-
if ($siteKey) {
|
131 |
-
return sprintf('<script type="text/javascript" src="//e.invodo.com/4.0/s/%s.js"></script>' . "\n",
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
*
|
138 |
-
*
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
$config
|
144 |
-
$
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
*
|
152 |
-
*
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
*
|
162 |
-
*
|
163 |
-
* @
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
'
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
'
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
|
|
183 |
}
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* NOTICE OF LICENSE
|
4 |
+
*
|
5 |
+
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
+
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
+
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
+
* display and use the Software (in object code only) only on the computers
|
9 |
+
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
+
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
+
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
+
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
+
* unless such Update is accompanied by or references a separate license
|
14 |
+
* agreement in which case the terms and conditions of that agreement will
|
15 |
+
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
+
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
+
* as provided herein, the term of each individual license granted under this
|
18 |
+
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
+
* as otherwise set forth herein.Each party recognizes that
|
20 |
+
* Company grants no licenses except for the license expressly set forth.
|
21 |
+
*
|
22 |
+
* @category Invodo
|
23 |
+
* @package Invodo_Video
|
24 |
+
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
+
*/
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Module helper
|
30 |
+
*
|
31 |
+
* @category Invodo
|
32 |
+
* @package Invodo_Video
|
33 |
+
*/
|
34 |
+
class Invodo_Video_Helper_Data extends Mage_Core_Helper_Abstract
|
35 |
+
{
|
36 |
+
/**
|
37 |
+
* Video type: inline
|
38 |
+
*
|
39 |
+
* @var int
|
40 |
+
*/
|
41 |
+
const VIDEO_TYPE_INLINE = 1;
|
42 |
+
|
43 |
+
/**
|
44 |
+
* Video type: overlay
|
45 |
+
*
|
46 |
+
* @var int
|
47 |
+
*/
|
48 |
+
const VIDEO_TYPE_OVERLAY = 2;
|
49 |
+
|
50 |
+
/**
|
51 |
+
* Source type: POD ID
|
52 |
+
*
|
53 |
+
* @var int
|
54 |
+
*/
|
55 |
+
const SOURCE_TYPE_POD = 1;
|
56 |
+
|
57 |
+
/**
|
58 |
+
* Source type: MPD ID
|
59 |
+
*
|
60 |
+
* @var int
|
61 |
+
*/
|
62 |
+
const SOURCE_TYPE_MPD = 2;
|
63 |
+
|
64 |
+
/**
|
65 |
+
* Source type: REF ID
|
66 |
+
*
|
67 |
+
* @var int
|
68 |
+
*/
|
69 |
+
const SOURCE_TYPE_REF = 3;
|
70 |
+
|
71 |
+
/**
|
72 |
+
* Default video width
|
73 |
+
*
|
74 |
+
* @var string
|
75 |
+
*/
|
76 |
+
const DEFAULT_VIDEO_WIDTH = 480;
|
77 |
+
|
78 |
+
/**
|
79 |
+
* Default video width
|
80 |
+
*
|
81 |
+
* @var string
|
82 |
+
*/
|
83 |
+
const DEFAULT_VIDEO_HEIGHT = 270;
|
84 |
+
|
85 |
+
/**
|
86 |
+
* Overlay call-to-action: custom image
|
87 |
+
* @var int
|
88 |
+
*/
|
89 |
+
const OVERLAY_ACTION_CUSTOM_IMAGE = 1;
|
90 |
+
|
91 |
+
/**
|
92 |
+
* Overlay call-to-action: invodo thumbnail
|
93 |
+
*
|
94 |
+
* @var int
|
95 |
+
*/
|
96 |
+
const OVERLAY_ACTION_INVODO_THUMBNAIL = 2;
|
97 |
+
|
98 |
+
/**
|
99 |
+
* Overlay call-to-action: invodo previw
|
100 |
+
*
|
101 |
+
* @var int
|
102 |
+
*/
|
103 |
+
const OVERLAY_ACTION_INVODO_PREVIEW = 3;
|
104 |
+
|
105 |
+
/**
|
106 |
+
* Events name in registry
|
107 |
+
*
|
108 |
+
* @var string
|
109 |
+
*/
|
110 |
+
const EVENTS_REGISTRY_NAME = 'invodo_video_events';
|
111 |
+
|
112 |
+
/**
|
113 |
+
* Increment id
|
114 |
+
*
|
115 |
+
* @var int
|
116 |
+
*/
|
117 |
+
protected static $_incrementId = 0;
|
118 |
+
|
119 |
+
/**
|
120 |
+
* Retrieves Video script tag
|
121 |
+
*
|
122 |
+
* @return string
|
123 |
+
*/
|
124 |
+
public function getScriptTag()
|
125 |
+
{
|
126 |
+
/** @var Invodo_Video_Model_Config $config */
|
127 |
+
$config = Mage::getSingleton('invodo_video/config');
|
128 |
+
$siteKey = $config->getGeneralConfig('site_key');
|
129 |
+
|
130 |
+
if ($siteKey) {
|
131 |
+
return sprintf('<script type="text/javascript" src="//e.invodo.com/4.0/s/%s.js"></script>' . "\n",
|
132 |
+
$siteKey);
|
133 |
+
}
|
134 |
+
}
|
135 |
+
|
136 |
+
/**
|
137 |
+
* Checks if module enabled
|
138 |
+
*
|
139 |
+
* @return bool
|
140 |
+
*/
|
141 |
+
public function isEnabled()
|
142 |
+
{
|
143 |
+
/** @var Invodo_Video_Model_Config $config */
|
144 |
+
$config = Mage::getSingleton('invodo_video/config');
|
145 |
+
$siteKey = $config->getGeneralConfig('site_key');
|
146 |
+
|
147 |
+
return $siteKey ? true : false;
|
148 |
+
}
|
149 |
+
|
150 |
+
/**
|
151 |
+
* Retrieves new increment id
|
152 |
+
*
|
153 |
+
* @return int
|
154 |
+
*/
|
155 |
+
public static function getIncrementId()
|
156 |
+
{
|
157 |
+
return ++self::$_incrementId;
|
158 |
+
}
|
159 |
+
|
160 |
+
/**
|
161 |
+
* Splits resolution to width and height
|
162 |
+
*
|
163 |
+
* @param $resolution
|
164 |
+
* @return array
|
165 |
+
*/
|
166 |
+
public function splitResolution($resolution)
|
167 |
+
{
|
168 |
+
preg_match('/^([1-9]\d{2,3})x([1-9]\d{2,3})$/', $resolution, $matches);
|
169 |
+
|
170 |
+
if ($matches) {
|
171 |
+
$result = array(
|
172 |
+
'width' => $matches[1],
|
173 |
+
'height' => $matches[2],
|
174 |
+
);
|
175 |
+
} else {
|
176 |
+
$result = array(
|
177 |
+
'width' => self::DEFAULT_VIDEO_WIDTH,
|
178 |
+
'height' => self::DEFAULT_VIDEO_HEIGHT,
|
179 |
+
);
|
180 |
+
}
|
181 |
+
|
182 |
+
return $result;
|
183 |
+
}
|
184 |
}
|
app/code/community/Invodo/Video/Helper/Wysiwyg/Images.php
CHANGED
@@ -1,51 +1,51 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* NOTICE OF LICENSE
|
4 |
-
*
|
5 |
-
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
-
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
-
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
-
* display and use the Software (in object code only) only on the computers
|
9 |
-
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
-
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
-
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
-
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
-
* unless such Update is accompanied by or references a separate license
|
14 |
-
* agreement in which case the terms and conditions of that agreement will
|
15 |
-
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
-
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
-
* as provided herein, the term of each individual license granted under this
|
18 |
-
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
-
* as otherwise set forth herein.Each party recognizes that
|
20 |
-
* Company grants no licenses except for the license expressly set forth.
|
21 |
-
*
|
22 |
-
* @category Invodo
|
23 |
-
* @package Invodo_Video
|
24 |
-
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
-
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
-
*/
|
27 |
-
|
28 |
-
/**
|
29 |
-
* Works with wysiwyg redactor
|
30 |
-
*
|
31 |
-
* @category Invodo
|
32 |
-
* @package Invodo_Video
|
33 |
-
*/
|
34 |
-
class Invodo_Video_Helper_Wysiwyg_Images extends Mage_Cms_Helper_Wysiwyg_Images
|
35 |
-
{
|
36 |
-
/**
|
37 |
-
* Prepare Image insertion declaration for Wysiwyg or textarea
|
38 |
-
*
|
39 |
-
* @param string $filename Filename transferred via Ajax
|
40 |
-
* @param bool $renderAsTag Leave image HTML as is or transform it to controller directive
|
41 |
-
* @return string
|
42 |
-
*/
|
43 |
-
public function getImageHtmlDeclaration($filename, $renderAsTag = false)
|
44 |
-
{
|
45 |
-
$fileUrl = $this->getCurrentUrl() . $filename;
|
46 |
-
$html = str_replace(realpath(Mage::getConfig()->getOptions()->getMediaDir() . DS), '', $fileUrl);
|
47 |
-
$html = str_replace(Mage::getBaseUrl('media'), '', $html);
|
48 |
-
|
49 |
-
return addslashes($html);
|
50 |
-
}
|
51 |
}
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* NOTICE OF LICENSE
|
4 |
+
*
|
5 |
+
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
+
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
+
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
+
* display and use the Software (in object code only) only on the computers
|
9 |
+
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
+
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
+
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
+
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
+
* unless such Update is accompanied by or references a separate license
|
14 |
+
* agreement in which case the terms and conditions of that agreement will
|
15 |
+
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
+
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
+
* as provided herein, the term of each individual license granted under this
|
18 |
+
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
+
* as otherwise set forth herein.Each party recognizes that
|
20 |
+
* Company grants no licenses except for the license expressly set forth.
|
21 |
+
*
|
22 |
+
* @category Invodo
|
23 |
+
* @package Invodo_Video
|
24 |
+
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
+
*/
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Works with wysiwyg redactor
|
30 |
+
*
|
31 |
+
* @category Invodo
|
32 |
+
* @package Invodo_Video
|
33 |
+
*/
|
34 |
+
class Invodo_Video_Helper_Wysiwyg_Images extends Mage_Cms_Helper_Wysiwyg_Images
|
35 |
+
{
|
36 |
+
/**
|
37 |
+
* Prepare Image insertion declaration for Wysiwyg or textarea
|
38 |
+
*
|
39 |
+
* @param string $filename Filename transferred via Ajax
|
40 |
+
* @param bool $renderAsTag Leave image HTML as is or transform it to controller directive
|
41 |
+
* @return string
|
42 |
+
*/
|
43 |
+
public function getImageHtmlDeclaration($filename, $renderAsTag = false)
|
44 |
+
{
|
45 |
+
$fileUrl = $this->getCurrentUrl() . $filename;
|
46 |
+
$html = str_replace(realpath(Mage::getConfig()->getOptions()->getMediaDir() . DS), '', $fileUrl);
|
47 |
+
$html = str_replace(Mage::getBaseUrl('media'), '', $html);
|
48 |
+
|
49 |
+
return addslashes($html);
|
50 |
+
}
|
51 |
}
|
app/code/community/Invodo/Video/Invodo - Magento Connect - EULA - V1.0 11-20-13.pdf
DELETED
Binary file
|
app/code/community/Invodo/Video/Model/Config.php
CHANGED
@@ -1,62 +1,62 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* NOTICE OF LICENSE
|
4 |
-
*
|
5 |
-
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
-
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
-
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
-
* display and use the Software (in object code only) only on the computers
|
9 |
-
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
-
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
-
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
-
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
-
* unless such Update is accompanied by or references a separate license
|
14 |
-
* agreement in which case the terms and conditions of that agreement will
|
15 |
-
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
-
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
-
* as provided herein, the term of each individual license granted under this
|
18 |
-
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
-
* as otherwise set forth herein.Each party recognizes that
|
20 |
-
* Company grants no licenses except for the license expressly set forth.
|
21 |
-
*
|
22 |
-
* @category Invodo
|
23 |
-
* @package Invodo_Video
|
24 |
-
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
-
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
-
*/
|
27 |
-
|
28 |
-
/**
|
29 |
-
* Works with module configuration
|
30 |
-
*
|
31 |
-
* @category Invodo
|
32 |
-
* @package Invodo_Video
|
33 |
-
*/
|
34 |
-
class Invodo_Video_Model_Config
|
35 |
-
{
|
36 |
-
/**
|
37 |
-
* Retrieves config for log group field
|
38 |
-
*
|
39 |
-
* @param string $field
|
40 |
-
* @param null $store
|
41 |
-
* @return mixed
|
42 |
-
*/
|
43 |
-
public function getGeneralConfig($field = '', $store = null)
|
44 |
-
{
|
45 |
-
return $this->getConfig('general', $field, $store);
|
46 |
-
}
|
47 |
-
|
48 |
-
/**
|
49 |
-
* Retrieves config by group and field
|
50 |
-
*
|
51 |
-
* @param string $group
|
52 |
-
* @param string $field
|
53 |
-
* @param null $store
|
54 |
-
* @return mixed
|
55 |
-
*/
|
56 |
-
public function getConfig($group, $field, $store = null)
|
57 |
-
{
|
58 |
-
$path = rtrim("invodo_video/{$group}/$field", '/');
|
59 |
-
|
60 |
-
return Mage::getStoreConfig($path, $store);
|
61 |
-
}
|
62 |
}
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* NOTICE OF LICENSE
|
4 |
+
*
|
5 |
+
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
+
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
+
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
+
* display and use the Software (in object code only) only on the computers
|
9 |
+
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
+
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
+
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
+
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
+
* unless such Update is accompanied by or references a separate license
|
14 |
+
* agreement in which case the terms and conditions of that agreement will
|
15 |
+
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
+
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
+
* as provided herein, the term of each individual license granted under this
|
18 |
+
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
+
* as otherwise set forth herein.Each party recognizes that
|
20 |
+
* Company grants no licenses except for the license expressly set forth.
|
21 |
+
*
|
22 |
+
* @category Invodo
|
23 |
+
* @package Invodo_Video
|
24 |
+
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
+
*/
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Works with module configuration
|
30 |
+
*
|
31 |
+
* @category Invodo
|
32 |
+
* @package Invodo_Video
|
33 |
+
*/
|
34 |
+
class Invodo_Video_Model_Config
|
35 |
+
{
|
36 |
+
/**
|
37 |
+
* Retrieves config for log group field
|
38 |
+
*
|
39 |
+
* @param string $field
|
40 |
+
* @param null $store
|
41 |
+
* @return mixed
|
42 |
+
*/
|
43 |
+
public function getGeneralConfig($field = '', $store = null)
|
44 |
+
{
|
45 |
+
return $this->getConfig('general', $field, $store);
|
46 |
+
}
|
47 |
+
|
48 |
+
/**
|
49 |
+
* Retrieves config by group and field
|
50 |
+
*
|
51 |
+
* @param string $group
|
52 |
+
* @param string $field
|
53 |
+
* @param null $store
|
54 |
+
* @return mixed
|
55 |
+
*/
|
56 |
+
public function getConfig($group, $field, $store = null)
|
57 |
+
{
|
58 |
+
$path = rtrim("invodo_video/{$group}/$field", '/');
|
59 |
+
|
60 |
+
return Mage::getStoreConfig($path, $store);
|
61 |
+
}
|
62 |
}
|
app/code/community/Invodo/Video/Model/Observer.php
CHANGED
@@ -1,123 +1,124 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* NOTICE OF LICENSE
|
4 |
-
*
|
5 |
-
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
-
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
-
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
-
* display and use the Software (in object code only) only on the computers
|
9 |
-
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
-
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
-
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
-
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
-
* unless such Update is accompanied by or references a separate license
|
14 |
-
* agreement in which case the terms and conditions of that agreement will
|
15 |
-
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
-
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
-
* as provided herein, the term of each individual license granted under this
|
18 |
-
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
-
* as otherwise set forth herein.Each party recognizes that
|
20 |
-
* Company grants no licenses except for the license expressly set forth.
|
21 |
-
*
|
22 |
-
* @category Invodo
|
23 |
-
* @package Invodo_Video
|
24 |
-
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
-
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
-
*/
|
27 |
-
|
28 |
-
/**
|
29 |
-
* Module frontend observer
|
30 |
-
*
|
31 |
-
* @category Invodo
|
32 |
-
* @package Invodo_Video
|
33 |
-
*/
|
34 |
-
class Invodo_Video_Model_Observer
|
35 |
-
{
|
36 |
-
/**
|
37 |
-
* Adds event on product was added to cart
|
38 |
-
*
|
39 |
-
* @param Varien_Event_Observer $observer
|
40 |
-
*/
|
41 |
-
public function checkoutCartAddProductComplete($observer)
|
42 |
-
{
|
43 |
-
/** @var Invodo_Video_Model_Config $config */
|
44 |
-
$config = Mage::getSingleton('invodo_video/config');
|
45 |
-
|
46 |
-
if (!$config->getGeneralConfig('enable_conversion_tracking')) {
|
47 |
-
return;
|
48 |
-
}
|
49 |
-
|
50 |
-
/** @var Invodo_Video_Model_Session $session */
|
51 |
-
$session = Mage::getSingleton('invodo_video/session');
|
52 |
-
/** @var Mage_Catalog_Model_Product $product */
|
53 |
-
$product = $observer->getProduct();
|
54 |
-
/** @var Mage_Core_Controller_Request_Http $request */
|
55 |
-
$request = $observer->getRequest();
|
56 |
-
|
57 |
-
if (!$product instanceof Mage_Catalog_Model_Product || !$product->getId()) {
|
58 |
-
return;
|
59 |
-
}
|
60 |
-
|
61 |
-
$qty = $request->getParam('qty');
|
62 |
-
|
63 |
-
if ($qty) {
|
64 |
-
$filter = new Zend_Filter_LocalizedToNormalized(
|
65 |
-
array('locale' => Mage::app()->getLocale()->getLocaleCode())
|
66 |
-
);
|
67 |
-
$qty = $filter->filter($qty);
|
68 |
-
} else {
|
69 |
-
$qty = (int)$qty;
|
70 |
-
}
|
71 |
-
|
72 |
-
$session->addEvent('cartAdd', array(
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
*
|
82 |
-
*
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
$config
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
$order
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
'
|
114 |
-
|
115 |
-
'
|
116 |
-
'
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
|
|
123 |
}
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* NOTICE OF LICENSE
|
4 |
+
*
|
5 |
+
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
+
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
+
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
+
* display and use the Software (in object code only) only on the computers
|
9 |
+
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
+
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
+
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
+
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
+
* unless such Update is accompanied by or references a separate license
|
14 |
+
* agreement in which case the terms and conditions of that agreement will
|
15 |
+
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
+
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
+
* as provided herein, the term of each individual license granted under this
|
18 |
+
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
+
* as otherwise set forth herein.Each party recognizes that
|
20 |
+
* Company grants no licenses except for the license expressly set forth.
|
21 |
+
*
|
22 |
+
* @category Invodo
|
23 |
+
* @package Invodo_Video
|
24 |
+
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
+
*/
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Module frontend observer
|
30 |
+
*
|
31 |
+
* @category Invodo
|
32 |
+
* @package Invodo_Video
|
33 |
+
*/
|
34 |
+
class Invodo_Video_Model_Observer
|
35 |
+
{
|
36 |
+
/**
|
37 |
+
* Adds event on product was added to cart
|
38 |
+
*
|
39 |
+
* @param Varien_Event_Observer $observer
|
40 |
+
*/
|
41 |
+
public function checkoutCartAddProductComplete($observer)
|
42 |
+
{
|
43 |
+
/** @var Invodo_Video_Model_Config $config */
|
44 |
+
$config = Mage::getSingleton('invodo_video/config');
|
45 |
+
|
46 |
+
if (!$config->getGeneralConfig('enable_conversion_tracking')) {
|
47 |
+
return;
|
48 |
+
}
|
49 |
+
|
50 |
+
/** @var Invodo_Video_Model_Session $session */
|
51 |
+
$session = Mage::getSingleton('invodo_video/session');
|
52 |
+
/** @var Mage_Catalog_Model_Product $product */
|
53 |
+
$product = $observer->getProduct();
|
54 |
+
/** @var Mage_Core_Controller_Request_Http $request */
|
55 |
+
$request = $observer->getRequest();
|
56 |
+
|
57 |
+
if (!$product instanceof Mage_Catalog_Model_Product || !$product->getId()) {
|
58 |
+
return;
|
59 |
+
}
|
60 |
+
|
61 |
+
$qty = $request->getParam('qty');
|
62 |
+
|
63 |
+
if ($qty) {
|
64 |
+
$filter = new Zend_Filter_LocalizedToNormalized(
|
65 |
+
array('locale' => Mage::app()->getLocale()->getLocaleCode())
|
66 |
+
);
|
67 |
+
$qty = $filter->filter($qty);
|
68 |
+
} else {
|
69 |
+
$qty = (int)$qty;
|
70 |
+
}
|
71 |
+
|
72 |
+
$session->addEvent('cartAdd', array(
|
73 |
+
'mpd' => $product->getSku(),
|
74 |
+
'quantity' => $qty,
|
75 |
+
'price' => $product->getFinalPrice($qty)
|
76 |
+
)
|
77 |
+
);
|
78 |
+
}
|
79 |
+
|
80 |
+
/**
|
81 |
+
* Adds event on order was placed
|
82 |
+
*
|
83 |
+
* @param Varien_Event_Observer $observer
|
84 |
+
*/
|
85 |
+
public function checkoutOnepageControllerSuccessAction($observer)
|
86 |
+
{
|
87 |
+
/** @var Invodo_Video_Model_Config $config */
|
88 |
+
$config = Mage::getSingleton('invodo_video/config');
|
89 |
+
|
90 |
+
if (!$config->getGeneralConfig('enable_conversion_tracking')) {
|
91 |
+
return;
|
92 |
+
}
|
93 |
+
|
94 |
+
$orderIds = (array)$observer->getData('order_ids');
|
95 |
+
|
96 |
+
if (!$orderIds) {
|
97 |
+
return;
|
98 |
+
}
|
99 |
+
|
100 |
+
$orderId = array_shift($orderIds);
|
101 |
+
/** @var Mage_Sales_Model_Order $order */
|
102 |
+
$order = Mage::getModel('sales/order')->load($orderId);
|
103 |
+
|
104 |
+
if (!$order->getId()) {
|
105 |
+
return;
|
106 |
+
}
|
107 |
+
|
108 |
+
$events = array();
|
109 |
+
|
110 |
+
/** @var $item Mage_Sales_Model_Order_Item */
|
111 |
+
foreach ($order->getAllVisibleItems() as $item) {
|
112 |
+
$events[] = array(
|
113 |
+
'name' => 'itemPurchase',
|
114 |
+
'params' => array(
|
115 |
+
'mpd' => $item->getSku(),
|
116 |
+
'quantity' => $item->getQtyOrdered(),
|
117 |
+
'price' => $item->getBaseRowTotal()
|
118 |
+
)
|
119 |
+
);
|
120 |
+
}
|
121 |
+
|
122 |
+
Mage::register(Invodo_Video_Helper_Data::EVENTS_REGISTRY_NAME, $events);
|
123 |
+
}
|
124 |
}
|
app/code/community/Invodo/Video/Model/Observer/Adminhtml.php
CHANGED
@@ -1,114 +1,91 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* NOTICE OF LICENSE
|
4 |
-
*
|
5 |
-
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
-
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
-
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
-
* display and use the Software (in object code only) only on the computers
|
9 |
-
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
-
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
-
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
-
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
-
* unless such Update is accompanied by or references a separate license
|
14 |
-
* agreement in which case the terms and conditions of that agreement will
|
15 |
-
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
-
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
-
* as provided herein, the term of each individual license granted under this
|
18 |
-
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
-
* as otherwise set forth herein.Each party recognizes that
|
20 |
-
* Company grants no licenses except for the license expressly set forth.
|
21 |
-
*
|
22 |
-
* @category Invodo
|
23 |
-
* @package Invodo_Video
|
24 |
-
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
-
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
-
*/
|
27 |
-
|
28 |
-
/**
|
29 |
-
* Observer for adminhtml events
|
30 |
-
*
|
31 |
-
* @category Invodo
|
32 |
-
* @package Invodo_Video
|
33 |
-
*/
|
34 |
-
class Invodo_Video_Model_Observer_Adminhtml
|
35 |
-
{
|
36 |
-
/**
|
37 |
-
*
|
38 |
-
*
|
39 |
-
*
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
if (!
|
74 |
-
return;
|
75 |
-
}
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
)
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
public function adminhtmlCmsWysiwygImagesIndexRenderBefore($observer)
|
92 |
-
{
|
93 |
-
if (!Mage::app()->getRequest()->getParam('invodo_video')) {
|
94 |
-
return;
|
95 |
-
}
|
96 |
-
|
97 |
-
$layout = Mage::app()->getLayout();
|
98 |
-
$name = 'wysiwyg_images.js';
|
99 |
-
$previous = $layout->getBlock($name);
|
100 |
-
|
101 |
-
if (!$previous) {
|
102 |
-
return;
|
103 |
-
}
|
104 |
-
|
105 |
-
$parent = $previous->getParentBlock();
|
106 |
-
$parent->unsetChild($name);
|
107 |
-
$parent->insert($layout
|
108 |
-
->createBlock(
|
109 |
-
'invodo_video/adminhtml_cms_wysiwyg_images_content',
|
110 |
-
$name
|
111 |
-
)->setTemplate('cms/browser/js.phtml')
|
112 |
-
);
|
113 |
-
}
|
114 |
}
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* NOTICE OF LICENSE
|
4 |
+
*
|
5 |
+
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
+
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
+
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
+
* display and use the Software (in object code only) only on the computers
|
9 |
+
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
+
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
+
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
+
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
+
* unless such Update is accompanied by or references a separate license
|
14 |
+
* agreement in which case the terms and conditions of that agreement will
|
15 |
+
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
+
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
+
* as provided herein, the term of each individual license granted under this
|
18 |
+
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
+
* as otherwise set forth herein.Each party recognizes that
|
20 |
+
* Company grants no licenses except for the license expressly set forth.
|
21 |
+
*
|
22 |
+
* @category Invodo
|
23 |
+
* @package Invodo_Video
|
24 |
+
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
+
*/
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Observer for adminhtml events
|
30 |
+
*
|
31 |
+
* @category Invodo
|
32 |
+
* @package Invodo_Video
|
33 |
+
*/
|
34 |
+
class Invodo_Video_Model_Observer_Adminhtml
|
35 |
+
{
|
36 |
+
/**
|
37 |
+
* Adds editor handle for configuration section
|
38 |
+
*
|
39 |
+
* @param Varien_Event_Observer $observer $observer
|
40 |
+
*/
|
41 |
+
public function controllerActionLayoutLoadBefore($observer)
|
42 |
+
{
|
43 |
+
/** @var Mage_Adminhtml_System_ConfigController $action */
|
44 |
+
$action = $observer->getAction();
|
45 |
+
/** @var Mage_Core_Model_Layout $layout */
|
46 |
+
$layout = $observer->getLayout();
|
47 |
+
$acceptedActions = array(
|
48 |
+
'adminhtml_system_config_edit',
|
49 |
+
'adminhtml_widget_instance_edit'
|
50 |
+
);
|
51 |
+
$actionName = $action->getFullActionName();
|
52 |
+
|
53 |
+
if (!in_array($actionName, $acceptedActions)) {
|
54 |
+
return;
|
55 |
+
}
|
56 |
+
|
57 |
+
if ($actionName == 'adminhtml_system_config_edit'
|
58 |
+
&& $action->getRequest()->getParam('section') != 'invodo_video'
|
59 |
+
) {
|
60 |
+
return;
|
61 |
+
}
|
62 |
+
|
63 |
+
$layout->getUpdate()->addHandle('editor');
|
64 |
+
}
|
65 |
+
|
66 |
+
/**
|
67 |
+
* Replaces block
|
68 |
+
*
|
69 |
+
* @param Varien_Event_Observer $observer
|
70 |
+
*/
|
71 |
+
public function adminhtmlCmsWysiwygImagesIndexRenderBefore($observer)
|
72 |
+
{
|
73 |
+
if (!Mage::app()->getRequest()->getParam('invodo_video')) {
|
74 |
+
return;
|
75 |
+
}
|
76 |
+
|
77 |
+
$layout = Mage::app()->getLayout();
|
78 |
+
$name = 'wysiwyg_images.js';
|
79 |
+
$previous = $layout->getBlock($name);
|
80 |
+
|
81 |
+
if (!$previous) {
|
82 |
+
return;
|
83 |
+
}
|
84 |
+
|
85 |
+
$parent = $previous->getParentBlock();
|
86 |
+
$parent->unsetChild($name);
|
87 |
+
$block = $layout->createBlock('invodo_video/adminhtml_cms_wysiwyg_images_content', $name);
|
88 |
+
$block->setTemplate('cms/browser/js.phtml');
|
89 |
+
$parent->insert($block);
|
90 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
91 |
}
|
app/code/community/Invodo/Video/Model/Product/Export.php
CHANGED
@@ -1,91 +1,92 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* NOTICE OF LICENSE
|
4 |
-
*
|
5 |
-
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
-
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
-
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
-
* display and use the Software (in object code only) only on the computers
|
9 |
-
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
-
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
-
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
-
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
-
* unless such Update is accompanied by or references a separate license
|
14 |
-
* agreement in which case the terms and conditions of that agreement will
|
15 |
-
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
-
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
-
* as provided herein, the term of each individual license granted under this
|
18 |
-
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
-
* as otherwise set forth herein.Each party recognizes that
|
20 |
-
* Company grants no licenses except for the license expressly set forth.
|
21 |
-
*
|
22 |
-
* @category Invodo
|
23 |
-
* @package Invodo_Video
|
24 |
-
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
-
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
-
*/
|
27 |
-
|
28 |
-
/**
|
29 |
-
* Exports products
|
30 |
-
*
|
31 |
-
* @category Invodo
|
32 |
-
* @package Invodo_Video
|
33 |
-
*/
|
34 |
-
class Invodo_Video_Model_Product_Export extends Mage_ImportExport_Model_Export
|
35 |
-
{
|
36 |
-
/**
|
37 |
-
* Create instance of entity adapter and returns it.
|
38 |
-
*
|
39 |
-
* @throws Exception
|
40 |
-
* @return Mage_ImportExport_Model_Export_Entity_Abstract
|
41 |
-
*/
|
42 |
-
protected function _getEntityAdapter()
|
43 |
-
{
|
44 |
-
if (!$this->_entityAdapter) {
|
45 |
-
try {
|
46 |
-
$this->_entityAdapter = Mage::getModel('invodo_video/product_export_entity');
|
47 |
-
} catch (Exception $e) {
|
48 |
-
Mage::logException($e);
|
49 |
-
Mage::throwException(
|
50 |
-
Mage::helper('importexport')->__('Invalid entity model')
|
51 |
-
);
|
52 |
-
}
|
53 |
-
if (! $this->_entityAdapter instanceof Mage_ImportExport_Model_Export_Entity_Abstract) {
|
54 |
-
Mage::throwException(
|
55 |
-
Mage::helper('importexport')->__('Entity adapter obejct must be an instance of Mage_ImportExport_Model_Export_Entity_Abstract')
|
56 |
-
);
|
57 |
-
}
|
58 |
-
|
59 |
-
$this->_entityAdapter->setParameters($this->getData());
|
60 |
-
}
|
61 |
-
|
62 |
-
return $this->_entityAdapter;
|
63 |
-
}
|
64 |
-
|
65 |
-
/**
|
66 |
-
* Get writer object.
|
67 |
-
*
|
68 |
-
* @throws Mage_Core_Exception
|
69 |
-
* @return Mage_ImportExport_Model_Export_Adapter_Abstract
|
70 |
-
*/
|
71 |
-
protected function _getWriter()
|
72 |
-
{
|
73 |
-
if (!$this->_writer) {
|
74 |
-
try {
|
75 |
-
$this->_writer = Mage::getModel('invodo_video/product_export_adapter');
|
76 |
-
} catch (Exception $e) {
|
77 |
-
Mage::logException($e);
|
78 |
-
Mage::throwException(
|
79 |
-
Mage::helper('importexport')->__('Invalid adapter model')
|
80 |
-
);
|
81 |
-
}
|
82 |
-
if (! $this->_writer instanceof Mage_ImportExport_Model_Export_Adapter_Abstract) {
|
83 |
-
Mage::throwException(
|
84 |
-
Mage::helper('importexport')->__('Adapter object must be an instance of %s',
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
|
|
91 |
}
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* NOTICE OF LICENSE
|
4 |
+
*
|
5 |
+
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
+
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
+
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
+
* display and use the Software (in object code only) only on the computers
|
9 |
+
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
+
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
+
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
+
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
+
* unless such Update is accompanied by or references a separate license
|
14 |
+
* agreement in which case the terms and conditions of that agreement will
|
15 |
+
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
+
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
+
* as provided herein, the term of each individual license granted under this
|
18 |
+
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
+
* as otherwise set forth herein.Each party recognizes that
|
20 |
+
* Company grants no licenses except for the license expressly set forth.
|
21 |
+
*
|
22 |
+
* @category Invodo
|
23 |
+
* @package Invodo_Video
|
24 |
+
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
+
*/
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Exports products
|
30 |
+
*
|
31 |
+
* @category Invodo
|
32 |
+
* @package Invodo_Video
|
33 |
+
*/
|
34 |
+
class Invodo_Video_Model_Product_Export extends Mage_ImportExport_Model_Export
|
35 |
+
{
|
36 |
+
/**
|
37 |
+
* Create instance of entity adapter and returns it.
|
38 |
+
*
|
39 |
+
* @throws Exception
|
40 |
+
* @return Mage_ImportExport_Model_Export_Entity_Abstract
|
41 |
+
*/
|
42 |
+
protected function _getEntityAdapter()
|
43 |
+
{
|
44 |
+
if (!$this->_entityAdapter) {
|
45 |
+
try {
|
46 |
+
$this->_entityAdapter = Mage::getModel('invodo_video/product_export_entity');
|
47 |
+
} catch (Exception $e) {
|
48 |
+
Mage::logException($e);
|
49 |
+
Mage::throwException(
|
50 |
+
Mage::helper('importexport')->__('Invalid entity model')
|
51 |
+
);
|
52 |
+
}
|
53 |
+
if (! $this->_entityAdapter instanceof Mage_ImportExport_Model_Export_Entity_Abstract) {
|
54 |
+
Mage::throwException(
|
55 |
+
Mage::helper('importexport')->__('Entity adapter obejct must be an instance of Mage_ImportExport_Model_Export_Entity_Abstract')
|
56 |
+
);
|
57 |
+
}
|
58 |
+
|
59 |
+
$this->_entityAdapter->setParameters($this->getData());
|
60 |
+
}
|
61 |
+
|
62 |
+
return $this->_entityAdapter;
|
63 |
+
}
|
64 |
+
|
65 |
+
/**
|
66 |
+
* Get writer object.
|
67 |
+
*
|
68 |
+
* @throws Mage_Core_Exception
|
69 |
+
* @return Mage_ImportExport_Model_Export_Adapter_Abstract
|
70 |
+
*/
|
71 |
+
protected function _getWriter()
|
72 |
+
{
|
73 |
+
if (!$this->_writer) {
|
74 |
+
try {
|
75 |
+
$this->_writer = Mage::getModel('invodo_video/product_export_adapter');
|
76 |
+
} catch (Exception $e) {
|
77 |
+
Mage::logException($e);
|
78 |
+
Mage::throwException(
|
79 |
+
Mage::helper('importexport')->__('Invalid adapter model')
|
80 |
+
);
|
81 |
+
}
|
82 |
+
if (! $this->_writer instanceof Mage_ImportExport_Model_Export_Adapter_Abstract) {
|
83 |
+
Mage::throwException(
|
84 |
+
Mage::helper('importexport')->__('Adapter object must be an instance of %s',
|
85 |
+
'Mage_ImportExport_Model_Export_Adapter_Abstract')
|
86 |
+
);
|
87 |
+
}
|
88 |
+
}
|
89 |
+
|
90 |
+
return $this->_writer;
|
91 |
+
}
|
92 |
}
|
app/code/community/Invodo/Video/Model/Product/Export/Adapter.php
CHANGED
@@ -1,56 +1,56 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* NOTICE OF LICENSE
|
4 |
-
*
|
5 |
-
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
-
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
-
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
-
* display and use the Software (in object code only) only on the computers
|
9 |
-
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
-
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
-
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
-
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
-
* unless such Update is accompanied by or references a separate license
|
14 |
-
* agreement in which case the terms and conditions of that agreement will
|
15 |
-
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
-
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
-
* as provided herein, the term of each individual license granted under this
|
18 |
-
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
-
* as otherwise set forth herein.Each party recognizes that
|
20 |
-
* Company grants no licenses except for the license expressly set forth.
|
21 |
-
*
|
22 |
-
* @category Invodo
|
23 |
-
* @package Invodo_Video
|
24 |
-
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
-
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
-
*/
|
27 |
-
|
28 |
-
/**
|
29 |
-
* Export adapter
|
30 |
-
*
|
31 |
-
* @category Invodo
|
32 |
-
* @package Invodo_Video
|
33 |
-
*/
|
34 |
-
class Invodo_Video_Model_Product_Export_Adapter extends Mage_ImportExport_Model_Export_Adapter_Csv
|
35 |
-
{
|
36 |
-
/**
|
37 |
-
* Set column names.
|
38 |
-
*
|
39 |
-
* @param array $headerCols
|
40 |
-
* @throws Exception
|
41 |
-
* @return Mage_ImportExport_Model_Export_Adapter_Abstract
|
42 |
-
*/
|
43 |
-
public function setHeaderCols(array $headerCols)
|
44 |
-
{
|
45 |
-
if (null !== $this->_headerCols) {
|
46 |
-
Mage::throwException(Mage::helper('importexport')->__('Header column names already set'));
|
47 |
-
}
|
48 |
-
if ($headerCols) {
|
49 |
-
foreach ($headerCols as $colName => $colTitle) {
|
50 |
-
$this->_headerCols[$colName] = false;
|
51 |
-
}
|
52 |
-
fputcsv($this->_fileHandler, array_values($headerCols), $this->_delimiter, $this->_enclosure);
|
53 |
-
}
|
54 |
-
return $this;
|
55 |
-
}
|
56 |
}
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* NOTICE OF LICENSE
|
4 |
+
*
|
5 |
+
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
+
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
+
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
+
* display and use the Software (in object code only) only on the computers
|
9 |
+
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
+
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
+
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
+
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
+
* unless such Update is accompanied by or references a separate license
|
14 |
+
* agreement in which case the terms and conditions of that agreement will
|
15 |
+
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
+
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
+
* as provided herein, the term of each individual license granted under this
|
18 |
+
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
+
* as otherwise set forth herein.Each party recognizes that
|
20 |
+
* Company grants no licenses except for the license expressly set forth.
|
21 |
+
*
|
22 |
+
* @category Invodo
|
23 |
+
* @package Invodo_Video
|
24 |
+
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
+
*/
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Export adapter
|
30 |
+
*
|
31 |
+
* @category Invodo
|
32 |
+
* @package Invodo_Video
|
33 |
+
*/
|
34 |
+
class Invodo_Video_Model_Product_Export_Adapter extends Mage_ImportExport_Model_Export_Adapter_Csv
|
35 |
+
{
|
36 |
+
/**
|
37 |
+
* Set column names.
|
38 |
+
*
|
39 |
+
* @param array $headerCols
|
40 |
+
* @throws Exception
|
41 |
+
* @return Mage_ImportExport_Model_Export_Adapter_Abstract
|
42 |
+
*/
|
43 |
+
public function setHeaderCols(array $headerCols)
|
44 |
+
{
|
45 |
+
if (null !== $this->_headerCols) {
|
46 |
+
Mage::throwException(Mage::helper('importexport')->__('Header column names already set'));
|
47 |
+
}
|
48 |
+
if ($headerCols) {
|
49 |
+
foreach ($headerCols as $colName => $colTitle) {
|
50 |
+
$this->_headerCols[$colName] = false;
|
51 |
+
}
|
52 |
+
fputcsv($this->_fileHandler, array_values($headerCols), $this->_delimiter, $this->_enclosure);
|
53 |
+
}
|
54 |
+
return $this;
|
55 |
+
}
|
56 |
}
|
app/code/community/Invodo/Video/Model/Product/Export/Entity.php
CHANGED
@@ -1,263 +1,263 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* NOTICE OF LICENSE
|
4 |
-
*
|
5 |
-
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
-
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
-
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
-
* display and use the Software (in object code only) only on the computers
|
9 |
-
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
-
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
-
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
-
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
-
* unless such Update is accompanied by or references a separate license
|
14 |
-
* agreement in which case the terms and conditions of that agreement will
|
15 |
-
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
-
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
-
* as provided herein, the term of each individual license granted under this
|
18 |
-
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
-
* as otherwise set forth herein.Each party recognizes that
|
20 |
-
* Company grants no licenses except for the license expressly set forth.
|
21 |
-
*
|
22 |
-
* @category Invodo
|
23 |
-
* @package Invodo_Video
|
24 |
-
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
-
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
-
*/
|
27 |
-
|
28 |
-
/**
|
29 |
-
* Export entity
|
30 |
-
*
|
31 |
-
* @category Invodo
|
32 |
-
* @package Invodo_Video
|
33 |
-
*/
|
34 |
-
class Invodo_Video_Model_Product_Export_Entity extends Mage_ImportExport_Model_Export_Entity_Product
|
35 |
-
{
|
36 |
-
/**
|
37 |
-
* Max length for fields
|
38 |
-
*
|
39 |
-
* @var array
|
40 |
-
*/
|
41 |
-
protected $_maxLength = array(
|
42 |
-
'name' => 100,
|
43 |
-
'short_description' => 2048,
|
44 |
-
'sku' => 64,
|
45 |
-
'manufacturer' => 120
|
46 |
-
);
|
47 |
-
|
48 |
-
/**
|
49 |
-
* Default values for row
|
50 |
-
*
|
51 |
-
* @var array
|
52 |
-
*/
|
53 |
-
protected $_rowTemplate = array(
|
54 |
-
'name' => 'NONE',
|
55 |
-
'short_description' => 'NONE',
|
56 |
-
'sku' => 'NONE',
|
57 |
-
'manufacturer' => 'NONE'
|
58 |
-
);
|
59 |
-
|
60 |
-
/**
|
61 |
-
* Get attributes codes which are appropriate for export.
|
62 |
-
*
|
63 |
-
* @return array
|
64 |
-
*/
|
65 |
-
protected function _getExportAttrCodes()
|
66 |
-
{
|
67 |
-
if (null === self::$attrCodes) {
|
68 |
-
self::$attrCodes = array('sku', 'short_description', 'name', 'manufacturer');
|
69 |
-
}
|
70 |
-
|
71 |
-
return self::$attrCodes;
|
72 |
-
}
|
73 |
-
|
74 |
-
public function export()
|
75 |
-
{
|
76 |
-
//Execution time may be very long
|
77 |
-
set_time_limit(0);
|
78 |
-
|
79 |
-
/** @var $collection Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Collection */
|
80 |
-
$validAttrCodes = $this->_getExportAttrCodes();
|
81 |
-
$writer = $this->getWriter();
|
82 |
-
$defaultStoreId = Mage_Catalog_Model_Abstract::DEFAULT_STORE_ID;
|
83 |
-
|
84 |
-
$memoryLimit = trim(ini_get('memory_limit'));
|
85 |
-
$lastMemoryLimitLetter = strtolower($memoryLimit[strlen($memoryLimit)-1]);
|
86 |
-
switch($lastMemoryLimitLetter) {
|
87 |
-
case 'g':
|
88 |
-
$memoryLimit *= 1024;
|
89 |
-
case 'm':
|
90 |
-
$memoryLimit *= 1024;
|
91 |
-
case 'k':
|
92 |
-
$memoryLimit *= 1024;
|
93 |
-
break;
|
94 |
-
default:
|
95 |
-
// minimum memory required by Magento
|
96 |
-
$memoryLimit = 250000000;
|
97 |
-
}
|
98 |
-
|
99 |
-
// Tested one product to have up to such size
|
100 |
-
$memoryPerProduct = 100000;
|
101 |
-
// Decrease memory limit to have supply
|
102 |
-
$memoryUsagePercent = 0.8;
|
103 |
-
// Minimum Products limit
|
104 |
-
$minProductsLimit = 500;
|
105 |
-
|
106 |
-
$limitProducts = intval(($memoryLimit * $memoryUsagePercent - memory_get_usage(true)) / $memoryPerProduct);
|
107 |
-
if ($limitProducts < $minProductsLimit) {
|
108 |
-
$limitProducts = $minProductsLimit;
|
109 |
-
}
|
110 |
-
$offsetProducts = 0;
|
111 |
-
|
112 |
-
while (true) {
|
113 |
-
++$offsetProducts;
|
114 |
-
|
115 |
-
$dataRows = array();
|
116 |
-
$rowMultiselects = array();
|
117 |
-
|
118 |
-
// prepare multi-store values and system columns values
|
119 |
-
foreach ($this->_storeIdToCode as $storeId => &$storeCode) { // go through all stores
|
120 |
-
$collection = $this->_prepareEntityCollection(Mage::getResourceModel('catalog/product_collection'));
|
121 |
-
$collection
|
122 |
-
->setStoreId($storeId)
|
123 |
-
->setPage($offsetProducts, $limitProducts);
|
124 |
-
if ($collection->getCurPage() < $offsetProducts) {
|
125 |
-
break;
|
126 |
-
}
|
127 |
-
$collection->load();
|
128 |
-
|
129 |
-
if ($collection->count() == 0) {
|
130 |
-
break;
|
131 |
-
}
|
132 |
-
|
133 |
-
foreach ($collection as $itemId => $item) { // go through all products
|
134 |
-
$rowIsEmpty = true; // row is empty by default
|
135 |
-
|
136 |
-
foreach ($validAttrCodes as &$attrCode) { // go through all valid attribute codes
|
137 |
-
$attrValue = $item->getData($attrCode);
|
138 |
-
|
139 |
-
if (!empty($this->_attributeValues[$attrCode])) {
|
140 |
-
if ($this->_attributeTypes[$attrCode] == 'multiselect') {
|
141 |
-
$attrValue = explode(',', $attrValue);
|
142 |
-
$attrValue = array_intersect_key(
|
143 |
-
$this->_attributeValues[$attrCode],
|
144 |
-
array_flip($attrValue)
|
145 |
-
);
|
146 |
-
$rowMultiselects[$itemId][$attrCode] = $attrValue;
|
147 |
-
} else if (isset($this->_attributeValues[$attrCode][$attrValue])) {
|
148 |
-
$attrValue = $this->_attributeValues[$attrCode][$attrValue];
|
149 |
-
} else {
|
150 |
-
$attrValue = null;
|
151 |
-
}
|
152 |
-
}
|
153 |
-
// do not save value same as default or not existent
|
154 |
-
if ($storeId != $defaultStoreId
|
155 |
-
&& isset($dataRows[$itemId][$defaultStoreId][$attrCode])
|
156 |
-
&& $dataRows[$itemId][$defaultStoreId][$attrCode] == $attrValue
|
157 |
-
) {
|
158 |
-
$attrValue = null;
|
159 |
-
}
|
160 |
-
if (is_scalar($attrValue)) {
|
161 |
-
$dataRows[$itemId][$storeId][$attrCode] = $attrValue;
|
162 |
-
$rowIsEmpty = false; // mark row as not empty
|
163 |
-
}
|
164 |
-
}
|
165 |
-
if ($rowIsEmpty) { // remove empty rows
|
166 |
-
unset($dataRows[$itemId][$storeId]);
|
167 |
-
}
|
168 |
-
|
169 |
-
$item = null;
|
170 |
-
}
|
171 |
-
$collection->clear();
|
172 |
-
}
|
173 |
-
|
174 |
-
if ($collection->getCurPage() < $offsetProducts) {
|
175 |
-
break;
|
176 |
-
}
|
177 |
-
|
178 |
-
if ($offsetProducts == 1) {
|
179 |
-
// create export file
|
180 |
-
$headerCols = array(
|
181 |
-
'name' => 'title',
|
182 |
-
'short_description' => 'description',
|
183 |
-
'sku' => 'id',
|
184 |
-
'manufacturer' => 'brand'
|
185 |
-
);
|
186 |
-
$writer->setHeaderCols($headerCols);
|
187 |
-
}
|
188 |
-
|
189 |
-
foreach ($dataRows as $productId => &$productData) {
|
190 |
-
foreach ($productData as &$dataRow) {
|
191 |
-
if (!empty($rowMultiselects[$productId])) {
|
192 |
-
foreach ($rowMultiselects[$productId] as $attrKey => $attrVal) {
|
193 |
-
if (!empty($rowMultiselects[$productId][$attrKey])) {
|
194 |
-
$dataRow[$attrKey] = array_shift($rowMultiselects[$productId][$attrKey]);
|
195 |
-
}
|
196 |
-
}
|
197 |
-
}
|
198 |
-
|
199 |
-
$dataRow = $this->_trimDataRow($dataRow);
|
200 |
-
$dataRow = $this->_fillEmptyRow($dataRow);
|
201 |
-
$writer->writeRow($dataRow);
|
202 |
-
}
|
203 |
-
}
|
204 |
-
}
|
205 |
-
|
206 |
-
return $writer->getContents();
|
207 |
-
}
|
208 |
-
|
209 |
-
/**
|
210 |
-
* Apply filter to collection
|
211 |
-
*
|
212 |
-
* @param Mage_Eav_Model_Entity_Collection_Abstract $collection
|
213 |
-
* @return Mage_Eav_Model_Entity_Collection_Abstract
|
214 |
-
*/
|
215 |
-
protected function _prepareEntityCollection(Mage_Eav_Model_Entity_Collection_Abstract $collection)
|
216 |
-
{
|
217 |
-
parent::_prepareEntityCollection($collection);
|
218 |
-
|
219 |
-
if (isset($this->_parameters['website'])) {
|
220 |
-
try {
|
221 |
-
$website = Mage::app()->getWebsite($this->_parameters['website']);
|
222 |
-
$collection->addWebsiteFilter(array($website->getId()));
|
223 |
-
} catch (Exception $e) {
|
224 |
-
Mage::log('Website is not exist');
|
225 |
-
}
|
226 |
-
}
|
227 |
-
|
228 |
-
return $collection;
|
229 |
-
}
|
230 |
-
|
231 |
-
/**
|
232 |
-
* Trims fields
|
233 |
-
*
|
234 |
-
* @param array $dataRow
|
235 |
-
* @return array
|
236 |
-
*/
|
237 |
-
protected function _trimDataRow(array $dataRow)
|
238 |
-
{
|
239 |
-
/** @var Mage_Core_Helper_String $helper */
|
240 |
-
$helper = Mage::helper('core/string');
|
241 |
-
|
242 |
-
foreach ($this->_maxLength as $field => $length) {
|
243 |
-
if (!isset($dataRow[$field]) || $helper->strlen($dataRow[$field]) <= $length) {
|
244 |
-
continue;
|
245 |
-
}
|
246 |
-
|
247 |
-
$dataRow[$field] = $helper->substr($dataRow[$field], 0, $length);
|
248 |
-
}
|
249 |
-
|
250 |
-
return $dataRow;
|
251 |
-
}
|
252 |
-
|
253 |
-
/**
|
254 |
-
* Fills empty values
|
255 |
-
*
|
256 |
-
* @param array $dataRow
|
257 |
-
* @return array
|
258 |
-
*/
|
259 |
-
protected function _fillEmptyRow(array $dataRow)
|
260 |
-
{
|
261 |
-
return array_merge($this->_rowTemplate, $dataRow);
|
262 |
-
}
|
263 |
}
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* NOTICE OF LICENSE
|
4 |
+
*
|
5 |
+
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
+
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
+
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
+
* display and use the Software (in object code only) only on the computers
|
9 |
+
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
+
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
+
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
+
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
+
* unless such Update is accompanied by or references a separate license
|
14 |
+
* agreement in which case the terms and conditions of that agreement will
|
15 |
+
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
+
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
+
* as provided herein, the term of each individual license granted under this
|
18 |
+
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
+
* as otherwise set forth herein.Each party recognizes that
|
20 |
+
* Company grants no licenses except for the license expressly set forth.
|
21 |
+
*
|
22 |
+
* @category Invodo
|
23 |
+
* @package Invodo_Video
|
24 |
+
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
+
*/
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Export entity
|
30 |
+
*
|
31 |
+
* @category Invodo
|
32 |
+
* @package Invodo_Video
|
33 |
+
*/
|
34 |
+
class Invodo_Video_Model_Product_Export_Entity extends Mage_ImportExport_Model_Export_Entity_Product
|
35 |
+
{
|
36 |
+
/**
|
37 |
+
* Max length for fields
|
38 |
+
*
|
39 |
+
* @var array
|
40 |
+
*/
|
41 |
+
protected $_maxLength = array(
|
42 |
+
'name' => 100,
|
43 |
+
'short_description' => 2048,
|
44 |
+
'sku' => 64,
|
45 |
+
'manufacturer' => 120
|
46 |
+
);
|
47 |
+
|
48 |
+
/**
|
49 |
+
* Default values for row
|
50 |
+
*
|
51 |
+
* @var array
|
52 |
+
*/
|
53 |
+
protected $_rowTemplate = array(
|
54 |
+
'name' => 'NONE',
|
55 |
+
'short_description' => 'NONE',
|
56 |
+
'sku' => 'NONE',
|
57 |
+
'manufacturer' => 'NONE'
|
58 |
+
);
|
59 |
+
|
60 |
+
/**
|
61 |
+
* Get attributes codes which are appropriate for export.
|
62 |
+
*
|
63 |
+
* @return array
|
64 |
+
*/
|
65 |
+
protected function _getExportAttrCodes()
|
66 |
+
{
|
67 |
+
if (null === self::$attrCodes) {
|
68 |
+
self::$attrCodes = array('sku', 'short_description', 'name', 'manufacturer');
|
69 |
+
}
|
70 |
+
|
71 |
+
return self::$attrCodes;
|
72 |
+
}
|
73 |
+
|
74 |
+
public function export()
|
75 |
+
{
|
76 |
+
//Execution time may be very long
|
77 |
+
set_time_limit(0);
|
78 |
+
|
79 |
+
/** @var $collection Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Collection */
|
80 |
+
$validAttrCodes = $this->_getExportAttrCodes();
|
81 |
+
$writer = $this->getWriter();
|
82 |
+
$defaultStoreId = Mage_Catalog_Model_Abstract::DEFAULT_STORE_ID;
|
83 |
+
|
84 |
+
$memoryLimit = trim(ini_get('memory_limit'));
|
85 |
+
$lastMemoryLimitLetter = strtolower($memoryLimit[strlen($memoryLimit)-1]);
|
86 |
+
switch($lastMemoryLimitLetter) {
|
87 |
+
case 'g':
|
88 |
+
$memoryLimit *= 1024;
|
89 |
+
case 'm':
|
90 |
+
$memoryLimit *= 1024;
|
91 |
+
case 'k':
|
92 |
+
$memoryLimit *= 1024;
|
93 |
+
break;
|
94 |
+
default:
|
95 |
+
// minimum memory required by Magento
|
96 |
+
$memoryLimit = 250000000;
|
97 |
+
}
|
98 |
+
|
99 |
+
// Tested one product to have up to such size
|
100 |
+
$memoryPerProduct = 100000;
|
101 |
+
// Decrease memory limit to have supply
|
102 |
+
$memoryUsagePercent = 0.8;
|
103 |
+
// Minimum Products limit
|
104 |
+
$minProductsLimit = 500;
|
105 |
+
|
106 |
+
$limitProducts = intval(($memoryLimit * $memoryUsagePercent - memory_get_usage(true)) / $memoryPerProduct);
|
107 |
+
if ($limitProducts < $minProductsLimit) {
|
108 |
+
$limitProducts = $minProductsLimit;
|
109 |
+
}
|
110 |
+
$offsetProducts = 0;
|
111 |
+
|
112 |
+
while (true) {
|
113 |
+
++$offsetProducts;
|
114 |
+
|
115 |
+
$dataRows = array();
|
116 |
+
$rowMultiselects = array();
|
117 |
+
|
118 |
+
// prepare multi-store values and system columns values
|
119 |
+
foreach ($this->_storeIdToCode as $storeId => &$storeCode) { // go through all stores
|
120 |
+
$collection = $this->_prepareEntityCollection(Mage::getResourceModel('catalog/product_collection'));
|
121 |
+
$collection
|
122 |
+
->setStoreId($storeId)
|
123 |
+
->setPage($offsetProducts, $limitProducts);
|
124 |
+
if ($collection->getCurPage() < $offsetProducts) {
|
125 |
+
break;
|
126 |
+
}
|
127 |
+
$collection->load();
|
128 |
+
|
129 |
+
if ($collection->count() == 0) {
|
130 |
+
break;
|
131 |
+
}
|
132 |
+
|
133 |
+
foreach ($collection as $itemId => $item) { // go through all products
|
134 |
+
$rowIsEmpty = true; // row is empty by default
|
135 |
+
|
136 |
+
foreach ($validAttrCodes as &$attrCode) { // go through all valid attribute codes
|
137 |
+
$attrValue = $item->getData($attrCode);
|
138 |
+
|
139 |
+
if (!empty($this->_attributeValues[$attrCode])) {
|
140 |
+
if ($this->_attributeTypes[$attrCode] == 'multiselect') {
|
141 |
+
$attrValue = explode(',', $attrValue);
|
142 |
+
$attrValue = array_intersect_key(
|
143 |
+
$this->_attributeValues[$attrCode],
|
144 |
+
array_flip($attrValue)
|
145 |
+
);
|
146 |
+
$rowMultiselects[$itemId][$attrCode] = $attrValue;
|
147 |
+
} else if (isset($this->_attributeValues[$attrCode][$attrValue])) {
|
148 |
+
$attrValue = $this->_attributeValues[$attrCode][$attrValue];
|
149 |
+
} else {
|
150 |
+
$attrValue = null;
|
151 |
+
}
|
152 |
+
}
|
153 |
+
// do not save value same as default or not existent
|
154 |
+
if ($storeId != $defaultStoreId
|
155 |
+
&& isset($dataRows[$itemId][$defaultStoreId][$attrCode])
|
156 |
+
&& $dataRows[$itemId][$defaultStoreId][$attrCode] == $attrValue
|
157 |
+
) {
|
158 |
+
$attrValue = null;
|
159 |
+
}
|
160 |
+
if (is_scalar($attrValue)) {
|
161 |
+
$dataRows[$itemId][$storeId][$attrCode] = $attrValue;
|
162 |
+
$rowIsEmpty = false; // mark row as not empty
|
163 |
+
}
|
164 |
+
}
|
165 |
+
if ($rowIsEmpty) { // remove empty rows
|
166 |
+
unset($dataRows[$itemId][$storeId]);
|
167 |
+
}
|
168 |
+
|
169 |
+
$item = null;
|
170 |
+
}
|
171 |
+
$collection->clear();
|
172 |
+
}
|
173 |
+
|
174 |
+
if ($collection->getCurPage() < $offsetProducts) {
|
175 |
+
break;
|
176 |
+
}
|
177 |
+
|
178 |
+
if ($offsetProducts == 1) {
|
179 |
+
// create export file
|
180 |
+
$headerCols = array(
|
181 |
+
'name' => 'title',
|
182 |
+
'short_description' => 'description',
|
183 |
+
'sku' => 'id',
|
184 |
+
'manufacturer' => 'brand'
|
185 |
+
);
|
186 |
+
$writer->setHeaderCols($headerCols);
|
187 |
+
}
|
188 |
+
|
189 |
+
foreach ($dataRows as $productId => &$productData) {
|
190 |
+
foreach ($productData as &$dataRow) {
|
191 |
+
if (!empty($rowMultiselects[$productId])) {
|
192 |
+
foreach ($rowMultiselects[$productId] as $attrKey => $attrVal) {
|
193 |
+
if (!empty($rowMultiselects[$productId][$attrKey])) {
|
194 |
+
$dataRow[$attrKey] = array_shift($rowMultiselects[$productId][$attrKey]);
|
195 |
+
}
|
196 |
+
}
|
197 |
+
}
|
198 |
+
|
199 |
+
$dataRow = $this->_trimDataRow($dataRow);
|
200 |
+
$dataRow = $this->_fillEmptyRow($dataRow);
|
201 |
+
$writer->writeRow($dataRow);
|
202 |
+
}
|
203 |
+
}
|
204 |
+
}
|
205 |
+
|
206 |
+
return $writer->getContents();
|
207 |
+
}
|
208 |
+
|
209 |
+
/**
|
210 |
+
* Apply filter to collection
|
211 |
+
*
|
212 |
+
* @param Mage_Eav_Model_Entity_Collection_Abstract $collection
|
213 |
+
* @return Mage_Eav_Model_Entity_Collection_Abstract
|
214 |
+
*/
|
215 |
+
protected function _prepareEntityCollection(Mage_Eav_Model_Entity_Collection_Abstract $collection)
|
216 |
+
{
|
217 |
+
parent::_prepareEntityCollection($collection);
|
218 |
+
|
219 |
+
if (isset($this->_parameters['website'])) {
|
220 |
+
try {
|
221 |
+
$website = Mage::app()->getWebsite($this->_parameters['website']);
|
222 |
+
$collection->addWebsiteFilter(array($website->getId()));
|
223 |
+
} catch (Exception $e) {
|
224 |
+
Mage::log('Website is not exist');
|
225 |
+
}
|
226 |
+
}
|
227 |
+
|
228 |
+
return $collection;
|
229 |
+
}
|
230 |
+
|
231 |
+
/**
|
232 |
+
* Trims fields
|
233 |
+
*
|
234 |
+
* @param array $dataRow
|
235 |
+
* @return array
|
236 |
+
*/
|
237 |
+
protected function _trimDataRow(array $dataRow)
|
238 |
+
{
|
239 |
+
/** @var Mage_Core_Helper_String $helper */
|
240 |
+
$helper = Mage::helper('core/string');
|
241 |
+
|
242 |
+
foreach ($this->_maxLength as $field => $length) {
|
243 |
+
if (!isset($dataRow[$field]) || $helper->strlen($dataRow[$field]) <= $length) {
|
244 |
+
continue;
|
245 |
+
}
|
246 |
+
|
247 |
+
$dataRow[$field] = $helper->substr($dataRow[$field], 0, $length);
|
248 |
+
}
|
249 |
+
|
250 |
+
return $dataRow;
|
251 |
+
}
|
252 |
+
|
253 |
+
/**
|
254 |
+
* Fills empty values
|
255 |
+
*
|
256 |
+
* @param array $dataRow
|
257 |
+
* @return array
|
258 |
+
*/
|
259 |
+
protected function _fillEmptyRow(array $dataRow)
|
260 |
+
{
|
261 |
+
return array_merge($this->_rowTemplate, $dataRow);
|
262 |
+
}
|
263 |
}
|
app/code/community/Invodo/Video/Model/Session.php
CHANGED
@@ -1,73 +1,73 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* NOTICE OF LICENSE
|
4 |
-
*
|
5 |
-
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
-
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
-
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
-
* display and use the Software (in object code only) only on the computers
|
9 |
-
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
-
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
-
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
-
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
-
* unless such Update is accompanied by or references a separate license
|
14 |
-
* agreement in which case the terms and conditions of that agreement will
|
15 |
-
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
-
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
-
* as provided herein, the term of each individual license granted under this
|
18 |
-
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
-
* as otherwise set forth herein.Each party recognizes that
|
20 |
-
* Company grants no licenses except for the license expressly set forth.
|
21 |
-
*
|
22 |
-
* @category Invodo
|
23 |
-
* @package Invodo_Video
|
24 |
-
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
-
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
-
*/
|
27 |
-
|
28 |
-
/**
|
29 |
-
* Session for tracking events
|
30 |
-
*
|
31 |
-
* @category Invodo
|
32 |
-
* @package Invodo_Video
|
33 |
-
*/
|
34 |
-
class Invodo_Video_Model_Session extends Mage_Core_Model_Session_Abstract
|
35 |
-
{
|
36 |
-
/**
|
37 |
-
* Initializes session namespace
|
38 |
-
*/
|
39 |
-
public function __construct()
|
40 |
-
{
|
41 |
-
$this->init('invodo_video');
|
42 |
-
}
|
43 |
-
|
44 |
-
/**
|
45 |
-
* Adds new event
|
46 |
-
*
|
47 |
-
* @param $name
|
48 |
-
* @param array $params
|
49 |
-
* @return $this
|
50 |
-
*/
|
51 |
-
public function addEvent($name, array $params = array())
|
52 |
-
{
|
53 |
-
$events = $this->getEvents();
|
54 |
-
$events[] = array(
|
55 |
-
'name' => $name,
|
56 |
-
'params' => $params
|
57 |
-
);
|
58 |
-
$this->setData('events', $events);
|
59 |
-
|
60 |
-
return $this;
|
61 |
-
}
|
62 |
-
|
63 |
-
/**
|
64 |
-
* Retrieves events
|
65 |
-
*
|
66 |
-
* @param bool $clear
|
67 |
-
* @return array
|
68 |
-
*/
|
69 |
-
public function getEvents($clear = false)
|
70 |
-
{
|
71 |
-
return (array)$this->getData('events', $clear);
|
72 |
-
}
|
73 |
}
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* NOTICE OF LICENSE
|
4 |
+
*
|
5 |
+
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
+
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
+
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
+
* display and use the Software (in object code only) only on the computers
|
9 |
+
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
+
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
+
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
+
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
+
* unless such Update is accompanied by or references a separate license
|
14 |
+
* agreement in which case the terms and conditions of that agreement will
|
15 |
+
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
+
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
+
* as provided herein, the term of each individual license granted under this
|
18 |
+
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
+
* as otherwise set forth herein.Each party recognizes that
|
20 |
+
* Company grants no licenses except for the license expressly set forth.
|
21 |
+
*
|
22 |
+
* @category Invodo
|
23 |
+
* @package Invodo_Video
|
24 |
+
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
+
*/
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Session for tracking events
|
30 |
+
*
|
31 |
+
* @category Invodo
|
32 |
+
* @package Invodo_Video
|
33 |
+
*/
|
34 |
+
class Invodo_Video_Model_Session extends Mage_Core_Model_Session_Abstract
|
35 |
+
{
|
36 |
+
/**
|
37 |
+
* Initializes session namespace
|
38 |
+
*/
|
39 |
+
public function __construct()
|
40 |
+
{
|
41 |
+
$this->init('invodo_video');
|
42 |
+
}
|
43 |
+
|
44 |
+
/**
|
45 |
+
* Adds new event
|
46 |
+
*
|
47 |
+
* @param $name
|
48 |
+
* @param array $params
|
49 |
+
* @return $this
|
50 |
+
*/
|
51 |
+
public function addEvent($name, array $params = array())
|
52 |
+
{
|
53 |
+
$events = $this->getEvents();
|
54 |
+
$events[] = array(
|
55 |
+
'name' => $name,
|
56 |
+
'params' => $params
|
57 |
+
);
|
58 |
+
$this->setData('events', $events);
|
59 |
+
|
60 |
+
return $this;
|
61 |
+
}
|
62 |
+
|
63 |
+
/**
|
64 |
+
* Retrieves events
|
65 |
+
*
|
66 |
+
* @param bool $clear
|
67 |
+
* @return array
|
68 |
+
*/
|
69 |
+
public function getEvents($clear = false)
|
70 |
+
{
|
71 |
+
return (array)$this->getData('events', $clear);
|
72 |
+
}
|
73 |
}
|
app/code/community/Invodo/Video/Model/Widget/Source/Autoplay.php
CHANGED
@@ -1,56 +1,56 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* NOTICE OF LICENSE
|
4 |
-
*
|
5 |
-
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
-
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
-
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
-
* display and use the Software (in object code only) only on the computers
|
9 |
-
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
-
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
-
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
-
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
-
* unless such Update is accompanied by or references a separate license
|
14 |
-
* agreement in which case the terms and conditions of that agreement will
|
15 |
-
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
-
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
-
* as provided herein, the term of each individual license granted under this
|
18 |
-
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
-
* as otherwise set forth herein.Each party recognizes that
|
20 |
-
* Company grants no licenses except for the license expressly set forth.
|
21 |
-
*
|
22 |
-
* @category Invodo
|
23 |
-
* @package Invodo_Video
|
24 |
-
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
-
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
-
*/
|
27 |
-
|
28 |
-
/**
|
29 |
-
* Source model
|
30 |
-
*
|
31 |
-
* @category Invodo
|
32 |
-
* @package Invodo_Video
|
33 |
-
*/
|
34 |
-
class Invodo_Video_Model_Widget_Source_Autoplay
|
35 |
-
{
|
36 |
-
/**
|
37 |
-
* Get types as a source model result
|
38 |
-
*
|
39 |
-
* @return array
|
40 |
-
*/
|
41 |
-
public function toOptionArray()
|
42 |
-
{
|
43 |
-
$options = array(
|
44 |
-
array(
|
45 |
-
'value' => 0,
|
46 |
-
'label' => Mage::helper('invodo_video')->__('Off')
|
47 |
-
),
|
48 |
-
array(
|
49 |
-
'value' => 1,
|
50 |
-
'label' => Mage::helper('invodo_video')->__('On')
|
51 |
-
)
|
52 |
-
);
|
53 |
-
|
54 |
-
return $options;
|
55 |
-
}
|
56 |
}
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* NOTICE OF LICENSE
|
4 |
+
*
|
5 |
+
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
+
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
+
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
+
* display and use the Software (in object code only) only on the computers
|
9 |
+
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
+
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
+
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
+
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
+
* unless such Update is accompanied by or references a separate license
|
14 |
+
* agreement in which case the terms and conditions of that agreement will
|
15 |
+
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
+
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
+
* as provided herein, the term of each individual license granted under this
|
18 |
+
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
+
* as otherwise set forth herein.Each party recognizes that
|
20 |
+
* Company grants no licenses except for the license expressly set forth.
|
21 |
+
*
|
22 |
+
* @category Invodo
|
23 |
+
* @package Invodo_Video
|
24 |
+
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
+
*/
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Source model
|
30 |
+
*
|
31 |
+
* @category Invodo
|
32 |
+
* @package Invodo_Video
|
33 |
+
*/
|
34 |
+
class Invodo_Video_Model_Widget_Source_Autoplay
|
35 |
+
{
|
36 |
+
/**
|
37 |
+
* Get types as a source model result
|
38 |
+
*
|
39 |
+
* @return array
|
40 |
+
*/
|
41 |
+
public function toOptionArray()
|
42 |
+
{
|
43 |
+
$options = array(
|
44 |
+
array(
|
45 |
+
'value' => 0,
|
46 |
+
'label' => Mage::helper('invodo_video')->__('Off')
|
47 |
+
),
|
48 |
+
array(
|
49 |
+
'value' => 1,
|
50 |
+
'label' => Mage::helper('invodo_video')->__('On')
|
51 |
+
)
|
52 |
+
);
|
53 |
+
|
54 |
+
return $options;
|
55 |
+
}
|
56 |
}
|
app/code/community/Invodo/Video/Model/Widget/Source/Overlayaction.php
CHANGED
@@ -1,60 +1,60 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* NOTICE OF LICENSE
|
4 |
-
*
|
5 |
-
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
-
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
-
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
-
* display and use the Software (in object code only) only on the computers
|
9 |
-
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
-
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
-
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
-
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
-
* unless such Update is accompanied by or references a separate license
|
14 |
-
* agreement in which case the terms and conditions of that agreement will
|
15 |
-
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
-
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
-
* as provided herein, the term of each individual license granted under this
|
18 |
-
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
-
* as otherwise set forth herein.Each party recognizes that
|
20 |
-
* Company grants no licenses except for the license expressly set forth.
|
21 |
-
*
|
22 |
-
* @category Invodo
|
23 |
-
* @package Invodo_Video
|
24 |
-
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
-
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
-
*/
|
27 |
-
|
28 |
-
/**
|
29 |
-
* Source model
|
30 |
-
*
|
31 |
-
* @category Invodo
|
32 |
-
* @package Invodo_Video
|
33 |
-
*/
|
34 |
-
class Invodo_Video_Model_Widget_Source_Overlayaction
|
35 |
-
{
|
36 |
-
/**
|
37 |
-
* Get types as a source model result
|
38 |
-
*
|
39 |
-
* @return array
|
40 |
-
*/
|
41 |
-
public function toOptionArray()
|
42 |
-
{
|
43 |
-
$options = array(
|
44 |
-
array(
|
45 |
-
'value' => Invodo_Video_Helper_Data::OVERLAY_ACTION_CUSTOM_IMAGE,
|
46 |
-
'label' => Mage::helper('invodo_video')->__('Custom image')
|
47 |
-
),
|
48 |
-
array(
|
49 |
-
'value' => Invodo_Video_Helper_Data::OVERLAY_ACTION_INVODO_THUMBNAIL,
|
50 |
-
'label' => Mage::helper('invodo_video')->__('Invodo Thumbnail Image')
|
51 |
-
),
|
52 |
-
array(
|
53 |
-
'value' => Invodo_Video_Helper_Data::OVERLAY_ACTION_INVODO_PREVIEW,
|
54 |
-
'label' => Mage::helper('invodo_video')->__('Invodo Preview Image')
|
55 |
-
)
|
56 |
-
);
|
57 |
-
|
58 |
-
return $options;
|
59 |
-
}
|
60 |
}
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* NOTICE OF LICENSE
|
4 |
+
*
|
5 |
+
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
+
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
+
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
+
* display and use the Software (in object code only) only on the computers
|
9 |
+
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
+
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
+
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
+
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
+
* unless such Update is accompanied by or references a separate license
|
14 |
+
* agreement in which case the terms and conditions of that agreement will
|
15 |
+
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
+
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
+
* as provided herein, the term of each individual license granted under this
|
18 |
+
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
+
* as otherwise set forth herein.Each party recognizes that
|
20 |
+
* Company grants no licenses except for the license expressly set forth.
|
21 |
+
*
|
22 |
+
* @category Invodo
|
23 |
+
* @package Invodo_Video
|
24 |
+
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
+
*/
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Source model
|
30 |
+
*
|
31 |
+
* @category Invodo
|
32 |
+
* @package Invodo_Video
|
33 |
+
*/
|
34 |
+
class Invodo_Video_Model_Widget_Source_Overlayaction
|
35 |
+
{
|
36 |
+
/**
|
37 |
+
* Get types as a source model result
|
38 |
+
*
|
39 |
+
* @return array
|
40 |
+
*/
|
41 |
+
public function toOptionArray()
|
42 |
+
{
|
43 |
+
$options = array(
|
44 |
+
array(
|
45 |
+
'value' => Invodo_Video_Helper_Data::OVERLAY_ACTION_CUSTOM_IMAGE,
|
46 |
+
'label' => Mage::helper('invodo_video')->__('Custom image')
|
47 |
+
),
|
48 |
+
array(
|
49 |
+
'value' => Invodo_Video_Helper_Data::OVERLAY_ACTION_INVODO_THUMBNAIL,
|
50 |
+
'label' => Mage::helper('invodo_video')->__('Invodo Thumbnail Image')
|
51 |
+
),
|
52 |
+
array(
|
53 |
+
'value' => Invodo_Video_Helper_Data::OVERLAY_ACTION_INVODO_PREVIEW,
|
54 |
+
'label' => Mage::helper('invodo_video')->__('Invodo Preview Image')
|
55 |
+
)
|
56 |
+
);
|
57 |
+
|
58 |
+
return $options;
|
59 |
+
}
|
60 |
}
|
app/code/community/Invodo/Video/Model/Widget/Source/Sourcetype.php
CHANGED
@@ -1,56 +1,56 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* NOTICE OF LICENSE
|
4 |
-
*
|
5 |
-
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
-
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
-
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
-
* display and use the Software (in object code only) only on the computers
|
9 |
-
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
-
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
-
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
-
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
-
* unless such Update is accompanied by or references a separate license
|
14 |
-
* agreement in which case the terms and conditions of that agreement will
|
15 |
-
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
-
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
-
* as provided herein, the term of each individual license granted under this
|
18 |
-
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
-
* as otherwise set forth herein.Each party recognizes that
|
20 |
-
* Company grants no licenses except for the license expressly set forth.
|
21 |
-
*
|
22 |
-
* @category Invodo
|
23 |
-
* @package Invodo_Video
|
24 |
-
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
-
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
-
*/
|
27 |
-
|
28 |
-
/**
|
29 |
-
* Source model
|
30 |
-
*
|
31 |
-
* @category Invodo
|
32 |
-
* @package Invodo_Video
|
33 |
-
*/
|
34 |
-
class Invodo_Video_Model_Widget_Source_Sourcetype
|
35 |
-
{
|
36 |
-
/**
|
37 |
-
* Get source types
|
38 |
-
*
|
39 |
-
* @return array
|
40 |
-
*/
|
41 |
-
public function toOptionArray()
|
42 |
-
{
|
43 |
-
$options = array(
|
44 |
-
array(
|
45 |
-
'value' => Invodo_Video_Helper_Data::SOURCE_TYPE_REF,
|
46 |
-
'label' => Mage::helper('invodo_video')->__('Reference ID')
|
47 |
-
),
|
48 |
-
array(
|
49 |
-
'value' => Invodo_Video_Helper_Data::SOURCE_TYPE_MPD,
|
50 |
-
'label' => Mage::helper('invodo_video')->__('Product ID')
|
51 |
-
)
|
52 |
-
);
|
53 |
-
|
54 |
-
return $options;
|
55 |
-
}
|
56 |
}
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* NOTICE OF LICENSE
|
4 |
+
*
|
5 |
+
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
+
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
+
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
+
* display and use the Software (in object code only) only on the computers
|
9 |
+
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
+
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
+
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
+
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
+
* unless such Update is accompanied by or references a separate license
|
14 |
+
* agreement in which case the terms and conditions of that agreement will
|
15 |
+
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
+
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
+
* as provided herein, the term of each individual license granted under this
|
18 |
+
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
+
* as otherwise set forth herein.Each party recognizes that
|
20 |
+
* Company grants no licenses except for the license expressly set forth.
|
21 |
+
*
|
22 |
+
* @category Invodo
|
23 |
+
* @package Invodo_Video
|
24 |
+
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
+
*/
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Source model
|
30 |
+
*
|
31 |
+
* @category Invodo
|
32 |
+
* @package Invodo_Video
|
33 |
+
*/
|
34 |
+
class Invodo_Video_Model_Widget_Source_Sourcetype
|
35 |
+
{
|
36 |
+
/**
|
37 |
+
* Get source types
|
38 |
+
*
|
39 |
+
* @return array
|
40 |
+
*/
|
41 |
+
public function toOptionArray()
|
42 |
+
{
|
43 |
+
$options = array(
|
44 |
+
array(
|
45 |
+
'value' => Invodo_Video_Helper_Data::SOURCE_TYPE_REF,
|
46 |
+
'label' => Mage::helper('invodo_video')->__('Reference ID')
|
47 |
+
),
|
48 |
+
array(
|
49 |
+
'value' => Invodo_Video_Helper_Data::SOURCE_TYPE_MPD,
|
50 |
+
'label' => Mage::helper('invodo_video')->__('Product ID')
|
51 |
+
)
|
52 |
+
);
|
53 |
+
|
54 |
+
return $options;
|
55 |
+
}
|
56 |
}
|
app/code/community/Invodo/Video/Model/Widget/Source/Videotype.php
CHANGED
@@ -1,56 +1,56 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* NOTICE OF LICENSE
|
4 |
-
*
|
5 |
-
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
-
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
-
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
-
* display and use the Software (in object code only) only on the computers
|
9 |
-
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
-
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
-
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
-
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
-
* unless such Update is accompanied by or references a separate license
|
14 |
-
* agreement in which case the terms and conditions of that agreement will
|
15 |
-
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
-
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
-
* as provided herein, the term of each individual license granted under this
|
18 |
-
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
-
* as otherwise set forth herein.Each party recognizes that
|
20 |
-
* Company grants no licenses except for the license expressly set forth.
|
21 |
-
*
|
22 |
-
* @category Invodo
|
23 |
-
* @package Invodo_Video
|
24 |
-
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
-
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
-
*/
|
27 |
-
|
28 |
-
/**
|
29 |
-
* Source model
|
30 |
-
*
|
31 |
-
* @category Invodo
|
32 |
-
* @package Invodo_Video
|
33 |
-
*/
|
34 |
-
class Invodo_Video_Model_Widget_Source_Videotype
|
35 |
-
{
|
36 |
-
/**
|
37 |
-
* Get types as a source model result
|
38 |
-
*
|
39 |
-
* @return array
|
40 |
-
*/
|
41 |
-
public function toOptionArray()
|
42 |
-
{
|
43 |
-
$options = array(
|
44 |
-
array(
|
45 |
-
'value' => Invodo_Video_Helper_Data::VIDEO_TYPE_INLINE,
|
46 |
-
'label' => Mage::helper('invodo_video')->__('Inline')
|
47 |
-
),
|
48 |
-
array(
|
49 |
-
'value' => Invodo_Video_Helper_Data::VIDEO_TYPE_OVERLAY,
|
50 |
-
'label' => Mage::helper('invodo_video')->__('Overlay')
|
51 |
-
)
|
52 |
-
);
|
53 |
-
|
54 |
-
return $options;
|
55 |
-
}
|
56 |
}
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* NOTICE OF LICENSE
|
4 |
+
*
|
5 |
+
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
+
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
+
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
+
* display and use the Software (in object code only) only on the computers
|
9 |
+
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
+
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
+
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
+
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
+
* unless such Update is accompanied by or references a separate license
|
14 |
+
* agreement in which case the terms and conditions of that agreement will
|
15 |
+
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
+
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
+
* as provided herein, the term of each individual license granted under this
|
18 |
+
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
+
* as otherwise set forth herein.Each party recognizes that
|
20 |
+
* Company grants no licenses except for the license expressly set forth.
|
21 |
+
*
|
22 |
+
* @category Invodo
|
23 |
+
* @package Invodo_Video
|
24 |
+
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
+
*/
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Source model
|
30 |
+
*
|
31 |
+
* @category Invodo
|
32 |
+
* @package Invodo_Video
|
33 |
+
*/
|
34 |
+
class Invodo_Video_Model_Widget_Source_Videotype
|
35 |
+
{
|
36 |
+
/**
|
37 |
+
* Get types as a source model result
|
38 |
+
*
|
39 |
+
* @return array
|
40 |
+
*/
|
41 |
+
public function toOptionArray()
|
42 |
+
{
|
43 |
+
$options = array(
|
44 |
+
array(
|
45 |
+
'value' => Invodo_Video_Helper_Data::VIDEO_TYPE_INLINE,
|
46 |
+
'label' => Mage::helper('invodo_video')->__('Inline')
|
47 |
+
),
|
48 |
+
array(
|
49 |
+
'value' => Invodo_Video_Helper_Data::VIDEO_TYPE_OVERLAY,
|
50 |
+
'label' => Mage::helper('invodo_video')->__('Overlay')
|
51 |
+
)
|
52 |
+
);
|
53 |
+
|
54 |
+
return $options;
|
55 |
+
}
|
56 |
}
|
app/code/community/Invodo/Video/controllers/Adminhtml/Cms/Wysiwyg/ImagesController.php
CHANGED
@@ -1,52 +1,52 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* NOTICE OF LICENSE
|
4 |
-
*
|
5 |
-
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
-
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
-
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
-
* display and use the Software (in object code only) only on the computers
|
9 |
-
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
-
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
-
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
-
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
-
* unless such Update is accompanied by or references a separate license
|
14 |
-
* agreement in which case the terms and conditions of that agreement will
|
15 |
-
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
-
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
-
* as provided herein, the term of each individual license granted under this
|
18 |
-
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
-
* as otherwise set forth herein.Each party recognizes that
|
20 |
-
* Company grants no licenses except for the license expressly set forth.
|
21 |
-
*
|
22 |
-
* @category Invodo
|
23 |
-
* @package Invodo_Video
|
24 |
-
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
-
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
-
*/
|
27 |
-
|
28 |
-
/**
|
29 |
-
* Returns name for wysiwyg image
|
30 |
-
*
|
31 |
-
* @category Invodo
|
32 |
-
* @package Invodo_Video
|
33 |
-
*/
|
34 |
-
class Invodo_Video_Adminhtml_Cms_Wysiwyg_ImagesController extends Mage_Adminhtml_Controller_Action
|
35 |
-
{
|
36 |
-
/**
|
37 |
-
* Fire when select image
|
38 |
-
*/
|
39 |
-
public function onInsertAction()
|
40 |
-
{
|
41 |
-
/** @var Invodo_Video_Helper_Wysiwyg_Images $helper */
|
42 |
-
$storeId = $this->getRequest()->getParam('store');
|
43 |
-
$helper = Mage::helper('invodo_video/wysiwyg_images');
|
44 |
-
$helper->setStoreId($storeId);
|
45 |
-
|
46 |
-
$filename = $this->getRequest()->getParam('filename');
|
47 |
-
$filename = $helper->idDecode($filename);
|
48 |
-
|
49 |
-
$image = $helper->getImageHtmlDeclaration($filename);
|
50 |
-
$this->getResponse()->setBody($image);
|
51 |
-
}
|
52 |
}
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* NOTICE OF LICENSE
|
4 |
+
*
|
5 |
+
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
+
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
+
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
+
* display and use the Software (in object code only) only on the computers
|
9 |
+
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
+
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
+
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
+
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
+
* unless such Update is accompanied by or references a separate license
|
14 |
+
* agreement in which case the terms and conditions of that agreement will
|
15 |
+
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
+
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
+
* as provided herein, the term of each individual license granted under this
|
18 |
+
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
+
* as otherwise set forth herein.Each party recognizes that
|
20 |
+
* Company grants no licenses except for the license expressly set forth.
|
21 |
+
*
|
22 |
+
* @category Invodo
|
23 |
+
* @package Invodo_Video
|
24 |
+
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
+
*/
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Returns name for wysiwyg image
|
30 |
+
*
|
31 |
+
* @category Invodo
|
32 |
+
* @package Invodo_Video
|
33 |
+
*/
|
34 |
+
class Invodo_Video_Adminhtml_Cms_Wysiwyg_ImagesController extends Mage_Adminhtml_Controller_Action
|
35 |
+
{
|
36 |
+
/**
|
37 |
+
* Fire when select image
|
38 |
+
*/
|
39 |
+
public function onInsertAction()
|
40 |
+
{
|
41 |
+
/** @var Invodo_Video_Helper_Wysiwyg_Images $helper */
|
42 |
+
$storeId = $this->getRequest()->getParam('store');
|
43 |
+
$helper = Mage::helper('invodo_video/wysiwyg_images');
|
44 |
+
$helper->setStoreId($storeId);
|
45 |
+
|
46 |
+
$filename = $this->getRequest()->getParam('filename');
|
47 |
+
$filename = $helper->idDecode($filename);
|
48 |
+
|
49 |
+
$image = $helper->getImageHtmlDeclaration($filename);
|
50 |
+
$this->getResponse()->setBody($image);
|
51 |
+
}
|
52 |
}
|
app/code/community/Invodo/Video/controllers/Adminhtml/ExportController.php
CHANGED
@@ -1,66 +1,72 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* NOTICE OF LICENSE
|
4 |
-
*
|
5 |
-
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
-
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
-
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
-
* display and use the Software (in object code only) only on the computers
|
9 |
-
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
-
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
-
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
-
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
-
* unless such Update is accompanied by or references a separate license
|
14 |
-
* agreement in which case the terms and conditions of that agreement will
|
15 |
-
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
-
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
-
* as provided herein, the term of each individual license granted under this
|
18 |
-
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
-
* as otherwise set forth herein.Each party recognizes that
|
20 |
-
* Company grants no licenses except for the license expressly set forth.
|
21 |
-
*
|
22 |
-
* @category Invodo
|
23 |
-
* @package Invodo_Video
|
24 |
-
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
-
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
-
*/
|
27 |
-
|
28 |
-
/**
|
29 |
-
* Exports products from admin configuration screen
|
30 |
-
*
|
31 |
-
* @category Invodo
|
32 |
-
* @package Invodo_Video
|
33 |
-
*/
|
34 |
-
class Invodo_Video_Adminhtml_ExportController extends Mage_Adminhtml_Controller_Action
|
35 |
-
{
|
36 |
-
/**
|
37 |
-
* Load data and create file for download.
|
38 |
-
*
|
39 |
-
* @return this
|
40 |
-
*/
|
41 |
-
public function exportAction()
|
42 |
-
{
|
43 |
-
try {
|
44 |
-
/** @var $model Invodo_Video_Model_Product_Export */
|
45 |
-
$model = Mage::getModel('invodo_video/product_export');
|
46 |
-
$model->setData($this->getRequest()->getParams());
|
47 |
-
$model->setData('entity', 'catalog_product');
|
48 |
-
$model->setData('export_filter', array(
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
$model->
|
55 |
-
$model->
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
66 |
}
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* NOTICE OF LICENSE
|
4 |
+
*
|
5 |
+
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
+
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
+
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
+
* display and use the Software (in object code only) only on the computers
|
9 |
+
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
+
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
+
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
+
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
+
* unless such Update is accompanied by or references a separate license
|
14 |
+
* agreement in which case the terms and conditions of that agreement will
|
15 |
+
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
+
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
+
* as provided herein, the term of each individual license granted under this
|
18 |
+
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
+
* as otherwise set forth herein.Each party recognizes that
|
20 |
+
* Company grants no licenses except for the license expressly set forth.
|
21 |
+
*
|
22 |
+
* @category Invodo
|
23 |
+
* @package Invodo_Video
|
24 |
+
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
+
*/
|
27 |
+
|
28 |
+
/**
|
29 |
+
* Exports products from admin configuration screen
|
30 |
+
*
|
31 |
+
* @category Invodo
|
32 |
+
* @package Invodo_Video
|
33 |
+
*/
|
34 |
+
class Invodo_Video_Adminhtml_ExportController extends Mage_Adminhtml_Controller_Action
|
35 |
+
{
|
36 |
+
/**
|
37 |
+
* Load data and create file for download.
|
38 |
+
*
|
39 |
+
* @return this
|
40 |
+
*/
|
41 |
+
public function exportAction()
|
42 |
+
{
|
43 |
+
try {
|
44 |
+
/** @var $model Invodo_Video_Model_Product_Export */
|
45 |
+
$model = Mage::getModel('invodo_video/product_export');
|
46 |
+
$model->setData($this->getRequest()->getParams());
|
47 |
+
$model->setData('entity', 'catalog_product');
|
48 |
+
$model->setData('export_filter', array(
|
49 |
+
'visibility' => Mage_Catalog_Model_Product_Visibility::VISIBILITY_BOTH
|
50 |
+
)
|
51 |
+
);
|
52 |
+
|
53 |
+
return $this->_prepareDownloadResponse(
|
54 |
+
$model->getFileName(),
|
55 |
+
$model->export(),
|
56 |
+
$model->getContentType()
|
57 |
+
);
|
58 |
+
} catch (Mage_Core_Exception $e) {
|
59 |
+
$this->_getSession()->addError($e->getMessage());
|
60 |
+
} catch (Exception $e) {
|
61 |
+
Mage::logException($e);
|
62 |
+
$this->_getSession()->addError($this->__('No valid data sent'));
|
63 |
+
}
|
64 |
+
|
65 |
+
return $this->_redirect('*/*/index');
|
66 |
+
}
|
67 |
+
|
68 |
+
protected function _isAllowed()
|
69 |
+
{
|
70 |
+
return Mage::getSingleton('admin/session')->isAllowed('system/config/invodo_video');
|
71 |
+
}
|
72 |
}
|
app/code/community/Invodo/Video/data/invodo_video_setup/data-upgrade-0.1.0-0.1.1.php
CHANGED
@@ -1,44 +1,38 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* NOTICE OF LICENSE
|
4 |
-
*
|
5 |
-
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
-
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
-
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
-
* display and use the Software (in object code only) only on the computers
|
9 |
-
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
-
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
-
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
-
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
-
* unless such Update is accompanied by or references a separate license
|
14 |
-
* agreement in which case the terms and conditions of that agreement will
|
15 |
-
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
-
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
-
* as provided herein, the term of each individual license granted under this
|
18 |
-
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
-
* as otherwise set forth herein.Each party recognizes that
|
20 |
-
* Company grants no licenses except for the license expressly set forth.
|
21 |
-
*
|
22 |
-
* @category Invodo
|
23 |
-
* @package Invodo_Video
|
24 |
-
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
-
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
-
*/
|
27 |
-
|
28 |
-
|
29 |
-
$
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
$
|
34 |
-
|
35 |
-
|
36 |
-
$
|
37 |
-
$mediaFile
|
38 |
-
|
39 |
-
|
40 |
-
foreach ($images as $image) {
|
41 |
-
$mediaFile->cp($sourceDir . $image, $destinationDir . $image);
|
42 |
-
}
|
43 |
-
|
44 |
-
$installer->endSetup();
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* NOTICE OF LICENSE
|
4 |
+
*
|
5 |
+
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
+
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
+
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
+
* display and use the Software (in object code only) only on the computers
|
9 |
+
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
+
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
+
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
+
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
+
* unless such Update is accompanied by or references a separate license
|
14 |
+
* agreement in which case the terms and conditions of that agreement will
|
15 |
+
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
+
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
+
* as provided herein, the term of each individual license granted under this
|
18 |
+
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
+
* as otherwise set forth herein.Each party recognizes that
|
20 |
+
* Company grants no licenses except for the license expressly set forth.
|
21 |
+
*
|
22 |
+
* @category Invodo
|
23 |
+
* @package Invodo_Video
|
24 |
+
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
+
*/
|
27 |
+
|
28 |
+
// copies images to media folder
|
29 |
+
$images = array('CTA_watchvideo_gray_56x56.png', 'CTA_watchvideo_grayfill_56x56.png', 'CTA_watchvideo_red_56x56.png');
|
30 |
+
|
31 |
+
$sourceDir = Mage::getModuleDir('', 'Invodo_Video') . DS. 'media' . DS . 'Video_Call_To_Actions' . DS;
|
32 |
+
$destinationDir = Mage::getBaseDir('media') . DS . 'wysiwyg' . DS . 'Video_Call_To_Actions' . DS;
|
33 |
+
$mediaFile = new Varien_Io_File();
|
34 |
+
$mediaFile->mkdir($destinationDir);
|
35 |
+
|
36 |
+
foreach ($images as $image) {
|
37 |
+
$mediaFile->cp($sourceDir . $image, $destinationDir . $image);
|
38 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Invodo/Video/data/invodo_video_setup/data-upgrade-0.1.5-0.1.6.php
ADDED
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/* @var $installer Mage_Core_Model_Resource_Setup */
|
4 |
+
$installer = $this;
|
5 |
+
|
6 |
+
$installer->startSetup();
|
7 |
+
// add blocks
|
8 |
+
$installer->getConnection()->insertIgnore(
|
9 |
+
$installer->getTable('admin/permission_block'),
|
10 |
+
array('block_name' => 'invodo_video/conversion_register', 'is_allowed' => 1)
|
11 |
+
);
|
12 |
+
$installer->getConnection()->insertIgnore(
|
13 |
+
$installer->getTable('admin/permission_block'),
|
14 |
+
array('block_name' => 'invodo_video/conversion_session', 'is_allowed' => 1)
|
15 |
+
);
|
16 |
+
$installer->getConnection()->insertIgnore(
|
17 |
+
$installer->getTable('admin/permission_block'),
|
18 |
+
array('block_name' => 'invodo_video/init', 'is_allowed' => 1)
|
19 |
+
);
|
20 |
+
$installer->getConnection()->insertIgnore(
|
21 |
+
$installer->getTable('admin/permission_block'),
|
22 |
+
array('block_name' => 'invodo_video/product_video_overlay', 'is_allowed' => 1)
|
23 |
+
);
|
24 |
+
$installer->getConnection()->insertIgnore(
|
25 |
+
$installer->getTable('admin/permission_block'),
|
26 |
+
array('block_name' => 'invodo_video/product_video_inline', 'is_allowed' => 1)
|
27 |
+
);
|
28 |
+
$installer->getConnection()->insertIgnore(
|
29 |
+
$installer->getTable('admin/permission_block'),
|
30 |
+
array('block_name' => 'core/text', 'is_allowed' => 1)
|
31 |
+
);
|
32 |
+
|
33 |
+
// add variable
|
34 |
+
$installer->getConnection()->insertIgnore(
|
35 |
+
$installer->getTable('admin/permission_variable'),
|
36 |
+
array('variable_name' => 'invodo_video/general/site_key', 'is_allowed' => 1)
|
37 |
+
);
|
38 |
+
$installer->getConnection()->insertIgnore(
|
39 |
+
$installer->getTable('admin/permission_variable'),
|
40 |
+
array('variable_name' => 'invodo_video/general/enabled_on_pdp', 'is_allowed' => 1)
|
41 |
+
);
|
42 |
+
$installer->getConnection()->insertIgnore(
|
43 |
+
$installer->getTable('admin/permission_variable'),
|
44 |
+
array('variable_name' => 'invodo_video/general/pdp_video_type', 'is_allowed' => 1)
|
45 |
+
);
|
46 |
+
$installer->getConnection()->insertIgnore(
|
47 |
+
$installer->getTable('admin/permission_variable'),
|
48 |
+
array('variable_name' => 'invodo_video/general/pdp_video_resolution', 'is_allowed' => 1)
|
49 |
+
);
|
50 |
+
$installer->getConnection()->insertIgnore(
|
51 |
+
$installer->getTable('admin/permission_variable'),
|
52 |
+
array('variable_name' => 'invodo_video/general/pdp_video_auto_play', 'is_allowed' => 1)
|
53 |
+
);
|
54 |
+
$installer->getConnection()->insertIgnore(
|
55 |
+
$installer->getTable('admin/permission_variable'),
|
56 |
+
array('variable_name' => 'invodo_video/general/pdp_overlay_action', 'is_allowed' => 1)
|
57 |
+
);
|
58 |
+
$installer->getConnection()->insertIgnore(
|
59 |
+
$installer->getTable('admin/permission_variable'),
|
60 |
+
array('variable_name' => 'invodo_video/general/pdp_overlay_action_source', 'is_allowed' => 1)
|
61 |
+
);
|
62 |
+
$installer->getConnection()->insertIgnore(
|
63 |
+
$installer->getTable('admin/permission_variable'),
|
64 |
+
array('variable_name' => 'invodo_video/general/enable_conversion_tracking', 'is_allowed' => 1)
|
65 |
+
);
|
66 |
+
$installer->getConnection()->insertIgnore(
|
67 |
+
$installer->getTable('admin/permission_variable'),
|
68 |
+
array('variable_name' => 'invodo_video/general/export', 'is_allowed' => 1)
|
69 |
+
);
|
70 |
+
|
71 |
+
$installer->endSetup();
|
app/code/community/Invodo/Video/etc/adminhtml.xml
CHANGED
@@ -1,49 +1,49 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
-
<!--
|
3 |
-
/**
|
4 |
-
* NOTICE OF LICENSE
|
5 |
-
*
|
6 |
-
* Subject to the terms, conditions and limitations of this EULA,
|
7 |
-
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
8 |
-
* non-assignable license, without rights to sublicense, to install or have installed,
|
9 |
-
* display and use the Software (in object code only) only on the computers
|
10 |
-
* to which the Software is downloaded. The terms and conditions of this EULA
|
11 |
-
* will govern any upgrades, updates, patches, hotfixes and/or
|
12 |
-
* additional versions of the Software provided by Company, at Company’s sole
|
13 |
-
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
14 |
-
* unless such Update is accompanied by or references a separate license
|
15 |
-
* agreement in which case the terms and conditions of that agreement will
|
16 |
-
* govern. If this EULA governs your use of an Update, such Update shall be
|
17 |
-
* considered Software for purposes of this EULA. Unless earlier terminated
|
18 |
-
* as provided herein, the term of each individual license granted under this
|
19 |
-
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
20 |
-
* as otherwise set forth herein.Each party recognizes that
|
21 |
-
* Company grants no licenses except for the license expressly set forth.
|
22 |
-
*
|
23 |
-
* @category Invodo
|
24 |
-
* @package Invodo_Video
|
25 |
-
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
26 |
-
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
27 |
-
*/
|
28 |
-
-->
|
29 |
-
<config>
|
30 |
-
<acl>
|
31 |
-
<resources>
|
32 |
-
<admin>
|
33 |
-
<children>
|
34 |
-
<system>
|
35 |
-
<children>
|
36 |
-
<config>
|
37 |
-
<children>
|
38 |
-
<invodo_video>
|
39 |
-
<title>Invodo: Setup and Options</title>
|
40 |
-
</invodo_video>
|
41 |
-
</children>
|
42 |
-
</config>
|
43 |
-
</children>
|
44 |
-
</system>
|
45 |
-
</children>
|
46 |
-
</admin>
|
47 |
-
</resources>
|
48 |
-
</acl>
|
49 |
</config>
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* NOTICE OF LICENSE
|
5 |
+
*
|
6 |
+
* Subject to the terms, conditions and limitations of this EULA,
|
7 |
+
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
8 |
+
* non-assignable license, without rights to sublicense, to install or have installed,
|
9 |
+
* display and use the Software (in object code only) only on the computers
|
10 |
+
* to which the Software is downloaded. The terms and conditions of this EULA
|
11 |
+
* will govern any upgrades, updates, patches, hotfixes and/or
|
12 |
+
* additional versions of the Software provided by Company, at Company’s sole
|
13 |
+
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
14 |
+
* unless such Update is accompanied by or references a separate license
|
15 |
+
* agreement in which case the terms and conditions of that agreement will
|
16 |
+
* govern. If this EULA governs your use of an Update, such Update shall be
|
17 |
+
* considered Software for purposes of this EULA. Unless earlier terminated
|
18 |
+
* as provided herein, the term of each individual license granted under this
|
19 |
+
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
20 |
+
* as otherwise set forth herein.Each party recognizes that
|
21 |
+
* Company grants no licenses except for the license expressly set forth.
|
22 |
+
*
|
23 |
+
* @category Invodo
|
24 |
+
* @package Invodo_Video
|
25 |
+
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
26 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
27 |
+
*/
|
28 |
+
-->
|
29 |
+
<config>
|
30 |
+
<acl>
|
31 |
+
<resources>
|
32 |
+
<admin>
|
33 |
+
<children>
|
34 |
+
<system>
|
35 |
+
<children>
|
36 |
+
<config>
|
37 |
+
<children>
|
38 |
+
<invodo_video>
|
39 |
+
<title>Invodo: Setup and Options</title>
|
40 |
+
</invodo_video>
|
41 |
+
</children>
|
42 |
+
</config>
|
43 |
+
</children>
|
44 |
+
</system>
|
45 |
+
</children>
|
46 |
+
</admin>
|
47 |
+
</resources>
|
48 |
+
</acl>
|
49 |
</config>
|
app/code/community/Invodo/Video/etc/config.xml
CHANGED
@@ -1,140 +1,136 @@
|
|
1 |
-
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
-
<!--
|
3 |
-
/**
|
4 |
-
* NOTICE OF LICENSE
|
5 |
-
*
|
6 |
-
* Subject to the terms, conditions and limitations of this EULA,
|
7 |
-
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
8 |
-
* non-assignable license, without rights to sublicense, to install or have installed,
|
9 |
-
* display and use the Software (in object code only) only on the computers
|
10 |
-
* to which the Software is downloaded. The terms and conditions of this EULA
|
11 |
-
* will govern any upgrades, updates, patches, hotfixes and/or
|
12 |
-
* additional versions of the Software provided by Company, at Company’s sole
|
13 |
-
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
14 |
-
* unless such Update is accompanied by or references a separate license
|
15 |
-
* agreement in which case the terms and conditions of that agreement will
|
16 |
-
* govern. If this EULA governs your use of an Update, such Update shall be
|
17 |
-
* considered Software for purposes of this EULA. Unless earlier terminated
|
18 |
-
* as provided herein, the term of each individual license granted under this
|
19 |
-
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
20 |
-
* as otherwise set forth herein.Each party recognizes that
|
21 |
-
* Company grants no licenses except for the license expressly set forth.
|
22 |
-
*
|
23 |
-
* @category Invodo
|
24 |
-
* @package Invodo_Video
|
25 |
-
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
26 |
-
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
27 |
-
*/
|
28 |
-
-->
|
29 |
-
<config>
|
30 |
-
<modules>
|
31 |
-
<Invodo_Video>
|
32 |
-
<version>0.1.
|
33 |
-
</Invodo_Video>
|
34 |
-
</modules>
|
35 |
-
<global>
|
36 |
-
<blocks>
|
37 |
-
<invodo_video>
|
38 |
-
<class>Invodo_Video_Block</class>
|
39 |
-
</invodo_video>
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
</
|
45 |
-
</
|
46 |
-
<
|
47 |
-
<invodo_video>
|
48 |
-
<class>
|
49 |
-
</invodo_video>
|
50 |
-
</
|
51 |
-
<
|
52 |
-
<
|
53 |
-
<
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
<
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
</general>
|
138 |
-
</invodo_video>
|
139 |
-
</default>
|
140 |
-
</config>
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* NOTICE OF LICENSE
|
5 |
+
*
|
6 |
+
* Subject to the terms, conditions and limitations of this EULA,
|
7 |
+
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
8 |
+
* non-assignable license, without rights to sublicense, to install or have installed,
|
9 |
+
* display and use the Software (in object code only) only on the computers
|
10 |
+
* to which the Software is downloaded. The terms and conditions of this EULA
|
11 |
+
* will govern any upgrades, updates, patches, hotfixes and/or
|
12 |
+
* additional versions of the Software provided by Company, at Company’s sole
|
13 |
+
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
14 |
+
* unless such Update is accompanied by or references a separate license
|
15 |
+
* agreement in which case the terms and conditions of that agreement will
|
16 |
+
* govern. If this EULA governs your use of an Update, such Update shall be
|
17 |
+
* considered Software for purposes of this EULA. Unless earlier terminated
|
18 |
+
* as provided herein, the term of each individual license granted under this
|
19 |
+
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
20 |
+
* as otherwise set forth herein.Each party recognizes that
|
21 |
+
* Company grants no licenses except for the license expressly set forth.
|
22 |
+
*
|
23 |
+
* @category Invodo
|
24 |
+
* @package Invodo_Video
|
25 |
+
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
26 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
27 |
+
*/
|
28 |
+
-->
|
29 |
+
<config>
|
30 |
+
<modules>
|
31 |
+
<Invodo_Video>
|
32 |
+
<version>0.1.5</version>
|
33 |
+
</Invodo_Video>
|
34 |
+
</modules>
|
35 |
+
<global>
|
36 |
+
<blocks>
|
37 |
+
<invodo_video>
|
38 |
+
<class>Invodo_Video_Block</class>
|
39 |
+
</invodo_video>
|
40 |
+
<adminhtml>
|
41 |
+
<rewrite>
|
42 |
+
<widget_form_element_dependence>Invodo_Video_Block_Adminhtml_Widget_Form_Element_Dependence</widget_form_element_dependence>
|
43 |
+
</rewrite>
|
44 |
+
</adminhtml>
|
45 |
+
</blocks>
|
46 |
+
<helpers>
|
47 |
+
<invodo_video>
|
48 |
+
<class>Invodo_Video_Helper</class>
|
49 |
+
</invodo_video>
|
50 |
+
</helpers>
|
51 |
+
<models>
|
52 |
+
<invodo_video>
|
53 |
+
<class>Invodo_Video_Model</class>
|
54 |
+
</invodo_video>
|
55 |
+
</models>
|
56 |
+
<resources>
|
57 |
+
<invodo_video_setup>
|
58 |
+
<setup>
|
59 |
+
<module>Invodo_Video</module>
|
60 |
+
<class>Mage_Catalog_Model_Resource_Setup</class>
|
61 |
+
</setup>
|
62 |
+
</invodo_video_setup>
|
63 |
+
</resources>
|
64 |
+
</global>
|
65 |
+
<frontend>
|
66 |
+
<layout>
|
67 |
+
<updates>
|
68 |
+
<invodo_video>
|
69 |
+
<file>invodo_video.xml</file>
|
70 |
+
</invodo_video>
|
71 |
+
</updates>
|
72 |
+
</layout>
|
73 |
+
<events>
|
74 |
+
<checkout_cart_add_product_complete>
|
75 |
+
<observers>
|
76 |
+
<invodo_video>
|
77 |
+
<class>invodo_video/observer</class>
|
78 |
+
<method>checkoutCartAddProductComplete</method>
|
79 |
+
</invodo_video>
|
80 |
+
</observers>
|
81 |
+
</checkout_cart_add_product_complete>
|
82 |
+
<checkout_onepage_controller_success_action>
|
83 |
+
<observers>
|
84 |
+
<invodo_video>
|
85 |
+
<class>invodo_video/observer</class>
|
86 |
+
<method>checkoutOnepageControllerSuccessAction</method>
|
87 |
+
</invodo_video>
|
88 |
+
</observers>
|
89 |
+
</checkout_onepage_controller_success_action>
|
90 |
+
</events>
|
91 |
+
</frontend>
|
92 |
+
<admin>
|
93 |
+
<routers>
|
94 |
+
<invodo_video>
|
95 |
+
<use>admin</use>
|
96 |
+
<args>
|
97 |
+
<module>Invodo_Video</module>
|
98 |
+
<frontName>invodo_video</frontName>
|
99 |
+
</args>
|
100 |
+
</invodo_video>
|
101 |
+
</routers>
|
102 |
+
</admin>
|
103 |
+
<adminhtml>
|
104 |
+
<events>
|
105 |
+
<controller_action_layout_render_before_adminhtml_cms_wysiwyg_images_index>
|
106 |
+
<observers>
|
107 |
+
<invodo_video>
|
108 |
+
<type>singleton</type>
|
109 |
+
<class>invodo_video/observer_adminhtml</class>
|
110 |
+
<method>adminhtmlCmsWysiwygImagesIndexRenderBefore</method>
|
111 |
+
</invodo_video>
|
112 |
+
</observers>
|
113 |
+
</controller_action_layout_render_before_adminhtml_cms_wysiwyg_images_index>
|
114 |
+
<controller_action_layout_load_before>
|
115 |
+
<observers>
|
116 |
+
<invodo_video>
|
117 |
+
<type>singleton</type>
|
118 |
+
<class>invodo_video/observer_adminhtml</class>
|
119 |
+
<method>controllerActionLayoutLoadBefore</method>
|
120 |
+
</invodo_video>
|
121 |
+
</observers>
|
122 |
+
</controller_action_layout_load_before>
|
123 |
+
</events>
|
124 |
+
</adminhtml>
|
125 |
+
<default>
|
126 |
+
<invodo_video>
|
127 |
+
<general>
|
128 |
+
<enabled_on_pdp>1</enabled_on_pdp>
|
129 |
+
<pdp_video_type>1</pdp_video_type>
|
130 |
+
<pdp_video_resolution>480x270</pdp_video_resolution>
|
131 |
+
<pdp_video_auto_play>0</pdp_video_auto_play>
|
132 |
+
<enable_conversion_tracking>1</enable_conversion_tracking>
|
133 |
+
</general>
|
134 |
+
</invodo_video>
|
135 |
+
</default>
|
136 |
+
</config>
|
|
|
|
|
|
|
|
app/code/community/Invodo/Video/etc/system.xml
CHANGED
@@ -1,151 +1,151 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
-
<!--
|
3 |
-
/**
|
4 |
-
* NOTICE OF LICENSE
|
5 |
-
*
|
6 |
-
* Subject to the terms, conditions and limitations of this EULA,
|
7 |
-
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
8 |
-
* non-assignable license, without rights to sublicense, to install or have installed,
|
9 |
-
* display and use the Software (in object code only) only on the computers
|
10 |
-
* to which the Software is downloaded. The terms and conditions of this EULA
|
11 |
-
* will govern any upgrades, updates, patches, hotfixes and/or
|
12 |
-
* additional versions of the Software provided by Company, at Company’s sole
|
13 |
-
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
14 |
-
* unless such Update is accompanied by or references a separate license
|
15 |
-
* agreement in which case the terms and conditions of that agreement will
|
16 |
-
* govern. If this EULA governs your use of an Update, such Update shall be
|
17 |
-
* considered Software for purposes of this EULA. Unless earlier terminated
|
18 |
-
* as provided herein, the term of each individual license granted under this
|
19 |
-
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
20 |
-
* as otherwise set forth herein.Each party recognizes that
|
21 |
-
* Company grants no licenses except for the license expressly set forth.
|
22 |
-
*
|
23 |
-
* @category Invodo
|
24 |
-
* @package Invodo_Video
|
25 |
-
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
26 |
-
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
27 |
-
*/
|
28 |
-
-->
|
29 |
-
<config>
|
30 |
-
<tabs>
|
31 |
-
<invodo translate="label">
|
32 |
-
<label>Invodo</label>
|
33 |
-
</invodo>
|
34 |
-
</tabs>
|
35 |
-
<sections>
|
36 |
-
<invodo_video translate="label">
|
37 |
-
<label>Setup and Options</label>
|
38 |
-
<tab>invodo</tab>
|
39 |
-
<frontend_type>text</frontend_type>
|
40 |
-
<frontend_model>invodo_video/adminhtml_system_config_form</frontend_model>
|
41 |
-
<sort_order>1000</sort_order>
|
42 |
-
<show_in_default>1</show_in_default>
|
43 |
-
<show_in_website>1</show_in_website>
|
44 |
-
<show_in_store>1</show_in_store>
|
45 |
-
<groups>
|
46 |
-
<general>
|
47 |
-
<label>General settings</label>
|
48 |
-
<frontend_type>text</frontend_type>
|
49 |
-
<sort_order>10</sort_order>
|
50 |
-
<show_in_default>1</show_in_default>
|
51 |
-
<show_in_website>1</show_in_website>
|
52 |
-
<show_in_store>1</show_in_store>
|
53 |
-
<fields>
|
54 |
-
<site_key>
|
55 |
-
<label>Site KEY</label>
|
56 |
-
<frontend_type>text</frontend_type>
|
57 |
-
<sort_order>10</sort_order>
|
58 |
-
<show_in_default>1</show_in_default>
|
59 |
-
<show_in_website>1</show_in_website>
|
60 |
-
<show_in_store>1</show_in_store>
|
61 |
-
</site_key>
|
62 |
-
<enabled_on_pdp>
|
63 |
-
<label>Enabled on Product Details Page</label>
|
64 |
-
<frontend_type>select</frontend_type>
|
65 |
-
<sort_order>20</sort_order>
|
66 |
-
<show_in_default>1</show_in_default>
|
67 |
-
<show_in_website>1</show_in_website>
|
68 |
-
<show_in_store>1</show_in_store>
|
69 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
70 |
-
<comment><![CDATA[Enable video support on product view page]]></comment>
|
71 |
-
</enabled_on_pdp>
|
72 |
-
<pdp_video_type>
|
73 |
-
<label><![CDATA[Product Details Page<br/> Video Display Type]]></label>
|
74 |
-
<frontend_type>select</frontend_type>
|
75 |
-
<sort_order>30</sort_order>
|
76 |
-
<show_in_default>1</show_in_default>
|
77 |
-
<show_in_website>1</show_in_website>
|
78 |
-
<show_in_store>1</show_in_store>
|
79 |
-
<source_model>invodo_video/widget_source_videotype</source_model>
|
80 |
-
<comment><![CDATA[<nobr>Overlay: Overlay Call-To-Action will be added to the "More Views" section of the Product Details Page.</nobr><nobr><br/>Inline: Inline Video will be appended above "Description" of the Product Details Page.</nobr>]]></comment>
|
81 |
-
</pdp_video_type>
|
82 |
-
<pdp_video_resolution>
|
83 |
-
<label>Player Container Size</label>
|
84 |
-
<frontend_type>videoresolution</frontend_type>
|
85 |
-
<show_in_default>1</show_in_default>
|
86 |
-
<show_in_website>1</show_in_website>
|
87 |
-
<show_in_store>1</show_in_store>
|
88 |
-
<sort_order>32</sort_order>
|
89 |
-
<depends>
|
90 |
-
<pdp_video_type>1</pdp_video_type>
|
91 |
-
</depends>
|
92 |
-
</pdp_video_resolution>
|
93 |
-
<pdp_video_auto_play>
|
94 |
-
<label>Auto play</label>
|
95 |
-
<frontend_type>autoplay</frontend_type>
|
96 |
-
<source_model>invodo_video/widget_source_autoplay</source_model>
|
97 |
-
<show_in_default>1</show_in_default>
|
98 |
-
<show_in_website>1</show_in_website>
|
99 |
-
<show_in_store>1</show_in_store>
|
100 |
-
<sort_order>33</sort_order>
|
101 |
-
<depends>
|
102 |
-
<pdp_video_type>1</pdp_video_type>
|
103 |
-
</depends>
|
104 |
-
</pdp_video_auto_play>
|
105 |
-
<pdp_overlay_action>
|
106 |
-
<label>Overlay Call-to-Action</label>
|
107 |
-
<frontend_type>select</frontend_type>
|
108 |
-
<source_model>invodo_video/widget_source_overlayaction</source_model>
|
109 |
-
<show_in_default>1</show_in_default>
|
110 |
-
<show_in_website>1</show_in_website>
|
111 |
-
<show_in_store>1</show_in_store>
|
112 |
-
<sort_order>31</sort_order>
|
113 |
-
<depends>
|
114 |
-
<pdp_video_type>2</pdp_video_type>
|
115 |
-
</depends>
|
116 |
-
</pdp_overlay_action>
|
117 |
-
<pdp_overlay_action_source>
|
118 |
-
<frontend_type>overlayactionsource</frontend_type>
|
119 |
-
<show_in_default>1</show_in_default>
|
120 |
-
<show_in_website>1</show_in_website>
|
121 |
-
<show_in_store>1</show_in_store>
|
122 |
-
<sort_order>32</sort_order>
|
123 |
-
<depends>
|
124 |
-
<pdp_video_type>2</pdp_video_type>
|
125 |
-
<pdp_overlay_action>1</pdp_overlay_action>
|
126 |
-
</depends>
|
127 |
-
</pdp_overlay_action_source>
|
128 |
-
<enable_conversion_tracking>
|
129 |
-
<label>Enable conversion tracking</label>
|
130 |
-
<frontend_type>select</frontend_type>
|
131 |
-
<sort_order>40</sort_order>
|
132 |
-
<show_in_default>1</show_in_default>
|
133 |
-
<show_in_website>1</show_in_website>
|
134 |
-
<show_in_store>1</show_in_store>
|
135 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
136 |
-
<comment><![CDATA[Enable conversion tracking for add to cart and purchase events]]></comment>
|
137 |
-
</enable_conversion_tracking>
|
138 |
-
<export>
|
139 |
-
<label>Export products</label>
|
140 |
-
<frontend_type>export</frontend_type>
|
141 |
-
<sort_order>50</sort_order>
|
142 |
-
<show_in_default>1</show_in_default>
|
143 |
-
<show_in_website>1</show_in_website>
|
144 |
-
<show_in_store>0</show_in_store>
|
145 |
-
</export>
|
146 |
-
</fields>
|
147 |
-
</general>
|
148 |
-
</groups>
|
149 |
-
</invodo_video>
|
150 |
-
</sections>
|
151 |
</config>
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* NOTICE OF LICENSE
|
5 |
+
*
|
6 |
+
* Subject to the terms, conditions and limitations of this EULA,
|
7 |
+
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
8 |
+
* non-assignable license, without rights to sublicense, to install or have installed,
|
9 |
+
* display and use the Software (in object code only) only on the computers
|
10 |
+
* to which the Software is downloaded. The terms and conditions of this EULA
|
11 |
+
* will govern any upgrades, updates, patches, hotfixes and/or
|
12 |
+
* additional versions of the Software provided by Company, at Company’s sole
|
13 |
+
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
14 |
+
* unless such Update is accompanied by or references a separate license
|
15 |
+
* agreement in which case the terms and conditions of that agreement will
|
16 |
+
* govern. If this EULA governs your use of an Update, such Update shall be
|
17 |
+
* considered Software for purposes of this EULA. Unless earlier terminated
|
18 |
+
* as provided herein, the term of each individual license granted under this
|
19 |
+
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
20 |
+
* as otherwise set forth herein.Each party recognizes that
|
21 |
+
* Company grants no licenses except for the license expressly set forth.
|
22 |
+
*
|
23 |
+
* @category Invodo
|
24 |
+
* @package Invodo_Video
|
25 |
+
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
26 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
27 |
+
*/
|
28 |
+
-->
|
29 |
+
<config>
|
30 |
+
<tabs>
|
31 |
+
<invodo translate="label">
|
32 |
+
<label>Invodo</label>
|
33 |
+
</invodo>
|
34 |
+
</tabs>
|
35 |
+
<sections>
|
36 |
+
<invodo_video translate="label">
|
37 |
+
<label>Setup and Options</label>
|
38 |
+
<tab>invodo</tab>
|
39 |
+
<frontend_type>text</frontend_type>
|
40 |
+
<frontend_model>invodo_video/adminhtml_system_config_form</frontend_model>
|
41 |
+
<sort_order>1000</sort_order>
|
42 |
+
<show_in_default>1</show_in_default>
|
43 |
+
<show_in_website>1</show_in_website>
|
44 |
+
<show_in_store>1</show_in_store>
|
45 |
+
<groups>
|
46 |
+
<general>
|
47 |
+
<label>General settings</label>
|
48 |
+
<frontend_type>text</frontend_type>
|
49 |
+
<sort_order>10</sort_order>
|
50 |
+
<show_in_default>1</show_in_default>
|
51 |
+
<show_in_website>1</show_in_website>
|
52 |
+
<show_in_store>1</show_in_store>
|
53 |
+
<fields>
|
54 |
+
<site_key>
|
55 |
+
<label>Site KEY</label>
|
56 |
+
<frontend_type>text</frontend_type>
|
57 |
+
<sort_order>10</sort_order>
|
58 |
+
<show_in_default>1</show_in_default>
|
59 |
+
<show_in_website>1</show_in_website>
|
60 |
+
<show_in_store>1</show_in_store>
|
61 |
+
</site_key>
|
62 |
+
<enabled_on_pdp>
|
63 |
+
<label>Enabled on Product Details Page</label>
|
64 |
+
<frontend_type>select</frontend_type>
|
65 |
+
<sort_order>20</sort_order>
|
66 |
+
<show_in_default>1</show_in_default>
|
67 |
+
<show_in_website>1</show_in_website>
|
68 |
+
<show_in_store>1</show_in_store>
|
69 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
70 |
+
<comment><![CDATA[Enable video support on product view page]]></comment>
|
71 |
+
</enabled_on_pdp>
|
72 |
+
<pdp_video_type>
|
73 |
+
<label><![CDATA[Product Details Page<br/> Video Display Type]]></label>
|
74 |
+
<frontend_type>select</frontend_type>
|
75 |
+
<sort_order>30</sort_order>
|
76 |
+
<show_in_default>1</show_in_default>
|
77 |
+
<show_in_website>1</show_in_website>
|
78 |
+
<show_in_store>1</show_in_store>
|
79 |
+
<source_model>invodo_video/widget_source_videotype</source_model>
|
80 |
+
<comment><![CDATA[<nobr>Overlay: Overlay Call-To-Action will be added to the "More Views" section of the Product Details Page.</nobr><nobr><br/>Inline: Inline Video will be appended above "Description" of the Product Details Page.</nobr>]]></comment>
|
81 |
+
</pdp_video_type>
|
82 |
+
<pdp_video_resolution>
|
83 |
+
<label>Player Container Size</label>
|
84 |
+
<frontend_type>videoresolution</frontend_type>
|
85 |
+
<show_in_default>1</show_in_default>
|
86 |
+
<show_in_website>1</show_in_website>
|
87 |
+
<show_in_store>1</show_in_store>
|
88 |
+
<sort_order>32</sort_order>
|
89 |
+
<depends>
|
90 |
+
<pdp_video_type>1</pdp_video_type>
|
91 |
+
</depends>
|
92 |
+
</pdp_video_resolution>
|
93 |
+
<pdp_video_auto_play>
|
94 |
+
<label>Auto play</label>
|
95 |
+
<frontend_type>autoplay</frontend_type>
|
96 |
+
<source_model>invodo_video/widget_source_autoplay</source_model>
|
97 |
+
<show_in_default>1</show_in_default>
|
98 |
+
<show_in_website>1</show_in_website>
|
99 |
+
<show_in_store>1</show_in_store>
|
100 |
+
<sort_order>33</sort_order>
|
101 |
+
<depends>
|
102 |
+
<pdp_video_type>1</pdp_video_type>
|
103 |
+
</depends>
|
104 |
+
</pdp_video_auto_play>
|
105 |
+
<pdp_overlay_action>
|
106 |
+
<label>Overlay Call-to-Action</label>
|
107 |
+
<frontend_type>select</frontend_type>
|
108 |
+
<source_model>invodo_video/widget_source_overlayaction</source_model>
|
109 |
+
<show_in_default>1</show_in_default>
|
110 |
+
<show_in_website>1</show_in_website>
|
111 |
+
<show_in_store>1</show_in_store>
|
112 |
+
<sort_order>31</sort_order>
|
113 |
+
<depends>
|
114 |
+
<pdp_video_type>2</pdp_video_type>
|
115 |
+
</depends>
|
116 |
+
</pdp_overlay_action>
|
117 |
+
<pdp_overlay_action_source>
|
118 |
+
<frontend_type>overlayactionsource</frontend_type>
|
119 |
+
<show_in_default>1</show_in_default>
|
120 |
+
<show_in_website>1</show_in_website>
|
121 |
+
<show_in_store>1</show_in_store>
|
122 |
+
<sort_order>32</sort_order>
|
123 |
+
<depends>
|
124 |
+
<pdp_video_type>2</pdp_video_type>
|
125 |
+
<pdp_overlay_action>1</pdp_overlay_action>
|
126 |
+
</depends>
|
127 |
+
</pdp_overlay_action_source>
|
128 |
+
<enable_conversion_tracking>
|
129 |
+
<label>Enable conversion tracking</label>
|
130 |
+
<frontend_type>select</frontend_type>
|
131 |
+
<sort_order>40</sort_order>
|
132 |
+
<show_in_default>1</show_in_default>
|
133 |
+
<show_in_website>1</show_in_website>
|
134 |
+
<show_in_store>1</show_in_store>
|
135 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
136 |
+
<comment><![CDATA[Enable conversion tracking for add to cart and purchase events]]></comment>
|
137 |
+
</enable_conversion_tracking>
|
138 |
+
<export>
|
139 |
+
<label>Export products</label>
|
140 |
+
<frontend_type>export</frontend_type>
|
141 |
+
<sort_order>50</sort_order>
|
142 |
+
<show_in_default>1</show_in_default>
|
143 |
+
<show_in_website>1</show_in_website>
|
144 |
+
<show_in_store>0</show_in_store>
|
145 |
+
</export>
|
146 |
+
</fields>
|
147 |
+
</general>
|
148 |
+
</groups>
|
149 |
+
</invodo_video>
|
150 |
+
</sections>
|
151 |
</config>
|
app/code/community/Invodo/Video/etc/widget.xml
CHANGED
@@ -1,128 +1,128 @@
|
|
1 |
-
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
-
<!--
|
3 |
-
/**
|
4 |
-
* NOTICE OF LICENSE
|
5 |
-
*
|
6 |
-
* Subject to the terms, conditions and limitations of this EULA,
|
7 |
-
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
8 |
-
* non-assignable license, without rights to sublicense, to install or have installed,
|
9 |
-
* display and use the Software (in object code only) only on the computers
|
10 |
-
* to which the Software is downloaded. The terms and conditions of this EULA
|
11 |
-
* will govern any upgrades, updates, patches, hotfixes and/or
|
12 |
-
* additional versions of the Software provided by Company, at Company’s sole
|
13 |
-
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
14 |
-
* unless such Update is accompanied by or references a separate license
|
15 |
-
* agreement in which case the terms and conditions of that agreement will
|
16 |
-
* govern. If this EULA governs your use of an Update, such Update shall be
|
17 |
-
* considered Software for purposes of this EULA. Unless earlier terminated
|
18 |
-
* as provided herein, the term of each individual license granted under this
|
19 |
-
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
20 |
-
* as otherwise set forth herein.Each party recognizes that
|
21 |
-
* Company grants no licenses except for the license expressly set forth.
|
22 |
-
*
|
23 |
-
* @category Invodo
|
24 |
-
* @package Invodo_Video
|
25 |
-
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
26 |
-
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
27 |
-
*/
|
28 |
-
-->
|
29 |
-
<widgets>
|
30 |
-
<invodo_video_widget type="invodo_video/widget" translate="name description" module="invodo_video">
|
31 |
-
<name>Invodo Video</name>
|
32 |
-
<description>Displays Invodo-Hosted Video</description>
|
33 |
-
<parameters>
|
34 |
-
<video_type translate="label">
|
35 |
-
<visible>1</visible>
|
36 |
-
<required>1</required>
|
37 |
-
<label>Display type</label>
|
38 |
-
<type>select</type>
|
39 |
-
<source_model>invodo_video/widget_source_videotype</source_model>
|
40 |
-
</video_type>
|
41 |
-
<video_resolution>
|
42 |
-
<visible>1</visible>
|
43 |
-
<required>1</required>
|
44 |
-
<label>Player Container Size</label>
|
45 |
-
<type>invodo_video/adminhtml_widget_renderer_videoresolution</type>
|
46 |
-
<depends>
|
47 |
-
<video_type>
|
48 |
-
<values>
|
49 |
-
<one>1</one>
|
50 |
-
</values>
|
51 |
-
</video_type>
|
52 |
-
</depends>
|
53 |
-
</video_resolution>
|
54 |
-
<auto_play translate="label">
|
55 |
-
<visible>1</visible>
|
56 |
-
<required>0</required>
|
57 |
-
<label>Auto play</label>
|
58 |
-
<type>radios</type>
|
59 |
-
<source_model>invodo_video/widget_source_autoplay</source_model>
|
60 |
-
<depends>
|
61 |
-
<video_type>
|
62 |
-
<values>
|
63 |
-
<one>1</one>
|
64 |
-
</values>
|
65 |
-
</video_type>
|
66 |
-
</depends>
|
67 |
-
<helper_block>
|
68 |
-
<type>invodo_video/adminhtml_widget_renderer_autoplay</type>
|
69 |
-
</helper_block>
|
70 |
-
</auto_play>
|
71 |
-
<overlay_action translate="label">
|
72 |
-
<visible>1</visible>
|
73 |
-
<required>1</required>
|
74 |
-
<label>Overlay Call-to-Action</label>
|
75 |
-
<type>select</type>
|
76 |
-
<source_model>invodo_video/widget_source_overlayaction</source_model>
|
77 |
-
<depends>
|
78 |
-
<video_type>
|
79 |
-
<values>
|
80 |
-
<one>2</one>
|
81 |
-
</values>
|
82 |
-
</video_type>
|
83 |
-
</depends>
|
84 |
-
</overlay_action>
|
85 |
-
<overlay_action_source translate="label">
|
86 |
-
<visible>1</visible>
|
87 |
-
<required>1</required>
|
88 |
-
<label></label>
|
89 |
-
<type>invodo_video/adminhtml_widget_renderer_overlayactionsource</type>
|
90 |
-
<depends>
|
91 |
-
<video_type>
|
92 |
-
<values>
|
93 |
-
<one>2</one>
|
94 |
-
</values>
|
95 |
-
</video_type>
|
96 |
-
<overlay_action>
|
97 |
-
<values>
|
98 |
-
<one>1</one>
|
99 |
-
</values>
|
100 |
-
</overlay_action>
|
101 |
-
</depends>
|
102 |
-
</overlay_action_source>
|
103 |
-
<source_type translate="label">
|
104 |
-
<visible>1</visible>
|
105 |
-
<required>0</required>
|
106 |
-
<label>Video Lookup Identifier</label>
|
107 |
-
<type>radios</type>
|
108 |
-
<helper_block>
|
109 |
-
<type>invodo_video/adminhtml_widget_renderer_sourcetype</type>
|
110 |
-
</helper_block>
|
111 |
-
<source_model>invodo_video/widget_source_sourcetype</source_model>
|
112 |
-
</source_type>
|
113 |
-
<source_value translate="label">
|
114 |
-
<visible>1</visible>
|
115 |
-
<required>1</required>
|
116 |
-
<type>text</type>
|
117 |
-
<helper_block>
|
118 |
-
<type>invodo_video/adminhtml_widget_renderer_sourcevalue</type>
|
119 |
-
</helper_block>
|
120 |
-
<description>Limit 500 characters</description>
|
121 |
-
</source_value>
|
122 |
-
<template>
|
123 |
-
<required>1</required>
|
124 |
-
<value>invodo/video/widget.phtml</value>
|
125 |
-
</template>
|
126 |
-
</parameters>
|
127 |
-
</invodo_video_widget>
|
128 |
-
</widgets>
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* NOTICE OF LICENSE
|
5 |
+
*
|
6 |
+
* Subject to the terms, conditions and limitations of this EULA,
|
7 |
+
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
8 |
+
* non-assignable license, without rights to sublicense, to install or have installed,
|
9 |
+
* display and use the Software (in object code only) only on the computers
|
10 |
+
* to which the Software is downloaded. The terms and conditions of this EULA
|
11 |
+
* will govern any upgrades, updates, patches, hotfixes and/or
|
12 |
+
* additional versions of the Software provided by Company, at Company’s sole
|
13 |
+
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
14 |
+
* unless such Update is accompanied by or references a separate license
|
15 |
+
* agreement in which case the terms and conditions of that agreement will
|
16 |
+
* govern. If this EULA governs your use of an Update, such Update shall be
|
17 |
+
* considered Software for purposes of this EULA. Unless earlier terminated
|
18 |
+
* as provided herein, the term of each individual license granted under this
|
19 |
+
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
20 |
+
* as otherwise set forth herein.Each party recognizes that
|
21 |
+
* Company grants no licenses except for the license expressly set forth.
|
22 |
+
*
|
23 |
+
* @category Invodo
|
24 |
+
* @package Invodo_Video
|
25 |
+
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
26 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
27 |
+
*/
|
28 |
+
-->
|
29 |
+
<widgets>
|
30 |
+
<invodo_video_widget type="invodo_video/widget" translate="name description" module="invodo_video">
|
31 |
+
<name>Invodo Video</name>
|
32 |
+
<description>Displays Invodo-Hosted Video</description>
|
33 |
+
<parameters>
|
34 |
+
<video_type translate="label">
|
35 |
+
<visible>1</visible>
|
36 |
+
<required>1</required>
|
37 |
+
<label>Display type</label>
|
38 |
+
<type>select</type>
|
39 |
+
<source_model>invodo_video/widget_source_videotype</source_model>
|
40 |
+
</video_type>
|
41 |
+
<video_resolution>
|
42 |
+
<visible>1</visible>
|
43 |
+
<required>1</required>
|
44 |
+
<label>Player Container Size</label>
|
45 |
+
<type>invodo_video/adminhtml_widget_renderer_videoresolution</type>
|
46 |
+
<depends>
|
47 |
+
<video_type>
|
48 |
+
<values>
|
49 |
+
<one>1</one>
|
50 |
+
</values>
|
51 |
+
</video_type>
|
52 |
+
</depends>
|
53 |
+
</video_resolution>
|
54 |
+
<auto_play translate="label">
|
55 |
+
<visible>1</visible>
|
56 |
+
<required>0</required>
|
57 |
+
<label>Auto play</label>
|
58 |
+
<type>radios</type>
|
59 |
+
<source_model>invodo_video/widget_source_autoplay</source_model>
|
60 |
+
<depends>
|
61 |
+
<video_type>
|
62 |
+
<values>
|
63 |
+
<one>1</one>
|
64 |
+
</values>
|
65 |
+
</video_type>
|
66 |
+
</depends>
|
67 |
+
<helper_block>
|
68 |
+
<type>invodo_video/adminhtml_widget_renderer_autoplay</type>
|
69 |
+
</helper_block>
|
70 |
+
</auto_play>
|
71 |
+
<overlay_action translate="label">
|
72 |
+
<visible>1</visible>
|
73 |
+
<required>1</required>
|
74 |
+
<label>Overlay Call-to-Action</label>
|
75 |
+
<type>select</type>
|
76 |
+
<source_model>invodo_video/widget_source_overlayaction</source_model>
|
77 |
+
<depends>
|
78 |
+
<video_type>
|
79 |
+
<values>
|
80 |
+
<one>2</one>
|
81 |
+
</values>
|
82 |
+
</video_type>
|
83 |
+
</depends>
|
84 |
+
</overlay_action>
|
85 |
+
<overlay_action_source translate="label">
|
86 |
+
<visible>1</visible>
|
87 |
+
<required>1</required>
|
88 |
+
<label></label>
|
89 |
+
<type>invodo_video/adminhtml_widget_renderer_overlayactionsource</type>
|
90 |
+
<depends>
|
91 |
+
<video_type>
|
92 |
+
<values>
|
93 |
+
<one>2</one>
|
94 |
+
</values>
|
95 |
+
</video_type>
|
96 |
+
<overlay_action>
|
97 |
+
<values>
|
98 |
+
<one>1</one>
|
99 |
+
</values>
|
100 |
+
</overlay_action>
|
101 |
+
</depends>
|
102 |
+
</overlay_action_source>
|
103 |
+
<source_type translate="label">
|
104 |
+
<visible>1</visible>
|
105 |
+
<required>0</required>
|
106 |
+
<label>Video Lookup Identifier</label>
|
107 |
+
<type>radios</type>
|
108 |
+
<helper_block>
|
109 |
+
<type>invodo_video/adminhtml_widget_renderer_sourcetype</type>
|
110 |
+
</helper_block>
|
111 |
+
<source_model>invodo_video/widget_source_sourcetype</source_model>
|
112 |
+
</source_type>
|
113 |
+
<source_value translate="label">
|
114 |
+
<visible>1</visible>
|
115 |
+
<required>1</required>
|
116 |
+
<type>text</type>
|
117 |
+
<helper_block>
|
118 |
+
<type>invodo_video/adminhtml_widget_renderer_sourcevalue</type>
|
119 |
+
</helper_block>
|
120 |
+
<description>Limit 500 characters</description>
|
121 |
+
</source_value>
|
122 |
+
<template>
|
123 |
+
<required>1</required>
|
124 |
+
<value>invodo/video/widget.phtml</value>
|
125 |
+
</template>
|
126 |
+
</parameters>
|
127 |
+
</invodo_video_widget>
|
128 |
+
</widgets>
|
app/code/community/Invodo/Video/readme.md
DELETED
@@ -1,6 +0,0 @@
|
|
1 |
-
##### External module files
|
2 |
-
- app/etc/modules/Invodo_Video.xml
|
3 |
-
- app/design/adminhtml/default/default/template/invodo/video/*
|
4 |
-
- app/design/frontend/base/default/layout/invodo_video.xml
|
5 |
-
- app/design/frontend/enterprise/default/layout/invodo_video.xml
|
6 |
-
- app/design/frontend/base/default/template/invodo/video/*
|
|
|
|
|
|
|
|
|
|
|
|
app/code/community/Invodo/Video/sql/invodo_video_setup/install-0.1.0.php
CHANGED
@@ -1,67 +1,66 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* NOTICE OF LICENSE
|
4 |
-
*
|
5 |
-
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
-
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
-
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
-
* display and use the Software (in object code only) only on the computers
|
9 |
-
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
-
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
-
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
-
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
-
* unless such Update is accompanied by or references a separate license
|
14 |
-
* agreement in which case the terms and conditions of that agreement will
|
15 |
-
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
-
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
-
* as provided herein, the term of each individual license granted under this
|
18 |
-
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
-
* as otherwise set forth herein.Each party recognizes that
|
20 |
-
* Company grants no licenses except for the license expressly set forth.
|
21 |
-
*
|
22 |
-
* @category Invodo
|
23 |
-
* @package Invodo_Video
|
24 |
-
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
-
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
-
*/
|
27 |
-
|
28 |
-
/* @var $installer Mage_Catalog_Model_Resource_Setup */
|
29 |
-
$installer =
|
30 |
-
$installer->startSetup();
|
31 |
-
|
32 |
-
//adds new attribute
|
33 |
-
$installer->addAttribute(
|
34 |
-
Mage_Catalog_Model_Product::ENTITY,
|
35 |
-
'invodo_video_enabled',
|
36 |
-
array(
|
37 |
-
'type' => 'int',
|
38 |
-
'group' => 'General',
|
39 |
-
'label' => 'Enable Invodo Videos',
|
40 |
-
'input' => 'select',
|
41 |
-
'source' => 'eav/entity_attribute_source_boolean',
|
42 |
-
'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL,
|
43 |
-
'visible' => true,
|
44 |
-
'required' => false,
|
45 |
-
'user_defined' => true,
|
46 |
-
'default' => 1,
|
47 |
-
'
|
48 |
-
'
|
49 |
-
'
|
50 |
-
'
|
51 |
-
'
|
52 |
-
'
|
53 |
-
'
|
54 |
-
'
|
55 |
-
'
|
56 |
-
'
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
->
|
64 |
-
|
65 |
-
|
66 |
-
$installer->addAttributeToGroup(Mage_Catalog_Model_Product::ENTITY, 'Default', 'General', $attributeId, 50);
|
67 |
$installer->endSetup();
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* NOTICE OF LICENSE
|
4 |
+
*
|
5 |
+
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
+
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
+
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
+
* display and use the Software (in object code only) only on the computers
|
9 |
+
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
+
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
+
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
+
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
+
* unless such Update is accompanied by or references a separate license
|
14 |
+
* agreement in which case the terms and conditions of that agreement will
|
15 |
+
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
+
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
+
* as provided herein, the term of each individual license granted under this
|
18 |
+
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
+
* as otherwise set forth herein.Each party recognizes that
|
20 |
+
* Company grants no licenses except for the license expressly set forth.
|
21 |
+
*
|
22 |
+
* @category Invodo
|
23 |
+
* @package Invodo_Video
|
24 |
+
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
+
*/
|
27 |
+
|
28 |
+
/* @var $installer Mage_Catalog_Model_Resource_Setup */
|
29 |
+
$installer = $this;
|
30 |
+
$installer->startSetup();
|
31 |
+
|
32 |
+
//adds new attribute
|
33 |
+
$installer->addAttribute(
|
34 |
+
Mage_Catalog_Model_Product::ENTITY,
|
35 |
+
'invodo_video_enabled',
|
36 |
+
array(
|
37 |
+
'type' => 'int',
|
38 |
+
'group' => 'General',
|
39 |
+
'label' => 'Enable Invodo Videos',
|
40 |
+
'input' => 'select',
|
41 |
+
'source' => 'eav/entity_attribute_source_boolean',
|
42 |
+
'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL,
|
43 |
+
'visible' => true,
|
44 |
+
'required' => false,
|
45 |
+
'user_defined' => true,
|
46 |
+
'default' => 1,
|
47 |
+
'searchable' => false,
|
48 |
+
'filterable' => false,
|
49 |
+
'filterable_in_search' => false,
|
50 |
+
'visible_in_advanced_search' => false,
|
51 |
+
'comparable' => false,
|
52 |
+
'visible_on_front' => false,
|
53 |
+
'unique' => false,
|
54 |
+
'is_configurable' => 0,
|
55 |
+
'used_for_sort_by' => false,
|
56 |
+
'used_in_product_listing' => false
|
57 |
+
)
|
58 |
+
);
|
59 |
+
|
60 |
+
//add attribute to group
|
61 |
+
$attributeId = Mage::getSingleton('eav/config')
|
62 |
+
->getAttribute(Mage_Catalog_Model_Product::ENTITY, 'invodo_video_enabled')
|
63 |
+
->getId();
|
64 |
+
|
65 |
+
$installer->addAttributeToGroup(Mage_Catalog_Model_Product::ENTITY, 'Default', 'General', $attributeId, 50);
|
|
|
66 |
$installer->endSetup();
|
app/design/adminhtml/default/default/template/invodo/video/system/config/form/renderer/overlayactionsource.phtml
CHANGED
@@ -1,36 +1,36 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* NOTICE OF LICENSE
|
4 |
-
*
|
5 |
-
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
-
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
-
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
-
* display and use the Software (in object code only) only on the computers
|
9 |
-
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
-
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
-
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
-
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
-
* unless such Update is accompanied by or references a separate license
|
14 |
-
* agreement in which case the terms and conditions of that agreement will
|
15 |
-
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
-
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
-
* as provided herein, the term of each individual license granted under this
|
18 |
-
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
-
* as otherwise set forth herein.Each party recognizes that
|
20 |
-
* Company grants no licenses except for the license expressly set forth.
|
21 |
-
*
|
22 |
-
* @category Invodo
|
23 |
-
* @package Invodo_Video
|
24 |
-
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
-
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
-
*/
|
27 |
-
?>
|
28 |
-
<?php
|
29 |
-
/** @var Mage_Core_Block_Template $this */
|
30 |
-
/** @var Varien_Data_Form_Element_Abstract $_element */
|
31 |
-
$_element = $this->getElement();
|
32 |
-
$_mediaUrl = Mage::getUrl('adminhtml/cms_wysiwyg_images', array('target_element_id' => trim($_element->getHtmlId()), 'invodo_video' => true));
|
33 |
-
$_disabled = $_element->getDisabled();
|
34 |
-
?>
|
35 |
-
<input onclick="javascript: MediabrowserUtility.openDialog('<?php echo $_mediaUrl; ?>');" name="<?php echo trim($_element->getName()) ?>" type="text" id="<?php echo trim($_element->getHtmlId()) ?>" value="<?php echo trim($_element->getEscapedValue()) ?>" style="width: 260px;" class="required-entry" <?php if ($_disabled): ?>disabled<?php endif; ?> readonly />
|
36 |
<img src="<?php echo $this->getSkinUrl('images/application_view_tile.gif') ?>" onclick="javascript: MediabrowserUtility.openDialog('<?php echo $_mediaUrl; ?>');" style="cursor: pointer; vertical-align: middle; <?php if ($_disabled): ?>display: none; <?php endif; ?>" />
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* NOTICE OF LICENSE
|
4 |
+
*
|
5 |
+
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
+
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
+
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
+
* display and use the Software (in object code only) only on the computers
|
9 |
+
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
+
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
+
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
+
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
+
* unless such Update is accompanied by or references a separate license
|
14 |
+
* agreement in which case the terms and conditions of that agreement will
|
15 |
+
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
+
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
+
* as provided herein, the term of each individual license granted under this
|
18 |
+
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
+
* as otherwise set forth herein.Each party recognizes that
|
20 |
+
* Company grants no licenses except for the license expressly set forth.
|
21 |
+
*
|
22 |
+
* @category Invodo
|
23 |
+
* @package Invodo_Video
|
24 |
+
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
+
*/
|
27 |
+
?>
|
28 |
+
<?php
|
29 |
+
/** @var Mage_Core_Block_Template $this */
|
30 |
+
/** @var Varien_Data_Form_Element_Abstract $_element */
|
31 |
+
$_element = $this->getElement();
|
32 |
+
$_mediaUrl = Mage::getUrl('adminhtml/cms_wysiwyg_images', array('target_element_id' => trim($_element->getHtmlId()), 'invodo_video' => true));
|
33 |
+
$_disabled = $_element->getDisabled();
|
34 |
+
?>
|
35 |
+
<input onclick="javascript: MediabrowserUtility.openDialog('<?php echo $_mediaUrl; ?>');" name="<?php echo trim($_element->getName()) ?>" type="text" id="<?php echo trim($_element->getHtmlId()) ?>" value="<?php echo trim($_element->getEscapedValue()) ?>" style="width: 260px;" class="required-entry" <?php if ($_disabled): ?>disabled<?php endif; ?> readonly />
|
36 |
<img src="<?php echo $this->getSkinUrl('images/application_view_tile.gif') ?>" onclick="javascript: MediabrowserUtility.openDialog('<?php echo $_mediaUrl; ?>');" style="cursor: pointer; vertical-align: middle; <?php if ($_disabled): ?>display: none; <?php endif; ?>" />
|
app/design/adminhtml/default/default/template/invodo/video/system/config/form/renderer/videoresolution.phtml
CHANGED
@@ -1,70 +1,70 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* NOTICE OF LICENSE
|
4 |
-
*
|
5 |
-
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
-
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
-
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
-
* display and use the Software (in object code only) only on the computers
|
9 |
-
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
-
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
-
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
-
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
-
* unless such Update is accompanied by or references a separate license
|
14 |
-
* agreement in which case the terms and conditions of that agreement will
|
15 |
-
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
-
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
-
* as provided herein, the term of each individual license granted under this
|
18 |
-
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
-
* as otherwise set forth herein.Each party recognizes that
|
20 |
-
* Company grants no licenses except for the license expressly set forth.
|
21 |
-
*
|
22 |
-
* @category Invodo
|
23 |
-
* @package Invodo_Video
|
24 |
-
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
-
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
-
*/
|
27 |
-
?>
|
28 |
-
<?php
|
29 |
-
/** @var Invodo_Video_Block_Adminhtml_System_Config_Form_Field_Videoresolution $_element */
|
30 |
-
$_element = $this->getElement();
|
31 |
-
$_disabled = $_element->getDisabled();
|
32 |
-
$_width = $this->getWidth();
|
33 |
-
$_height = $this->getHeight();
|
34 |
-
?>
|
35 |
-
|
36 |
-
<input type="hidden" id="<?php echo $_element->getHtmlId(); ?>" name="<?php echo trim($_element->getName()) ?>" value="<?php echo trim($_element->getValue()); ?>">
|
37 |
-
<?php if ($_disabled): ?>
|
38 |
-
<input type="hidden" id="invodo_video_config_width_inherit" checked="checked">
|
39 |
-
<input type="hidden" id="invodo_video_config_height_inherit" checked="checked">
|
40 |
-
<?php endif; ?>
|
41 |
-
<div>
|
42 |
-
<div style="width: 50px; float: left">
|
43 |
-
<input type="text" id="invodo_video_config_width" value="<?php echo $_width; ?>" style="width: 45px" class="required-entry validate-digits validate-digits-range digits-range-100-2000" <?php if ($_disabled): ?>disabled<?php endif; ?>>
|
44 |
-
<span><?php echo $this->helper('invodo_video')->__('Width'); ?></span>
|
45 |
-
</div>
|
46 |
-
<div style="float: left;"> x </div>
|
47 |
-
<div style="width: 50px; float: left; margin-right: 10px">
|
48 |
-
<input type="text" id="invodo_video_config_height" style="width: 45px" value="<?php echo $_height; ?>" class="required-entry validate-digits validate-digits-range digits-range-100-2000" <?php if ($_disabled): ?>disabled<?php endif; ?>>
|
49 |
-
<span><?php echo $this->helper('invodo_video')->__('Height'); ?></span>
|
50 |
-
</div>
|
51 |
-
<div><?php echo $this->helper('invodo_video')->__('Note: match your container size to the aspect ratio of your video'); ?></div>
|
52 |
-
</div>
|
53 |
-
<script type="text/javascript">
|
54 |
-
//<![CDATA[
|
55 |
-
(function() {
|
56 |
-
$('invodo_video_config_width').observe('change', function() {
|
57 |
-
var width = parseInt(this.value);
|
58 |
-
var height = width ? parseInt(width / 16 * 9) : 0;
|
59 |
-
$('invodo_video_config_height').value = height;
|
60 |
-
$('<?php echo $_element->getHtmlId(); ?>').value = width + 'x' + height;
|
61 |
-
});
|
62 |
-
|
63 |
-
$('invodo_video_config_height').observe('change', function() {
|
64 |
-
var height = parseInt(this.value);
|
65 |
-
var width = $('invodo_video_config_width').value;
|
66 |
-
$('<?php echo $_element->getHtmlId(); ?>').value = width + 'x' + height;
|
67 |
-
});
|
68 |
-
})();
|
69 |
-
//]]>
|
70 |
-
</script>
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* NOTICE OF LICENSE
|
4 |
+
*
|
5 |
+
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
+
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
+
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
+
* display and use the Software (in object code only) only on the computers
|
9 |
+
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
+
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
+
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
+
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
+
* unless such Update is accompanied by or references a separate license
|
14 |
+
* agreement in which case the terms and conditions of that agreement will
|
15 |
+
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
+
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
+
* as provided herein, the term of each individual license granted under this
|
18 |
+
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
+
* as otherwise set forth herein.Each party recognizes that
|
20 |
+
* Company grants no licenses except for the license expressly set forth.
|
21 |
+
*
|
22 |
+
* @category Invodo
|
23 |
+
* @package Invodo_Video
|
24 |
+
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
+
*/
|
27 |
+
?>
|
28 |
+
<?php
|
29 |
+
/** @var Invodo_Video_Block_Adminhtml_System_Config_Form_Field_Videoresolution $_element */
|
30 |
+
$_element = $this->getElement();
|
31 |
+
$_disabled = $_element->getDisabled();
|
32 |
+
$_width = $this->getWidth();
|
33 |
+
$_height = $this->getHeight();
|
34 |
+
?>
|
35 |
+
|
36 |
+
<input type="hidden" id="<?php echo $_element->getHtmlId(); ?>" name="<?php echo trim($_element->getName()) ?>" value="<?php echo trim($_element->getValue()); ?>">
|
37 |
+
<?php if ($_disabled): ?>
|
38 |
+
<input type="hidden" id="invodo_video_config_width_inherit" checked="checked">
|
39 |
+
<input type="hidden" id="invodo_video_config_height_inherit" checked="checked">
|
40 |
+
<?php endif; ?>
|
41 |
+
<div>
|
42 |
+
<div style="width: 50px; float: left">
|
43 |
+
<input type="text" id="invodo_video_config_width" value="<?php echo $_width; ?>" style="width: 45px" class="required-entry validate-digits validate-digits-range digits-range-100-2000" <?php if ($_disabled): ?>disabled<?php endif; ?>>
|
44 |
+
<span><?php echo $this->helper('invodo_video')->__('Width'); ?></span>
|
45 |
+
</div>
|
46 |
+
<div style="float: left;"> x </div>
|
47 |
+
<div style="width: 50px; float: left; margin-right: 10px">
|
48 |
+
<input type="text" id="invodo_video_config_height" style="width: 45px" value="<?php echo $_height; ?>" class="required-entry validate-digits validate-digits-range digits-range-100-2000" <?php if ($_disabled): ?>disabled<?php endif; ?>>
|
49 |
+
<span><?php echo $this->helper('invodo_video')->__('Height'); ?></span>
|
50 |
+
</div>
|
51 |
+
<div><?php echo $this->helper('invodo_video')->__('Note: match your container size to the aspect ratio of your video'); ?></div>
|
52 |
+
</div>
|
53 |
+
<script type="text/javascript">
|
54 |
+
//<![CDATA[
|
55 |
+
(function() {
|
56 |
+
$('invodo_video_config_width').observe('change', function() {
|
57 |
+
var width = parseInt(this.value);
|
58 |
+
var height = width ? parseInt(width / 16 * 9) : 0;
|
59 |
+
$('invodo_video_config_height').value = height;
|
60 |
+
$('<?php echo $_element->getHtmlId(); ?>').value = width + 'x' + height;
|
61 |
+
});
|
62 |
+
|
63 |
+
$('invodo_video_config_height').observe('change', function() {
|
64 |
+
var height = parseInt(this.value);
|
65 |
+
var width = $('invodo_video_config_width').value;
|
66 |
+
$('<?php echo $_element->getHtmlId(); ?>').value = width + 'x' + height;
|
67 |
+
});
|
68 |
+
})();
|
69 |
+
//]]>
|
70 |
+
</script>
|
app/design/adminhtml/default/default/template/invodo/video/widget/form/renderer/autoplay.phtml
CHANGED
@@ -1,47 +1,47 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* NOTICE OF LICENSE
|
4 |
-
*
|
5 |
-
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
-
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
-
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
-
* display and use the Software (in object code only) only on the computers
|
9 |
-
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
-
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
-
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
-
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
-
* unless such Update is accompanied by or references a separate license
|
14 |
-
* agreement in which case the terms and conditions of that agreement will
|
15 |
-
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
-
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
-
* as provided herein, the term of each individual license granted under this
|
18 |
-
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
-
* as otherwise set forth herein.Each party recognizes that
|
20 |
-
* Company grants no licenses except for the license expressly set forth.
|
21 |
-
*
|
22 |
-
* @category Invodo
|
23 |
-
* @package Invodo_Video
|
24 |
-
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
-
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
-
*/
|
27 |
-
?>
|
28 |
-
<?php
|
29 |
-
/** @var Varien_Data_Form_Element_Abstract $_element */
|
30 |
-
$_element = $this->getElement();
|
31 |
-
$_note = $_element->getNote();
|
32 |
-
$_trId = $_element->getHtmlContainerId();
|
33 |
-
$_class = $_element->getFieldsetHtmlClass();
|
34 |
-
?>
|
35 |
-
<?php if (!$_element->getNoDisplay()): ?>
|
36 |
-
<tr<?php if($_trId): ?> id="<?php echo $_trId ?>"<?php endif; ?>>
|
37 |
-
<td class="label<?php echo $_class ? " {$_class}-label" : ''?>"><?php echo trim($_element->getLabelHtml()) ?></td>
|
38 |
-
<td class="<?php echo $_element->hasValueClass() ? $_element->getValueClass() : 'value' ?><?php echo $_class ? " {$_class}-value" : ''?>">
|
39 |
-
<div id="<?php echo trim($_element->getHtmlId()) ?>">
|
40 |
-
<?php echo trim($_element->getElementHtml()) ?>
|
41 |
-
<?php if ($_note): ?>
|
42 |
-
<p class="note<?php echo $_class ? " {$_class}-note" : ''?>" id="note_<?php echo $_element->getId()?>"><span><?php echo $_note ?></span></p>
|
43 |
-
<?php endif ?>
|
44 |
-
</div>
|
45 |
-
</td>
|
46 |
-
</tr>
|
47 |
-
<?php endif; ?>
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* NOTICE OF LICENSE
|
4 |
+
*
|
5 |
+
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
+
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
+
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
+
* display and use the Software (in object code only) only on the computers
|
9 |
+
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
+
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
+
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
+
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
+
* unless such Update is accompanied by or references a separate license
|
14 |
+
* agreement in which case the terms and conditions of that agreement will
|
15 |
+
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
+
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
+
* as provided herein, the term of each individual license granted under this
|
18 |
+
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
+
* as otherwise set forth herein.Each party recognizes that
|
20 |
+
* Company grants no licenses except for the license expressly set forth.
|
21 |
+
*
|
22 |
+
* @category Invodo
|
23 |
+
* @package Invodo_Video
|
24 |
+
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
+
*/
|
27 |
+
?>
|
28 |
+
<?php
|
29 |
+
/** @var Varien_Data_Form_Element_Abstract $_element */
|
30 |
+
$_element = $this->getElement();
|
31 |
+
$_note = $_element->getNote();
|
32 |
+
$_trId = $_element->getHtmlContainerId();
|
33 |
+
$_class = $_element->getFieldsetHtmlClass();
|
34 |
+
?>
|
35 |
+
<?php if (!$_element->getNoDisplay()): ?>
|
36 |
+
<tr<?php if($_trId): ?> id="<?php echo $_trId ?>"<?php endif; ?>>
|
37 |
+
<td class="label<?php echo $_class ? " {$_class}-label" : ''?>"><?php echo trim($_element->getLabelHtml()) ?></td>
|
38 |
+
<td class="<?php echo $_element->hasValueClass() ? $_element->getValueClass() : 'value' ?><?php echo $_class ? " {$_class}-value" : ''?>">
|
39 |
+
<div id="<?php echo trim($_element->getHtmlId()) ?>">
|
40 |
+
<?php echo trim($_element->getElementHtml()) ?>
|
41 |
+
<?php if ($_note): ?>
|
42 |
+
<p class="note<?php echo $_class ? " {$_class}-note" : ''?>" id="note_<?php echo $_element->getId()?>"><span><?php echo $_note ?></span></p>
|
43 |
+
<?php endif ?>
|
44 |
+
</div>
|
45 |
+
</td>
|
46 |
+
</tr>
|
47 |
+
<?php endif; ?>
|
app/design/adminhtml/default/default/template/invodo/video/widget/form/renderer/overlayactionsource.phtml
CHANGED
@@ -1,49 +1,49 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* NOTICE OF LICENSE
|
4 |
-
*
|
5 |
-
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
-
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
-
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
-
* display and use the Software (in object code only) only on the computers
|
9 |
-
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
-
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
-
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
-
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
-
* unless such Update is accompanied by or references a separate license
|
14 |
-
* agreement in which case the terms and conditions of that agreement will
|
15 |
-
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
-
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
-
* as provided herein, the term of each individual license granted under this
|
18 |
-
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
-
* as otherwise set forth herein.Each party recognizes that
|
20 |
-
* Company grants no licenses except for the license expressly set forth.
|
21 |
-
*
|
22 |
-
* @category Invodo
|
23 |
-
* @package Invodo_Video
|
24 |
-
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
-
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
-
*/
|
27 |
-
?>
|
28 |
-
<?php
|
29 |
-
/** @var Invodo_Video_Block_Adminhtml_Widget_Renderer_Overlayactionsource $this */
|
30 |
-
/** @var Varien_Data_Form_Element_Abstract $_element */
|
31 |
-
$_element = $this->getElement();
|
32 |
-
$_note = $_element->getNote();
|
33 |
-
$_trId = $_element->getHtmlContainerId();
|
34 |
-
$_class = $_element->getFieldsetHtmlClass();
|
35 |
-
$_height = $_element->getEscapedValue() ? $_element->getEscapedValue() : Invodo_Video_Helper_Data::DEFAULT_VIDEO_HEIGHT;
|
36 |
-
$_mediaUrl = Mage::getUrl('adminhtml/cms_wysiwyg_images', array('target_element_id' => trim($_element->getHtmlId()), 'invodo_video' => true));
|
37 |
-
?>
|
38 |
-
<?php if (!$_element->getNoDisplay()): ?>
|
39 |
-
<tr<?php if($_trId): ?> id="<?php echo $_trId ?>"<?php endif; ?>>
|
40 |
-
<td class="label<?php echo $_class ? " {$_class}-label" : ''?>"><?php echo trim($_element->getLabelHtml()) ?></td>
|
41 |
-
<td class="<?php echo $_element->hasValueClass() ? $_element->getValueClass() : 'value' ?><?php echo $_class ? " {$_class}-value" : ''?>">
|
42 |
-
<input onclick="javascript: MediabrowserUtility.openDialog('<?php echo $_mediaUrl; ?>');" name="<?php echo trim($_element->getName()) ?>" type="text" id="<?php echo trim($_element->getHtmlId()) ?>" value="<?php echo trim($_element->getEscapedValue()) ?>" style="width: 260px;" class="required-entry" disabled readonly />
|
43 |
-
<img src="<?php echo $this->getSkinUrl('images/application_view_tile.gif') ?>" onclick="javascript: MediabrowserUtility.openDialog('<?php echo $_mediaUrl; ?>');" style="cursor: pointer; vertical-align: middle;" />
|
44 |
-
<?php if ($_note): ?>
|
45 |
-
<p class="note<?php echo $_class ? " {$_class}-note" : ''?>" id="note_<?php echo $_element->getId()?>"><span><?php echo $_note ?></span></p>
|
46 |
-
<?php endif ?>
|
47 |
-
</td>
|
48 |
-
</tr>
|
49 |
<?php endif; ?>
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* NOTICE OF LICENSE
|
4 |
+
*
|
5 |
+
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
+
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
+
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
+
* display and use the Software (in object code only) only on the computers
|
9 |
+
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
+
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
+
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
+
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
+
* unless such Update is accompanied by or references a separate license
|
14 |
+
* agreement in which case the terms and conditions of that agreement will
|
15 |
+
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
+
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
+
* as provided herein, the term of each individual license granted under this
|
18 |
+
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
+
* as otherwise set forth herein.Each party recognizes that
|
20 |
+
* Company grants no licenses except for the license expressly set forth.
|
21 |
+
*
|
22 |
+
* @category Invodo
|
23 |
+
* @package Invodo_Video
|
24 |
+
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
+
*/
|
27 |
+
?>
|
28 |
+
<?php
|
29 |
+
/** @var Invodo_Video_Block_Adminhtml_Widget_Renderer_Overlayactionsource $this */
|
30 |
+
/** @var Varien_Data_Form_Element_Abstract $_element */
|
31 |
+
$_element = $this->getElement();
|
32 |
+
$_note = $_element->getNote();
|
33 |
+
$_trId = $_element->getHtmlContainerId();
|
34 |
+
$_class = $_element->getFieldsetHtmlClass();
|
35 |
+
$_height = $_element->getEscapedValue() ? $_element->getEscapedValue() : Invodo_Video_Helper_Data::DEFAULT_VIDEO_HEIGHT;
|
36 |
+
$_mediaUrl = Mage::getUrl('adminhtml/cms_wysiwyg_images', array('target_element_id' => trim($_element->getHtmlId()), 'invodo_video' => true));
|
37 |
+
?>
|
38 |
+
<?php if (!$_element->getNoDisplay()): ?>
|
39 |
+
<tr<?php if($_trId): ?> id="<?php echo $_trId ?>"<?php endif; ?>>
|
40 |
+
<td class="label<?php echo $_class ? " {$_class}-label" : ''?>"><?php echo trim($_element->getLabelHtml()) ?></td>
|
41 |
+
<td class="<?php echo $_element->hasValueClass() ? $_element->getValueClass() : 'value' ?><?php echo $_class ? " {$_class}-value" : ''?>">
|
42 |
+
<input onclick="javascript: MediabrowserUtility.openDialog('<?php echo $_mediaUrl; ?>');" name="<?php echo trim($_element->getName()) ?>" type="text" id="<?php echo trim($_element->getHtmlId()) ?>" value="<?php echo trim($_element->getEscapedValue()) ?>" style="width: 260px;" class="required-entry" disabled readonly />
|
43 |
+
<img src="<?php echo $this->getSkinUrl('images/application_view_tile.gif') ?>" onclick="javascript: MediabrowserUtility.openDialog('<?php echo $_mediaUrl; ?>');" style="cursor: pointer; vertical-align: middle;" />
|
44 |
+
<?php if ($_note): ?>
|
45 |
+
<p class="note<?php echo $_class ? " {$_class}-note" : ''?>" id="note_<?php echo $_element->getId()?>"><span><?php echo $_note ?></span></p>
|
46 |
+
<?php endif ?>
|
47 |
+
</td>
|
48 |
+
</tr>
|
49 |
<?php endif; ?>
|
app/design/adminhtml/default/default/template/invodo/video/widget/form/renderer/sourcetype.phtml
CHANGED
@@ -1,50 +1,50 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* NOTICE OF LICENSE
|
4 |
-
*
|
5 |
-
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
-
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
-
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
-
* display and use the Software (in object code only) only on the computers
|
9 |
-
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
-
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
-
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
-
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
-
* unless such Update is accompanied by or references a separate license
|
14 |
-
* agreement in which case the terms and conditions of that agreement will
|
15 |
-
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
-
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
-
* as provided herein, the term of each individual license granted under this
|
18 |
-
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
-
* as otherwise set forth herein.Each party recognizes that
|
20 |
-
* Company grants no licenses except for the license expressly set forth.
|
21 |
-
*
|
22 |
-
* @category Invodo
|
23 |
-
* @package Invodo_Video
|
24 |
-
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
-
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
-
*/
|
27 |
-
?>
|
28 |
-
<?php
|
29 |
-
/** @var Varien_Data_Form_Element_Abstract $_element */
|
30 |
-
/** @var Mage_Adminhtml_Block_Widget_Form_Renderer_Fieldset_Element $this */
|
31 |
-
$_element = $this->getElement();
|
32 |
-
$_note = $_element->getNote();
|
33 |
-
$_trId = $_element->getHtmlContainerId();
|
34 |
-
$_class = $_element->getFieldsetHtmlClass();
|
35 |
-
?>
|
36 |
-
<?php if (!$_element->getNoDisplay()): ?>
|
37 |
-
<tr<?php if($_trId): ?> id="<?php echo $_trId ?>"<?php endif; ?>>
|
38 |
-
<?php if ($_element->getType()=='hidden'): ?>
|
39 |
-
<td colspan="2" class="hidden"><?php echo trim($_element->getElementHtml()) ?></td>
|
40 |
-
<?php else: ?>
|
41 |
-
<td class="label<?php echo $_class ? " {$_class}-label" : ''?>"><label for="<?php echo $this->escapeHtml($_element->getHtmlId()); ?>"><?php echo $this->escapeHtml($_element->getLabel()); ?><span class="required">*</span></label><a href="https://my.invodo.com/home/shelby.html" target="_blank"><?php echo $this->__('Lookup in MyInvodo'); ?></a></td>
|
42 |
-
<td class="<?php echo $_element->hasValueClass() ? $_element->getValueClass() : 'value' ?><?php echo $_class ? " {$_class}-value" : ''?>">
|
43 |
-
<?php echo trim($_element->getElementHtml()) ?>
|
44 |
-
<?php if ($_note): ?>
|
45 |
-
<p class="note<?php echo $_class ? " {$_class}-note" : ''?>" id="note_<?php echo $_element->getId()?>"><span><?php echo $_note ?></span></p>
|
46 |
-
<?php endif ?>
|
47 |
-
</td>
|
48 |
-
<?php endif; ?>
|
49 |
-
</tr>
|
50 |
-
<?php endif; ?>
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* NOTICE OF LICENSE
|
4 |
+
*
|
5 |
+
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
+
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
+
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
+
* display and use the Software (in object code only) only on the computers
|
9 |
+
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
+
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
+
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
+
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
+
* unless such Update is accompanied by or references a separate license
|
14 |
+
* agreement in which case the terms and conditions of that agreement will
|
15 |
+
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
+
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
+
* as provided herein, the term of each individual license granted under this
|
18 |
+
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
+
* as otherwise set forth herein.Each party recognizes that
|
20 |
+
* Company grants no licenses except for the license expressly set forth.
|
21 |
+
*
|
22 |
+
* @category Invodo
|
23 |
+
* @package Invodo_Video
|
24 |
+
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
+
*/
|
27 |
+
?>
|
28 |
+
<?php
|
29 |
+
/** @var Varien_Data_Form_Element_Abstract $_element */
|
30 |
+
/** @var Mage_Adminhtml_Block_Widget_Form_Renderer_Fieldset_Element $this */
|
31 |
+
$_element = $this->getElement();
|
32 |
+
$_note = $_element->getNote();
|
33 |
+
$_trId = $_element->getHtmlContainerId();
|
34 |
+
$_class = $_element->getFieldsetHtmlClass();
|
35 |
+
?>
|
36 |
+
<?php if (!$_element->getNoDisplay()): ?>
|
37 |
+
<tr<?php if($_trId): ?> id="<?php echo $_trId ?>"<?php endif; ?>>
|
38 |
+
<?php if ($_element->getType()=='hidden'): ?>
|
39 |
+
<td colspan="2" class="hidden"><?php echo trim($_element->getElementHtml()) ?></td>
|
40 |
+
<?php else: ?>
|
41 |
+
<td class="label<?php echo $_class ? " {$_class}-label" : ''?>"><label for="<?php echo $this->escapeHtml($_element->getHtmlId()); ?>"><?php echo $this->escapeHtml($_element->getLabel()); ?><span class="required">*</span></label><a href="https://my.invodo.com/home/shelby.html" target="_blank"><?php echo $this->__('Lookup in MyInvodo'); ?></a></td>
|
42 |
+
<td class="<?php echo $_element->hasValueClass() ? $_element->getValueClass() : 'value' ?><?php echo $_class ? " {$_class}-value" : ''?>">
|
43 |
+
<?php echo trim($_element->getElementHtml()) ?>
|
44 |
+
<?php if ($_note): ?>
|
45 |
+
<p class="note<?php echo $_class ? " {$_class}-note" : ''?>" id="note_<?php echo $_element->getId()?>"><span><?php echo $_note ?></span></p>
|
46 |
+
<?php endif ?>
|
47 |
+
</td>
|
48 |
+
<?php endif; ?>
|
49 |
+
</tr>
|
50 |
+
<?php endif; ?>
|
app/design/adminhtml/default/default/template/invodo/video/widget/form/renderer/videoresolution.phtml
CHANGED
@@ -1,76 +1,76 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* NOTICE OF LICENSE
|
4 |
-
*
|
5 |
-
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
-
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
-
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
-
* display and use the Software (in object code only) only on the computers
|
9 |
-
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
-
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
-
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
-
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
-
* unless such Update is accompanied by or references a separate license
|
14 |
-
* agreement in which case the terms and conditions of that agreement will
|
15 |
-
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
-
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
-
* as provided herein, the term of each individual license granted under this
|
18 |
-
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
-
* as otherwise set forth herein.Each party recognizes that
|
20 |
-
* Company grants no licenses except for the license expressly set forth.
|
21 |
-
*
|
22 |
-
* @category Invodo
|
23 |
-
* @package Invodo_Video
|
24 |
-
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
-
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
-
*/
|
27 |
-
?>
|
28 |
-
<?php
|
29 |
-
/** @var $this Invodo_Video_Block_Adminhtml_Widget_Renderer_Videoresolution */
|
30 |
-
/** @var Varien_Data_Form_Element_Abstract $_element */
|
31 |
-
$_element = $this->getElement();
|
32 |
-
$_note = $_element->getNote();
|
33 |
-
$_trId = $_element->getHtmlContainerId();
|
34 |
-
$_class = $_element->getFieldsetHtmlClass();
|
35 |
-
$_width = $this->getWidth();
|
36 |
-
$_height = $this->getHeight();
|
37 |
-
?>
|
38 |
-
<?php if (!$_element->getNoDisplay()): ?>
|
39 |
-
<tr<?php if($_trId): ?> id="<?php echo $_trId ?>"<?php endif; ?>>
|
40 |
-
<td class="label<?php echo $_class ? " {$_class}-label" : ''?>"><?php echo trim($_element->getLabelHtml()) ?></td>
|
41 |
-
<td class="<?php echo $_element->hasValueClass() ? $_element->getValueClass() : 'value' ?><?php echo $_class ? " {$_class}-value" : ''?>">
|
42 |
-
<input type="hidden" id="<?php echo $_element->getHtmlId(); ?>" name="<?php echo trim($_element->getName()); ?>" value="<?php echo trim($_element->getValue()); ?>">
|
43 |
-
<div style="width: 50px; float: left">
|
44 |
-
<input type="text" id="invodo_video_widget_width" style="width: 45px" value="<?php echo $_width; ?>" class="required-entry validate-digits validate-digits-range digits-range-100-2000">
|
45 |
-
<span><?php echo $this->helper('invodo_video')->__('Width'); ?></span>
|
46 |
-
</div>
|
47 |
-
<div style="float: left;"> x </div>
|
48 |
-
<div style="width: 50px; float: left; margin-right: 10px">
|
49 |
-
<input type="text" id="invodo_video_widget_height" value="<?php echo $_height; ?>" style="width: 45px" class="required-entry validate-digits validate-digits-range digits-range-100-2000">
|
50 |
-
<span><?php echo $this->helper('invodo_video')->__('Height'); ?></span>
|
51 |
-
</div>
|
52 |
-
<div><?php echo $this->helper('invodo_video')->__('Note: match your container size to the aspect ratio of your video'); ?></div>
|
53 |
-
<?php if ($_note): ?>
|
54 |
-
<p class="note<?php echo $_class ? " {$_class}-note" : ''?>" id="note_<?php echo $_element->getId()?>"><span><?php echo $_note ?></span></p>
|
55 |
-
<?php endif ?>
|
56 |
-
</td>
|
57 |
-
</tr>
|
58 |
-
<script type="text/javascript">
|
59 |
-
//<![CDATA[
|
60 |
-
(function() {
|
61 |
-
$('invodo_video_widget_width').observe('change', function() {
|
62 |
-
var width = parseInt(this.value);
|
63 |
-
var height = width ? parseInt(width / 16 * 9) : 0;
|
64 |
-
$('invodo_video_widget_height').value = height;
|
65 |
-
$('<?php echo $_element->getHtmlId(); ?>').value = width + 'x' + height;
|
66 |
-
});
|
67 |
-
|
68 |
-
$('invodo_video_widget_height').observe('change', function() {
|
69 |
-
var height = parseInt(this.value);
|
70 |
-
var width = $('invodo_video_widget_width').value;
|
71 |
-
$('<?php echo $_element->getHtmlId(); ?>').value = width + 'x' + height;
|
72 |
-
});
|
73 |
-
})();
|
74 |
-
//]]>
|
75 |
-
</script>
|
76 |
-
<?php endif; ?>
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* NOTICE OF LICENSE
|
4 |
+
*
|
5 |
+
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
+
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
+
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
+
* display and use the Software (in object code only) only on the computers
|
9 |
+
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
+
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
+
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
+
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
+
* unless such Update is accompanied by or references a separate license
|
14 |
+
* agreement in which case the terms and conditions of that agreement will
|
15 |
+
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
+
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
+
* as provided herein, the term of each individual license granted under this
|
18 |
+
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
+
* as otherwise set forth herein.Each party recognizes that
|
20 |
+
* Company grants no licenses except for the license expressly set forth.
|
21 |
+
*
|
22 |
+
* @category Invodo
|
23 |
+
* @package Invodo_Video
|
24 |
+
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
+
*/
|
27 |
+
?>
|
28 |
+
<?php
|
29 |
+
/** @var $this Invodo_Video_Block_Adminhtml_Widget_Renderer_Videoresolution */
|
30 |
+
/** @var Varien_Data_Form_Element_Abstract $_element */
|
31 |
+
$_element = $this->getElement();
|
32 |
+
$_note = $_element->getNote();
|
33 |
+
$_trId = $_element->getHtmlContainerId();
|
34 |
+
$_class = $_element->getFieldsetHtmlClass();
|
35 |
+
$_width = $this->getWidth();
|
36 |
+
$_height = $this->getHeight();
|
37 |
+
?>
|
38 |
+
<?php if (!$_element->getNoDisplay()): ?>
|
39 |
+
<tr<?php if($_trId): ?> id="<?php echo $_trId ?>"<?php endif; ?>>
|
40 |
+
<td class="label<?php echo $_class ? " {$_class}-label" : ''?>"><?php echo trim($_element->getLabelHtml()) ?></td>
|
41 |
+
<td class="<?php echo $_element->hasValueClass() ? $_element->getValueClass() : 'value' ?><?php echo $_class ? " {$_class}-value" : ''?>">
|
42 |
+
<input type="hidden" id="<?php echo $_element->getHtmlId(); ?>" name="<?php echo trim($_element->getName()); ?>" value="<?php echo trim($_element->getValue()); ?>">
|
43 |
+
<div style="width: 50px; float: left">
|
44 |
+
<input type="text" id="invodo_video_widget_width" style="width: 45px" value="<?php echo $_width; ?>" class="required-entry validate-digits validate-digits-range digits-range-100-2000">
|
45 |
+
<span><?php echo $this->helper('invodo_video')->__('Width'); ?></span>
|
46 |
+
</div>
|
47 |
+
<div style="float: left;"> x </div>
|
48 |
+
<div style="width: 50px; float: left; margin-right: 10px">
|
49 |
+
<input type="text" id="invodo_video_widget_height" value="<?php echo $_height; ?>" style="width: 45px" class="required-entry validate-digits validate-digits-range digits-range-100-2000">
|
50 |
+
<span><?php echo $this->helper('invodo_video')->__('Height'); ?></span>
|
51 |
+
</div>
|
52 |
+
<div><?php echo $this->helper('invodo_video')->__('Note: match your container size to the aspect ratio of your video'); ?></div>
|
53 |
+
<?php if ($_note): ?>
|
54 |
+
<p class="note<?php echo $_class ? " {$_class}-note" : ''?>" id="note_<?php echo $_element->getId()?>"><span><?php echo $_note ?></span></p>
|
55 |
+
<?php endif ?>
|
56 |
+
</td>
|
57 |
+
</tr>
|
58 |
+
<script type="text/javascript">
|
59 |
+
//<![CDATA[
|
60 |
+
(function() {
|
61 |
+
$('invodo_video_widget_width').observe('change', function() {
|
62 |
+
var width = parseInt(this.value);
|
63 |
+
var height = width ? parseInt(width / 16 * 9) : 0;
|
64 |
+
$('invodo_video_widget_height').value = height;
|
65 |
+
$('<?php echo $_element->getHtmlId(); ?>').value = width + 'x' + height;
|
66 |
+
});
|
67 |
+
|
68 |
+
$('invodo_video_widget_height').observe('change', function() {
|
69 |
+
var height = parseInt(this.value);
|
70 |
+
var width = $('invodo_video_widget_width').value;
|
71 |
+
$('<?php echo $_element->getHtmlId(); ?>').value = width + 'x' + height;
|
72 |
+
});
|
73 |
+
})();
|
74 |
+
//]]>
|
75 |
+
</script>
|
76 |
+
<?php endif; ?>
|
app/design/frontend/base/default/layout/invodo_video.xml
CHANGED
@@ -1,54 +1,54 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
-
<!--
|
3 |
-
/**
|
4 |
-
* NOTICE OF LICENSE
|
5 |
-
*
|
6 |
-
* Subject to the terms, conditions and limitations of this EULA,
|
7 |
-
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
8 |
-
* non-assignable license, without rights to sublicense, to install or have installed,
|
9 |
-
* display and use the Software (in object code only) only on the computers
|
10 |
-
* to which the Software is downloaded. The terms and conditions of this EULA
|
11 |
-
* will govern any upgrades, updates, patches, hotfixes and/or
|
12 |
-
* additional versions of the Software provided by Company, at Company’s sole
|
13 |
-
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
14 |
-
* unless such Update is accompanied by or references a separate license
|
15 |
-
* agreement in which case the terms and conditions of that agreement will
|
16 |
-
* govern. If this EULA governs your use of an Update, such Update shall be
|
17 |
-
* considered Software for purposes of this EULA. Unless earlier terminated
|
18 |
-
* as provided herein, the term of each individual license granted under this
|
19 |
-
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
20 |
-
* as otherwise set forth herein.Each party recognizes that
|
21 |
-
* Company grants no licenses except for the license expressly set forth.
|
22 |
-
*
|
23 |
-
* @category Invodo
|
24 |
-
* @package Invodo_Video
|
25 |
-
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
26 |
-
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
27 |
-
*/
|
28 |
-
-->
|
29 |
-
<layout>
|
30 |
-
<default>
|
31 |
-
<reference name="head">
|
32 |
-
<block type="core/text" name="invodo.video.script">
|
33 |
-
<action method="setText"><text helper="invodo_video/data/getScriptTag"/></action>
|
34 |
-
</block>
|
35 |
-
</reference>
|
36 |
-
<reference name="after_body_start">
|
37 |
-
<block type="invodo_video/init" name="invodo.video.init" template="invodo/video/init.phtml" />
|
38 |
-
<block type="invodo_video/conversion_register" name="invodo.video.conversion.register" template="invodo/video/conversion.phtml" />
|
39 |
-
<block type="invodo_video/conversion_session" name="invodo.video.conversion.session" template="invodo/video/conversion.phtml" />
|
40 |
-
</reference>
|
41 |
-
</default>
|
42 |
-
|
43 |
-
<catalog_product_view>
|
44 |
-
<reference name="product.info.additional">
|
45 |
-
<block type="invodo_video/product_video_overlay" name="invodo.product.video.overlay" template="invodo/video/product/view/overlay.phtml"/>
|
46 |
-
</reference>
|
47 |
-
<reference name="product.info">
|
48 |
-
<block type="invodo_video/product_video_inline" name="invodo.product.video.inline" as="invodo_product_video" before="product.description" template="invodo/video/product/view/inline/community.phtml">
|
49 |
-
<action method="addToParentGroup"><group>detailed_info</group></action>
|
50 |
-
<action method="setTitle"><title>Videos</title></action>
|
51 |
-
</block>
|
52 |
-
</reference>
|
53 |
-
</catalog_product_view>
|
54 |
</layout>
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* NOTICE OF LICENSE
|
5 |
+
*
|
6 |
+
* Subject to the terms, conditions and limitations of this EULA,
|
7 |
+
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
8 |
+
* non-assignable license, without rights to sublicense, to install or have installed,
|
9 |
+
* display and use the Software (in object code only) only on the computers
|
10 |
+
* to which the Software is downloaded. The terms and conditions of this EULA
|
11 |
+
* will govern any upgrades, updates, patches, hotfixes and/or
|
12 |
+
* additional versions of the Software provided by Company, at Company’s sole
|
13 |
+
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
14 |
+
* unless such Update is accompanied by or references a separate license
|
15 |
+
* agreement in which case the terms and conditions of that agreement will
|
16 |
+
* govern. If this EULA governs your use of an Update, such Update shall be
|
17 |
+
* considered Software for purposes of this EULA. Unless earlier terminated
|
18 |
+
* as provided herein, the term of each individual license granted under this
|
19 |
+
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
20 |
+
* as otherwise set forth herein.Each party recognizes that
|
21 |
+
* Company grants no licenses except for the license expressly set forth.
|
22 |
+
*
|
23 |
+
* @category Invodo
|
24 |
+
* @package Invodo_Video
|
25 |
+
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
26 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
27 |
+
*/
|
28 |
+
-->
|
29 |
+
<layout>
|
30 |
+
<default>
|
31 |
+
<reference name="head">
|
32 |
+
<block type="core/text" name="invodo.video.script">
|
33 |
+
<action method="setText"><text helper="invodo_video/data/getScriptTag"/></action>
|
34 |
+
</block>
|
35 |
+
</reference>
|
36 |
+
<reference name="after_body_start">
|
37 |
+
<block type="invodo_video/init" name="invodo.video.init" template="invodo/video/init.phtml" />
|
38 |
+
<block type="invodo_video/conversion_register" name="invodo.video.conversion.register" template="invodo/video/conversion.phtml" />
|
39 |
+
<block type="invodo_video/conversion_session" name="invodo.video.conversion.session" template="invodo/video/conversion.phtml" />
|
40 |
+
</reference>
|
41 |
+
</default>
|
42 |
+
|
43 |
+
<catalog_product_view>
|
44 |
+
<reference name="product.info.additional">
|
45 |
+
<block type="invodo_video/product_video_overlay" name="invodo.product.video.overlay" template="invodo/video/product/view/overlay.phtml"/>
|
46 |
+
</reference>
|
47 |
+
<reference name="product.info">
|
48 |
+
<block type="invodo_video/product_video_inline" name="invodo.product.video.inline" as="invodo_product_video" before="product.description" template="invodo/video/product/view/inline/community.phtml">
|
49 |
+
<action method="addToParentGroup"><group>detailed_info</group></action>
|
50 |
+
<action method="setTitle"><title>Videos</title></action>
|
51 |
+
</block>
|
52 |
+
</reference>
|
53 |
+
</catalog_product_view>
|
54 |
</layout>
|
app/design/frontend/base/default/template/invodo/video/conversion.phtml
CHANGED
@@ -1,39 +1,39 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* NOTICE OF LICENSE
|
4 |
-
*
|
5 |
-
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
-
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
-
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
-
* display and use the Software (in object code only) only on the computers
|
9 |
-
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
-
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
-
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
-
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
-
* unless such Update is accompanied by or references a separate license
|
14 |
-
* agreement in which case the terms and conditions of that agreement will
|
15 |
-
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
-
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
-
* as provided herein, the term of each individual license granted under this
|
18 |
-
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
-
* as otherwise set forth herein.Each party recognizes that
|
20 |
-
* Company grants no licenses except for the license expressly set forth.
|
21 |
-
*
|
22 |
-
* @category Invodo
|
23 |
-
* @package Invodo_Video
|
24 |
-
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
-
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
-
*/
|
27 |
-
?>
|
28 |
-
<?php /** @var $this Invodo_Video_Block_Conversion_Abstract */ ?>
|
29 |
-
<script type="text/javascript">
|
30 |
-
//<![CDATA[
|
31 |
-
if (typeof(Invodo) !== "undefined") {
|
32 |
-
<?php foreach ($this->getEvents() as $event): ?>
|
33 |
-
<?php if (($name = $this->getEventName($event)) && ($params = $this->getEventParams($event))): ?>
|
34 |
-
Invodo.Conversion.send("<?php echo $name; ?>", <?php echo $params; ?>);
|
35 |
-
<?php endif; ?>
|
36 |
-
<?php endforeach; ?>
|
37 |
-
}
|
38 |
-
//]]>
|
39 |
</script>
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* NOTICE OF LICENSE
|
4 |
+
*
|
5 |
+
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
+
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
+
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
+
* display and use the Software (in object code only) only on the computers
|
9 |
+
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
+
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
+
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
+
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
+
* unless such Update is accompanied by or references a separate license
|
14 |
+
* agreement in which case the terms and conditions of that agreement will
|
15 |
+
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
+
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
+
* as provided herein, the term of each individual license granted under this
|
18 |
+
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
+
* as otherwise set forth herein.Each party recognizes that
|
20 |
+
* Company grants no licenses except for the license expressly set forth.
|
21 |
+
*
|
22 |
+
* @category Invodo
|
23 |
+
* @package Invodo_Video
|
24 |
+
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
+
*/
|
27 |
+
?>
|
28 |
+
<?php /** @var $this Invodo_Video_Block_Conversion_Abstract */ ?>
|
29 |
+
<script type="text/javascript">
|
30 |
+
//<![CDATA[
|
31 |
+
if (typeof(Invodo) !== "undefined") {
|
32 |
+
<?php foreach ($this->getEvents() as $event): ?>
|
33 |
+
<?php if (($name = $this->getEventName($event)) && ($params = $this->getEventParams($event))): ?>
|
34 |
+
Invodo.Conversion.send("<?php echo $name; ?>", <?php echo $params; ?>);
|
35 |
+
<?php endif; ?>
|
36 |
+
<?php endforeach; ?>
|
37 |
+
}
|
38 |
+
//]]>
|
39 |
</script>
|
app/design/frontend/base/default/template/invodo/video/init.phtml
CHANGED
@@ -1,38 +1,38 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* NOTICE OF LICENSE
|
4 |
-
*
|
5 |
-
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
-
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
-
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
-
* display and use the Software (in object code only) only on the computers
|
9 |
-
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
-
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
-
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
-
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
-
* unless such Update is accompanied by or references a separate license
|
14 |
-
* agreement in which case the terms and conditions of that agreement will
|
15 |
-
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
-
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
-
* as provided herein, the term of each individual license granted under this
|
18 |
-
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
-
* as otherwise set forth herein.Each party recognizes that
|
20 |
-
* Company grants no licenses except for the license expressly set forth.
|
21 |
-
*
|
22 |
-
* @category Invodo
|
23 |
-
* @package Invodo_Video
|
24 |
-
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
-
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
-
*/
|
27 |
-
?>
|
28 |
-
<?php /** @var $this Invodo_Video_Block_Init */ ?>
|
29 |
-
<script type="text/javascript">
|
30 |
-
//<![CDATA[
|
31 |
-
if (typeof(Invodo) !== "undefined") {
|
32 |
-
Invodo.init({
|
33 |
-
pageName: "<?php echo $this->getPageName(); ?>",
|
34 |
-
pageType: "<?php echo $this->getPageType(); ?>"
|
35 |
-
});
|
36 |
-
}
|
37 |
-
//]]>
|
38 |
</script>
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* NOTICE OF LICENSE
|
4 |
+
*
|
5 |
+
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
+
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
+
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
+
* display and use the Software (in object code only) only on the computers
|
9 |
+
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
+
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
+
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
+
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
+
* unless such Update is accompanied by or references a separate license
|
14 |
+
* agreement in which case the terms and conditions of that agreement will
|
15 |
+
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
+
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
+
* as provided herein, the term of each individual license granted under this
|
18 |
+
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
+
* as otherwise set forth herein.Each party recognizes that
|
20 |
+
* Company grants no licenses except for the license expressly set forth.
|
21 |
+
*
|
22 |
+
* @category Invodo
|
23 |
+
* @package Invodo_Video
|
24 |
+
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
+
*/
|
27 |
+
?>
|
28 |
+
<?php /** @var $this Invodo_Video_Block_Init */ ?>
|
29 |
+
<script type="text/javascript">
|
30 |
+
//<![CDATA[
|
31 |
+
if (typeof(Invodo) !== "undefined") {
|
32 |
+
Invodo.init({
|
33 |
+
pageName: "<?php echo $this->getPageName(); ?>",
|
34 |
+
pageType: "<?php echo $this->getPageType(); ?>"
|
35 |
+
});
|
36 |
+
}
|
37 |
+
//]]>
|
38 |
</script>
|
app/design/frontend/base/default/template/invodo/video/product/view/inline/community.phtml
CHANGED
@@ -1,59 +1,59 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* NOTICE OF LICENSE
|
4 |
-
*
|
5 |
-
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
-
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
-
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
-
* display and use the Software (in object code only) only on the computers
|
9 |
-
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
-
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
-
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
-
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
-
* unless such Update is accompanied by or references a separate license
|
14 |
-
* agreement in which case the terms and conditions of that agreement will
|
15 |
-
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
-
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
-
* as provided herein, the term of each individual license granted under this
|
18 |
-
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
-
* as otherwise set forth herein.Each party recognizes that
|
20 |
-
* Company grants no licenses except for the license expressly set forth.
|
21 |
-
*
|
22 |
-
* @category Invodo
|
23 |
-
* @package Invodo_Video
|
24 |
-
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
-
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
-
*/
|
27 |
-
?>
|
28 |
-
<?php /** @var $this Invodo_Video_Block_Product_Video_Inline */ ?>
|
29 |
-
<?php $_widgetId = Invodo_Video_Helper_Data::getIncrementId(); ?>
|
30 |
-
<div class="std">
|
31 |
-
<div id="invodoVideoContainer<?php echo $_widgetId; ?>" style="width: <?php echo $this->getWidth(); ?>px; height: <?php echo $this->getHeight(); ?>px;"></div>
|
32 |
-
<script type="text/javascript">
|
33 |
-
//<![CDATA[
|
34 |
-
(function(){
|
35 |
-
var container = $('invodoVideoContainer<?php echo $_widgetId; ?>').up('.box-collateral');
|
36 |
-
|
37 |
-
if (!container) {
|
38 |
-
return;
|
39 |
-
}
|
40 |
-
|
41 |
-
container.hide();
|
42 |
-
|
43 |
-
if (typeof(Invodo) !== "undefined") {
|
44 |
-
Invodo.Widget.add({
|
45 |
-
type: "inplayer",
|
46 |
-
mode: "embedded",
|
47 |
-
widgetId: "invodoVideoPlayer<?php echo $_widgetId; ?>",
|
48 |
-
mpd: "<?php echo $this->getSourceValue(); ?>",
|
49 |
-
parentDomId: "invodoVideoContainer<?php echo $_widgetId; ?>",
|
50 |
-
autoplay: <?php echo $this->getAutoPlay() ? 'true' : 'false'; ?>,
|
51 |
-
onpodload: function() {
|
52 |
-
container.show();
|
53 |
-
}
|
54 |
-
});
|
55 |
-
}
|
56 |
-
})();
|
57 |
-
//]]>
|
58 |
-
</script>
|
59 |
</div>
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* NOTICE OF LICENSE
|
4 |
+
*
|
5 |
+
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
+
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
+
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
+
* display and use the Software (in object code only) only on the computers
|
9 |
+
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
+
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
+
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
+
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
+
* unless such Update is accompanied by or references a separate license
|
14 |
+
* agreement in which case the terms and conditions of that agreement will
|
15 |
+
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
+
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
+
* as provided herein, the term of each individual license granted under this
|
18 |
+
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
+
* as otherwise set forth herein.Each party recognizes that
|
20 |
+
* Company grants no licenses except for the license expressly set forth.
|
21 |
+
*
|
22 |
+
* @category Invodo
|
23 |
+
* @package Invodo_Video
|
24 |
+
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
+
*/
|
27 |
+
?>
|
28 |
+
<?php /** @var $this Invodo_Video_Block_Product_Video_Inline */ ?>
|
29 |
+
<?php $_widgetId = Invodo_Video_Helper_Data::getIncrementId(); ?>
|
30 |
+
<div class="std">
|
31 |
+
<div id="invodoVideoContainer<?php echo $_widgetId; ?>" style="width: <?php echo $this->getWidth(); ?>px; height: <?php echo $this->getHeight(); ?>px;"></div>
|
32 |
+
<script type="text/javascript">
|
33 |
+
//<![CDATA[
|
34 |
+
(function(){
|
35 |
+
var container = $('invodoVideoContainer<?php echo $_widgetId; ?>').up('.box-collateral');
|
36 |
+
|
37 |
+
if (!container) {
|
38 |
+
return;
|
39 |
+
}
|
40 |
+
|
41 |
+
container.hide();
|
42 |
+
|
43 |
+
if (typeof(Invodo) !== "undefined") {
|
44 |
+
Invodo.Widget.add({
|
45 |
+
type: "inplayer",
|
46 |
+
mode: "embedded",
|
47 |
+
widgetId: "invodoVideoPlayer<?php echo $_widgetId; ?>",
|
48 |
+
mpd: "<?php echo $this->getSourceValue(); ?>",
|
49 |
+
parentDomId: "invodoVideoContainer<?php echo $_widgetId; ?>",
|
50 |
+
autoplay: <?php echo $this->getAutoPlay() ? 'true' : 'false'; ?>,
|
51 |
+
onpodload: function() {
|
52 |
+
container.show();
|
53 |
+
}
|
54 |
+
});
|
55 |
+
}
|
56 |
+
})();
|
57 |
+
//]]>
|
58 |
+
</script>
|
59 |
</div>
|
app/design/frontend/base/default/template/invodo/video/product/view/inline/enterprise.phtml
CHANGED
@@ -1,61 +1,62 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* NOTICE OF LICENSE
|
4 |
-
*
|
5 |
-
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
-
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
-
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
-
* display and use the Software (in object code only) only on the computers
|
9 |
-
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
-
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
-
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
-
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
-
* unless such Update is accompanied by or references a separate license
|
14 |
-
* agreement in which case the terms and conditions of that agreement will
|
15 |
-
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
-
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
-
* as provided herein, the term of each individual license granted under this
|
18 |
-
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
-
* as otherwise set forth herein.Each party recognizes that
|
20 |
-
* Company grants no licenses except for the license expressly set forth.
|
21 |
-
*
|
22 |
-
* @category Invodo
|
23 |
-
* @package Invodo_Video
|
24 |
-
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
-
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
-
*/
|
27 |
-
?>
|
28 |
-
<?php /** @var $this Invodo_Video_Block_Product_Video_Inline */ ?>
|
29 |
-
<?php $_widgetId = Invodo_Video_Helper_Data::getIncrementId(); ?>
|
30 |
-
<div class="std">
|
31 |
-
<div id="invodoVideoContainer<?php echo $_widgetId; ?>" style="width: <?php echo $this->getWidth(); ?>px; height: <?php echo $this->getHeight(); ?>px;"></div>
|
32 |
-
<script type="text/javascript">
|
33 |
-
//<![CDATA[
|
34 |
-
(function(){
|
35 |
-
var container = $('invodoVideoContainer<?php echo $_widgetId; ?>').up('.tab-container');
|
36 |
-
var tab = container.previous();
|
37 |
-
|
38 |
-
if (!container || !tab) {
|
39 |
-
return;
|
40 |
-
}
|
41 |
-
|
42 |
-
container.hide();
|
43 |
-
tab.hide();
|
44 |
-
|
45 |
-
if (typeof(Invodo) !== "undefined") {
|
46 |
-
Invodo.Widget.add({
|
47 |
-
type: "inplayer",
|
48 |
-
mode: "embedded",
|
49 |
-
widgetId: "invodoVideoPlayer<?php echo $_widgetId; ?>",
|
50 |
-
mpd: "<?php echo $this->getSourceValue(); ?>",
|
51 |
-
parentDomId: "invodoVideoContainer<?php echo $_widgetId; ?>",
|
52 |
-
autoplay: <?php echo $this->getAutoPlay() ? 'true' : 'false'; ?>,
|
53 |
-
onpodload: function() {
|
54 |
-
tab.show();
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
</
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* NOTICE OF LICENSE
|
4 |
+
*
|
5 |
+
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
+
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
+
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
+
* display and use the Software (in object code only) only on the computers
|
9 |
+
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
+
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
+
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
+
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
+
* unless such Update is accompanied by or references a separate license
|
14 |
+
* agreement in which case the terms and conditions of that agreement will
|
15 |
+
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
+
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
+
* as provided herein, the term of each individual license granted under this
|
18 |
+
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
+
* as otherwise set forth herein.Each party recognizes that
|
20 |
+
* Company grants no licenses except for the license expressly set forth.
|
21 |
+
*
|
22 |
+
* @category Invodo
|
23 |
+
* @package Invodo_Video
|
24 |
+
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
+
*/
|
27 |
+
?>
|
28 |
+
<?php /** @var $this Invodo_Video_Block_Product_Video_Inline */ ?>
|
29 |
+
<?php $_widgetId = Invodo_Video_Helper_Data::getIncrementId(); ?>
|
30 |
+
<div class="std">
|
31 |
+
<div id="invodoVideoContainer<?php echo $_widgetId; ?>" style="width: <?php echo $this->getWidth(); ?>px; height: <?php echo $this->getHeight(); ?>px;"></div>
|
32 |
+
<script type="text/javascript">
|
33 |
+
//<![CDATA[
|
34 |
+
(function(){
|
35 |
+
var container = $('invodoVideoContainer<?php echo $_widgetId; ?>').up('.tab-container');
|
36 |
+
var tab = container.previous();
|
37 |
+
|
38 |
+
if (!container || !tab) {
|
39 |
+
return;
|
40 |
+
}
|
41 |
+
|
42 |
+
container.hide();
|
43 |
+
tab.hide();
|
44 |
+
|
45 |
+
if (typeof(Invodo) !== "undefined") {
|
46 |
+
Invodo.Widget.add({
|
47 |
+
type: "inplayer",
|
48 |
+
mode: "embedded",
|
49 |
+
widgetId: "invodoVideoPlayer<?php echo $_widgetId; ?>",
|
50 |
+
mpd: "<?php echo $this->getSourceValue(); ?>",
|
51 |
+
parentDomId: "invodoVideoContainer<?php echo $_widgetId; ?>",
|
52 |
+
autoplay: <?php echo $this->getAutoPlay() ? 'true' : 'false'; ?>,
|
53 |
+
onpodload: function() {
|
54 |
+
tab.show();
|
55 |
+
$('InvodoFlashPlayer_invodoVideoPlayer<?php echo $_widgetId; ?>').style.setProperty("height", "100%", "important");
|
56 |
+
}
|
57 |
+
});
|
58 |
+
}
|
59 |
+
})();
|
60 |
+
//]]>
|
61 |
+
</script>
|
62 |
+
</div>
|
app/design/frontend/base/default/template/invodo/video/product/view/inline/rwd.phtml
ADDED
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* NOTICE OF LICENSE
|
4 |
+
*
|
5 |
+
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
+
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
+
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
+
* display and use the Software (in object code only) only on the computers
|
9 |
+
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
+
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
+
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
+
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
+
* unless such Update is accompanied by or references a separate license
|
14 |
+
* agreement in which case the terms and conditions of that agreement will
|
15 |
+
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
+
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
+
* as provided herein, the term of each individual license granted under this
|
18 |
+
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
+
* as otherwise set forth herein.Each party recognizes that
|
20 |
+
* Company grants no licenses except for the license expressly set forth.
|
21 |
+
*
|
22 |
+
* @category Invodo
|
23 |
+
* @package Invodo_Video
|
24 |
+
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
+
*/
|
27 |
+
?>
|
28 |
+
<?php /** @var $this Invodo_Video_Block_Product_Video_Inline */ ?>
|
29 |
+
<?php $_widgetId = Invodo_Video_Helper_Data::getIncrementId(); ?>
|
30 |
+
<div class="std">
|
31 |
+
<div id="invodoVideoContainer<?php echo $_widgetId; ?>" style="width: <?php echo $this->getWidth(); ?>px; height: <?php echo $this->getHeight(); ?>px; max-width:100%"</div>
|
32 |
+
<script type="text/javascript">
|
33 |
+
//<![CDATA[
|
34 |
+
jQuery(document).ready(function() {
|
35 |
+
var invodo_container = $('invodoVideoContainer<?php echo $_widgetId; ?>');
|
36 |
+
var container = invodo_container.up('.tab-container');
|
37 |
+
var tab = container.previous();
|
38 |
+
var div = tab.up('product-collateral');
|
39 |
+
var lis = tab.up('.collateral-tabs').previous().childElements();
|
40 |
+
var li = null;
|
41 |
+
for (var i = 0; i < lis.length; i++) {
|
42 |
+
if(lis[i].innerHTML == tab.innerHTML) {
|
43 |
+
li = lis[i];
|
44 |
+
break;
|
45 |
+
}
|
46 |
+
}
|
47 |
+
|
48 |
+
if (!container || !tab || !li) {
|
49 |
+
return;
|
50 |
+
}
|
51 |
+
|
52 |
+
li.hide();
|
53 |
+
tab.hide();
|
54 |
+
|
55 |
+
if (typeof(Invodo) !== "undefined") {
|
56 |
+
Invodo.Widget.add({
|
57 |
+
type: "inplayer",
|
58 |
+
mode: "embedded",
|
59 |
+
widgetId: "invodoVideoPlayer<?php echo $_widgetId; ?>",
|
60 |
+
mpd: "<?php echo $this->getSourceValue(); ?>",
|
61 |
+
parentDomId: "invodoVideoContainer<?php echo $_widgetId; ?>",
|
62 |
+
autoplay: <?php echo $this->getAutoPlay() ? 'true' : 'false'; ?>,
|
63 |
+
onpodload: function() {
|
64 |
+
li.show();
|
65 |
+
tab.show();
|
66 |
+
}
|
67 |
+
});
|
68 |
+
}
|
69 |
+
});
|
70 |
+
//]]>
|
71 |
+
</script>
|
72 |
+
</div>
|
app/design/frontend/base/default/template/invodo/video/product/view/overlay.phtml
CHANGED
@@ -1,66 +1,66 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* NOTICE OF LICENSE
|
4 |
-
*
|
5 |
-
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
-
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
-
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
-
* display and use the Software (in object code only) only on the computers
|
9 |
-
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
-
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
-
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
-
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
-
* unless such Update is accompanied by or references a separate license
|
14 |
-
* agreement in which case the terms and conditions of that agreement will
|
15 |
-
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
-
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
-
* as provided herein, the term of each individual license granted under this
|
18 |
-
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
-
* as otherwise set forth herein.Each party recognizes that
|
20 |
-
* Company grants no licenses except for the license expressly set forth.
|
21 |
-
*
|
22 |
-
* @category Invodo
|
23 |
-
* @package Invodo_Video
|
24 |
-
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
-
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
-
*/
|
27 |
-
?>
|
28 |
-
<?php /** @var $this Invodo_Video_Block_Product_Video_Overlay */ ?>
|
29 |
-
<?php $_widgetId = Invodo_Video_Helper_Data::getIncrementId(); ?>
|
30 |
-
<script type="text/javascript">
|
31 |
-
//<![CDATA[
|
32 |
-
(function(){
|
33 |
-
<?php if (!$this->isGalleryImagesExists()): ?>
|
34 |
-
$$('.product-view .product-img-box').first().insert('<div class="more-views" style="display: none;"><h2><?php echo $this->helper('catalog')->__('More Views') ?></h2><ul></ul></div>');
|
35 |
-
<?php endif; ?>
|
36 |
-
if (typeof(Invodo) !== "undefined") {
|
37 |
-
var galleryList = $$('.product-view .more-views ul').first();
|
38 |
-
|
39 |
-
if (!galleryList) {
|
40 |
-
return;
|
41 |
-
}
|
42 |
-
|
43 |
-
galleryList.insert('<li><span id="invodoVideoCta<?php echo $_widgetId; ?>" style="display:none; cursor: pointer;" /></li>')
|
44 |
-
Invodo.Widget.add({
|
45 |
-
type: "inplayer",
|
46 |
-
mode: "overlay",
|
47 |
-
widgetId: "invodoVideoPlayer<?php echo $_widgetId; ?>",
|
48 |
-
mpd: "<?php echo $this->getSourceValue(); ?>",
|
49 |
-
listensTo: "invodoVideoCta<?php echo $_widgetId; ?>",
|
50 |
-
onpodload: function() {
|
51 |
-
var podThumb = <?php echo $this->getOverlayActionSource(); ?>;
|
52 |
-
$$('.product-view .product-img-box .more-views').first().show();
|
53 |
-
Invodo.Widget.add({
|
54 |
-
type: "cta",
|
55 |
-
widgetId: "invodoVideoCta<?php echo $_widgetId; ?>",
|
56 |
-
mpd: "<?php echo $this->getSourceValue(); ?>",
|
57 |
-
parentDomId: "invodoVideoCta<?php echo $_widgetId; ?>",
|
58 |
-
data: podThumb
|
59 |
-
});
|
60 |
-
$("invodoVideoCta<?php echo $_widgetId; ?>").show();
|
61 |
-
}
|
62 |
-
});
|
63 |
-
}
|
64 |
-
})();
|
65 |
-
//]]>
|
66 |
</script>
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* NOTICE OF LICENSE
|
4 |
+
*
|
5 |
+
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
+
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
+
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
+
* display and use the Software (in object code only) only on the computers
|
9 |
+
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
+
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
+
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
+
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
+
* unless such Update is accompanied by or references a separate license
|
14 |
+
* agreement in which case the terms and conditions of that agreement will
|
15 |
+
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
+
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
+
* as provided herein, the term of each individual license granted under this
|
18 |
+
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
+
* as otherwise set forth herein.Each party recognizes that
|
20 |
+
* Company grants no licenses except for the license expressly set forth.
|
21 |
+
*
|
22 |
+
* @category Invodo
|
23 |
+
* @package Invodo_Video
|
24 |
+
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
+
*/
|
27 |
+
?>
|
28 |
+
<?php /** @var $this Invodo_Video_Block_Product_Video_Overlay */ ?>
|
29 |
+
<?php $_widgetId = Invodo_Video_Helper_Data::getIncrementId(); ?>
|
30 |
+
<script type="text/javascript">
|
31 |
+
//<![CDATA[
|
32 |
+
(function(){
|
33 |
+
<?php if (!$this->isGalleryImagesExists()): ?>
|
34 |
+
$$('.product-view .product-img-box').first().insert('<div class="more-views" style="display: none;"><h2><?php echo $this->helper('catalog')->__('More Views') ?></h2><ul></ul></div>');
|
35 |
+
<?php endif; ?>
|
36 |
+
if (typeof(Invodo) !== "undefined") {
|
37 |
+
var galleryList = $$('.product-view .more-views ul').first();
|
38 |
+
|
39 |
+
if (!galleryList) {
|
40 |
+
return;
|
41 |
+
}
|
42 |
+
|
43 |
+
galleryList.insert('<li><span id="invodoVideoCta<?php echo $_widgetId; ?>" style="display:none; cursor: pointer;" /></li>')
|
44 |
+
Invodo.Widget.add({
|
45 |
+
type: "inplayer",
|
46 |
+
mode: "overlay",
|
47 |
+
widgetId: "invodoVideoPlayer<?php echo $_widgetId; ?>",
|
48 |
+
mpd: "<?php echo $this->getSourceValue(); ?>",
|
49 |
+
listensTo: "invodoVideoCta<?php echo $_widgetId; ?>",
|
50 |
+
onpodload: function() {
|
51 |
+
var podThumb = <?php echo $this->getOverlayActionSource(); ?>;
|
52 |
+
$$('.product-view .product-img-box .more-views').first().show();
|
53 |
+
Invodo.Widget.add({
|
54 |
+
type: "cta",
|
55 |
+
widgetId: "invodoVideoCta<?php echo $_widgetId; ?>",
|
56 |
+
mpd: "<?php echo $this->getSourceValue(); ?>",
|
57 |
+
parentDomId: "invodoVideoCta<?php echo $_widgetId; ?>",
|
58 |
+
data: podThumb
|
59 |
+
});
|
60 |
+
$("invodoVideoCta<?php echo $_widgetId; ?>").show();
|
61 |
+
}
|
62 |
+
});
|
63 |
+
}
|
64 |
+
})();
|
65 |
+
//]]>
|
66 |
</script>
|
app/design/frontend/base/default/template/invodo/video/product/view/overlay/default.phtml
CHANGED
@@ -1,56 +1,56 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* NOTICE OF LICENSE
|
4 |
-
*
|
5 |
-
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
-
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
-
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
-
* display and use the Software (in object code only) only on the computers
|
9 |
-
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
-
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
-
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
-
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
-
* unless such Update is accompanied by or references a separate license
|
14 |
-
* agreement in which case the terms and conditions of that agreement will
|
15 |
-
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
-
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
-
* as provided herein, the term of each individual license granted under this
|
18 |
-
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
-
* as otherwise set forth herein.Each party recognizes that
|
20 |
-
* Company grants no licenses except for the license expressly set forth.
|
21 |
-
*
|
22 |
-
* @category Invodo
|
23 |
-
* @package Invodo_Video
|
24 |
-
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
-
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
-
*/
|
27 |
-
?>
|
28 |
-
<?php /** @var $this Invodo_Video_Block_Product_Video_Overlay_Default */ ?>
|
29 |
-
<?php $_widgetId = Invodo_Video_Helper_Data::getIncrementId(); ?>
|
30 |
-
<span id="invodoVideoCta<?php echo $_widgetId; ?>" style="display:none; cursor: pointer;" />
|
31 |
-
<script type="text/javascript">
|
32 |
-
//<![CDATA[
|
33 |
-
(function(){
|
34 |
-
if (typeof(Invodo) !== "undefined") {
|
35 |
-
Invodo.Widget.add({
|
36 |
-
type: "inplayer",
|
37 |
-
mode: "overlay",
|
38 |
-
widgetId: "invodoVideoPlayer<?php echo $_widgetId; ?>",
|
39 |
-
mpd: "<?php echo $this->getSourceValue(); ?>",
|
40 |
-
listensTo: "invodoVideoCta<?php echo $_widgetId; ?>",
|
41 |
-
onpodload: function() {
|
42 |
-
var podThumb = <?php echo $this->getOverlayActionSource(); ?>;
|
43 |
-
Invodo.Widget.add({
|
44 |
-
type: "cta",
|
45 |
-
widgetId: "invodoVideoCta<?php echo $_widgetId; ?>",
|
46 |
-
mpd: "<?php echo $this->getSourceValue(); ?>",
|
47 |
-
parentDomId: "invodoVideoCta<?php echo $_widgetId; ?>",
|
48 |
-
data: podThumb
|
49 |
-
});
|
50 |
-
$("invodoVideoCta<?php echo $_widgetId; ?>").show();
|
51 |
-
}
|
52 |
-
});
|
53 |
-
}
|
54 |
-
})();
|
55 |
-
//]]>
|
56 |
</script>
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* NOTICE OF LICENSE
|
4 |
+
*
|
5 |
+
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
+
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
+
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
+
* display and use the Software (in object code only) only on the computers
|
9 |
+
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
+
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
+
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
+
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
+
* unless such Update is accompanied by or references a separate license
|
14 |
+
* agreement in which case the terms and conditions of that agreement will
|
15 |
+
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
+
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
+
* as provided herein, the term of each individual license granted under this
|
18 |
+
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
+
* as otherwise set forth herein.Each party recognizes that
|
20 |
+
* Company grants no licenses except for the license expressly set forth.
|
21 |
+
*
|
22 |
+
* @category Invodo
|
23 |
+
* @package Invodo_Video
|
24 |
+
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
+
*/
|
27 |
+
?>
|
28 |
+
<?php /** @var $this Invodo_Video_Block_Product_Video_Overlay_Default */ ?>
|
29 |
+
<?php $_widgetId = Invodo_Video_Helper_Data::getIncrementId(); ?>
|
30 |
+
<span id="invodoVideoCta<?php echo $_widgetId; ?>" style="display:none; cursor: pointer;" />
|
31 |
+
<script type="text/javascript">
|
32 |
+
//<![CDATA[
|
33 |
+
(function(){
|
34 |
+
if (typeof(Invodo) !== "undefined") {
|
35 |
+
Invodo.Widget.add({
|
36 |
+
type: "inplayer",
|
37 |
+
mode: "overlay",
|
38 |
+
widgetId: "invodoVideoPlayer<?php echo $_widgetId; ?>",
|
39 |
+
mpd: "<?php echo $this->getSourceValue(); ?>",
|
40 |
+
listensTo: "invodoVideoCta<?php echo $_widgetId; ?>",
|
41 |
+
onpodload: function() {
|
42 |
+
var podThumb = <?php echo $this->getOverlayActionSource(); ?>;
|
43 |
+
Invodo.Widget.add({
|
44 |
+
type: "cta",
|
45 |
+
widgetId: "invodoVideoCta<?php echo $_widgetId; ?>",
|
46 |
+
mpd: "<?php echo $this->getSourceValue(); ?>",
|
47 |
+
parentDomId: "invodoVideoCta<?php echo $_widgetId; ?>",
|
48 |
+
data: podThumb
|
49 |
+
});
|
50 |
+
$("invodoVideoCta<?php echo $_widgetId; ?>").show();
|
51 |
+
}
|
52 |
+
});
|
53 |
+
}
|
54 |
+
})();
|
55 |
+
//]]>
|
56 |
</script>
|
app/design/frontend/base/default/template/invodo/video/widget.phtml
CHANGED
@@ -1,73 +1,73 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* NOTICE OF LICENSE
|
4 |
-
*
|
5 |
-
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
-
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
-
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
-
* display and use the Software (in object code only) only on the computers
|
9 |
-
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
-
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
-
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
-
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
-
* unless such Update is accompanied by or references a separate license
|
14 |
-
* agreement in which case the terms and conditions of that agreement will
|
15 |
-
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
-
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
-
* as provided herein, the term of each individual license granted under this
|
18 |
-
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
-
* as otherwise set forth herein.Each party recognizes that
|
20 |
-
* Company grants no licenses except for the license expressly set forth.
|
21 |
-
*
|
22 |
-
* @category Invodo
|
23 |
-
* @package Invodo_Video
|
24 |
-
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
-
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
-
*/
|
27 |
-
?>
|
28 |
-
<?php /** @var $this Invodo_Video_Block_Widget*/ ?>
|
29 |
-
<?php $_widgetId = Invodo_Video_Helper_Data::getIncrementId(); ?>
|
30 |
-
<?php if ($this->isInlineType()): ?>
|
31 |
-
<div id="invodoVideoContainer<?php echo $_widgetId; ?>" style="display: none; width: <?php echo $this->getWidth(); ?>px; height: <?php echo $this->getHeight(); ?>px"></div>
|
32 |
-
<?php else: ?>
|
33 |
-
<span id="invodoVideoCta<?php echo $_widgetId; ?>" style="display: none; cursor: pointer;"></span>
|
34 |
-
<?php endif; ?>
|
35 |
-
<script type="text/javascript">
|
36 |
-
if (typeof(Invodo) !== "undefined") {
|
37 |
-
<?php if ($this->isInlineType()): ?>
|
38 |
-
Invodo.Widget.add({
|
39 |
-
type: "inplayer",
|
40 |
-
mode: "embedded",
|
41 |
-
widgetId: "invodoVideoWidget<?php echo $_widgetId; ?>",
|
42 |
-
parentDomId: "invodoVideoContainer<?php echo $_widgetId; ?>",
|
43 |
-
autoplay: <?php echo $this->getAutoPlay() ? 'true' : 'false'; ?>,
|
44 |
-
onpodload: function() {
|
45 |
-
var container = $('invodoVideoContainer<?php echo $_widgetId; ?>');
|
46 |
-
if (container) {
|
47 |
-
container.show();
|
48 |
-
}
|
49 |
-
},
|
50 |
-
<?php echo $this->getSourceTypeName(); ?>: "<?php echo $this->getSourceValue(); ?>"
|
51 |
-
});
|
52 |
-
<?php else: ?>
|
53 |
-
Invodo.Widget.add({
|
54 |
-
type: "inplayer",
|
55 |
-
mode: "overlay",
|
56 |
-
widgetId: "invodoVideoPlayer<?php echo $_widgetId; ?>",
|
57 |
-
listensTo: "invodoVideoCta<?php echo $_widgetId; ?>",
|
58 |
-
<?php echo $this->getSourceTypeName(); ?>: "<?php echo $this->getSourceValue(); ?>",
|
59 |
-
onpodload: function() {
|
60 |
-
var podThumb = <?php echo $this->getOverlayActionSource(); ?>;
|
61 |
-
Invodo.Widget.add({
|
62 |
-
widgetId: "invodoVideoCta<?php echo $_widgetId; ?>",
|
63 |
-
type: "cta",
|
64 |
-
mpd: "<?php echo $this->getSourceValue(); ?>",
|
65 |
-
parentDomId: "invodoVideoCta<?php echo $_widgetId; ?>",
|
66 |
-
data: podThumb
|
67 |
-
});
|
68 |
-
$("invodoVideoCta<?php echo $_widgetId; ?>").show();
|
69 |
-
}
|
70 |
-
});
|
71 |
-
<?php endif; ?>
|
72 |
-
}
|
73 |
</script>
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* NOTICE OF LICENSE
|
4 |
+
*
|
5 |
+
* Subject to the terms, conditions and limitations of this EULA,
|
6 |
+
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
7 |
+
* non-assignable license, without rights to sublicense, to install or have installed,
|
8 |
+
* display and use the Software (in object code only) only on the computers
|
9 |
+
* to which the Software is downloaded. The terms and conditions of this EULA
|
10 |
+
* will govern any upgrades, updates, patches, hotfixes and/or
|
11 |
+
* additional versions of the Software provided by Company, at Company’s sole
|
12 |
+
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
13 |
+
* unless such Update is accompanied by or references a separate license
|
14 |
+
* agreement in which case the terms and conditions of that agreement will
|
15 |
+
* govern. If this EULA governs your use of an Update, such Update shall be
|
16 |
+
* considered Software for purposes of this EULA. Unless earlier terminated
|
17 |
+
* as provided herein, the term of each individual license granted under this
|
18 |
+
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
19 |
+
* as otherwise set forth herein.Each party recognizes that
|
20 |
+
* Company grants no licenses except for the license expressly set forth.
|
21 |
+
*
|
22 |
+
* @category Invodo
|
23 |
+
* @package Invodo_Video
|
24 |
+
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
25 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
26 |
+
*/
|
27 |
+
?>
|
28 |
+
<?php /** @var $this Invodo_Video_Block_Widget*/ ?>
|
29 |
+
<?php $_widgetId = Invodo_Video_Helper_Data::getIncrementId(); ?>
|
30 |
+
<?php if ($this->isInlineType()): ?>
|
31 |
+
<div id="invodoVideoContainer<?php echo $_widgetId; ?>" style="display: none; width: <?php echo $this->getWidth(); ?>px; height: <?php echo $this->getHeight(); ?>px"></div>
|
32 |
+
<?php else: ?>
|
33 |
+
<span id="invodoVideoCta<?php echo $_widgetId; ?>" style="display: none; cursor: pointer;"></span>
|
34 |
+
<?php endif; ?>
|
35 |
+
<script type="text/javascript">
|
36 |
+
if (typeof(Invodo) !== "undefined") {
|
37 |
+
<?php if ($this->isInlineType()): ?>
|
38 |
+
Invodo.Widget.add({
|
39 |
+
type: "inplayer",
|
40 |
+
mode: "embedded",
|
41 |
+
widgetId: "invodoVideoWidget<?php echo $_widgetId; ?>",
|
42 |
+
parentDomId: "invodoVideoContainer<?php echo $_widgetId; ?>",
|
43 |
+
autoplay: <?php echo $this->getAutoPlay() ? 'true' : 'false'; ?>,
|
44 |
+
onpodload: function() {
|
45 |
+
var container = $('invodoVideoContainer<?php echo $_widgetId; ?>');
|
46 |
+
if (container) {
|
47 |
+
container.show();
|
48 |
+
}
|
49 |
+
},
|
50 |
+
<?php echo $this->getSourceTypeName(); ?>: "<?php echo $this->getSourceValue(); ?>"
|
51 |
+
});
|
52 |
+
<?php else: ?>
|
53 |
+
Invodo.Widget.add({
|
54 |
+
type: "inplayer",
|
55 |
+
mode: "overlay",
|
56 |
+
widgetId: "invodoVideoPlayer<?php echo $_widgetId; ?>",
|
57 |
+
listensTo: "invodoVideoCta<?php echo $_widgetId; ?>",
|
58 |
+
<?php echo $this->getSourceTypeName(); ?>: "<?php echo $this->getSourceValue(); ?>",
|
59 |
+
onpodload: function() {
|
60 |
+
var podThumb = <?php echo $this->getOverlayActionSource(); ?>;
|
61 |
+
Invodo.Widget.add({
|
62 |
+
widgetId: "invodoVideoCta<?php echo $_widgetId; ?>",
|
63 |
+
type: "cta",
|
64 |
+
mpd: "<?php echo $this->getSourceValue(); ?>",
|
65 |
+
parentDomId: "invodoVideoCta<?php echo $_widgetId; ?>",
|
66 |
+
data: podThumb
|
67 |
+
});
|
68 |
+
$("invodoVideoCta<?php echo $_widgetId; ?>").show();
|
69 |
+
}
|
70 |
+
});
|
71 |
+
<?php endif; ?>
|
72 |
+
}
|
73 |
</script>
|
app/design/frontend/enterprise/default/layout/invodo_video.xml
CHANGED
@@ -1,54 +1,54 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
-
<!--
|
3 |
-
/**
|
4 |
-
* NOTICE OF LICENSE
|
5 |
-
*
|
6 |
-
* Subject to the terms, conditions and limitations of this EULA,
|
7 |
-
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
8 |
-
* non-assignable license, without rights to sublicense, to install or have installed,
|
9 |
-
* display and use the Software (in object code only) only on the computers
|
10 |
-
* to which the Software is downloaded. The terms and conditions of this EULA
|
11 |
-
* will govern any upgrades, updates, patches, hotfixes and/or
|
12 |
-
* additional versions of the Software provided by Company, at Company’s sole
|
13 |
-
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
14 |
-
* unless such Update is accompanied by or references a separate license
|
15 |
-
* agreement in which case the terms and conditions of that agreement will
|
16 |
-
* govern. If this EULA governs your use of an Update, such Update shall be
|
17 |
-
* considered Software for purposes of this EULA. Unless earlier terminated
|
18 |
-
* as provided herein, the term of each individual license granted under this
|
19 |
-
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
20 |
-
* as otherwise set forth herein.Each party recognizes that
|
21 |
-
* Company grants no licenses except for the license expressly set forth.
|
22 |
-
*
|
23 |
-
* @category Invodo
|
24 |
-
* @package Invodo_Video
|
25 |
-
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
26 |
-
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
27 |
-
*/
|
28 |
-
-->
|
29 |
-
<layout>
|
30 |
-
<default>
|
31 |
-
<reference name="head">
|
32 |
-
<block type="core/text" name="invodo.video.script">
|
33 |
-
<action method="setText"><text helper="invodo_video/data/getScriptTag"/></action>
|
34 |
-
</block>
|
35 |
-
</reference>
|
36 |
-
<reference name="after_body_start">
|
37 |
-
<block type="invodo_video/init" name="invodo.video.init" template="invodo/video/init.phtml" />
|
38 |
-
<block type="invodo_video/conversion_register" name="invodo.video.conversion.register" template="invodo/video/conversion.phtml" />
|
39 |
-
<block type="invodo_video/conversion_session" name="invodo.video.conversion.session" template="invodo/video/conversion.phtml" />
|
40 |
-
</reference>
|
41 |
-
</default>
|
42 |
-
|
43 |
-
<catalog_product_view>
|
44 |
-
<reference name="product.info.additional">
|
45 |
-
<block type="invodo_video/product_video_overlay" name="invodo.product.video.overlay" template="invodo/video/product/view/overlay.phtml"/>
|
46 |
-
</reference>
|
47 |
-
<reference name="product.info">
|
48 |
-
<block type="invodo_video/product_video_inline" name="invodo.product.video.inline" as="invodo_product_video" after="product.description" template="invodo/video/product/view/inline/enterprise.phtml">
|
49 |
-
<action method="addToParentGroup"><group>detailed_info</group></action>
|
50 |
-
<action method="setTitle"><title>Videos</title></action>
|
51 |
-
</block>
|
52 |
-
</reference>
|
53 |
-
</catalog_product_view>
|
54 |
</layout>
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* NOTICE OF LICENSE
|
5 |
+
*
|
6 |
+
* Subject to the terms, conditions and limitations of this EULA,
|
7 |
+
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
8 |
+
* non-assignable license, without rights to sublicense, to install or have installed,
|
9 |
+
* display and use the Software (in object code only) only on the computers
|
10 |
+
* to which the Software is downloaded. The terms and conditions of this EULA
|
11 |
+
* will govern any upgrades, updates, patches, hotfixes and/or
|
12 |
+
* additional versions of the Software provided by Company, at Company’s sole
|
13 |
+
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
14 |
+
* unless such Update is accompanied by or references a separate license
|
15 |
+
* agreement in which case the terms and conditions of that agreement will
|
16 |
+
* govern. If this EULA governs your use of an Update, such Update shall be
|
17 |
+
* considered Software for purposes of this EULA. Unless earlier terminated
|
18 |
+
* as provided herein, the term of each individual license granted under this
|
19 |
+
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
20 |
+
* as otherwise set forth herein.Each party recognizes that
|
21 |
+
* Company grants no licenses except for the license expressly set forth.
|
22 |
+
*
|
23 |
+
* @category Invodo
|
24 |
+
* @package Invodo_Video
|
25 |
+
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
26 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
27 |
+
*/
|
28 |
+
-->
|
29 |
+
<layout>
|
30 |
+
<default>
|
31 |
+
<reference name="head">
|
32 |
+
<block type="core/text" name="invodo.video.script">
|
33 |
+
<action method="setText"><text helper="invodo_video/data/getScriptTag"/></action>
|
34 |
+
</block>
|
35 |
+
</reference>
|
36 |
+
<reference name="after_body_start">
|
37 |
+
<block type="invodo_video/init" name="invodo.video.init" template="invodo/video/init.phtml" />
|
38 |
+
<block type="invodo_video/conversion_register" name="invodo.video.conversion.register" template="invodo/video/conversion.phtml" />
|
39 |
+
<block type="invodo_video/conversion_session" name="invodo.video.conversion.session" template="invodo/video/conversion.phtml" />
|
40 |
+
</reference>
|
41 |
+
</default>
|
42 |
+
|
43 |
+
<catalog_product_view>
|
44 |
+
<reference name="product.info.additional">
|
45 |
+
<block type="invodo_video/product_video_overlay" name="invodo.product.video.overlay" template="invodo/video/product/view/overlay.phtml"/>
|
46 |
+
</reference>
|
47 |
+
<reference name="product.info">
|
48 |
+
<block type="invodo_video/product_video_inline" name="invodo.product.video.inline" as="invodo_product_video" after="product.description" template="invodo/video/product/view/inline/enterprise.phtml">
|
49 |
+
<action method="addToParentGroup"><group>detailed_info</group></action>
|
50 |
+
<action method="setTitle"><title>Videos</title></action>
|
51 |
+
</block>
|
52 |
+
</reference>
|
53 |
+
</catalog_product_view>
|
54 |
</layout>
|
app/design/frontend/rwd/default/layout/invodo_video.xml
ADDED
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<!--
|
3 |
+
/**
|
4 |
+
* NOTICE OF LICENSE
|
5 |
+
*
|
6 |
+
* Subject to the terms, conditions and limitations of this EULA,
|
7 |
+
* Company hereby grants you a limited, nonexclusive, nontransferable,
|
8 |
+
* non-assignable license, without rights to sublicense, to install or have installed,
|
9 |
+
* display and use the Software (in object code only) only on the computers
|
10 |
+
* to which the Software is downloaded. The terms and conditions of this EULA
|
11 |
+
* will govern any upgrades, updates, patches, hotfixes and/or
|
12 |
+
* additional versions of the Software provided by Company, at Company’s sole
|
13 |
+
* discretion, that replace and/or supplement the original Software (collectively, “Update”),
|
14 |
+
* unless such Update is accompanied by or references a separate license
|
15 |
+
* agreement in which case the terms and conditions of that agreement will
|
16 |
+
* govern. If this EULA governs your use of an Update, such Update shall be
|
17 |
+
* considered Software for purposes of this EULA. Unless earlier terminated
|
18 |
+
* as provided herein, the term of each individual license granted under this
|
19 |
+
* EULA begins on the date of acceptance of this EULA and shall terminate only
|
20 |
+
* as otherwise set forth herein.Each party recognizes that
|
21 |
+
* Company grants no licenses except for the license expressly set forth.
|
22 |
+
*
|
23 |
+
* @category Invodo
|
24 |
+
* @package Invodo_Video
|
25 |
+
* @copyright Copyright (c) 2013 INVODO (http://www.invodo.com/)
|
26 |
+
* @license http://opensource.org/licenses/OSL-3.0 Open Source Software
|
27 |
+
*/
|
28 |
+
-->
|
29 |
+
<layout>
|
30 |
+
<default>
|
31 |
+
<reference name="head">
|
32 |
+
<block type="core/text" name="invodo.video.script">
|
33 |
+
<action method="setText"><text helper="invodo_video/data/getScriptTag"/></action>
|
34 |
+
</block>
|
35 |
+
</reference>
|
36 |
+
<reference name="after_body_start">
|
37 |
+
<block type="invodo_video/init" name="invodo.video.init" template="invodo/video/init.phtml" />
|
38 |
+
<block type="invodo_video/conversion_register" name="invodo.video.conversion.register" template="invodo/video/conversion.phtml" />
|
39 |
+
<block type="invodo_video/conversion_session" name="invodo.video.conversion.session" template="invodo/video/conversion.phtml" />
|
40 |
+
</reference>
|
41 |
+
</default>
|
42 |
+
|
43 |
+
<catalog_product_view>
|
44 |
+
<reference name="product.info.additional">
|
45 |
+
<block type="invodo_video/product_video_overlay" name="invodo.product.video.overlay" template="invodo/video/product/view/overlay.phtml"/>
|
46 |
+
</reference>
|
47 |
+
<reference name="product.info">
|
48 |
+
<block type="invodo_video/product_video_inline" name="invodo.product.video.inline" as="invodo_product_video" after="product.description" template="invodo/video/product/view/inline/rwd.phtml">
|
49 |
+
<action method="addToParentGroup"><group>detailed_info</group></action>
|
50 |
+
<action method="setTitle"><title>Videos</title></action>
|
51 |
+
</block>
|
52 |
+
</reference>
|
53 |
+
</catalog_product_view>
|
54 |
+
</layout>
|
app/etc/modules/Invodo_Video.xml
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
-
<config>
|
3 |
-
<modules>
|
4 |
-
<Invodo_Video>
|
5 |
-
<active>true</active>
|
6 |
-
<codePool>community</codePool>
|
7 |
-
</Invodo_Video>
|
8 |
-
</modules>
|
9 |
-
</config>
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Invodo_Video>
|
5 |
+
<active>true</active>
|
6 |
+
<codePool>community</codePool>
|
7 |
+
</Invodo_Video>
|
8 |
+
</modules>
|
9 |
+
</config>
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>invodo_video</name>
|
4 |
-
<version>0.1.
|
5 |
<stability>stable</stability>
|
6 |
-
<license
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
-
<summary>
|
10 |
-
<description>
|
11 |
-
<notes>
|
12 |
-
<authors><author><name>
|
13 |
-
<date>
|
14 |
-
<time>
|
15 |
-
<contents><target name="
|
16 |
<compatible/>
|
17 |
-
<dependencies><required><php><min>5.
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>invodo_video</name>
|
4 |
+
<version>0.1.6</version>
|
5 |
<stability>stable</stability>
|
6 |
+
<license>Open Software License (OSL)</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
+
<summary>Invodo Video for Magento</summary>
|
10 |
+
<description>Invodo Video creates a connection between the Invodo Video Platform and your Magento site</description>
|
11 |
+
<notes>Compatibility testing for EE 1.14 and CE 1.9</notes>
|
12 |
+
<authors><author><name>Eric Burleson</name><user>Invodo</user><email>eburleson@invodo.com</email></author></authors>
|
13 |
+
<date>2015-12-02</date>
|
14 |
+
<time>22:41:03</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="Invodo"><dir name="Video"><dir name="Block"><dir name="Adminhtml"><dir name="Cms"><dir name="Wysiwyg"><dir name="Images"><file name="Content.php" hash="3a6f9f0d5d07555c67ddcc4b98333adc"/></dir></dir></dir><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="Autoplay.php" hash="179b88cf15fdbd73ac64b59b8382c1d8"/><file name="Export.php" hash="2d12ac2cbdaa7c52965d878689ad64b9"/><file name="Overlayactionsource.php" hash="c0749eef5704ba21622a73898b6a44b4"/><file name="Videoresolution.php" hash="832931c813edd4a73ec91d6566fa39dc"/></dir></dir><file name="Form.php" hash="8993fc1d65f9e992251b9ae7826e53a0"/></dir></dir><dir name="Widget"><dir name="Form"><dir name="Element"><file name="Dependence.php" hash="e71482980e027b8640a666657a6db25a"/></dir></dir><dir name="Renderer"><file name="Autoplay.php" hash="fd1bd6408a63896298eb64f1916fc7fe"/><file name="Overlayactionsource.php" hash="f5b2544526001ee8f69079d98c71b9e7"/><file name="Sourcetype.php" hash="ade21d77f7c0ab763ba9bb5106b2b15c"/><file name="Sourcevalue.php" hash="61165e05b6a40bb3e87b2e137f72bdff"/><file name="Videoresolution.php" hash="bbeee86bc0338e2b6dc797db782a8400"/></dir></dir></dir><dir name="Conversion"><file name="Abstract.php" hash="22cf4e018677574838844537042d6d9a"/><file name="Register.php" hash="ddd532e2d1ab790002f4791e290cc40f"/><file name="Session.php" hash="26ab861c96d7d5b8abf989d2bd21b352"/></dir><file name="Init.php" hash="24b354e754aaf596f217b9195fd64a2e"/><dir name="Product"><dir name="Video"><file name="Abstract.php" hash="20bc6da8a2728bb6bbe7fd278d871319"/><file name="Inline.php" hash="9ed4f9c9ab0c928a289f9364acfd9710"/><dir name="Overlay"><file name="Default.php" hash="f5f0978352225b9391784378b83b77d5"/></dir><file name="Overlay.php" hash="60de2364a404279b36db0fb7546607b7"/></dir></dir><file name="Widget.php" hash="da533add07ba9c88c6b4f30ce25fa5ad"/></dir><dir name="Helper"><file name="Data.php" hash="9e2f0183a54556a4fec6483c7201c49e"/><dir name="Wysiwyg"><file name="Images.php" hash="c260649e50f63891ca7de1d6bbabab29"/></dir></dir><dir name="Model"><file name="Config.php" hash="f6c6670e87204cb95def09bb9bb31357"/><dir name="Observer"><file name="Adminhtml.php" hash="712c3c65a6bb4497cc18faf89d340002"/></dir><file name="Observer.php" hash="a52b3fbacfb9aa8b424fec7d5d23f4c4"/><dir name="Product"><dir name="Export"><file name="Adapter.php" hash="35ffa37f41402394971cbf73e7595728"/><file name="Entity.php" hash="3f9d62b27c01cb48c1cc4dda802ed619"/></dir><file name="Export.php" hash="e13d7cb90c6f175467220240fc27378e"/></dir><file name="Session.php" hash="aa1d946ac6ec8d50cb9a4b688bf82288"/><dir name="Widget"><dir name="Source"><file name="Autoplay.php" hash="9d25c4d82f55b9aef5e8bd91b4679d13"/><file name="Overlayaction.php" hash="7b3c1f36e58a4dcfbac34de4097d2c13"/><file name="Sourcetype.php" hash="0747c3b2d3f74a3f2fdfd02e46d29179"/><file name="Videotype.php" hash="bfb26207caad57659349f855de6af2ca"/></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Cms"><dir name="Wysiwyg"><file name="ImagesController.php" hash="c1e4421eb4ff178c66e0d66c8fbef6b2"/></dir></dir><file name="ExportController.php" hash="1fcac2f65a7dfe3def0f71d348b8380a"/></dir></dir><dir name="data"><dir name="invodo_video_setup"><file name="data-upgrade-0.1.0-0.1.1.php" hash="5825251a57bc10f97611d25acd761f94"/><file name="data-upgrade-0.1.5-0.1.6.php" hash="5b15e6b24bd681d71fd547828f02d660"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="4f0aeadcfdb8524e59bcf6f976112cd5"/><file name="config.xml" hash="35f83967e9f037cdd4c59a117217522c"/><file name="system.xml" hash="f35e473c09fe8d71fa0bcaed919621ea"/><file name="widget.xml" hash="e8a1c82dba50df3410ebb0ce84075516"/></dir><dir name="media"><dir name="Video_Call_To_Actions"><file name="CTA_watchvideo_gray_56x56.png" hash="eb0068c1c00ef49e492310351a9a49ed"/><file name="CTA_watchvideo_grayfill_56x56.png" hash="8c21510b5c0b3d33f18f9d8320f9edfe"/><file name="CTA_watchvideo_red_56x56.png" hash="ba4478833df3b890d50355aa397e8841"/></dir></dir><dir name="sql"><dir name="invodo_video_setup"><file name="install-0.1.0.php" hash="14af3123cc0b187a008185f5e841d5c9"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Invodo_Video.xml" hash="fea9f2e8a402aeb797efc34cb4ba27bb"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="invodo"><dir name="video"><dir name="system"><dir name="config"><dir name="form"><dir name="renderer"><file name="overlayactionsource.phtml" hash="36c70ad65fad1331c5e142891ac1042a"/><file name="videoresolution.phtml" hash="a8bfb9a7822778fb56b2337e01bad787"/></dir></dir></dir></dir><dir name="widget"><dir name="form"><dir name="renderer"><file name="autoplay.phtml" hash="d43f7f3d3d532ed6785c1e170f9f0c18"/><file name="overlayactionsource.phtml" hash="2f5aacd61404251dcda796596f0e5a94"/><file name="sourcetype.phtml" hash="9110b8780fd7e419c3c1cebfe55ad32b"/><file name="videoresolution.phtml" hash="2d7e39c3b02119eba90c5499b613f147"/></dir></dir></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="invodo_video.xml" hash="bd4818db93a3d444fbe4b32882f18dc1"/></dir><dir name="template"><dir name="invodo"><dir name="video"><file name="conversion.phtml" hash="332446479e0b13e51833d349230a6174"/><file name="init.phtml" hash="7e9f066d9a441b611bd94dc2b8a27dc2"/><dir name="product"><dir name="view"><dir name="inline"><file name="community.phtml" hash="f166d3bc65b0834cf70aa6395ba67dc5"/><file name="enterprise.phtml" hash="c9f1e19660a5a0755668fe697e7b3a20"/><file name="rwd.phtml" hash="be8a2e269a69592da840f052b62b15b8"/></dir><dir name="overlay"><file name="default.phtml" hash="d64f980ab86cbebd4c1b1c51d778a0c2"/></dir><file name="overlay.phtml" hash="b223cee47c9c85a8c1674e7b84b109cf"/></dir></dir><file name="widget.phtml" hash="161c74655208abeea25f2f1b354b41b0"/></dir></dir></dir></dir></dir><dir name="enterprise"><dir name="default"><dir name="layout"><file name="invodo_video.xml" hash="ad88d0b9a48b88f17b649bbdfb14e0de"/></dir></dir></dir><dir name="rwd"><dir name="default"><dir name="layout"><file name="invodo_video.xml" hash="8c5d0424c53dffe7135afbff422dfddc"/></dir></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
+
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|