Version Notes
* Version 1.0.0
* Bugfix Musikwahl v1.0.1
* PHP Version 5.2.0 - 6.0.0
* Advanced Block Config v1.0.3
Download this release
Release Info
Developer | Trivid GmbH |
Extension | clipgenerator |
Version | 1.0.3 |
Comparing to | |
See all releases |
Code changes from version 1.0.2 to 1.0.3
- app/code/community/Trivid/Clipgenerator/Adminhtml/MassController.php +33 -4
- app/code/community/Trivid/Clipgenerator/Adminhtml/OrderformController.php +14 -2
- app/code/community/Trivid/Clipgenerator/Block/Adminhtml/System/Config/Form/Field/Contingentlabel.php +8 -3
- app/code/community/Trivid/Clipgenerator/Block/Adminhtml/System/Config/Form/Field/Musiclightbox.php +8 -3
- app/code/community/Trivid/Clipgenerator/Block/Catalog/Product/Helper/Form/Images.php +11 -2
- app/code/community/Trivid/Clipgenerator/Block/Catalog/Product/Helper/Form/music.php +11 -2
- app/code/community/Trivid/Clipgenerator/Block/InsertVideo.php +42 -8
- app/code/community/Trivid/Clipgenerator/Block/Video.php +11 -2
- app/code/community/Trivid/Clipgenerator/Helper/Data.php +49 -14
- app/code/community/Trivid/Clipgenerator/Model/Adminhtml/System/Config/Source/Designs.php +4 -6
- app/code/community/Trivid/Clipgenerator/Model/Adminhtml/System/Config/Source/Musics.php +4 -6
- app/code/community/Trivid/Clipgenerator/Model/Mysql4/Setup.php +4 -1
- app/code/community/Trivid/Clipgenerator/Model/Observer.php +30 -6
- app/code/community/Trivid/Clipgenerator/Model/Source/Designs.php +9 -2
- app/code/community/Trivid/Clipgenerator/Model/Source/Musics.php +9 -2
- app/code/community/Trivid/Clipgenerator/controllers/Adminhtml/MassController.php +33 -4
- app/code/community/Trivid/Clipgenerator/controllers/Adminhtml/OrderformController.php +14 -2
- app/code/community/Trivid/Clipgenerator/etc/config.xml +1 -1
- app/code/community/Trivid/Clipgenerator/etc/system.xml +8 -0
- app/code/community/Trivid/Clipgenerator/sql/clipgenerator_setup/mysql4-install-1.0.2.php +3 -1
- app/code/community/Trivid/Clipgenerator/sql/clipgenerator_setup/mysql4-install-1.0.3.php +202 -0
- app/design/adminhtml/default/default/template/clipgenerator/orderform.phtml +2 -2
- package.xml +6 -5
app/code/community/Trivid/Clipgenerator/Adminhtml/MassController.php
CHANGED
@@ -11,17 +11,34 @@
|
|
11 |
*
|
12 |
* @package Trivid
|
13 |
* @author Trivid GmbH <author@example.com>
|
14 |
-
* @author Another Author <another@example.com>
|
15 |
* @copyright 2013 Trivid GmbH
|
16 |
* @license http://www.clipgenerator.com/static/public/legal.php Clipgenerator - End User License Agreement
|
17 |
* @version 1.0.0
|
18 |
* @since File available since Release 1.0.0
|
19 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
class Trivid_Clipgenerator_Adminhtml_MassController extends Mage_Adminhtml_Controller_Action {
|
21 |
|
22 |
-
|
|
|
|
|
|
|
|
|
23 |
|
24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
$this->products = $this->getRequest()->getParam('product');
|
26 |
if (count($this->products) > 10) {
|
27 |
Mage::getSingleton('core/session')->addError(Mage::helper('clipgenerator')->__('Sie können maximal 10 Produkte gleichzeitig verarbeiten.'));
|
@@ -29,12 +46,24 @@ class Trivid_Clipgenerator_Adminhtml_MassController extends Mage_Adminhtml_Contr
|
|
29 |
}
|
30 |
}
|
31 |
|
32 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
$this->init();
|
34 |
Mage::helper('clipgenerator')->activateVideos($this->products);
|
35 |
$this->_redirectUrl(Mage::helper('adminhtml')->getUrl('adminhtml/catalog_product/index'));
|
36 |
}
|
37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
public function deactivateAction() {
|
39 |
$this->init();
|
40 |
Mage::helper('clipgenerator')->deactivateVideos($this->products);
|
11 |
*
|
12 |
* @package Trivid
|
13 |
* @author Trivid GmbH <author@example.com>
|
|
|
14 |
* @copyright 2013 Trivid GmbH
|
15 |
* @license http://www.clipgenerator.com/static/public/legal.php Clipgenerator - End User License Agreement
|
16 |
* @version 1.0.0
|
17 |
* @since File available since Release 1.0.0
|
18 |
*/
|
19 |
+
/**
|
20 |
+
* Class Trivid_Clipgenerator_Adminhtml_MassController
|
21 |
+
*
|
22 |
+
* catches mass instruction to activate or deactivate at least 10 product
|
23 |
+
* videos. After success the methods will return to list view.
|
24 |
+
* @package Trivid
|
25 |
+
*/
|
26 |
class Trivid_Clipgenerator_Adminhtml_MassController extends Mage_Adminhtml_Controller_Action {
|
27 |
|
28 |
+
/**
|
29 |
+
* array of send products to mass controller.
|
30 |
+
* @var array $products
|
31 |
+
*/
|
32 |
+
protected $products;
|
33 |
|
34 |
+
/**
|
35 |
+
* initializes the class, checks if the count of the given products
|
36 |
+
* is higher than the expected size of 10 and throws an error if
|
37 |
+
* happend.
|
38 |
+
*
|
39 |
+
* @return void
|
40 |
+
*/
|
41 |
+
protected function init() {
|
42 |
$this->products = $this->getRequest()->getParam('product');
|
43 |
if (count($this->products) > 10) {
|
44 |
Mage::getSingleton('core/session')->addError(Mage::helper('clipgenerator')->__('Sie können maximal 10 Produkte gleichzeitig verarbeiten.'));
|
46 |
}
|
47 |
}
|
48 |
|
49 |
+
/**
|
50 |
+
* activates the given products by calling the clipgenerator helper
|
51 |
+
* which handle the activation request.
|
52 |
+
*
|
53 |
+
* @return void
|
54 |
+
*/
|
55 |
+
public function activateAction() {
|
56 |
$this->init();
|
57 |
Mage::helper('clipgenerator')->activateVideos($this->products);
|
58 |
$this->_redirectUrl(Mage::helper('adminhtml')->getUrl('adminhtml/catalog_product/index'));
|
59 |
}
|
60 |
|
61 |
+
/**
|
62 |
+
* deactivates the given products by calling the clipgenerator helper
|
63 |
+
* which handle the deactivation request.
|
64 |
+
*
|
65 |
+
* @return void
|
66 |
+
*/
|
67 |
public function deactivateAction() {
|
68 |
$this->init();
|
69 |
Mage::helper('clipgenerator')->deactivateVideos($this->products);
|
app/code/community/Trivid/Clipgenerator/Adminhtml/OrderformController.php
CHANGED
@@ -11,14 +11,26 @@
|
|
11 |
*
|
12 |
* @package Trivid
|
13 |
* @author Trivid GmbH <author@example.com>
|
14 |
-
* @author Another Author <another@example.com>
|
15 |
* @copyright 2013 Trivid GmbH
|
16 |
* @license http://www.clipgenerator.com/static/public/legal.php Clipgenerator - End User License Agreement
|
17 |
* @version 1.0.0
|
18 |
* @since File available since Release 1.0.0
|
19 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
class Trivid_Clipgenerator_Adminhtml_OrderformController extends Mage_Adminhtml_Controller_Action {
|
21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
$post = $this->getRequest()->getPost();
|
23 |
if($post['isAjax']) {
|
24 |
if($post['apiUser'] && $post['apiSecret']) {
|
11 |
*
|
12 |
* @package Trivid
|
13 |
* @author Trivid GmbH <author@example.com>
|
|
|
14 |
* @copyright 2013 Trivid GmbH
|
15 |
* @license http://www.clipgenerator.com/static/public/legal.php Clipgenerator - End User License Agreement
|
16 |
* @version 1.0.0
|
17 |
* @since File available since Release 1.0.0
|
18 |
*/
|
19 |
+
/**
|
20 |
+
* Class Trivid_Clipgenerator_Adminhtml_OrderformController
|
21 |
+
*
|
22 |
+
* Handles the orderform view and request.
|
23 |
+
* @package Trivid
|
24 |
+
*/
|
25 |
class Trivid_Clipgenerator_Adminhtml_OrderformController extends Mage_Adminhtml_Controller_Action {
|
26 |
+
/**
|
27 |
+
* User get the orderform if the api
|
28 |
+
* credentials not set anyway. On submitting the form to Trivid order web-
|
29 |
+
* service it receives the result via ajax and sets the return to the
|
30 |
+
* magento configuration.
|
31 |
+
* @return void
|
32 |
+
*/
|
33 |
+
public function indexAction() {
|
34 |
$post = $this->getRequest()->getPost();
|
35 |
if($post['isAjax']) {
|
36 |
if($post['apiUser'] && $post['apiSecret']) {
|
app/code/community/Trivid/Clipgenerator/Block/Adminhtml/System/Config/Form/Field/Contingentlabel.php
CHANGED
@@ -11,16 +11,21 @@
|
|
11 |
*
|
12 |
* @package Trivid
|
13 |
* @author Trivid GmbH <author@example.com>
|
14 |
-
* @author Another Author <another@example.com>
|
15 |
* @copyright 2013 Trivid GmbH
|
16 |
* @license http://www.clipgenerator.com/static/public/legal.php Clipgenerator - End User License Agreement
|
17 |
* @version 1.0.0
|
18 |
* @since File available since Release 1.0.0
|
19 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
class Trivid_Clipgenerator_Block_Adminhtml_System_Config_Form_Field_Contingentlabel extends Mage_Adminhtml_Block_System_Config_Form_Field {
|
21 |
/**
|
22 |
-
* contingent
|
23 |
-
|
24 |
* @return string
|
25 |
*/
|
26 |
protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element) {
|
11 |
*
|
12 |
* @package Trivid
|
13 |
* @author Trivid GmbH <author@example.com>
|
|
|
14 |
* @copyright 2013 Trivid GmbH
|
15 |
* @license http://www.clipgenerator.com/static/public/legal.php Clipgenerator - End User License Agreement
|
16 |
* @version 1.0.0
|
17 |
* @since File available since Release 1.0.0
|
18 |
*/
|
19 |
+
/**
|
20 |
+
* Class Trivid_Clipgenerator_Block_Adminhtml_System_Config_Form_Field_Contingentlabel
|
21 |
+
*
|
22 |
+
* Contingent label handles contingent view in configuration.
|
23 |
+
* @package Trivid
|
24 |
+
*/
|
25 |
class Trivid_Clipgenerator_Block_Adminhtml_System_Config_Form_Field_Contingentlabel extends Mage_Adminhtml_Block_System_Config_Form_Field {
|
26 |
/**
|
27 |
+
* Renders the contingent template with the given contingent information
|
28 |
+
* of the user.
|
29 |
* @return string
|
30 |
*/
|
31 |
protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element) {
|
app/code/community/Trivid/Clipgenerator/Block/Adminhtml/System/Config/Form/Field/Musiclightbox.php
CHANGED
@@ -11,16 +11,21 @@
|
|
11 |
*
|
12 |
* @package Trivid
|
13 |
* @author Trivid GmbH <author@example.com>
|
14 |
-
* @author Another Author <another@example.com>
|
15 |
* @copyright 2013 Trivid GmbH
|
16 |
* @license http://www.clipgenerator.com/static/public/legal.php Clipgenerator - End User License Agreement
|
17 |
* @version 1.0.0
|
18 |
* @since File available since Release 1.0.0
|
19 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
class Trivid_Clipgenerator_Block_Adminhtml_System_Config_Form_Field_Musiclightbox extends Mage_Adminhtml_Block_System_Config_Form_Field {
|
21 |
/**
|
22 |
-
* music
|
23 |
-
|
24 |
* @return string
|
25 |
*/
|
26 |
protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element) {
|
11 |
*
|
12 |
* @package Trivid
|
13 |
* @author Trivid GmbH <author@example.com>
|
|
|
14 |
* @copyright 2013 Trivid GmbH
|
15 |
* @license http://www.clipgenerator.com/static/public/legal.php Clipgenerator - End User License Agreement
|
16 |
* @version 1.0.0
|
17 |
* @since File available since Release 1.0.0
|
18 |
*/
|
19 |
+
/**
|
20 |
+
* Class Trivid_Clipgenerator_Block_Adminhtml_System_Config_Form_Field_Musiclightbox
|
21 |
+
*
|
22 |
+
* Musiclightbox creates music chooser in configuration.
|
23 |
+
* @package Trivid
|
24 |
+
*/
|
25 |
class Trivid_Clipgenerator_Block_Adminhtml_System_Config_Form_Field_Musiclightbox extends Mage_Adminhtml_Block_System_Config_Form_Field {
|
26 |
/**
|
27 |
+
* Renders music chooser for configuration view from music
|
28 |
+
* chooser tempalte.
|
29 |
* @return string
|
30 |
*/
|
31 |
protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element) {
|
app/code/community/Trivid/Clipgenerator/Block/Catalog/Product/Helper/Form/Images.php
CHANGED
@@ -11,14 +11,23 @@
|
|
11 |
*
|
12 |
* @package Trivid
|
13 |
* @author Trivid GmbH <author@example.com>
|
14 |
-
* @author Another Author <another@example.com>
|
15 |
* @copyright 2013 Trivid GmbH
|
16 |
* @license http://www.clipgenerator.com/static/public/legal.php Clipgenerator - End User License Agreement
|
17 |
* @version 1.0.0
|
18 |
* @since File available since Release 1.0.0
|
19 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
class Trivid_Clipgenerator_Block_Catalog_Product_Helper_Form_Images extends Varien_Data_Form_Element_Text {
|
21 |
-
|
|
|
|
|
|
|
|
|
22 |
$block = Mage::getSingleton('core/layout')
|
23 |
->createBlock('adminhtml/template', '', array('template' => 'clipgenerator/images.phtml'))
|
24 |
->setIsRenderToJsTemplate(TRUE);
|
11 |
*
|
12 |
* @package Trivid
|
13 |
* @author Trivid GmbH <author@example.com>
|
|
|
14 |
* @copyright 2013 Trivid GmbH
|
15 |
* @license http://www.clipgenerator.com/static/public/legal.php Clipgenerator - End User License Agreement
|
16 |
* @version 1.0.0
|
17 |
* @since File available since Release 1.0.0
|
18 |
*/
|
19 |
+
/**
|
20 |
+
* Class Trivid_Clipgenerator_Block_Catalog_Product_Helper_Form_Images
|
21 |
+
*
|
22 |
+
* Creates image chooser in product edit view.
|
23 |
+
* @package Trivid
|
24 |
+
*/
|
25 |
class Trivid_Clipgenerator_Block_Catalog_Product_Helper_Form_Images extends Varien_Data_Form_Element_Text {
|
26 |
+
/**
|
27 |
+
* Renders the images chooser template and returns the html.
|
28 |
+
* @return string
|
29 |
+
*/
|
30 |
+
public function getAfterElementHtml() {
|
31 |
$block = Mage::getSingleton('core/layout')
|
32 |
->createBlock('adminhtml/template', '', array('template' => 'clipgenerator/images.phtml'))
|
33 |
->setIsRenderToJsTemplate(TRUE);
|
app/code/community/Trivid/Clipgenerator/Block/Catalog/Product/Helper/Form/music.php
CHANGED
@@ -11,14 +11,23 @@
|
|
11 |
*
|
12 |
* @package Trivid
|
13 |
* @author Trivid GmbH <author@example.com>
|
14 |
-
* @author Another Author <another@example.com>
|
15 |
* @copyright 2013 Trivid GmbH
|
16 |
* @license http://www.clipgenerator.com/static/public/legal.php Clipgenerator - End User License Agreement
|
17 |
* @version 1.0.0
|
18 |
* @since File available since Release 1.0.0
|
19 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
class Trivid_Clipgenerator_Block_Catalog_Product_Helper_Form_Music extends Varien_Data_Form_Element_Text {
|
21 |
-
|
|
|
|
|
|
|
|
|
22 |
$block = Mage::getSingleton('core/layout')
|
23 |
->createBlock('adminhtml/template', '', array('template' => 'clipgenerator/music.phtml'))
|
24 |
->setIsRenderToJsTemplate(TRUE);
|
11 |
*
|
12 |
* @package Trivid
|
13 |
* @author Trivid GmbH <author@example.com>
|
|
|
14 |
* @copyright 2013 Trivid GmbH
|
15 |
* @license http://www.clipgenerator.com/static/public/legal.php Clipgenerator - End User License Agreement
|
16 |
* @version 1.0.0
|
17 |
* @since File available since Release 1.0.0
|
18 |
*/
|
19 |
+
/**
|
20 |
+
* Class Trivid_Clipgenerator_Block_Catalog_Product_Helper_Form_Music
|
21 |
+
*
|
22 |
+
* Creates the music chooser for the product edit view.
|
23 |
+
* @package Trivid
|
24 |
+
*/
|
25 |
class Trivid_Clipgenerator_Block_Catalog_Product_Helper_Form_Music extends Varien_Data_Form_Element_Text {
|
26 |
+
/**
|
27 |
+
* Renders the music chooser template for editing products.
|
28 |
+
* @return string
|
29 |
+
*/
|
30 |
+
public function getAfterElementHtml() {
|
31 |
$block = Mage::getSingleton('core/layout')
|
32 |
->createBlock('adminhtml/template', '', array('template' => 'clipgenerator/music.phtml'))
|
33 |
->setIsRenderToJsTemplate(TRUE);
|
app/code/community/Trivid/Clipgenerator/Block/InsertVideo.php
CHANGED
@@ -11,28 +11,62 @@
|
|
11 |
*
|
12 |
* @package Trivid
|
13 |
* @author Trivid GmbH <author@example.com>
|
14 |
-
* @author Another Author <another@example.com>
|
15 |
* @copyright 2013 Trivid GmbH
|
16 |
* @license http://www.clipgenerator.com/static/public/legal.php Clipgenerator - End User License Agreement
|
17 |
* @version 1.0.0
|
18 |
* @since File available since Release 1.0.0
|
19 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
class Trivid_Clipgenerator_Block_InsertVideo extends Mage_Core_Block_Text {
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
|
26 |
-
|
|
|
|
|
|
|
|
|
|
|
27 |
$this->videoId = $videoId;
|
28 |
$this->show = $show;
|
29 |
}
|
30 |
|
31 |
-
|
|
|
|
|
|
|
|
|
32 |
$this->setData('text', $transport . $this->_insertVideoHtml());
|
33 |
}
|
34 |
|
35 |
-
|
|
|
|
|
|
|
|
|
36 |
$html = '';
|
37 |
if ($this->videoId && $this->show) {
|
38 |
$html = '<iframe id="clipgeneratorvideo" style="width:400px; height:300px; border:0px none;" src="http://data.clipgenerator.com/player/v2/Player.swf?autoplay=off&webcartURL=http%3A%2F%2Fcg-v3.clipgenerator.com%2FgetWebcart%3FvideoId%3D' . $this->videoId . '"></iframe>';
|
11 |
*
|
12 |
* @package Trivid
|
13 |
* @author Trivid GmbH <author@example.com>
|
|
|
14 |
* @copyright 2013 Trivid GmbH
|
15 |
* @license http://www.clipgenerator.com/static/public/legal.php Clipgenerator - End User License Agreement
|
16 |
* @version 1.0.0
|
17 |
* @since File available since Release 1.0.0
|
18 |
*/
|
19 |
+
/**
|
20 |
+
* Class Trivid_Clipgenerator_Block_InsertVideo
|
21 |
+
*
|
22 |
+
* Handles automatically output to the product detail view.
|
23 |
+
* @package Trivid
|
24 |
+
*/
|
25 |
class Trivid_Clipgenerator_Block_InsertVideo extends Mage_Core_Block_Text {
|
26 |
+
/**
|
27 |
+
* Name of the new layout part.
|
28 |
+
* @var string
|
29 |
+
*/
|
30 |
+
protected $_nameInLayout = 'clipgenerator.insertvideo';
|
31 |
+
/**
|
32 |
+
* Alias of the new layout part.
|
33 |
+
* @var string
|
34 |
+
*/
|
35 |
+
protected $_alias = 'insertvideo';
|
36 |
+
/**
|
37 |
+
* Current video id.
|
38 |
+
* @var int
|
39 |
+
*/
|
40 |
+
protected $videoId;
|
41 |
+
/**
|
42 |
+
* Products show option.
|
43 |
+
* @var boolean
|
44 |
+
*/
|
45 |
+
protected $show;
|
46 |
|
47 |
+
/**
|
48 |
+
* Initializes the given product attributes videoid and show.
|
49 |
+
* @param null $videoId
|
50 |
+
* @param bool $show
|
51 |
+
*/
|
52 |
+
function __construct($videoId = NULL, $show = FALSE) {
|
53 |
$this->videoId = $videoId;
|
54 |
$this->show = $show;
|
55 |
}
|
56 |
|
57 |
+
/**
|
58 |
+
* Expands the current transport part by adding the video iframe html.
|
59 |
+
* @param $transport
|
60 |
+
*/
|
61 |
+
public function setPassingTransport($transport) {
|
62 |
$this->setData('text', $transport . $this->_insertVideoHtml());
|
63 |
}
|
64 |
|
65 |
+
/**
|
66 |
+
* Creates video iframe.
|
67 |
+
* @return string
|
68 |
+
*/
|
69 |
+
private function _insertVideoHtml() {
|
70 |
$html = '';
|
71 |
if ($this->videoId && $this->show) {
|
72 |
$html = '<iframe id="clipgeneratorvideo" style="width:400px; height:300px; border:0px none;" src="http://data.clipgenerator.com/player/v2/Player.swf?autoplay=off&webcartURL=http%3A%2F%2Fcg-v3.clipgenerator.com%2FgetWebcart%3FvideoId%3D' . $this->videoId . '"></iframe>';
|
app/code/community/Trivid/Clipgenerator/Block/Video.php
CHANGED
@@ -11,14 +11,23 @@
|
|
11 |
*
|
12 |
* @package Trivid
|
13 |
* @author Trivid GmbH <author@example.com>
|
14 |
-
* @author Another Author <another@example.com>
|
15 |
* @copyright 2013 Trivid GmbH
|
16 |
* @license http://www.clipgenerator.com/static/public/legal.php Clipgenerator - End User License Agreement
|
17 |
* @version 1.0.0
|
18 |
* @since File available since Release 1.0.0
|
19 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
class Trivid_Clipgenerator_Block_Video extends Mage_Core_Block_Text {
|
21 |
-
|
|
|
|
|
|
|
|
|
22 |
$_product = Mage::registry('current_product');
|
23 |
$video = $_product->getData('clipgenerator_video_id');
|
24 |
$show = $_product->getData('clipgenerator_show');
|
11 |
*
|
12 |
* @package Trivid
|
13 |
* @author Trivid GmbH <author@example.com>
|
|
|
14 |
* @copyright 2013 Trivid GmbH
|
15 |
* @license http://www.clipgenerator.com/static/public/legal.php Clipgenerator - End User License Agreement
|
16 |
* @version 1.0.0
|
17 |
* @since File available since Release 1.0.0
|
18 |
*/
|
19 |
+
/**
|
20 |
+
* Class Trivid_Clipgenerator_Block_Video
|
21 |
+
*
|
22 |
+
* Video block for individual inclusion.
|
23 |
+
* @package
|
24 |
+
*/
|
25 |
class Trivid_Clipgenerator_Block_Video extends Mage_Core_Block_Text {
|
26 |
+
/**
|
27 |
+
* Generates the video iframe for the block include opiton.
|
28 |
+
* @return mixed|string
|
29 |
+
*/
|
30 |
+
protected function _toHtml() {
|
31 |
$_product = Mage::registry('current_product');
|
32 |
$video = $_product->getData('clipgenerator_video_id');
|
33 |
$show = $_product->getData('clipgenerator_show');
|
app/code/community/Trivid/Clipgenerator/Helper/Data.php
CHANGED
@@ -11,7 +11,6 @@
|
|
11 |
*
|
12 |
* @package Trivid
|
13 |
* @author Trivid GmbH <author@example.com>
|
14 |
-
* @author Another Author <another@example.com>
|
15 |
* @copyright 2013 Trivid GmbH
|
16 |
* @license http://www.clipgenerator.com/static/public/legal.php Clipgenerator - End User License Agreement
|
17 |
* @version 1.0.0
|
@@ -23,14 +22,24 @@ require_once(Mage::getModuleDir('', 'Trivid_Clipgenerator') . '/lib/clipgenerato
|
|
23 |
require_once(Mage::getModuleDir('', 'Trivid_Clipgenerator') . '/lib/clipgenerator/Frame.php');
|
24 |
require_once(Mage::getModuleDir('', 'Trivid_Clipgenerator') . '/lib/clipgenerator/Logo.php');
|
25 |
require_once(Mage::getModuleDir('', 'Trivid_Clipgenerator') . '/lib/clipgenerator/LowerThird.php');
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
class Trivid_Clipgenerator_Helper_Data extends Mage_Core_Helper_Abstract {
|
27 |
|
28 |
-
|
|
|
|
|
|
|
|
|
29 |
|
30 |
/**
|
31 |
-
*
|
32 |
* clipgenerator konfiguration
|
33 |
-
*
|
34 |
*/
|
35 |
private function initClipgeneratorApi() {
|
36 |
$apiUserId = Mage::getStoreConfig('clipgenerator/general/clipgenerator_api_user_id', Mage::app()->getStore());
|
@@ -46,7 +55,13 @@ class Trivid_Clipgenerator_Helper_Data extends Mage_Core_Helper_Abstract {
|
|
46 |
);
|
47 |
}
|
48 |
|
49 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
if ($method) {
|
51 |
$apiCredentials = array(
|
52 |
'userId' => Mage::getStoreConfig('clipgenerator/general/clipgenerator_api_user_id', Mage::app()->getStore()),
|
@@ -67,21 +82,31 @@ class Trivid_Clipgenerator_Helper_Data extends Mage_Core_Helper_Abstract {
|
|
67 |
}
|
68 |
}
|
69 |
|
70 |
-
|
|
|
|
|
|
|
|
|
|
|
71 |
$this->initClipgeneratorApi();
|
72 |
|
73 |
return $this->clipgeneratorClient->uploadPicture($file);
|
74 |
}
|
75 |
|
76 |
-
|
|
|
|
|
|
|
|
|
|
|
77 |
$this->initClipgeneratorApi();
|
78 |
|
79 |
return $this->clipgeneratorClient->saveVideo($xml);
|
80 |
}
|
81 |
|
82 |
/**
|
83 |
-
*
|
84 |
-
*
|
85 |
*/
|
86 |
public function getDesigns() {
|
87 |
$this->initClipgeneratorApi();
|
@@ -91,8 +116,8 @@ class Trivid_Clipgenerator_Helper_Data extends Mage_Core_Helper_Abstract {
|
|
91 |
}
|
92 |
|
93 |
/**
|
94 |
-
*
|
95 |
-
*
|
96 |
*/
|
97 |
public function getMusic() {
|
98 |
$this->initClipgeneratorApi();
|
@@ -102,8 +127,8 @@ class Trivid_Clipgenerator_Helper_Data extends Mage_Core_Helper_Abstract {
|
|
102 |
}
|
103 |
|
104 |
/**
|
105 |
-
*
|
106 |
-
*
|
107 |
*/
|
108 |
public function getUser() {
|
109 |
$this->initClipgeneratorApi();
|
@@ -113,7 +138,9 @@ class Trivid_Clipgenerator_Helper_Data extends Mage_Core_Helper_Abstract {
|
|
113 |
}
|
114 |
|
115 |
/**
|
|
|
116 |
* @param $products
|
|
|
117 |
*/
|
118 |
public function activateVideos($products) {
|
119 |
foreach ($products as $product_id) {
|
@@ -149,7 +176,9 @@ class Trivid_Clipgenerator_Helper_Data extends Mage_Core_Helper_Abstract {
|
|
149 |
}
|
150 |
|
151 |
/**
|
|
|
152 |
* @param $products
|
|
|
153 |
*/
|
154 |
public function deactivateVideos($products) {
|
155 |
foreach ($products as $product_id) {
|
@@ -179,7 +208,13 @@ class Trivid_Clipgenerator_Helper_Data extends Mage_Core_Helper_Abstract {
|
|
179 |
}
|
180 |
}
|
181 |
|
182 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
183 |
$this->initClipgeneratorApi();
|
184 |
if ($_product->getData('clipgenerator_show') && $this->getUser()) {
|
185 |
$video = new Video($_product->getData('clipgenerator_title'));
|
11 |
*
|
12 |
* @package Trivid
|
13 |
* @author Trivid GmbH <author@example.com>
|
|
|
14 |
* @copyright 2013 Trivid GmbH
|
15 |
* @license http://www.clipgenerator.com/static/public/legal.php Clipgenerator - End User License Agreement
|
16 |
* @version 1.0.0
|
22 |
require_once(Mage::getModuleDir('', 'Trivid_Clipgenerator') . '/lib/clipgenerator/Frame.php');
|
23 |
require_once(Mage::getModuleDir('', 'Trivid_Clipgenerator') . '/lib/clipgenerator/Logo.php');
|
24 |
require_once(Mage::getModuleDir('', 'Trivid_Clipgenerator') . '/lib/clipgenerator/LowerThird.php');
|
25 |
+
/**
|
26 |
+
* Class Trivid_Clipgenerator_Helper_Data
|
27 |
+
*
|
28 |
+
* Main helper class for handling video generation, activation and so on.
|
29 |
+
* @package Trivid
|
30 |
+
*/
|
31 |
class Trivid_Clipgenerator_Helper_Data extends Mage_Core_Helper_Abstract {
|
32 |
|
33 |
+
/**
|
34 |
+
* Instance of the clipgenerator client.
|
35 |
+
* @var ClipgeneratorClient
|
36 |
+
*/
|
37 |
+
protected $clipgeneratorClient;
|
38 |
|
39 |
/**
|
40 |
+
* Initalize clipgenerator api with given api credentials from.
|
41 |
* clipgenerator konfiguration
|
42 |
+
* @return void
|
43 |
*/
|
44 |
private function initClipgeneratorApi() {
|
45 |
$apiUserId = Mage::getStoreConfig('clipgenerator/general/clipgenerator_api_user_id', Mage::app()->getStore());
|
55 |
);
|
56 |
}
|
57 |
|
58 |
+
/**
|
59 |
+
* Method for calling requests to clipgenerator api direct via curl.
|
60 |
+
* @param $method
|
61 |
+
* @param array $params
|
62 |
+
* @return mixed
|
63 |
+
*/
|
64 |
+
private function curlCall($method, $params = array()) {
|
65 |
if ($method) {
|
66 |
$apiCredentials = array(
|
67 |
'userId' => Mage::getStoreConfig('clipgenerator/general/clipgenerator_api_user_id', Mage::app()->getStore()),
|
82 |
}
|
83 |
}
|
84 |
|
85 |
+
/**
|
86 |
+
* Uploads the given picture url to the current api account.
|
87 |
+
* @param $file
|
88 |
+
* @return array|bool
|
89 |
+
*/
|
90 |
+
public function uploadPicture($file) {
|
91 |
$this->initClipgeneratorApi();
|
92 |
|
93 |
return $this->clipgeneratorClient->uploadPicture($file);
|
94 |
}
|
95 |
|
96 |
+
/**
|
97 |
+
* Save the generated xml to the given video or creates a new video.
|
98 |
+
* @param $xml
|
99 |
+
* @return false
|
100 |
+
*/
|
101 |
+
public function saveVideo($xml) {
|
102 |
$this->initClipgeneratorApi();
|
103 |
|
104 |
return $this->clipgeneratorClient->saveVideo($xml);
|
105 |
}
|
106 |
|
107 |
/**
|
108 |
+
* Returns a array of the clipgenerator designs.
|
109 |
+
* @return array
|
110 |
*/
|
111 |
public function getDesigns() {
|
112 |
$this->initClipgeneratorApi();
|
116 |
}
|
117 |
|
118 |
/**
|
119 |
+
* Returns a array of the clipgenerator music.
|
120 |
+
* @return array
|
121 |
*/
|
122 |
public function getMusic() {
|
123 |
$this->initClipgeneratorApi();
|
127 |
}
|
128 |
|
129 |
/**
|
130 |
+
* Returns the current user if api credentials match.
|
131 |
+
* @return array
|
132 |
*/
|
133 |
public function getUser() {
|
134 |
$this->initClipgeneratorApi();
|
138 |
}
|
139 |
|
140 |
/**
|
141 |
+
* Activates the given products.
|
142 |
* @param $products
|
143 |
+
* @return void
|
144 |
*/
|
145 |
public function activateVideos($products) {
|
146 |
foreach ($products as $product_id) {
|
176 |
}
|
177 |
|
178 |
/**
|
179 |
+
* Deactivates the given products.
|
180 |
* @param $products
|
181 |
+
* @return void
|
182 |
*/
|
183 |
public function deactivateVideos($products) {
|
184 |
foreach ($products as $product_id) {
|
208 |
}
|
209 |
}
|
210 |
|
211 |
+
/**
|
212 |
+
* Creates a video by the given product with the product configuration,
|
213 |
+
* if there are no settings given or missing, it sets randomized value.
|
214 |
+
* @param $_product
|
215 |
+
* @return void
|
216 |
+
*/
|
217 |
+
public function createVideo($_product) {
|
218 |
$this->initClipgeneratorApi();
|
219 |
if ($_product->getData('clipgenerator_show') && $this->getUser()) {
|
220 |
$video = new Video($_product->getData('clipgenerator_title'));
|
app/code/community/Trivid/Clipgenerator/Model/Adminhtml/System/Config/Source/Designs.php
CHANGED
@@ -18,14 +18,13 @@
|
|
18 |
* @since File available since Release 1.0.0
|
19 |
*/
|
20 |
/**
|
21 |
-
*
|
22 |
-
*
|
23 |
*/
|
24 |
class Trivid_Clipgenerator_Model_Adminhtml_System_Config_Source_Designs {
|
25 |
|
26 |
/**
|
27 |
-
*
|
28 |
-
*
|
29 |
* @return array
|
30 |
*/
|
31 |
public function toOptionArray() {
|
@@ -43,8 +42,7 @@ class Trivid_Clipgenerator_Model_Adminhtml_System_Config_Source_Designs {
|
|
43 |
}
|
44 |
|
45 |
/**
|
46 |
-
*
|
47 |
-
*
|
48 |
* @return array
|
49 |
*/
|
50 |
public function toArray() {
|
18 |
* @since File available since Release 1.0.0
|
19 |
*/
|
20 |
/**
|
21 |
+
* Creates options for Clipgenerator Designs config value selection.
|
22 |
+
* @package Trivid
|
23 |
*/
|
24 |
class Trivid_Clipgenerator_Model_Adminhtml_System_Config_Source_Designs {
|
25 |
|
26 |
/**
|
27 |
+
* Creates options array of the designs.
|
|
|
28 |
* @return array
|
29 |
*/
|
30 |
public function toOptionArray() {
|
42 |
}
|
43 |
|
44 |
/**
|
45 |
+
* Creates options in "key-value" format of the designs.
|
|
|
46 |
* @return array
|
47 |
*/
|
48 |
public function toArray() {
|
app/code/community/Trivid/Clipgenerator/Model/Adminhtml/System/Config/Source/Musics.php
CHANGED
@@ -18,14 +18,13 @@
|
|
18 |
* @since File available since Release 1.0.0
|
19 |
*/
|
20 |
/**
|
21 |
-
* Used in creating options for Clipgenerator Music config value selection
|
22 |
-
*
|
23 |
*/
|
24 |
class Trivid_Clipgenerator_Model_Adminhtml_System_Config_Source_Musics {
|
25 |
|
26 |
/**
|
27 |
-
*
|
28 |
-
*
|
29 |
* @return array
|
30 |
*/
|
31 |
public function toOptionArray() {
|
@@ -43,8 +42,7 @@ class Trivid_Clipgenerator_Model_Adminhtml_System_Config_Source_Musics {
|
|
43 |
}
|
44 |
|
45 |
/**
|
46 |
-
*
|
47 |
-
*
|
48 |
* @return array
|
49 |
*/
|
50 |
public function toArray() {
|
18 |
* @since File available since Release 1.0.0
|
19 |
*/
|
20 |
/**
|
21 |
+
* Used in creating options for Clipgenerator Music config value selection.
|
22 |
+
* @package Trivid
|
23 |
*/
|
24 |
class Trivid_Clipgenerator_Model_Adminhtml_System_Config_Source_Musics {
|
25 |
|
26 |
/**
|
27 |
+
* Creates options array of the music.
|
|
|
28 |
* @return array
|
29 |
*/
|
30 |
public function toOptionArray() {
|
42 |
}
|
43 |
|
44 |
/**
|
45 |
+
* Creates options in "key-value" format of the music.
|
|
|
46 |
* @return array
|
47 |
*/
|
48 |
public function toArray() {
|
app/code/community/Trivid/Clipgenerator/Model/Mysql4/Setup.php
CHANGED
@@ -11,12 +11,15 @@
|
|
11 |
*
|
12 |
* @package Trivid
|
13 |
* @author Trivid GmbH <author@example.com>
|
14 |
-
* @author Another Author <another@example.com>
|
15 |
* @copyright 2013 Trivid GmbH
|
16 |
* @license http://www.clipgenerator.com/static/public/legal.php Clipgenerator - End User License Agreement
|
17 |
* @version 1.0.0
|
18 |
* @since File available since Release 1.0.0
|
19 |
*/
|
|
|
|
|
|
|
|
|
20 |
class Trivid_Clipgenerator_Model_Mysql4_Setup extends Mage_Catalog_Model_Resource_Eav_Mysql4_Setup {
|
21 |
|
22 |
}
|
11 |
*
|
12 |
* @package Trivid
|
13 |
* @author Trivid GmbH <author@example.com>
|
|
|
14 |
* @copyright 2013 Trivid GmbH
|
15 |
* @license http://www.clipgenerator.com/static/public/legal.php Clipgenerator - End User License Agreement
|
16 |
* @version 1.0.0
|
17 |
* @since File available since Release 1.0.0
|
18 |
*/
|
19 |
+
/**
|
20 |
+
* Class Trivid_Clipgenerator_Model_Mysql4_Setup
|
21 |
+
* @package Trivid
|
22 |
+
*/
|
23 |
class Trivid_Clipgenerator_Model_Mysql4_Setup extends Mage_Catalog_Model_Resource_Eav_Mysql4_Setup {
|
24 |
|
25 |
}
|
app/code/community/Trivid/Clipgenerator/Model/Observer.php
CHANGED
@@ -11,25 +11,44 @@
|
|
11 |
*
|
12 |
* @package Trivid
|
13 |
* @author Trivid GmbH <author@example.com>
|
14 |
-
* @author Another Author <another@example.com>
|
15 |
* @copyright 2013 Trivid GmbH
|
16 |
* @license http://www.clipgenerator.com/static/public/legal.php Clipgenerator - End User License Agreement
|
17 |
* @version 1.0.0
|
18 |
* @since File available since Release 1.0.0
|
19 |
*/
|
|
|
|
|
|
|
|
|
|
|
20 |
class Trivid_Clipgenerator_Model_Observer {
|
21 |
-
|
|
|
|
|
|
|
22 |
|
23 |
-
|
|
|
|
|
|
|
|
|
24 |
$_product = $observer->getProduct();
|
25 |
Mage::helper('clipgenerator')->createVideo($_product);
|
26 |
}
|
27 |
|
28 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
if (!$observer) {
|
30 |
return;
|
31 |
}
|
32 |
-
|
|
|
|
|
33 |
if (!Mage::getStoreConfig('advanced/modules_disable_output/' . self::MODULE_NAME) && Mage::helper('clipgenerator')->getUser() && $observer->getEvent()->getBlock()->getProduct()->getData('clipgenerator_video_id') && $observer->getEvent()->getBlock()->getProduct()->getData('clipgenerator_show')) {
|
34 |
$event = $observer->getEvent();
|
35 |
$product = $event->getProduct();
|
@@ -43,7 +62,12 @@ class Trivid_Clipgenerator_Model_Observer {
|
|
43 |
return $this;
|
44 |
}
|
45 |
|
46 |
-
|
|
|
|
|
|
|
|
|
|
|
47 |
$block = $observer->getEvent()->getBlock();
|
48 |
if (Mage::helper('clipgenerator')->getUser() && get_class($block) == 'Mage_Adminhtml_Block_Widget_Grid_Massaction' && $block->getRequest()->getControllerName() == 'catalog_product') {
|
49 |
$block->addItem('video_activate', array(
|
11 |
*
|
12 |
* @package Trivid
|
13 |
* @author Trivid GmbH <author@example.com>
|
|
|
14 |
* @copyright 2013 Trivid GmbH
|
15 |
* @license http://www.clipgenerator.com/static/public/legal.php Clipgenerator - End User License Agreement
|
16 |
* @version 1.0.0
|
17 |
* @since File available since Release 1.0.0
|
18 |
*/
|
19 |
+
/**
|
20 |
+
* Class Trivid_Clipgenerator_Model_Observer
|
21 |
+
*
|
22 |
+
* @package Trivid
|
23 |
+
*/
|
24 |
class Trivid_Clipgenerator_Model_Observer {
|
25 |
+
/**
|
26 |
+
* module name
|
27 |
+
*/
|
28 |
+
const MODULE_NAME = 'Trivid_Clipgenerator';
|
29 |
|
30 |
+
/**
|
31 |
+
* Creates or updates video after saving new product information
|
32 |
+
* @param Varien_Event_Observer $observer
|
33 |
+
*/
|
34 |
+
public function catalog_product_save_after(Varien_Event_Observer $observer) {
|
35 |
$_product = $observer->getProduct();
|
36 |
Mage::helper('clipgenerator')->createVideo($_product);
|
37 |
}
|
38 |
|
39 |
+
/**
|
40 |
+
* Inserts the video block html after the product description if activated in
|
41 |
+
* the magento clipgenerator configuration.
|
42 |
+
* @param Varien_Event_Observer $observer
|
43 |
+
* @return $this
|
44 |
+
*/
|
45 |
+
public function insertVideo(Varien_Event_Observer $observer = NULL) {
|
46 |
if (!$observer) {
|
47 |
return;
|
48 |
}
|
49 |
+
$block = Mage::getStoreConfig('clipgenerator/settings/clipgenerator_block', Mage::app()->getStore());
|
50 |
+
$currentBlock = $observer->getEvent()->getBlock()->getNameInLayout();
|
51 |
+
if (($block == $currentBlock || ($block == '' && 'product.description' == $currentBlock)) && Mage::getStoreConfig('clipgenerator/settings/clipgenerator_output', Mage::app()->getStore())) {
|
52 |
if (!Mage::getStoreConfig('advanced/modules_disable_output/' . self::MODULE_NAME) && Mage::helper('clipgenerator')->getUser() && $observer->getEvent()->getBlock()->getProduct()->getData('clipgenerator_video_id') && $observer->getEvent()->getBlock()->getProduct()->getData('clipgenerator_show')) {
|
53 |
$event = $observer->getEvent();
|
54 |
$product = $event->getProduct();
|
62 |
return $this;
|
63 |
}
|
64 |
|
65 |
+
/**
|
66 |
+
* Creates mass action options to the product list dropdown
|
67 |
+
* and sets the url which will be called after choosing the action.
|
68 |
+
* @param $observer
|
69 |
+
*/
|
70 |
+
public function addMassAction($observer) {
|
71 |
$block = $observer->getEvent()->getBlock();
|
72 |
if (Mage::helper('clipgenerator')->getUser() && get_class($block) == 'Mage_Adminhtml_Block_Widget_Grid_Massaction' && $block->getRequest()->getControllerName() == 'catalog_product') {
|
73 |
$block->addItem('video_activate', array(
|
app/code/community/Trivid/Clipgenerator/Model/Source/Designs.php
CHANGED
@@ -11,15 +11,22 @@
|
|
11 |
*
|
12 |
* @package Trivid
|
13 |
* @author Trivid GmbH <author@example.com>
|
14 |
-
* @author Another Author <another@example.com>
|
15 |
* @copyright 2013 Trivid GmbH
|
16 |
* @license http://www.clipgenerator.com/static/public/legal.php Clipgenerator - End User License Agreement
|
17 |
* @version 1.0.0
|
18 |
* @since File available since Release 1.0.0
|
19 |
*/
|
|
|
|
|
|
|
|
|
20 |
class Trivid_Clipgenerator_Model_Source_Designs extends Mage_Eav_Model_Entity_Attribute_Source_Abstract {
|
21 |
|
22 |
-
|
|
|
|
|
|
|
|
|
23 |
$designs = Mage::helper('clipgenerator')->getDesigns();
|
24 |
$designArr = array();
|
25 |
foreach ($designs as $k => $v) {
|
11 |
*
|
12 |
* @package Trivid
|
13 |
* @author Trivid GmbH <author@example.com>
|
|
|
14 |
* @copyright 2013 Trivid GmbH
|
15 |
* @license http://www.clipgenerator.com/static/public/legal.php Clipgenerator - End User License Agreement
|
16 |
* @version 1.0.0
|
17 |
* @since File available since Release 1.0.0
|
18 |
*/
|
19 |
+
/**
|
20 |
+
* Class Trivid_Clipgenerator_Model_Source_Designs
|
21 |
+
* @package Trivid
|
22 |
+
*/
|
23 |
class Trivid_Clipgenerator_Model_Source_Designs extends Mage_Eav_Model_Entity_Attribute_Source_Abstract {
|
24 |
|
25 |
+
/**
|
26 |
+
* Get all options of the clipgenerator designs.
|
27 |
+
* @return array
|
28 |
+
*/
|
29 |
+
public function getAllOptions() {
|
30 |
$designs = Mage::helper('clipgenerator')->getDesigns();
|
31 |
$designArr = array();
|
32 |
foreach ($designs as $k => $v) {
|
app/code/community/Trivid/Clipgenerator/Model/Source/Musics.php
CHANGED
@@ -11,15 +11,22 @@
|
|
11 |
*
|
12 |
* @package Trivid
|
13 |
* @author Trivid GmbH <author@example.com>
|
14 |
-
* @author Another Author <another@example.com>
|
15 |
* @copyright 2013 Trivid GmbH
|
16 |
* @license http://www.clipgenerator.com/static/public/legal.php Clipgenerator - End User License Agreement
|
17 |
* @version 1.0.0
|
18 |
* @since File available since Release 1.0.0
|
19 |
*/
|
|
|
|
|
|
|
|
|
20 |
class Trivid_Clipgenerator_Model_Source_Musics extends Mage_Eav_Model_Entity_Attribute_Source_Abstract {
|
21 |
|
22 |
-
|
|
|
|
|
|
|
|
|
23 |
$music = Mage::helper('clipgenerator')->getMusic();
|
24 |
$musicArr = array();
|
25 |
foreach ($music['songs'] as $k => $v) {
|
11 |
*
|
12 |
* @package Trivid
|
13 |
* @author Trivid GmbH <author@example.com>
|
|
|
14 |
* @copyright 2013 Trivid GmbH
|
15 |
* @license http://www.clipgenerator.com/static/public/legal.php Clipgenerator - End User License Agreement
|
16 |
* @version 1.0.0
|
17 |
* @since File available since Release 1.0.0
|
18 |
*/
|
19 |
+
/**
|
20 |
+
* Class Trivid_Clipgenerator_Model_Source_Musics
|
21 |
+
* @package Trivid
|
22 |
+
*/
|
23 |
class Trivid_Clipgenerator_Model_Source_Musics extends Mage_Eav_Model_Entity_Attribute_Source_Abstract {
|
24 |
|
25 |
+
/**
|
26 |
+
* Get all music options as array.
|
27 |
+
* @return array
|
28 |
+
*/
|
29 |
+
public function getAllOptions() {
|
30 |
$music = Mage::helper('clipgenerator')->getMusic();
|
31 |
$musicArr = array();
|
32 |
foreach ($music['songs'] as $k => $v) {
|
app/code/community/Trivid/Clipgenerator/controllers/Adminhtml/MassController.php
CHANGED
@@ -11,17 +11,34 @@
|
|
11 |
*
|
12 |
* @package Trivid
|
13 |
* @author Trivid GmbH <author@example.com>
|
14 |
-
* @author Another Author <another@example.com>
|
15 |
* @copyright 2013 Trivid GmbH
|
16 |
* @license http://www.clipgenerator.com/static/public/legal.php Clipgenerator - End User License Agreement
|
17 |
* @version 1.0.0
|
18 |
* @since File available since Release 1.0.0
|
19 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
class Trivid_Clipgenerator_Adminhtml_MassController extends Mage_Adminhtml_Controller_Action {
|
21 |
|
22 |
-
|
|
|
|
|
|
|
|
|
23 |
|
24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
$this->products = $this->getRequest()->getParam('product');
|
26 |
if (count($this->products) > 10) {
|
27 |
Mage::getSingleton('core/session')->addError(Mage::helper('clipgenerator')->__('Sie können maximal 10 Produkte gleichzeitig verarbeiten.'));
|
@@ -29,12 +46,24 @@ class Trivid_Clipgenerator_Adminhtml_MassController extends Mage_Adminhtml_Contr
|
|
29 |
}
|
30 |
}
|
31 |
|
32 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
$this->init();
|
34 |
Mage::helper('clipgenerator')->activateVideos($this->products);
|
35 |
$this->_redirectUrl(Mage::helper('adminhtml')->getUrl('adminhtml/catalog_product/index'));
|
36 |
}
|
37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
public function deactivateAction() {
|
39 |
$this->init();
|
40 |
Mage::helper('clipgenerator')->deactivateVideos($this->products);
|
11 |
*
|
12 |
* @package Trivid
|
13 |
* @author Trivid GmbH <author@example.com>
|
|
|
14 |
* @copyright 2013 Trivid GmbH
|
15 |
* @license http://www.clipgenerator.com/static/public/legal.php Clipgenerator - End User License Agreement
|
16 |
* @version 1.0.0
|
17 |
* @since File available since Release 1.0.0
|
18 |
*/
|
19 |
+
/**
|
20 |
+
* Class Trivid_Clipgenerator_Adminhtml_MassController
|
21 |
+
*
|
22 |
+
* catches mass instruction to activate or deactivate at least 10 product
|
23 |
+
* videos. After success the methods will return to list view.
|
24 |
+
* @package Trivid
|
25 |
+
*/
|
26 |
class Trivid_Clipgenerator_Adminhtml_MassController extends Mage_Adminhtml_Controller_Action {
|
27 |
|
28 |
+
/**
|
29 |
+
* array of send products to mass controller.
|
30 |
+
* @var array $products
|
31 |
+
*/
|
32 |
+
protected $products;
|
33 |
|
34 |
+
/**
|
35 |
+
* initializes the class, checks if the count of the given products
|
36 |
+
* is higher than the expected size of 10 and throws an error if
|
37 |
+
* happens.
|
38 |
+
*
|
39 |
+
* @return void
|
40 |
+
*/
|
41 |
+
protected function init() {
|
42 |
$this->products = $this->getRequest()->getParam('product');
|
43 |
if (count($this->products) > 10) {
|
44 |
Mage::getSingleton('core/session')->addError(Mage::helper('clipgenerator')->__('Sie können maximal 10 Produkte gleichzeitig verarbeiten.'));
|
46 |
}
|
47 |
}
|
48 |
|
49 |
+
/**
|
50 |
+
* activates the given products by calling the clipgenerator helper
|
51 |
+
* which handle the activation request.
|
52 |
+
*
|
53 |
+
* @return void
|
54 |
+
*/
|
55 |
+
public function activateAction() {
|
56 |
$this->init();
|
57 |
Mage::helper('clipgenerator')->activateVideos($this->products);
|
58 |
$this->_redirectUrl(Mage::helper('adminhtml')->getUrl('adminhtml/catalog_product/index'));
|
59 |
}
|
60 |
|
61 |
+
/**
|
62 |
+
* deactivates the given products by calling the clipgenerator helper
|
63 |
+
* which handle the deactivation request.
|
64 |
+
*
|
65 |
+
* @return void
|
66 |
+
*/
|
67 |
public function deactivateAction() {
|
68 |
$this->init();
|
69 |
Mage::helper('clipgenerator')->deactivateVideos($this->products);
|
app/code/community/Trivid/Clipgenerator/controllers/Adminhtml/OrderformController.php
CHANGED
@@ -11,14 +11,26 @@
|
|
11 |
*
|
12 |
* @package Trivid
|
13 |
* @author Trivid GmbH <author@example.com>
|
14 |
-
* @author Another Author <another@example.com>
|
15 |
* @copyright 2013 Trivid GmbH
|
16 |
* @license http://www.clipgenerator.com/static/public/legal.php Clipgenerator - End User License Agreement
|
17 |
* @version 1.0.0
|
18 |
* @since File available since Release 1.0.0
|
19 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
class Trivid_Clipgenerator_Adminhtml_OrderformController extends Mage_Adminhtml_Controller_Action {
|
21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
$post = $this->getRequest()->getPost();
|
23 |
if($post['isAjax']) {
|
24 |
if($post['apiUser'] && $post['apiSecret']) {
|
11 |
*
|
12 |
* @package Trivid
|
13 |
* @author Trivid GmbH <author@example.com>
|
|
|
14 |
* @copyright 2013 Trivid GmbH
|
15 |
* @license http://www.clipgenerator.com/static/public/legal.php Clipgenerator - End User License Agreement
|
16 |
* @version 1.0.0
|
17 |
* @since File available since Release 1.0.0
|
18 |
*/
|
19 |
+
/**
|
20 |
+
* Class Trivid_Clipgenerator_Adminhtml_OrderformController
|
21 |
+
*
|
22 |
+
* Handles the orderform view and request.
|
23 |
+
* @package Trivid
|
24 |
+
*/
|
25 |
class Trivid_Clipgenerator_Adminhtml_OrderformController extends Mage_Adminhtml_Controller_Action {
|
26 |
+
/**
|
27 |
+
* User get the orderform if the api
|
28 |
+
* credentials not set anyway. On submitting the form to Trivid order web-
|
29 |
+
* service it receives the result via ajax and sets the return to the
|
30 |
+
* magento configuration.
|
31 |
+
* @return void
|
32 |
+
*/
|
33 |
+
public function indexAction() {
|
34 |
$post = $this->getRequest()->getPost();
|
35 |
if($post['isAjax']) {
|
36 |
if($post['apiUser'] && $post['apiSecret']) {
|
app/code/community/Trivid/Clipgenerator/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Trivid_Clipgenerator>
|
5 |
-
<version>1.0.
|
6 |
</Trivid_Clipgenerator>
|
7 |
</modules>
|
8 |
<global>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Trivid_Clipgenerator>
|
5 |
+
<version>1.0.3</version>
|
6 |
</Trivid_Clipgenerator>
|
7 |
</modules>
|
8 |
<global>
|
app/code/community/Trivid/Clipgenerator/etc/system.xml
CHANGED
@@ -104,6 +104,14 @@
|
|
104 |
<show_in_website>1</show_in_website>
|
105 |
<show_in_store>1</show_in_store>
|
106 |
</clipgenerator_output>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
107 |
</fields>
|
108 |
</settings>
|
109 |
</groups>
|
104 |
<show_in_website>1</show_in_website>
|
105 |
<show_in_store>1</show_in_store>
|
106 |
</clipgenerator_output>
|
107 |
+
<clipgenerator_block translate="label">
|
108 |
+
<label>Ausgabe Block</label>
|
109 |
+
<frontend_type>text</frontend_type>
|
110 |
+
<sort_order>50</sort_order>
|
111 |
+
<show_in_default>1</show_in_default>
|
112 |
+
<show_in_website>1</show_in_website>
|
113 |
+
<show_in_store>1</show_in_store>
|
114 |
+
</clipgenerator_block>
|
115 |
</fields>
|
116 |
</settings>
|
117 |
</groups>
|
app/code/community/Trivid/Clipgenerator/sql/clipgenerator_setup/mysql4-install-1.0.2.php
CHANGED
@@ -11,12 +11,14 @@
|
|
11 |
*
|
12 |
* @package Trivid
|
13 |
* @author Trivid GmbH <author@example.com>
|
14 |
-
* @author Another Author <another@example.com>
|
15 |
* @copyright 2013 Trivid GmbH
|
16 |
* @license http://www.clipgenerator.com/static/public/legal.php Clipgenerator - End User License Agreement
|
17 |
* @version 1.0.0
|
18 |
* @since File available since Release 1.0.0
|
19 |
*/
|
|
|
|
|
|
|
20 |
$installer = $this;
|
21 |
$installer->startSetup();
|
22 |
$installer->addAttribute(Mage_Catalog_Model_Product::ENTITY, 'clipgenerator_title', array(
|
11 |
*
|
12 |
* @package Trivid
|
13 |
* @author Trivid GmbH <author@example.com>
|
|
|
14 |
* @copyright 2013 Trivid GmbH
|
15 |
* @license http://www.clipgenerator.com/static/public/legal.php Clipgenerator - End User License Agreement
|
16 |
* @version 1.0.0
|
17 |
* @since File available since Release 1.0.0
|
18 |
*/
|
19 |
+
/**
|
20 |
+
* Creates all necessary product attributes.
|
21 |
+
*/
|
22 |
$installer = $this;
|
23 |
$installer->startSetup();
|
24 |
$installer->addAttribute(Mage_Catalog_Model_Product::ENTITY, 'clipgenerator_title', array(
|
app/code/community/Trivid/Clipgenerator/sql/clipgenerator_setup/mysql4-install-1.0.3.php
ADDED
@@ -0,0 +1,202 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Install Script
|
4 |
+
*
|
5 |
+
* PHP version 5
|
6 |
+
*
|
7 |
+
* LICENSE: is available through the world-wide-web at the following URI:
|
8 |
+
* http://www.clipgenerator.com/static/public/legal.php If you did not receive a copy of
|
9 |
+
* the Clipgenerator - End User License Agreement and are unable to obtain it through the web, please
|
10 |
+
* send a note to info@trivid.com so we can mail you a copy immediately.
|
11 |
+
*
|
12 |
+
* @package Trivid
|
13 |
+
* @author Trivid GmbH <author@example.com>
|
14 |
+
* @copyright 2013 Trivid GmbH
|
15 |
+
* @license http://www.clipgenerator.com/static/public/legal.php Clipgenerator - End User License Agreement
|
16 |
+
* @version 1.0.0
|
17 |
+
* @since File available since Release 1.0.0
|
18 |
+
*/
|
19 |
+
/**
|
20 |
+
* Creates all necessary product attributes.
|
21 |
+
*/
|
22 |
+
$installer = $this;
|
23 |
+
$installer->startSetup();
|
24 |
+
$installer->addAttribute(Mage_Catalog_Model_Product::ENTITY, 'clipgenerator_title', array(
|
25 |
+
'group' => 'Clipgenerator',
|
26 |
+
'input' => 'text',
|
27 |
+
'type' => 'varchar',
|
28 |
+
'label' => 'Video Titel',
|
29 |
+
'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_WEBSITE,
|
30 |
+
'visible' => TRUE,
|
31 |
+
'required' => FALSE,
|
32 |
+
'user_defined' => TRUE,
|
33 |
+
'searchable' => FALSE,
|
34 |
+
'filterable' => FALSE,
|
35 |
+
'comparable' => FALSE,
|
36 |
+
'visible_on_front' => FALSE,
|
37 |
+
'unique' => FALSE,
|
38 |
+
'apply_to' => 'simple,configurable,bundle,grouped',
|
39 |
+
'is_configurable' => FALSE,
|
40 |
+
));
|
41 |
+
$installer->addAttribute(Mage_Catalog_Model_Product::ENTITY, 'clipgenerator_description', array(
|
42 |
+
'group' => 'Clipgenerator',
|
43 |
+
'input' => 'textarea',
|
44 |
+
'type' => 'varchar',
|
45 |
+
'label' => 'Beschreibung',
|
46 |
+
'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_WEBSITE,
|
47 |
+
'visible' => TRUE,
|
48 |
+
'required' => FALSE,
|
49 |
+
'user_defined' => TRUE,
|
50 |
+
'searchable' => FALSE,
|
51 |
+
'filterable' => FALSE,
|
52 |
+
'comparable' => FALSE,
|
53 |
+
'visible_on_front' => FALSE,
|
54 |
+
'unique' => FALSE,
|
55 |
+
'apply_to' => 'simple,configurable,bundle,grouped',
|
56 |
+
'is_configurable' => FALSE,
|
57 |
+
));
|
58 |
+
$installer->addAttribute(Mage_Catalog_Model_Product::ENTITY, 'clipgenerator_keywords', array(
|
59 |
+
'group' => 'Clipgenerator',
|
60 |
+
'input' => 'text',
|
61 |
+
'type' => 'varchar',
|
62 |
+
'label' => 'Video Keywords',
|
63 |
+
'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_WEBSITE,
|
64 |
+
'visible' => TRUE,
|
65 |
+
'required' => FALSE,
|
66 |
+
'user_defined' => TRUE,
|
67 |
+
'searchable' => FALSE,
|
68 |
+
'filterable' => FALSE,
|
69 |
+
'comparable' => FALSE,
|
70 |
+
'visible_on_front' => FALSE,
|
71 |
+
'unique' => FALSE,
|
72 |
+
'apply_to' => 'simple,configurable,bundle,grouped',
|
73 |
+
'is_configurable' => FALSE,
|
74 |
+
));
|
75 |
+
$installer->addAttribute(Mage_Catalog_Model_Product::ENTITY, 'clipgenerator_logo', array(
|
76 |
+
'group' => 'Clipgenerator',
|
77 |
+
'input' => 'text',
|
78 |
+
'type' => 'varchar',
|
79 |
+
'label' => 'Video Logo URL',
|
80 |
+
'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_WEBSITE,
|
81 |
+
'visible' => TRUE,
|
82 |
+
'required' => FALSE,
|
83 |
+
'user_defined' => TRUE,
|
84 |
+
'searchable' => FALSE,
|
85 |
+
'filterable' => FALSE,
|
86 |
+
'comparable' => FALSE,
|
87 |
+
'visible_on_front' => FALSE,
|
88 |
+
'unique' => FALSE,
|
89 |
+
'apply_to' => 'simple,configurable,bundle,grouped',
|
90 |
+
'is_configurable' => FALSE,
|
91 |
+
));
|
92 |
+
$installer->addAttribute(Mage_Catalog_Model_Product::ENTITY, 'clipgenerator_show', array(
|
93 |
+
'group' => 'Clipgenerator',
|
94 |
+
'input' => 'boolean',
|
95 |
+
'type' => 'int',
|
96 |
+
'default' => 0,
|
97 |
+
'label' => 'Video ausgeben',
|
98 |
+
'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_WEBSITE,
|
99 |
+
'visible' => TRUE,
|
100 |
+
'required' => FALSE,
|
101 |
+
'user_defined' => TRUE,
|
102 |
+
'searchable' => FALSE,
|
103 |
+
'filterable' => FALSE,
|
104 |
+
'comparable' => FALSE,
|
105 |
+
'visible_on_front' => FALSE,
|
106 |
+
'unique' => FALSE,
|
107 |
+
'apply_to' => 'simple,configurable,bundle,grouped',
|
108 |
+
'is_configurable' => FALSE,
|
109 |
+
));
|
110 |
+
$installer->addAttribute(Mage_Catalog_Model_Product::ENTITY, 'clipgenerator_design', array(
|
111 |
+
'group' => 'Clipgenerator',
|
112 |
+
'input' => 'select',
|
113 |
+
'type' => 'varchar',
|
114 |
+
'label' => 'Design',
|
115 |
+
'source' => 'trivid_clipgenerator_model_source_designs',
|
116 |
+
'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_WEBSITE,
|
117 |
+
'visible' => TRUE,
|
118 |
+
'required' => FALSE,
|
119 |
+
'user_defined' => TRUE,
|
120 |
+
'searchable' => FALSE,
|
121 |
+
'filterable' => FALSE,
|
122 |
+
'comparable' => FALSE,
|
123 |
+
'visible_on_front' => FALSE,
|
124 |
+
'unique' => FALSE,
|
125 |
+
'apply_to' => 'simple,configurable,bundle,grouped',
|
126 |
+
'is_configurable' => FALSE,
|
127 |
+
));
|
128 |
+
$installer->addAttribute(Mage_Catalog_Model_Product::ENTITY, 'clipgenerator_images_select', array(
|
129 |
+
'group' => 'Clipgenerator',
|
130 |
+
'type' => 'text',
|
131 |
+
'input' => 'text',
|
132 |
+
'backend' => '',
|
133 |
+
'input_renderer' => 'clipgenerator/catalog_product_helper_form_images', //definition of renderer
|
134 |
+
'label' => 'Bildauswahl',
|
135 |
+
'class' => '',
|
136 |
+
'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_WEBSITE,
|
137 |
+
'visible' => TRUE,
|
138 |
+
'required' => FALSE,
|
139 |
+
'user_defined' => TRUE,
|
140 |
+
'searchable' => FALSE,
|
141 |
+
'filterable' => FALSE,
|
142 |
+
'comparable' => FALSE,
|
143 |
+
'visible_on_front' => FALSE,
|
144 |
+
'unique' => FALSE,
|
145 |
+
'apply_to' => 'simple,configurable,bundle,grouped',
|
146 |
+
'is_configurable' => FALSE,
|
147 |
+
));
|
148 |
+
$installer->addAttribute(Mage_Catalog_Model_Product::ENTITY, 'clipgenerator_song', array(
|
149 |
+
'group' => 'Clipgenerator',
|
150 |
+
'input' => 'select',
|
151 |
+
'type' => 'varchar',
|
152 |
+
'label' => 'Musik',
|
153 |
+
'source' => 'trivid_clipgenerator_model_source_musics',
|
154 |
+
'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_WEBSITE,
|
155 |
+
'visible' => TRUE,
|
156 |
+
'required' => FALSE,
|
157 |
+
'user_defined' => TRUE,
|
158 |
+
'searchable' => FALSE,
|
159 |
+
'filterable' => FALSE,
|
160 |
+
'comparable' => FALSE,
|
161 |
+
'visible_on_front' => FALSE,
|
162 |
+
'unique' => FALSE,
|
163 |
+
'apply_to' => 'simple,configurable,bundle,grouped',
|
164 |
+
'is_configurable' => FALSE,
|
165 |
+
));
|
166 |
+
$installer->addAttribute(Mage_Catalog_Model_Product::ENTITY, 'clipgenerator_music_select', array(
|
167 |
+
'group' => 'Clipgenerator',
|
168 |
+
'type' => 'varchar',
|
169 |
+
'backend' => '',
|
170 |
+
'input_renderer' => 'clipgenerator/catalog_product_helper_form_music', //definition of renderer
|
171 |
+
'label' => 'erweiterte Auswahl',
|
172 |
+
'class' => '',
|
173 |
+
'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_WEBSITE,
|
174 |
+
'visible' => TRUE,
|
175 |
+
'required' => FALSE,
|
176 |
+
'user_defined' => TRUE,
|
177 |
+
'searchable' => FALSE,
|
178 |
+
'filterable' => FALSE,
|
179 |
+
'comparable' => FALSE,
|
180 |
+
'visible_on_front' => FALSE,
|
181 |
+
'unique' => FALSE,
|
182 |
+
'apply_to' => 'simple,configurable,bundle,grouped',
|
183 |
+
'is_configurable' => FALSE,
|
184 |
+
));
|
185 |
+
$installer->addAttribute(Mage_Catalog_Model_Product::ENTITY, 'clipgenerator_video_id', array(
|
186 |
+
'group' => 'Clipgenerator',
|
187 |
+
'input' => 'text',
|
188 |
+
'type' => 'varchar',
|
189 |
+
'label' => 'Video ID',
|
190 |
+
'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_WEBSITE,
|
191 |
+
'visible' => TRUE,
|
192 |
+
'required' => FALSE,
|
193 |
+
'user_defined' => TRUE,
|
194 |
+
'searchable' => FALSE,
|
195 |
+
'filterable' => FALSE,
|
196 |
+
'comparable' => FALSE,
|
197 |
+
'visible_on_front' => FALSE,
|
198 |
+
'unique' => FALSE,
|
199 |
+
'apply_to' => 'simple,configurable,bundle,grouped',
|
200 |
+
'is_configurable' => FALSE,
|
201 |
+
));
|
202 |
+
$installer->endSetup();
|
app/design/adminhtml/default/default/template/clipgenerator/orderform.phtml
CHANGED
@@ -210,9 +210,9 @@
|
|
210 |
<div>
|
211 |
<label>Name (Pflichtfeld)</label><br />
|
212 |
<input name="name" type="text" /><br />
|
213 |
-
<label>Firma (
|
214 |
<input name="company" type="text" /><br />
|
215 |
-
<label>USt-IdNr (
|
216 |
<input name="ust-idnr" type="text" /><br />
|
217 |
<label>Adresse (Pflichtfeld)</label><br />
|
218 |
<input name="address" type="text" /><br />
|
210 |
<div>
|
211 |
<label>Name (Pflichtfeld)</label><br />
|
212 |
<input name="name" type="text" /><br />
|
213 |
+
<label>Firma (Pflichtfeld)</label><br />
|
214 |
<input name="company" type="text" /><br />
|
215 |
+
<label>USt-IdNr (Pflichtfeld)</label><br />
|
216 |
<input name="ust-idnr" type="text" /><br />
|
217 |
<label>Adresse (Pflichtfeld)</label><br />
|
218 |
<input name="address" type="text" /><br />
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>clipgenerator</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.clipgenerator.com/static/public/legal.php">Clipgenerator - End User License Agreement</license>
|
7 |
<channel>community</channel>
|
@@ -55,11 +55,12 @@
|
|
55 |
Eine Anleitung zur Nutzung des Clipgenerator™-Plugin für Magento können Sie <a href="http://www.trivid.com/wp-content/uploads/2013/10/clipgenerator-plugin-handbuch.pdf">hier</a> herunterladen.</description>
|
56 |
<notes>* Version 1.0.0
|
57 |
* Bugfix Musikwahl v1.0.1
|
58 |
-
* PHP Version 5.2.0 - 6.0.0
|
|
|
59 |
<authors><author><name>Trivid GmbH</name><user>trivid_gmbh</user><email>magento@clipgenerator.com</email></author></authors>
|
60 |
-
<date>2013-11-
|
61 |
-
<time>
|
62 |
-
<contents><target name="magecommunity"><dir><dir name="Trivid"><dir name="Clipgenerator"><dir><dir name="Adminhtml"><file name="MassController.php" hash="
|
63 |
<compatible/>
|
64 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
65 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>clipgenerator</name>
|
4 |
+
<version>1.0.3</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.clipgenerator.com/static/public/legal.php">Clipgenerator - End User License Agreement</license>
|
7 |
<channel>community</channel>
|
55 |
Eine Anleitung zur Nutzung des Clipgenerator™-Plugin für Magento können Sie <a href="http://www.trivid.com/wp-content/uploads/2013/10/clipgenerator-plugin-handbuch.pdf">hier</a> herunterladen.</description>
|
56 |
<notes>* Version 1.0.0
|
57 |
* Bugfix Musikwahl v1.0.1
|
58 |
+
* PHP Version 5.2.0 - 6.0.0
|
59 |
+
* Advanced Block Config v1.0.3</notes>
|
60 |
<authors><author><name>Trivid GmbH</name><user>trivid_gmbh</user><email>magento@clipgenerator.com</email></author></authors>
|
61 |
+
<date>2013-11-17</date>
|
62 |
+
<time>19:45:03</time>
|
63 |
+
<contents><target name="magecommunity"><dir><dir name="Trivid"><dir name="Clipgenerator"><dir><dir name="Adminhtml"><file name="MassController.php" hash="6ee78058e7ecef20cff7b9b14aec6131"/><file name="OrderformController.php" hash="69234d0239b30ba092641c4deba5c22f"/></dir><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="Contingentlabel.php" hash="d3ba207e940802c31e75d6940c664561"/><file name="Musiclightbox.php" hash="bdd229f38fdd2ffc837a3d978bdd419b"/></dir></dir></dir></dir></dir><dir name="Catalog"><dir name="Product"><dir name="Helper"><dir name="Form"><file name="Images.php" hash="27d7bbc947da60bbe8f83c7d60f295a4"/><file name="Music.php" hash="a07cee46c2a10843f0a80c8bd199f4c8"/><file name="music.php" hash="72c1b7433c635ac961b2deea89911787"/></dir></dir></dir></dir><file name="InsertVideo.php" hash="0936693cfb29ae7e7cb0fe94db8cd3e8"/><file name="Video.php" hash="fee08bb91a35db2f1e33f7c07ed7ad4c"/></dir><dir name="Helper"><file name="Data.php" hash="f209fbcc02d4ef523cb349098976d960"/></dir><dir name="Model"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Source"><file name="Designs.php" hash="955468f1a5c8ff3547694f621a7a2366"/><file name="Musics.php" hash="9ccb34ae21272a56523f10032321dc47"/></dir></dir></dir></dir><dir name="Mysql4"><file name="Setup.php" hash="b45fbf3af0ed9282b0e0e1c290576a30"/></dir><file name="Observer.php" hash="7bcb31af662b40a2b9f69c2904f3ac53"/><dir name="Source"><file name="Designs.php" hash="16a43bd168a2a1243797e0b8c0eb66fc"/><file name="Musics.php" hash="37ca0df27fea9567949a53e6fd8147ac"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="MassController.php" hash="afd9ffdff3470af46f8a05d56161c284"/><file name="OrderformController.php" hash="69234d0239b30ba092641c4deba5c22f"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="da3eb20bfd72ff9e0e5000dcb49f5fd8"/><file name="config.xml" hash="4d49048f917b76f7699ac089ac46a833"/><file name="system.xml" hash="c8892a53d790f033ccba8f9b7a1f8492"/></dir><dir name="lib"><dir name="clipgenerator"><file name="ClipgeneratorClient.php" hash="ee3da37d7947591dc3fc6886d8dc710d"/><file name="Frame.php" hash="9455ee512fed22039d7700b9db5b50ed"/><file name="Logo.php" hash="21c9732369bc983549cbfe525e8a327c"/><file name="LowerThird.php" hash="bfe8a3bbc65292d09dcb7384ac791413"/><file name="Picture.php" hash="b8b29fe5e1106f05281d83dc90888461"/><file name="Video.php" hash="95176448517ba383a5d30a0108dd2f49"/></dir></dir><dir name="sql"><dir name="clipgenerator_setup"><file name="mysql4-install-0.1.0.php" hash="7d8c159488c3095c2fe26ec9b9691d41"/><file name="mysql4-install-1.0.2.php" hash="54a2e97737f3e0ca9fbd6b7467534079"/><file name="mysql4-install-1.0.3.php" hash="54a2e97737f3e0ca9fbd6b7467534079"/></dir></dir></dir></dir></dir></dir></target><target name="magedesign"><dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="clipgenerator"><file name="contingent.phtml" hash="f236a5ab0bdedf11ad6bacddd32a433b"/><file name="images.phtml" hash="6cfe794918dfcd7c9ca19d97981d0486"/><file name="music.phtml" hash="392f14f526c0c17211d0a1fd5d9043d8"/><file name="orderform.phtml" hash="1ad10fa641632b6e6b152ecb3043d264"/></dir></dir><dir name="layout"><file name="clipgenerator.xml" hash="7070a0cd1223aabd72590fe3134be051"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir><dir name="de_DE"><file name="Trivid_Clipgenerator.csv" hash="7cb7b98981d24204016b54c821011d44"/></dir></dir></target><target name="mageetc"><dir><dir name="modules"><file name="Trivid_Clipgenerator.xml" hash="63ce89126d102aa43d975022570107cf"/></dir></dir></target></contents>
|
64 |
<compatible/>
|
65 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
66 |
</package>
|