Niveus_ProductVideo - Version 1.2.0

Version Notes

Installation steps

Download this release

Release Info

Developer Niveus Solutions
Extension Niveus_ProductVideo
Version 1.2.0
Comparing to
See all releases


Code changes from version 1.1.0 to 1.2.0

app/code/community/Niveus/ProductVideo/etc/adminhtml.xml~ DELETED
@@ -1,24 +0,0 @@
1
- <?xml version="1.0"?>
2
-
3
- <config>
4
- <acl>
5
- <resources>
6
- <admin>
7
- <children>
8
- <system>
9
- <children>
10
- <config>
11
- <children>
12
- <niveus_productvideo translate="title" module="productvideo">
13
- <title>Niveus</title>
14
- <sort_order>1005000</sort_order>
15
- </niveus_productvideo>
16
- </children>
17
- </config>
18
- </children>
19
- </system>
20
- </children>
21
- </admin>
22
- </resources>
23
- </acl>
24
- </config>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Niveus/ProductVideo/etc/config.xml CHANGED
@@ -3,7 +3,7 @@
3
  <config>
4
  <modules>
5
  <Niveus_ProductVideo>
6
- <version>1.1.0</version>
7
  </Niveus_ProductVideo>
8
  </modules>
9
 
@@ -24,7 +24,7 @@
24
  </models>
25
 
26
  <resources>
27
- <productvideo_setup>
28
  <setup>
29
  <module>Niveus_ProductVideo</module>
30
  <class>Niveus_ProductVideo_Model_Resource_Eav_Mysql4_Setup</class>
@@ -32,17 +32,17 @@
32
  <connection>
33
  <use>core_setup</use>
34
  </connection>
35
- </productvideo_setup>
36
- <productvideo_write>
37
  <connection>
38
  <use>core_write</use>
39
  </connection>
40
- </productvideo_write>
41
- <productvideo_read>
42
  <connection>
43
  <use>core_read</use>
44
  </connection>
45
- </productvideo_read>
46
  </resources>
47
 
48
  <helpers>
3
  <config>
4
  <modules>
5
  <Niveus_ProductVideo>
6
+ <version>1.2.0</version>
7
  </Niveus_ProductVideo>
8
  </modules>
9
 
24
  </models>
25
 
26
  <resources>
27
+ <niveus_productvideo_setup>
28
  <setup>
29
  <module>Niveus_ProductVideo</module>
30
  <class>Niveus_ProductVideo_Model_Resource_Eav_Mysql4_Setup</class>
32
  <connection>
33
  <use>core_setup</use>
34
  </connection>
35
+ </niveus_productvideo_setup>
36
+ <niveus_productvideo_write>
37
  <connection>
38
  <use>core_write</use>
39
  </connection>
40
+ </niveus_productvideo_write>
41
+ <niveus_productvideo_read>
42
  <connection>
43
  <use>core_read</use>
44
  </connection>
45
+ </niveus_productvideo_read>
46
  </resources>
47
 
48
  <helpers>
app/code/community/Niveus/ProductVideo/etc/config.xml~ DELETED
@@ -1,118 +0,0 @@
1
- <?xml version="1.0"?>
2
-
3
- <config>
4
- <modules>
5
- <Niveus_ProductVideo>
6
- <version>0.1.0</version>
7
- </Niveus_ProductVideo>
8
- </modules>
9
-
10
- <global>
11
-
12
- <models>
13
- <productvideo>
14
- <class>Niveus_ProductVideo_Model</class>
15
- <resourceModel>productvideo_resource</resourceModel>
16
- </productvideo>
17
- <productvideo_resource>
18
- <class>Niveus_ProductVideo_Model_Resource</class>
19
- <entities>
20
- <videos>
21
- <table>niveus_youtube_videos</table>
22
- </videos>
23
- </entities>
24
- </productvideo_resource>
25
- </models>
26
-
27
- <resources>
28
- <productvideo_setup>
29
- <setup>
30
- <module>Niveus_ProductVideo</module>
31
- <class>Niveus_ProductVideo_Model_Resource_Eav_Mysql4_Setup</class>
32
- </setup>
33
- <connection>
34
- <use>core_setup</use>
35
- </connection>
36
- </productvideo_setup>
37
- <productvideo_write>
38
- <connection>
39
- <use>core_write</use>
40
- </connection>
41
- </productvideo_write>
42
- <productvideo_read>
43
- <connection>
44
- <use>core_read</use>
45
- </connection>
46
- </productvideo_read>
47
- </resources>
48
-
49
- <helpers>
50
- <productvideo>
51
- <class>Niveus_ProductVideo_Helper</class>
52
- </productvideo>
53
- </helpers>
54
-
55
- <blocks>
56
- <productvideo>
57
- <class>Niveus_ProductVideo_Block</class>
58
- </productvideo>
59
-
60
- <catalog>
61
- <rewrite>
62
- <product_view_media>Niveus_ProductVideo_Block_Product_View_Media</product_view_media>
63
- </rewrite>
64
- </catalog>
65
-
66
- <adminhtml>
67
- <rewrite>
68
- <catalog_product_edit_tabs>Niveus_ProductVideo_Block_Rewrite_AdminhtmlCatalogProductEditTabs</catalog_product_edit_tabs>
69
- </rewrite>
70
- </adminhtml>
71
- </blocks>
72
-
73
- <events>
74
- <catalog_product_save_after>
75
- <observers>
76
- <productvideo>
77
- <type>singleton</type>
78
- <class>productvideo/observer</class>
79
- <method>catalog_product_save_after</method>
80
- </productvideo>
81
- </observers>
82
- </catalog_product_save_after>
83
- </events>
84
- </global>
85
-
86
- <frontend>
87
- <layout>
88
- <updates>
89
- <productvideo>
90
- <file>niveusproductvideo.xml</file>
91
- </productvideo>
92
- </updates>
93
- </layout>
94
- </frontend>
95
-
96
- <admin>
97
- <routers>
98
- <productvideo_admin>
99
- <use>admin</use>
100
- <args>
101
- <module>Niveus_ProductVideo</module>
102
- <frontName>productvideo</frontName>
103
- </args>
104
- </productvideo_admin>
105
- </routers>
106
- </admin>
107
-
108
- <adminhtml>
109
- <layout>
110
- <updates>
111
- <productvideo>
112
- <file>niveusproductvideo.xml</file>
113
- </productvideo>
114
- </updates>
115
- </layout>
116
- </adminhtml>
117
-
118
- </config>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Niveus/ProductVideo/etc/system.xml~ DELETED
@@ -1,49 +0,0 @@
1
- <?xml version="1.0"?>
2
- <config>
3
- <tabs>
4
- <niveus_tab>
5
- <label>Niveus Extensions</label>
6
- <sort_order>1005001</sort_order>
7
- </niveus_tab>
8
- </tabs>
9
- <sections>
10
- <niveus_productvideo translate="label" module="productvideo">
11
- <label>Product Video</label>
12
- <tab>niveus_tab</tab>
13
- <frontend_type>text</frontend_type>
14
- <sort_order>200</sort_order>
15
- <show_in_default>1</show_in_default>
16
- <show_in_website>1</show_in_website>
17
- <show_in_store>1</show_in_store>
18
-
19
- <groups>
20
- <settings translate="label">
21
-
22
- <label>Settings</label>
23
- <frontend_type>text</frontend_type>
24
- <sort_order>10</sort_order>
25
- <show_in_default>1</show_in_default>
26
- <show_in_website>1</show_in_website>
27
- <show_in_store>1</show_in_store>
28
-
29
- <fields>
30
-
31
- <enable translate="label comment">
32
- <label>Enable Module</label>
33
- <comment><![CDATA[]]></comment>
34
- <frontend_type>select</frontend_type>
35
- <source_model>adminhtml/system_config_source_yesno</source_model>
36
- <sort_order>0</sort_order>
37
- <show_in_default>1</show_in_default>
38
- <show_in_website>1</show_in_website>
39
- <show_in_store>1</show_in_store>
40
- </enable>
41
-
42
-
43
- </fields>
44
- </settings>
45
- </groups>
46
-
47
- </niveus_productvideo>
48
- </sections>
49
- </config>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Niveus/ProductVideo/sql/{productvideo_setup/mysql4-install-0.1.0.php → niveus_productvideo_setup/mysql4-install-1.2.0.php} RENAMED
File without changes
app/code/community/Niveus/ProductVideo/sql/productvideo_setup/mysql4-install-0.1.0.php~ DELETED
@@ -1,29 +0,0 @@
1
- <?php
2
-
3
- $installer = $this;
4
- $installer->startSetup();
5
-
6
- try
7
- {
8
- $installer->run("SELECT * FROM {$this->getTable('niveus_youtube_videos')}");
9
- }
10
- catch (Exception $e)
11
- {
12
- $installer->run("
13
- CREATE TABLE IF NOT EXISTS {$this->getTable('niveus_youtube_videos')} (
14
- `video_id` int(10) NOT NULL AUTO_INCREMENT,
15
- `product_id` int(10) UNSIGNED NOT NULL,
16
- `store_id` smallint(5) unsigned NOT NULL default '0',
17
- `video_code` varchar(256) DEFAULT NULL,
18
- `video_title` text,
19
- PRIMARY KEY (`video_id`),
20
- KEY `NIVEUS_YOUTUBE_VIDEO_PRODUCT_ID_PRODUCT_ENTITY_ID` (`product_id`),
21
- KEY `NIVEUS_YOUTUBE_VIDEO_STORE_ID_STORE_ID` (`store_id`),
22
- CONSTRAINT `NIVEUS_YOUTUBE_VIDEO_PRODUCT_ID_PRODUCT_ENTITY_ID` FOREIGN KEY (`product_id`) REFERENCES {$this->getTable('catalog_product_entity')} (`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE,
23
- CONSTRAINT `NIVEUS_YOUTUBE_VIDEO_STORE_ID_STORE_ID` FOREIGN KEY (`store_id`) REFERENCES {$this->getTable('core_store')} (`store_id`) ON DELETE CASCADE ON UPDATE CASCADE
24
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;
25
- ");
26
-
27
- }
28
-
29
- $installer->endSetup();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/adminhtml/default/default/template/niveusproductvideo/tab/videos.phtml CHANGED
@@ -1 +1 @@
1
- <?php
2
  * Video Plugin for Magento
3
  *
4
  * This source file is subject to the Open Software License (OSL 3.0)
5
  * that is bundled with this package in the file LICENSE.txt.
6
  * It is also available through the world-wide-web at this URL:
7
  * http://opensource.org/licenses/osl-3.0.php
8
  *
9
  * @category Niveus
10
  * @package Niveus_ProductVideo
11
  * @copyright Copyright (c) 2013 Niveus Solutions (http://www.niveussolutions.com)
12
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
13
  * @author Niveus Solutions <support@niveussolutions.com>
14
  */
15
  <div class="entry-edit-head">
16
  </div>
17
  <div class="fieldset fieldset-wide" id="group_fields_videos">
18
  <table cellspacing="0" class="form-list" id="table_cataloginventory">
19
  <?php $count=0; ?>
20
  <?php foreach ($this->getVideosCollection() as $video): ?>
21
  <?php $count++ ?>
22
  <?php if($count==1) :?>
23
  <?php $video1_exe =true ;?>
24
  <tr>
25
  <td class="label"><label for="video1"><?php echo Mage::helper('catalog')->__('Video 1') ?></label></td>
26
  <td class="value"><input type="text" class="input-text" id="video1" name="video1" value="<?php echo $video->getVideoCode() ?>"/>
27
  </tr>
28
  <?php elseif($count==2) :?>
29
  <?php $video2_exe =true ;?>
30
  <tr>
31
  <td class="label"><label for="video2"><?php echo Mage::helper('catalog')->__('Video 2') ?></label></td>
32
  <td class="value"><input type="text" class="input-text" id="video2" name="video2" value="<?php echo $video->getVideoCode() ?>"/>
33
  </tr>
34
  <?php else :?>
35
  <?php $video3_exe =true ;?>
36
  <tr>
37
  <td class="label"><label for="video3"><?php echo Mage::helper('catalog')->__('Video 3') ?></label></td>
38
  <td class="value"><input type="text" class="input-text" id="video3" name="video3" value="<?php echo $video->getVideoCode() ?>"/>
39
  </tr>
40
  <?php endif; ?>
41
  <?php endforeach; ?>
42
  <?php if(!$video1_exe) :?>
43
  <tr>
44
  <td class="label"><label for="video1"><?php echo Mage::helper('catalog')->__('Video 1') ?></label></td>
45
  <td class="value"><input type="text" class="input-text" id="video1" name="video1" value=""/>
46
  </tr>
47
  <?php endif; ?>
48
  <?php if(!$video2_exe) :?>
49
  <tr>
50
  <td class="label"><label for="video2"><?php echo Mage::helper('catalog')->__('Video 2') ?></label></td>
51
  <td class="value"><input type="text" class="input-text" id="video2" name="video2" value=""/>
52
  </tr>
53
  <?php endif; ?>
54
  <?php if(!$video3_exe) :?>
55
  <tr>
56
  <td class="label"><label for="video3"><?php echo Mage::helper('catalog')->__('Video 3') ?></label></td>
57
  <td class="value"><input type="text" class="input-text" id="video3" name="video3" value=""/>
58
  </tr>
59
  <?php endif; ?>
60
 
61
  </table>
62
  </div>
 
63
  * Video Plugin for Magento
64
  *
65
  * This source file is subject to the Open Software License (OSL 3.0)
66
  * that is bundled with this package in the file LICENSE.txt.
67
  * It is also available through the world-wide-web at this URL:
68
  * http://opensource.org/licenses/osl-3.0.php
69
  *
70
  * @category Niveus
71
  * @package Niveus_ProductVideo
72
  * @copyright Copyright (c) 2013 Niveus Solutions (http://www.niveussolutions.com)
73
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
74
  * @author Niveus Solutions <support@niveussolutions.com>
75
  */
76
  <div class="entry-edit-head">
77
  </div>
78
  <div class="fieldset fieldset-wide" id="group_fields_videos">
79
  <table cellspacing="0" class="form-list" id="table_cataloginventory">
80
  <?php $count=0;
81
  $video1_exe = false;
82
  $video2_exe = false;
83
  $video3_exe = false;
84
  ?>
85
  <?php foreach ($this->getVideosCollection() as $video): ?>
86
  <?php $count++ ?>
87
  <?php if($count==1) :?>
88
  <?php $video1_exe =true ;?>
89
  <tr>
90
  <td class="label"><label for="video1"><?php echo Mage::helper('catalog')->__('Video 1') ?></label></td>
91
  <td class="value"><input type="text" class="input-text" id="video1" name="video1" value="<?php echo $video->getVideoCode() ?>"/>
92
  </tr>
93
  <?php elseif($count==2) :?>
94
  <?php $video2_exe =true ;?>
95
  <tr>
96
  <td class="label"><label for="video2"><?php echo Mage::helper('catalog')->__('Video 2') ?></label></td>
97
  <td class="value"><input type="text" class="input-text" id="video2" name="video2" value="<?php echo $video->getVideoCode() ?>"/>
98
  </tr>
99
  <?php else :?>
100
  <?php $video3_exe =true ;?>
101
  <tr>
102
  <td class="label"><label for="video3"><?php echo Mage::helper('catalog')->__('Video 3') ?></label></td>
103
  <td class="value"><input type="text" class="input-text" id="video3" name="video3" value="<?php echo $video->getVideoCode() ?>"/>
104
  </tr>
105
  <?php endif; ?>
106
  <?php endforeach; ?>
107
  <?php if(!$video1_exe) :?>
108
  <tr>
109
  <td class="label"><label for="video1"><?php echo Mage::helper('catalog')->__('Video 1') ?></label></td>
110
  <td class="value"><input type="text" class="input-text" id="video1" name="video1" value=""/>
111
  </tr>
112
  <?php endif; ?>
113
  <?php if(!$video2_exe) :?>
114
  <tr>
115
  <td class="label"><label for="video2"><?php echo Mage::helper('catalog')->__('Video 2') ?></label></td>
116
  <td class="value"><input type="text" class="input-text" id="video2" name="video2" value=""/>
117
  </tr>
118
  <?php endif; ?>
119
  <?php if(!$video3_exe) :?>
120
  <tr>
121
  <td class="label"><label for="video3"><?php echo Mage::helper('catalog')->__('Video 3') ?></label></td>
122
  <td class="value"><input type="text" class="input-text" id="video3" name="video3" value=""/>
123
  </tr>
124
  <?php endif; ?>
125
 
126
  </table>
127
  </div>
 
1
  * Video Plugin for Magento
2
  *
3
  * This source file is subject to the Open Software License (OSL 3.0)
4
  * that is bundled with this package in the file LICENSE.txt.
5
  * It is also available through the world-wide-web at this URL:
6
  * http://opensource.org/licenses/osl-3.0.php
7
  *
8
  * @category Niveus
9
  * @package Niveus_ProductVideo
10
  * @copyright Copyright (c) 2013 Niveus Solutions (http://www.niveussolutions.com)
11
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
12
  * @author Niveus Solutions <support@niveussolutions.com>
13
  */
14
  <div class="entry-edit-head">
15
  </div>
16
  <div class="fieldset fieldset-wide" id="group_fields_videos">
17
  <table cellspacing="0" class="form-list" id="table_cataloginventory">
18
  <?php $count=0; ?>
19
  <?php foreach ($this->getVideosCollection() as $video): ?>
20
  <?php $count++ ?>
21
  <?php if($count==1) :?>
22
  <?php $video1_exe =true ;?>
23
  <tr>
24
  <td class="label"><label for="video1"><?php echo Mage::helper('catalog')->__('Video 1') ?></label></td>
25
  <td class="value"><input type="text" class="input-text" id="video1" name="video1" value="<?php echo $video->getVideoCode() ?>"/>
26
  </tr>
27
  <?php elseif($count==2) :?>
28
  <?php $video2_exe =true ;?>
29
  <tr>
30
  <td class="label"><label for="video2"><?php echo Mage::helper('catalog')->__('Video 2') ?></label></td>
31
  <td class="value"><input type="text" class="input-text" id="video2" name="video2" value="<?php echo $video->getVideoCode() ?>"/>
32
  </tr>
33
  <?php else :?>
34
  <?php $video3_exe =true ;?>
35
  <tr>
36
  <td class="label"><label for="video3"><?php echo Mage::helper('catalog')->__('Video 3') ?></label></td>
37
  <td class="value"><input type="text" class="input-text" id="video3" name="video3" value="<?php echo $video->getVideoCode() ?>"/>
38
  </tr>
39
  <?php endif; ?>
40
  <?php endforeach; ?>
41
  <?php if(!$video1_exe) :?>
42
  <tr>
43
  <td class="label"><label for="video1"><?php echo Mage::helper('catalog')->__('Video 1') ?></label></td>
44
  <td class="value"><input type="text" class="input-text" id="video1" name="video1" value=""/>
45
  </tr>
46
  <?php endif; ?>
47
  <?php if(!$video2_exe) :?>
48
  <tr>
49
  <td class="label"><label for="video2"><?php echo Mage::helper('catalog')->__('Video 2') ?></label></td>
50
  <td class="value"><input type="text" class="input-text" id="video2" name="video2" value=""/>
51
  </tr>
52
  <?php endif; ?>
53
  <?php if(!$video3_exe) :?>
54
  <tr>
55
  <td class="label"><label for="video3"><?php echo Mage::helper('catalog')->__('Video 3') ?></label></td>
56
  <td class="value"><input type="text" class="input-text" id="video3" name="video3" value=""/>
57
  </tr>
58
  <?php endif; ?>
59
 
60
  </table>
61
  </div>
62
+ <?php
63
  * Video Plugin for Magento
64
  *
65
  * This source file is subject to the Open Software License (OSL 3.0)
66
  * that is bundled with this package in the file LICENSE.txt.
67
  * It is also available through the world-wide-web at this URL:
68
  * http://opensource.org/licenses/osl-3.0.php
69
  *
70
  * @category Niveus
71
  * @package Niveus_ProductVideo
72
  * @copyright Copyright (c) 2013 Niveus Solutions (http://www.niveussolutions.com)
73
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
74
  * @author Niveus Solutions <support@niveussolutions.com>
75
  */
76
  <div class="entry-edit-head">
77
  </div>
78
  <div class="fieldset fieldset-wide" id="group_fields_videos">
79
  <table cellspacing="0" class="form-list" id="table_cataloginventory">
80
  <?php $count=0;
81
  $video1_exe = false;
82
  $video2_exe = false;
83
  $video3_exe = false;
84
  ?>
85
  <?php foreach ($this->getVideosCollection() as $video): ?>
86
  <?php $count++ ?>
87
  <?php if($count==1) :?>
88
  <?php $video1_exe =true ;?>
89
  <tr>
90
  <td class="label"><label for="video1"><?php echo Mage::helper('catalog')->__('Video 1') ?></label></td>
91
  <td class="value"><input type="text" class="input-text" id="video1" name="video1" value="<?php echo $video->getVideoCode() ?>"/>
92
  </tr>
93
  <?php elseif($count==2) :?>
94
  <?php $video2_exe =true ;?>
95
  <tr>
96
  <td class="label"><label for="video2"><?php echo Mage::helper('catalog')->__('Video 2') ?></label></td>
97
  <td class="value"><input type="text" class="input-text" id="video2" name="video2" value="<?php echo $video->getVideoCode() ?>"/>
98
  </tr>
99
  <?php else :?>
100
  <?php $video3_exe =true ;?>
101
  <tr>
102
  <td class="label"><label for="video3"><?php echo Mage::helper('catalog')->__('Video 3') ?></label></td>
103
  <td class="value"><input type="text" class="input-text" id="video3" name="video3" value="<?php echo $video->getVideoCode() ?>"/>
104
  </tr>
105
  <?php endif; ?>
106
  <?php endforeach; ?>
107
  <?php if(!$video1_exe) :?>
108
  <tr>
109
  <td class="label"><label for="video1"><?php echo Mage::helper('catalog')->__('Video 1') ?></label></td>
110
  <td class="value"><input type="text" class="input-text" id="video1" name="video1" value=""/>
111
  </tr>
112
  <?php endif; ?>
113
  <?php if(!$video2_exe) :?>
114
  <tr>
115
  <td class="label"><label for="video2"><?php echo Mage::helper('catalog')->__('Video 2') ?></label></td>
116
  <td class="value"><input type="text" class="input-text" id="video2" name="video2" value=""/>
117
  </tr>
118
  <?php endif; ?>
119
  <?php if(!$video3_exe) :?>
120
  <tr>
121
  <td class="label"><label for="video3"><?php echo Mage::helper('catalog')->__('Video 3') ?></label></td>
122
  <td class="value"><input type="text" class="input-text" id="video3" name="video3" value=""/>
123
  </tr>
124
  <?php endif; ?>
125
 
126
  </table>
127
  </div>
app/design/frontend/default/default/template/niveusproductvideo/video.phtml CHANGED
@@ -29,7 +29,7 @@
29
  <?php $video = $this->getCode($video);?>
30
  <?php $video_code=substr($video,-11,11); ?>
31
  <?php if($video_code !=''):?>
32
- <?php echo "<iframe width=\"560\" height=\"315\" src=\"http://www.youtube.com/embed/$video_code\" frameborder=\"0\"></iframe>";?>
33
  <!-- video from youtube -->
34
  <?php endif;?>
35
  <?php endforeach; ?>
29
  <?php $video = $this->getCode($video);?>
30
  <?php $video_code=substr($video,-11,11); ?>
31
  <?php if($video_code !=''):?>
32
+ <?php echo "<iframe width=\"560\" height=\"315\" src=\"http://www.youtube.com/embed/$video_code?rel=0\" frameborder=\"0\"></iframe>";?>
33
  <!-- video from youtube -->
34
  <?php endif;?>
35
  <?php endforeach; ?>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Niveus_ProductVideo</name>
4
- <version>1.1.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
@@ -10,9 +10,9 @@
10
  <description>Niveus Youtube product Video extension</description>
11
  <notes>Installation steps</notes>
12
  <authors><author><name>Niveus Solutions</name><user>niveussolutions</user><email>support@niveussolutions.com</email></author></authors>
13
- <date>2013-10-25</date>
14
- <time>09:20:04</time>
15
- <contents><target name="magecommunity"><dir name="Niveus"><dir name="ProductVideo"><dir name="Block"><dir name="Adminhtml"><dir name="Catalog"><dir name="Product"><dir name="Edit"><dir name="Tab"><file name="Videos.php" hash="0e4ea8296cdf584cf9756cc086acec13"/><file name="Videos.php~" hash="c21edc574c4c186b23dbccc2d067b503"/></dir></dir></dir></dir></dir><dir name="Product"><dir name="View"><file name="Attribute.php~" hash="629d0759593202ee9d8886d863eff0c1"/><file name="List.php~" hash="9f52ae0257c000b26538daa0a6b5320c"/><file name="Media.php" hash="87141206ee837993560d66872c8f80b1"/><file name="Media.php~" hash="a512858484654f67e015b59def270d13"/></dir></dir><dir name="Rewrite"><file name="AdminhtmlCatalogProductEditTabs.php" hash="d4fcf87e7c895f792927b57dd9af9625"/><file name="AdminhtmlCatalogProductEditTabs.php~" hash="01e2d8cbbee88a7bbc68e5c05e933d54"/></dir><file name="Video.php" hash="234d015965cc9ca9fedac78d5db52ebf"/><file name="Video.php~" hash="77668e1600fbb49e7884167842e1a6a3"/></dir><dir name="Helper"><file name="Data.php" hash="ab2f4060c3e9182f197f075b8e7faf50"/><file name="Data.php~" hash="ab2f4060c3e9182f197f075b8e7faf50"/></dir><dir name="Model"><dir name="Config"><dir name="Source"><file name="Scrolling.php" hash="1d095e7d24d4e640fb3b11baa4027b77"/><file name="Scrolling.php~" hash="29faa4933274ad9848784b751730b7dc"/><file name="Titleposition.php" hash="af43b76604b69f24c58c4bf35bab40a3"/><file name="Titleposition.php~" hash="eca314ba351356270cd362da50f974f4"/><file name="Transition.php" hash="387dfb1df77743b982bb0cd8de7c85a1"/><file name="Transition.php~" hash="974787453cece93a0a85cf0fc3046c65"/></dir></dir><file name="Observer.php" hash="1965676480638ee512c57c03016af894"/><file name="Observer.php~" hash="1965676480638ee512c57c03016af894"/><dir name="Resource"><dir name="Eav"><dir name="Mysql4"><file name="Setup.php" hash="0b890d0edf9f635c34d84e80410ab230"/><file name="Setup.php~" hash="392ab06b2156327c4a9e8a3d77160f4a"/></dir></dir><dir name="Videos"><file name="Collection.php" hash="1d5a542d7a919ddeccef1cf3c9607b2f"/><file name="Collection.php~" hash="701b62fdd06add657539e507a3212971"/></dir><file name="Videos.php" hash="4ac319ed11931591649f9ac4569d107b"/><file name="Videos.php~" hash="2d56dcba2e2548597e48bf1afbdb9a58"/></dir><file name="Videos.php" hash="d35074b3b0acd6426ec5df12cf63d077"/><file name="Videos.php~" hash="8bcb8be4da9a0a642722ac4a38ac6729"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="VideosController.php" hash="7174a2ff3564f654110d94a16138bf5a"/><file name="VideosController.php~" hash="d5d5dff399e2a59559e8f635e58258a0"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="a00ffae61be96cd04e435c830cf3fd4d"/><file name="adminhtml.xml~" hash="3d6cc4da367e365a43f9ad9bd7884b79"/><file name="config.xml" hash="547e4a1bb6ec79d428a30b2aaef4024e"/><file name="config.xml~" hash="31e04f56504768122775237092c66119"/><file name="system.xml" hash="b8f38b5efc46ec5a9e0ae6c7d02d6232"/><file name="system.xml~" hash="153a4c149fbb890c81ff6f2cabe9ff61"/></dir><dir name="sql"><dir name="productvideo_setup"><file name="mysql4-install-0.1.0.php" hash="4022ec194b52e4800bbe6061ecf8d61c"/><file name="mysql4-install-0.1.0.php~" hash="a0c584b076e48fa0d7f9ced873df3ae7"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Niveus_ProductVideo.xml" hash="7d2fb29c666116bb33c0867e383e0788"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="niveusproductvideo.xml" hash="61f41423688de05affbfd3f0287d609d"/></dir><dir name="template"><dir name="niveusproductvideo"><dir name="tab"><file name="videos.phtml" hash="4374353dec1adea731a75181407b8490"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="niveusproductvideo.xml" hash="de98ce985d056729d5f0f86e57809f7f"/></dir><dir name="template"><dir name="niveusproductvideo"><file name="video.phtml" hash="d659f4a028076d328819319447fde673"/></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Niveus_ProductVideo</name>
4
+ <version>1.2.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
10
  <description>Niveus Youtube product Video extension</description>
11
  <notes>Installation steps</notes>
12
  <authors><author><name>Niveus Solutions</name><user>niveussolutions</user><email>support@niveussolutions.com</email></author></authors>
13
+ <date>2014-01-09</date>
14
+ <time>05:08:03</time>
15
+ <contents><target name="magecommunity"><dir name="Niveus"><dir name="ProductVideo"><dir name="Block"><dir name="Adminhtml"><dir name="Catalog"><dir name="Product"><dir name="Edit"><dir name="Tab"><file name="Videos.php" hash="0e4ea8296cdf584cf9756cc086acec13"/><file name="Videos.php~" hash="c21edc574c4c186b23dbccc2d067b503"/></dir></dir></dir></dir></dir><dir name="Product"><dir name="View"><file name="Attribute.php~" hash="629d0759593202ee9d8886d863eff0c1"/><file name="List.php~" hash="9f52ae0257c000b26538daa0a6b5320c"/><file name="Media.php" hash="87141206ee837993560d66872c8f80b1"/><file name="Media.php~" hash="a512858484654f67e015b59def270d13"/></dir></dir><dir name="Rewrite"><file name="AdminhtmlCatalogProductEditTabs.php" hash="d4fcf87e7c895f792927b57dd9af9625"/><file name="AdminhtmlCatalogProductEditTabs.php~" hash="01e2d8cbbee88a7bbc68e5c05e933d54"/></dir><file name="Video.php" hash="234d015965cc9ca9fedac78d5db52ebf"/><file name="Video.php~" hash="77668e1600fbb49e7884167842e1a6a3"/></dir><dir name="Helper"><file name="Data.php" hash="ab2f4060c3e9182f197f075b8e7faf50"/><file name="Data.php~" hash="ab2f4060c3e9182f197f075b8e7faf50"/></dir><dir name="Model"><dir name="Config"><dir name="Source"><file name="Scrolling.php" hash="1d095e7d24d4e640fb3b11baa4027b77"/><file name="Scrolling.php~" hash="29faa4933274ad9848784b751730b7dc"/><file name="Titleposition.php" hash="af43b76604b69f24c58c4bf35bab40a3"/><file name="Titleposition.php~" hash="eca314ba351356270cd362da50f974f4"/><file name="Transition.php" hash="387dfb1df77743b982bb0cd8de7c85a1"/><file name="Transition.php~" hash="974787453cece93a0a85cf0fc3046c65"/></dir></dir><file name="Observer.php" hash="1965676480638ee512c57c03016af894"/><file name="Observer.php~" hash="1965676480638ee512c57c03016af894"/><dir name="Resource"><dir name="Eav"><dir name="Mysql4"><file name="Setup.php" hash="0b890d0edf9f635c34d84e80410ab230"/><file name="Setup.php~" hash="392ab06b2156327c4a9e8a3d77160f4a"/></dir></dir><dir name="Videos"><file name="Collection.php" hash="1d5a542d7a919ddeccef1cf3c9607b2f"/><file name="Collection.php~" hash="701b62fdd06add657539e507a3212971"/></dir><file name="Videos.php" hash="4ac319ed11931591649f9ac4569d107b"/><file name="Videos.php~" hash="2d56dcba2e2548597e48bf1afbdb9a58"/></dir><file name="Videos.php" hash="d35074b3b0acd6426ec5df12cf63d077"/><file name="Videos.php~" hash="8bcb8be4da9a0a642722ac4a38ac6729"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="VideosController.php" hash="7174a2ff3564f654110d94a16138bf5a"/><file name="VideosController.php~" hash="d5d5dff399e2a59559e8f635e58258a0"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="a00ffae61be96cd04e435c830cf3fd4d"/><file name="config.xml" hash="2a0b2e55cbe4e6bdecc56f961e0f370b"/><file name="system.xml" hash="b8f38b5efc46ec5a9e0ae6c7d02d6232"/></dir><dir name="sql"><dir name="niveus_productvideo_setup"><file name="mysql4-install-1.2.0.php" hash="4022ec194b52e4800bbe6061ecf8d61c"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Niveus_ProductVideo.xml" hash="7d2fb29c666116bb33c0867e383e0788"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="niveusproductvideo.xml" hash="61f41423688de05affbfd3f0287d609d"/></dir><dir name="template"><dir name="niveusproductvideo"><dir name="tab"><file name="videos.phtml" hash="6d36682fbfe653e4aea4c657141ac18a"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="niveusproductvideo.xml" hash="de98ce985d056729d5f0f86e57809f7f"/></dir><dir name="template"><dir name="niveusproductvideo"><file name="video.phtml" hash="7d372f7a9e627c3fbf51b1232552c3fa"/></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>