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
* player bg color, preview&embed code 1.0.6
Download this release
Release Info
Developer | Trivid GmbH |
Extension | clipgenerator |
Version | 1.0.6 |
Comparing to | |
See all releases |
Code changes from version 1.0.5 to 1.0.6
- app/code/community/Trivid/Clipgenerator/Helper/Data.php +6 -1
- app/code/community/Trivid/Clipgenerator/etc/config.xml +1 -1
- app/code/community/Trivid/Clipgenerator/etc/system.xml +17 -0
- app/code/community/Trivid/Clipgenerator/sql/clipgenerator_setup/mysql4-install-1.0.6.php +202 -0
- app/design/adminhtml/default/default/template/clipgenerator/contingent.phtml +7 -1
- app/design/adminhtml/default/default/template/clipgenerator/images.phtml +15 -0
- app/design/adminhtml/default/default/template/clipgenerator/music.phtml +13 -0
- package.xml +6 -5
app/code/community/Trivid/Clipgenerator/Helper/Data.php
CHANGED
@@ -242,6 +242,8 @@ class Trivid_Clipgenerator_Helper_Data extends Mage_Core_Helper_Abstract {
|
|
242 |
$video->title = $_product->getData('clipgenerator_title') ? $_product->getData('clipgenerator_title') : $_product->getData('name');
|
243 |
$video->description = $_product->getData('clipgenerator_description') ? $_product->getData('clipgenerator_description') : $_product->getData('description');
|
244 |
$logoUrl = $_product->getData('clipgenerator_logo') ? $_product->getData('clipgenerator_logo') : Mage::getStoreConfig('clipgenerator/settings/clipgenerator_logo_url', Mage::app()->getStore());
|
|
|
|
|
245 |
if ($logoUrl) {
|
246 |
if ($logo = $this->clipgeneratorClient->uploadLogo($logoUrl)) {
|
247 |
$logoId = $logo['id'];
|
@@ -249,7 +251,7 @@ class Trivid_Clipgenerator_Helper_Data extends Mage_Core_Helper_Abstract {
|
|
249 |
$logo = Logo::fromXml('<logo width="0.2" height="0.2" alpha="1">
|
250 |
<id>' . $logoId . '</id>
|
251 |
<url>' . htmlspecialchars($logoUrl) . '</url>
|
252 |
-
<link
|
253 |
<position verticalAlign="top" horizontalAlign="right" />
|
254 |
<showInStartPage>false</showInStartPage>
|
255 |
<showInEndPage>false</showInEndPage>
|
@@ -268,7 +270,10 @@ class Trivid_Clipgenerator_Helper_Data extends Mage_Core_Helper_Abstract {
|
|
268 |
if ($pImg->getUrl() == $img) {
|
269 |
$pic = $this->clipgeneratorClient->uploadPicture($img);
|
270 |
$picture = new Picture($pic['id']);
|
|
|
271 |
$frame = new Frame($picture);
|
|
|
|
|
272 |
if ($pImg->getData('label')) {
|
273 |
$l3 = new LowerThird();
|
274 |
$l3->verticalAlign = 300;
|
242 |
$video->title = $_product->getData('clipgenerator_title') ? $_product->getData('clipgenerator_title') : $_product->getData('name');
|
243 |
$video->description = $_product->getData('clipgenerator_description') ? $_product->getData('clipgenerator_description') : $_product->getData('description');
|
244 |
$logoUrl = $_product->getData('clipgenerator_logo') ? $_product->getData('clipgenerator_logo') : Mage::getStoreConfig('clipgenerator/settings/clipgenerator_logo_url', Mage::app()->getStore());
|
245 |
+
$logoLink = Mage::getStoreConfig('clipgenerator/settings/clipgenerator_logo_link', Mage::app()->getStore());
|
246 |
+
$color = Mage::getStoreConfig('clipgenerator/settings/clipgenerator_player_bgcolor', Mage::app()->getStore());
|
247 |
if ($logoUrl) {
|
248 |
if ($logo = $this->clipgeneratorClient->uploadLogo($logoUrl)) {
|
249 |
$logoId = $logo['id'];
|
251 |
$logo = Logo::fromXml('<logo width="0.2" height="0.2" alpha="1">
|
252 |
<id>' . $logoId . '</id>
|
253 |
<url>' . htmlspecialchars($logoUrl) . '</url>
|
254 |
+
<link>' . $logoLink . '</link>
|
255 |
<position verticalAlign="top" horizontalAlign="right" />
|
256 |
<showInStartPage>false</showInStartPage>
|
257 |
<showInEndPage>false</showInEndPage>
|
270 |
if ($pImg->getUrl() == $img) {
|
271 |
$pic = $this->clipgeneratorClient->uploadPicture($img);
|
272 |
$picture = new Picture($pic['id']);
|
273 |
+
// add new frame
|
274 |
$frame = new Frame($picture);
|
275 |
+
// set config bg color
|
276 |
+
$frame->backgroundColor = hexdec($color);
|
277 |
if ($pImg->getData('label')) {
|
278 |
$l3 = new LowerThird();
|
279 |
$l3->verticalAlign = 300;
|
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.6</version>
|
6 |
</Trivid_Clipgenerator>
|
7 |
</modules>
|
8 |
<global>
|
app/code/community/Trivid/Clipgenerator/etc/system.xml
CHANGED
@@ -94,6 +94,23 @@
|
|
94 |
<show_in_website>1</show_in_website>
|
95 |
<show_in_store>1</show_in_store>
|
96 |
</clipgenerator_logo_url>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
<clipgenerator_output translate="label">
|
98 |
<label>Automatische Ausgabe</label>
|
99 |
<frontend_type>select</frontend_type>
|
94 |
<show_in_website>1</show_in_website>
|
95 |
<show_in_store>1</show_in_store>
|
96 |
</clipgenerator_logo_url>
|
97 |
+
<clipgenerator_logo_link translate="label">
|
98 |
+
<label>Logo Link</label>
|
99 |
+
<frontend_type>text</frontend_type>
|
100 |
+
<comment><![CDATA[(Die Verlinkung Ihres Logos kann hier angegeben werden.)]]></comment>
|
101 |
+
<sort_order>35</sort_order>
|
102 |
+
<show_in_default>1</show_in_default>
|
103 |
+
<show_in_website>1</show_in_website>
|
104 |
+
<show_in_store>1</show_in_store>
|
105 |
+
</clipgenerator_logo_link>
|
106 |
+
<clipgenerator_player_bgcolor translate="label">
|
107 |
+
<label>Player Hintergrundfarbe (HEX)</label>
|
108 |
+
<frontend_type>text</frontend_type>
|
109 |
+
<sort_order>38</sort_order>
|
110 |
+
<show_in_default>1</show_in_default>
|
111 |
+
<show_in_website>1</show_in_website>
|
112 |
+
<show_in_store>1</show_in_store>
|
113 |
+
</clipgenerator_player_bgcolor>
|
114 |
<clipgenerator_output translate="label">
|
115 |
<label>Automatische Ausgabe</label>
|
116 |
<frontend_type>select</frontend_type>
|
app/code/community/Trivid/Clipgenerator/sql/clipgenerator_setup/mysql4-install-1.0.6.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.6
|
17 |
+
* @since File available since Release 1.0.6
|
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/contingent.phtml
CHANGED
@@ -18,4 +18,10 @@
|
|
18 |
<div>
|
19 |
<a href="<?=Mage::helper("adminhtml")->getUrl("clipgenerator/adminhtml_orderform/index");?>"><?=Mage::helper('clipgenerator')->__('Bestellen Sie sich jetzt Ihr Videopaket!')?></a>
|
20 |
</div>
|
21 |
-
<?php endif; ?>
|
|
|
|
|
|
|
|
|
|
|
|
18 |
<div>
|
19 |
<a href="<?=Mage::helper("adminhtml")->getUrl("clipgenerator/adminhtml_orderform/index");?>"><?=Mage::helper('clipgenerator')->__('Bestellen Sie sich jetzt Ihr Videopaket!')?></a>
|
20 |
</div>
|
21 |
+
<?php endif; ?>
|
22 |
+
<script type="text/javascript" src="/js/jscolor/jscolor.js"></script>
|
23 |
+
<script type="text/javascript">
|
24 |
+
document.observe('dom:loaded', function () {
|
25 |
+
var myPicker = new jscolor.color(document.getElementById('clipgenerator_settings_clipgenerator_player_bgcolor'), {});
|
26 |
+
});
|
27 |
+
</script>
|
app/design/adminhtml/default/default/template/clipgenerator/images.phtml
CHANGED
@@ -49,8 +49,23 @@ $selArr = explode(';', trim($selected, ';'));
|
|
49 |
<?php endif; ?>
|
50 |
|
51 |
<script type="text/javascript">
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
$('clipgenerator_images_select').addClassName('hidden');
|
53 |
document.observe('dom:loaded', function () {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
$('clipgenerator_video_id').up().up().hide();
|
55 |
$$('.pico').each(function (el) {
|
56 |
el.setOpacity(0.5);
|
49 |
<?php endif; ?>
|
50 |
|
51 |
<script type="text/javascript">
|
52 |
+
var title = "<?= str_replace('"', '\'', $_product->getName()) ?>";
|
53 |
+
var description = <?= json_encode(str_replace('"', '\'', strip_tags($_product->getDescription()))) ?>;
|
54 |
+
var keywords = <?= json_encode(str_replace(array("\r\n", "\r", "\n"), " ", $_product->getMetaKeyword())) ?>;
|
55 |
+
var vTitle = "<?=$_product->getData('clipgenerator_title')?>";
|
56 |
+
var vDesc = <?= json_encode($_product->getData('clipgenerator_description')) ?>;
|
57 |
+
var vKey = "<?= $_product->getData('clipgenerator_keywords')?>";
|
58 |
$('clipgenerator_images_select').addClassName('hidden');
|
59 |
document.observe('dom:loaded', function () {
|
60 |
+
if(title != '' && !vTitle) {
|
61 |
+
$('clipgenerator_title').writeAttribute('value', title);
|
62 |
+
}
|
63 |
+
if(description != '' && !vDesc) {
|
64 |
+
$('clipgenerator_description').innerHTML = description;
|
65 |
+
}
|
66 |
+
if(keywords != '' && !vKey) {
|
67 |
+
$('clipgenerator_keywords').writeAttribute('value', keywords);
|
68 |
+
}
|
69 |
$('clipgenerator_video_id').up().up().hide();
|
70 |
$$('.pico').each(function (el) {
|
71 |
el.setOpacity(0.5);
|
app/design/adminhtml/default/default/template/clipgenerator/music.phtml
CHANGED
@@ -121,6 +121,19 @@ $music = $clipgen->getMusic();
|
|
121 |
</div>
|
122 |
<pre>
|
123 |
</pre>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
124 |
<script type="text/javascript">
|
125 |
// music storage
|
126 |
var storage = <?=json_encode($music)?>;
|
121 |
</div>
|
122 |
<pre>
|
123 |
</pre>
|
124 |
+
<?php
|
125 |
+
$_product = Mage::registry('current_product');
|
126 |
+
$video = $_product->getData('clipgenerator_video_id');
|
127 |
+
$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>';
|
128 |
+
?>
|
129 |
+
<?php if($video): ?>
|
130 |
+
<div class="preview">
|
131 |
+
<br /><br />
|
132 |
+
<label>Video Embed Code:</label> <textarea style="height:60px;"><?=$html?></textarea>
|
133 |
+
<label>Preview:</label><br />
|
134 |
+
<?=$html?>
|
135 |
+
</div>
|
136 |
+
<?php endif; ?>
|
137 |
<script type="text/javascript">
|
138 |
// music storage
|
139 |
var storage = <?=json_encode($music)?>;
|
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>
|
@@ -58,11 +58,12 @@ Eine Anleitung zur Nutzung des Clipgenerator™-Plugin für Magento k&#
|
|
58 |
* PHP Version 5.2.0 - 6.0.0
|
59 |
* Advanced Block Config v1.0.3
|
60 |
* fixes loading api resp. 1.0.4
|
61 |
-
* v3 Player 1.0.5
|
|
|
62 |
<authors><author><name>Trivid GmbH</name><user>trivid_gmbh</user><email>magento@clipgenerator.com</email></author></authors>
|
63 |
-
<date>2013-
|
64 |
-
<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="
|
66 |
<compatible/>
|
67 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
68 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>clipgenerator</name>
|
4 |
+
<version>1.0.6</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>
|
58 |
* PHP Version 5.2.0 - 6.0.0
|
59 |
* Advanced Block Config v1.0.3
|
60 |
* fixes loading api resp. 1.0.4
|
61 |
+
* v3 Player 1.0.5
|
62 |
+
* player bg color, preview&embed code 1.0.6</notes>
|
63 |
<authors><author><name>Trivid GmbH</name><user>trivid_gmbh</user><email>magento@clipgenerator.com</email></author></authors>
|
64 |
+
<date>2013-12-02</date>
|
65 |
+
<time>20:55:32</time>
|
66 |
+
<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="90289935c612ad72250cf51966b3b5dd"/></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="ebe8e8c866275d69a772caec72398937"/><file name="system.xml" hash="c6bd2f4bea5503b77a98ed77901551cd"/></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"/><file name="mysql4-install-1.0.6.php" hash="be9cae614df9d3f6c4c9a5f066bbcb3a"/></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="64d871aa20e967eabd734d2a6b440443"/><file name="images.phtml" hash="f73fb4849d73df76acf1f3996f64b7c2"/><file name="music.phtml" hash="edbeeeabb31df0cb6b515e3a5ce5273e"/><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>
|
67 |
<compatible/>
|
68 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
69 |
</package>
|