clipgenerator - Version 1.0.5

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
* fixes loading api resp. 1.0.4
* v3 Player 1.0.5

Download this release

Release Info

Developer Trivid GmbH
Extension clipgenerator
Version 1.0.5
Comparing to
See all releases


Code changes from version 1.0.3 to 1.0.5

app/code/community/Trivid/Clipgenerator/Block/InsertVideo.php CHANGED
@@ -69,7 +69,7 @@ class Trivid_Clipgenerator_Block_InsertVideo extends Mage_Core_Block_Text {
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>';
73
  }
74
 
75
  return $html;
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/v3/Player.swf?autoplay=off&webcartURL=http%3A%2F%2Fcg-v3.clipgenerator.com%2FgetWebcart%3FvideoId%3D' . $this->videoId . '"></iframe>';
73
  }
74
 
75
  return $html;
app/code/community/Trivid/Clipgenerator/Block/Video.php CHANGED
@@ -32,7 +32,7 @@ class Trivid_Clipgenerator_Block_Video extends Mage_Core_Block_Text {
32
  $video = $_product->getData('clipgenerator_video_id');
33
  $show = $_product->getData('clipgenerator_show');
34
  if ($video && $show) {
35
- $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' . $video . '"></iframe>';
36
  }
37
 
38
  return $html;
32
  $video = $_product->getData('clipgenerator_video_id');
33
  $show = $_product->getData('clipgenerator_show');
34
  if ($video && $show) {
35
+ $html = '<iframe id="clipgeneratorvideo" style="width:400px; height:300px; border:0px none;" src="http://data.clipgenerator.com/player/v3/Player.swf?autoplay=off&webcartURL=http%3A%2F%2Fcg-v3.clipgenerator.com%2FgetWebcart%3FvideoId%3D' . $video . '"></iframe>';
36
  }
37
 
38
  return $html;
app/code/community/Trivid/Clipgenerator/Helper/Data.php CHANGED
@@ -164,6 +164,7 @@ class Trivid_Clipgenerator_Helper_Data extends Mage_Core_Helper_Abstract {
164
  }
165
  if (!empty($success)) {
166
  $count = 0;
 
167
  foreach ($success as $id) {
168
  $productArray[$id]->setData('clipgenerator_show', 1);
169
  $productArray[$id]->save();
@@ -197,6 +198,7 @@ class Trivid_Clipgenerator_Helper_Data extends Mage_Core_Helper_Abstract {
197
  }
198
  if (!empty($success)) {
199
  $count = 0;
 
200
  foreach ($success as $id) {
201
  $productArray[$id]->setData('clipgenerator_show', 0);
202
  $productArray[$id]->save();
@@ -319,6 +321,7 @@ class Trivid_Clipgenerator_Helper_Data extends Mage_Core_Helper_Abstract {
319
  }
320
  $videoXml = $video->asXml();
321
  $videoId = $this->clipgeneratorClient->saveVideo($videoXml);
 
322
  if (!$_product->getData('clipgenerator_video_id')) {
323
  $_product->setData('clipgenerator_video_id', $videoId);
324
  $_product->save();
164
  }
165
  if (!empty($success)) {
166
  $count = 0;
167
+ Mage::app()->setCurrentStore(Mage::getModel('core/store')->load(Mage_Core_Model_App::ADMIN_STORE_ID));
168
  foreach ($success as $id) {
169
  $productArray[$id]->setData('clipgenerator_show', 1);
170
  $productArray[$id]->save();
198
  }
199
  if (!empty($success)) {
200
  $count = 0;
201
+ Mage::app()->setCurrentStore(Mage::getModel('core/store')->load(Mage_Core_Model_App::ADMIN_STORE_ID));
202
  foreach ($success as $id) {
203
  $productArray[$id]->setData('clipgenerator_show', 0);
204
  $productArray[$id]->save();
321
  }
322
  $videoXml = $video->asXml();
323
  $videoId = $this->clipgeneratorClient->saveVideo($videoXml);
324
+ Mage::app()->setCurrentStore(Mage::getModel('core/store')->load(Mage_Core_Model_App::ADMIN_STORE_ID));
325
  if (!$_product->getData('clipgenerator_video_id')) {
326
  $_product->setData('clipgenerator_video_id', $videoId);
327
  $_product->save();
app/code/community/Trivid/Clipgenerator/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Trivid_Clipgenerator>
5
- <version>1.0.3</version>
6
  </Trivid_Clipgenerator>
7
  </modules>
8
  <global>
2
  <config>
3
  <modules>
4
  <Trivid_Clipgenerator>
5
+ <version>1.0.5</version>
6
  </Trivid_Clipgenerator>
7
  </modules>
8
  <global>
app/code/community/Trivid/Clipgenerator/sql/clipgenerator_setup/mysql4-install-1.0.4.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.4
17
+ * @since File available since Release 1.0.4
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/code/community/Trivid/Clipgenerator/sql/clipgenerator_setup/mysql4-install-1.0.5.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.5
17
+ * @since File available since Release 1.0.5
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();
package.xml CHANGED
@@ -1,7 +1,7 @@
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>
@@ -56,11 +56,13 @@ Eine Anleitung zur Nutzung des Clipgenerator&#x2122;-Plugin f&#xFC;r Magento k&#
56
  <notes>* Version 1.0.0&#xD;
57
  * Bugfix Musikwahl v1.0.1&#xD;
58
  * PHP Version 5.2.0 - 6.0.0&#xD;
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>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>clipgenerator</name>
4
+ <version>1.0.5</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>
56
  <notes>* Version 1.0.0&#xD;
57
  * Bugfix Musikwahl v1.0.1&#xD;
58
  * PHP Version 5.2.0 - 6.0.0&#xD;
59
+ * Advanced Block Config v1.0.3&#xD;
60
+ * fixes loading api resp. 1.0.4&#xD;
61
+ * v3 Player 1.0.5</notes>
62
  <authors><author><name>Trivid GmbH</name><user>trivid_gmbh</user><email>magento@clipgenerator.com</email></author></authors>
63
+ <date>2013-11-19</date>
64
+ <time>18:44:35</time>
65
+ <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="e0cb90add30fc0cb1ae01e784f62ccaf"/><file name="Video.php" hash="e0062bc6ecce800549805166b36d25d6"/></dir><dir name="Helper"><file name="Data.php" hash="3d367a2e556e30edf872f9d9395689fc"/></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="a7218da86abf0da95c1761ba446edaa3"/><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"/><file name="mysql4-install-1.0.4.php" hash="2fcbae17231e8f27cf629b49c563c962"/><file name="mysql4-install-1.0.5.php" hash="010aa779510cf5d4695943c594205b43"/></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>
66
  <compatible/>
67
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
68
  </package>