Auguria_Video - Version 0.0.4

Version Notes

If you have ideas for improvements or find bugs, please send them contact@auguria.net, with Auguria_Video as part of the subject line.

Download this release

Release Info

Developer Auguria
Extension Auguria_Video
Version 0.0.4
Comparing to
See all releases


Code changes from version 0.0.3 to 0.0.4

Files changed (30) hide show
  1. app/code/community/Auguria/Video/Block/Adminhtml/Host.php +17 -0
  2. app/code/community/Auguria/Video/Block/Adminhtml/Host/Edit.php +58 -0
  3. app/code/community/Auguria/Video/Block/Adminhtml/Host/Edit/Form.php +24 -0
  4. app/code/community/Auguria/Video/Block/Adminhtml/Host/Edit/Tab/Form.php +63 -0
  5. app/code/community/Auguria/Video/Block/Adminhtml/Host/Edit/Tabs.php +28 -0
  6. app/code/community/Auguria/Video/Block/Adminhtml/Host/Grid.php +116 -0
  7. app/code/community/Auguria/Video/Block/Adminhtml/Video/Edit/Tab/Form.php +126 -95
  8. app/code/community/Auguria/Video/Block/Adminhtml/Video/Grid.php +3 -3
  9. app/code/community/Auguria/Video/Helper/Data.php +91 -0
  10. app/code/community/Auguria/Video/Model/Adminhtml/System/Config/Source/Host.php +40 -0
  11. app/code/community/Auguria/Video/Model/Host.php +17 -0
  12. app/code/community/Auguria/Video/Model/Mysql4/Host.php +14 -0
  13. app/code/community/Auguria/Video/Model/Mysql4/Host/Collection.php +15 -0
  14. app/code/community/Auguria/Video/controllers/Adminhtml/HostController.php +160 -0
  15. app/code/community/Auguria/Video/controllers/Adminhtml/VideoController.php +7 -0
  16. app/code/community/Auguria/Video/etc/adminhtml.xml +19 -0
  17. app/code/community/Auguria/Video/etc/config.xml +4 -1
  18. app/code/community/Auguria/Video/etc/system.xml +156 -0
  19. app/code/community/Auguria/Video/sql/auguria_video_setup/mysql4-upgrade-0.0.3-0.0.4.php +53 -0
  20. app/design/adminhtml/default/default/layout/auguria/video.xml +15 -3
  21. app/design/frontend/base/default/template/auguria/video/home.phtml +38 -36
  22. app/design/frontend/base/default/template/auguria/video/list.phtml +61 -59
  23. app/design/frontend/base/default/template/auguria/video/product.phtml +43 -40
  24. app/locale/fr_FR/Auguria_Video.csv +34 -8
  25. js/prototype/windows/themes/magento.css +39 -0
  26. js/prototype/windows/themes/magento/btn_bg.gif +0 -0
  27. js/prototype/windows/themes/magento/content_bg.gif +0 -0
  28. js/prototype/windows/themes/magento/top_bg.gif +0 -0
  29. js/prototype/windows/themes/magento/window_close.png +0 -0
  30. package.xml +14 -8
app/code/community/Auguria/Video/Block/Adminhtml/Host.php ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @category Auguria
4
+ * @package Auguria_Video
5
+ * @author Auguria
6
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
7
+ */
8
+ class Auguria_Video_Block_Adminhtml_Host extends Mage_Adminhtml_Block_Widget_Grid_Container
9
+ {
10
+ public function __construct()
11
+ {
12
+ $this->_controller = 'adminhtml_host';
13
+ $this->_blockGroup = 'auguria_video';
14
+ $this->_headerText = $this->__('Hosts list');
15
+ parent::__construct();
16
+ }
17
+ }
app/code/community/Auguria/Video/Block/Adminhtml/Host/Edit.php ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @category Auguria
4
+ * @package Auguria_Video
5
+ * @author Auguria
6
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
7
+ */
8
+ class Auguria_Video_Block_Adminhtml_Host_Edit extends Mage_Adminhtml_Block_Widget_Form_Container
9
+ {
10
+ public function __construct()
11
+ {
12
+ parent::__construct();
13
+
14
+ $this->_objectId = 'id';
15
+ $this->_blockGroup = 'auguria_video';
16
+ $this->_controller = 'adminhtml_host';
17
+
18
+ $this->_updateButton('save', 'label', Mage::helper('auguria_video')->__('Save Item'));
19
+ $this->_updateButton('delete', 'label', Mage::helper('auguria_video')->__('Delete Item'));
20
+
21
+ $this->_addButton('saveandcontinue', array(
22
+ 'label' => Mage::helper('auguria_video')->__('Save And Continue Edit'),
23
+ 'onclick' => 'saveAndContinueEdit()',
24
+ 'class' => 'save',
25
+ ), -100);
26
+
27
+ $this->_formScripts[] = "
28
+ function toggleEditor() {
29
+ if (tinyMCE.getInstanceById('description') == null) {
30
+ tinyMCE.execCommand('mceAddControl', false, 'description');
31
+ } else {
32
+ tinyMCE.execCommand('mceRemoveControl', false, 'description');
33
+ }
34
+ }
35
+
36
+ function saveAndContinueEdit(){
37
+ editForm.submit($('edit_form').action+'back/edit/');
38
+ }
39
+ ";
40
+ }
41
+
42
+ public function getHeaderText()
43
+ {
44
+ if( Mage::registry('host_data') && Mage::registry('host_data')->getId() ) {
45
+ return Mage::helper('auguria_video')->__("Edition of the host '%s'", Mage::registry('host_data')->getTitle());
46
+ }
47
+ else {
48
+ return Mage::helper('auguria_video')->__('Add a host');
49
+ }
50
+ }
51
+
52
+ protected function _prepareLayout() {
53
+ parent::_prepareLayout();
54
+ if (Mage::getSingleton('cms/wysiwyg_config')->isEnabled()) {
55
+ $this->getLayout()->getBlock('head')->setCanLoadTinyMce(true);
56
+ }
57
+ }
58
+ }
app/code/community/Auguria/Video/Block/Adminhtml/Host/Edit/Form.php ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @category Auguria
4
+ * @package Auguria_Video
5
+ * @author Auguria
6
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
7
+ */
8
+ class Auguria_Video_Block_Adminhtml_Host_Edit_Form extends Mage_Adminhtml_Block_Widget_Form
9
+ {
10
+ protected function _prepareForm()
11
+ {
12
+ $form = new Varien_Data_Form(array(
13
+ 'id' => 'edit_form',
14
+ 'action' => $this->getUrl('*/*/save', array('id' => $this->getRequest()->getParam('id'))),
15
+ 'method' => 'post',
16
+ 'enctype' => 'multipart/form-data'
17
+ )
18
+ );
19
+
20
+ $form->setUseContainer(true);
21
+ $this->setForm($form);
22
+ return parent::_prepareForm();
23
+ }
24
+ }
app/code/community/Auguria/Video/Block/Adminhtml/Host/Edit/Tab/Form.php ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @category Auguria
4
+ * @package Auguria_Video
5
+ * @author Auguria
6
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
7
+ */
8
+ class Auguria_Video_Block_Adminhtml_Host_Edit_Tab_Form extends Mage_Adminhtml_Block_Widget_Form
9
+ {
10
+ protected function _prepareForm()
11
+ {
12
+ $form = new Varien_Data_Form();
13
+ $this->setForm($form);
14
+ $fieldset = $form->addFieldset('host_form', array('legend'=>Mage::helper('auguria_video')->__('Item information')));
15
+
16
+ $fieldset->addField('title', 'text', array(
17
+ 'label' => Mage::helper('auguria_video')->__('Title'),
18
+ 'class' => 'required-entry input-text',
19
+ 'required' => true,
20
+ 'name' => 'title',
21
+ ));
22
+
23
+ //$wysiwygConfig = Mage::getSingleton('cms/wysiwyg_config')->getConfig();
24
+ $fieldset->addField('description', 'editor', array(
25
+ 'name' => 'description',
26
+ 'label' => Mage::helper('auguria_video')->__('Description'),
27
+ 'title' => Mage::helper('auguria_video')->__('Description'),
28
+ 'wysiwyg' => true,
29
+ 'style' => 'width:725px;height:460px',
30
+ //'config' => $wysiwygConfig
31
+ ));
32
+
33
+ $fieldset->addField('base_url', 'text', array(
34
+ 'label' => Mage::helper('auguria_video')->__('Url'),
35
+ 'note' => Mage::helper('auguria_video')->__('Include any part of the url before the video identifier. For example, youtube url is http://www.youtube.com/v/. Check the video hosting service\'s API to check it out.'),
36
+ 'class' => 'required-entry input-text',
37
+ 'required' => true,
38
+ 'name' => 'base_url',
39
+ ));
40
+
41
+ $fieldset->addField('url_parameters', 'text', array(
42
+ 'label' => Mage::helper('auguria_video')->__('Url parameters'),
43
+ 'note' => Mage::helper('auguria_video')->__('Current valid format is: key=value&key=value...'),
44
+ 'class' => 'input-text',
45
+ 'required' => false,
46
+ 'name' => 'url_parameters',
47
+ ));
48
+
49
+ if (Mage::registry('host_data')) {
50
+ $form->setValues(Mage::registry('host_data')->getData());
51
+ }
52
+
53
+ return parent::_prepareForm();
54
+ }
55
+
56
+ /**
57
+ * Method to get a add url parameter button (TODO: dev a widget to enable the add from two text fields)
58
+ */
59
+ // public function getAddUrlParameterButton()
60
+ // {
61
+
62
+ // }
63
+ }
app/code/community/Auguria/Video/Block/Adminhtml/Host/Edit/Tabs.php ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @category Auguria
4
+ * @package Auguria_Video
5
+ * @author Auguria
6
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
7
+ */
8
+ class Auguria_Video_Block_Adminhtml_Host_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs
9
+ {
10
+ public function __construct()
11
+ {
12
+ parent::__construct();
13
+ $this->setId('host_tabs');
14
+ $this->setDestElementId('edit_form');
15
+ $this->setTitle(Mage::helper('auguria_video')->__('Item Information'));
16
+ }
17
+
18
+ protected function _beforeToHtml()
19
+ {
20
+ $this->addTab('form_section', array(
21
+ 'label' => Mage::helper('auguria_video')->__('Item Information'),
22
+ 'title' => Mage::helper('auguria_video')->__('Item Information'),
23
+ 'content' => $this->getLayout()->createBlock('auguria_video/adminhtml_host_edit_tab_form')->toHtml(),
24
+ ));
25
+
26
+ return parent::_beforeToHtml();
27
+ }
28
+ }
app/code/community/Auguria/Video/Block/Adminhtml/Host/Grid.php ADDED
@@ -0,0 +1,116 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @category Auguria
4
+ * @package Auguria_Video
5
+ * @author Auguria
6
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
7
+ */
8
+ class Auguria_Video_Block_Adminhtml_Host_Grid extends Mage_Adminhtml_Block_Widget_Grid
9
+ {
10
+ public function __construct()
11
+ {
12
+ parent::__construct();
13
+ $this->setId('hostGrid');
14
+ $this->setDefaultSort('auguria_host_id');
15
+ $this->setDefaultDir('ASC');
16
+ $this->setSaveParametersInSession(true);
17
+ }
18
+
19
+ protected function _prepareCollection()
20
+ {
21
+ $collection = Mage::getResourceModel('auguria_video/host_collection');
22
+ $this->setCollection($collection);
23
+ return parent::_prepareCollection();
24
+ }
25
+
26
+ protected function _prepareColumns()
27
+ {
28
+ $this->addColumn('auguria_host_id', array(
29
+ 'header' => Mage::helper('auguria_video')->__('ID'),
30
+ 'align' =>'right',
31
+ 'width' => '20px',
32
+ 'index' => 'auguria_host_id',
33
+ ));
34
+
35
+ $this->addColumn('title', array(
36
+ 'header' => Mage::helper('auguria_video')->__('Title'),
37
+ 'align' =>'left',
38
+ 'index' => 'title',
39
+ ));
40
+
41
+ $this->addColumn('base_url', array(
42
+ 'header' => Mage::helper('auguria_video')->__('Url'),
43
+ 'align' =>'left',
44
+ 'index' => 'base_url',
45
+ ));
46
+
47
+ $this->addColumn('url_parameters', array(
48
+ 'header' => Mage::helper('auguria_video')->__('Url parameters'),
49
+ 'align' =>'left',
50
+ 'index' => 'url_parameters',
51
+ ));
52
+
53
+
54
+ $this->addColumn('action',
55
+ array(
56
+ 'header' => Mage::helper('auguria_video')->__('Action'),
57
+ 'width' => '100',
58
+ 'type' => 'action',
59
+ 'getter' => 'getId',
60
+ 'actions' => array(
61
+ array(
62
+ 'caption' => Mage::helper('auguria_video')->__('Edit'),
63
+ 'url' => array('base'=> '*/*/edit'),
64
+ 'field' => 'id'
65
+ )
66
+ ),
67
+ 'filter' => false,
68
+ 'sortable' => false,
69
+ 'index' => 'auguria_host_id',
70
+ 'is_system' => true,
71
+ ));
72
+
73
+ //$this->addExportType('*/*/exportCsv', Mage::helper('auguria_video')->__('CSV'));
74
+ //$this->addExportType('*/*/exportXml', Mage::helper('auguria_video')->__('XML'));
75
+
76
+ return parent::_prepareColumns();
77
+ }
78
+
79
+ protected function _prepareMassaction()
80
+ {
81
+ $this->setMassactionIdField('auguria_host_id');
82
+ $this->getMassactionBlock()->setFormFieldName('hosts');
83
+
84
+ $this->getMassactionBlock()->addItem('delete', array(
85
+ 'label' => Mage::helper('auguria_video')->__('Delete'),
86
+ 'url' => $this->getUrl('*/*/massDelete'),
87
+ 'confirm' => Mage::helper('auguria_video')->__('Are you sure to delete selected hosts ?')
88
+ ));
89
+
90
+ // $statuses = Mage::getSingleton('adminhtml/system_config_source_enabledisable')->toOptionArray();
91
+ // array_unshift($statuses, array('label'=>'', 'value'=>''));
92
+
93
+ // $this->getMassactionBlock()->addItem('status', array(
94
+ // 'label'=> Mage::helper('auguria_video')->__('Update status'),
95
+ // 'url' => $this->getUrl('*/*/massStatus', array('_current'=>true)),
96
+ // 'confirm' => Mage::helper('auguria_video')->__('Are you sure to change status of selected videos ?'),
97
+ // 'additional' => array(
98
+ // 'visibility' => array(
99
+ // 'name' => 'status',
100
+ // 'type' => 'select',
101
+ // 'class' => 'required-entry',
102
+ // 'label' => Mage::helper('auguria_video')->__('Status'),
103
+ // 'values' => $statuses
104
+ // )
105
+ // )
106
+ // )
107
+ // );
108
+ return $this;
109
+ }
110
+
111
+ public function getRowUrl($row)
112
+ {
113
+ return $this->getUrl('*/*/edit', array('id' => $row->getId()));
114
+ }
115
+
116
+ }
app/code/community/Auguria/Video/Block/Adminhtml/Video/Edit/Tab/Form.php CHANGED
@@ -7,46 +7,55 @@
7
  */
8
  class Auguria_Video_Block_Adminhtml_Video_Edit_Tab_Form extends Mage_Adminhtml_Block_Widget_Form
9
  {
10
- protected function _prepareForm()
11
- {
12
- $form = new Varien_Data_Form();
13
- $this->setForm($form);
14
- $fieldset = $form->addFieldset('video_form', array('legend'=>Mage::helper('auguria_video')->__('Item information')));
15
 
16
- $fieldset->addField('title', 'text', array(
17
- 'label' => Mage::helper('auguria_video')->__('Title'),
18
- 'class' => 'required-entry input-text',
19
- 'required' => true,
20
- 'name' => 'title',
21
- ));
22
 
23
 
24
  //$wysiwygConfig = Mage::getSingleton('cms/wysiwyg_config')->getConfig();
25
- $fieldset->addField('description', 'editor', array(
26
- 'name' => 'description',
27
- 'label' => Mage::helper('auguria_video')->__('Description'),
28
- 'title' => Mage::helper('auguria_video')->__('Description'),
29
- 'wysiwyg' => true,
30
- 'style' => 'width:725px;height:460px',
31
- //'config' => $wysiwygConfig
32
- ));
33
-
34
- $fieldset->addField('image_identifier', 'text', array(
35
- 'label' => Mage::helper('auguria_video')->__('Identifier'),
36
- 'class' => 'required-entry input-text',
37
- 'required' => true,
38
- 'name' => 'image_identifier',
39
- ));
40
-
41
- $fieldset->addField('preview', 'image', array(
42
- 'label' => Mage::helper('auguria_video')->__('Preview'),
43
- 'class' => 'required-entry input-text',
44
- 'required' => true,
45
- 'name' => 'preview',
46
- 'after_element_html' => '<p class="note"><span>Format: 425x239 pixels</span></p>',
47
- ));
48
-
49
- $fieldset->addField('status', 'select',
 
 
 
 
 
 
 
 
 
50
  array(
51
  'name' => 'status',
52
  'label' => Mage::helper('auguria_video')->__('Status'),
@@ -54,13 +63,13 @@ class Auguria_Video_Block_Adminhtml_Video_Edit_Tab_Form extends Mage_Adminhtml_B
54
  )
55
  );
56
 
57
- $button = $this->_getAddProductButton();
58
- $fieldset->addField('product_id', 'note', array(
59
- 'label' => Mage::helper('auguria_video')->__('Associated product'),
60
- 'text' => $button,
61
- ));
62
 
63
- $fieldset->addField('display_on_home_page', 'select',
64
  array(
65
  'name' => 'display_on_home_page',
66
  'label' => Mage::helper('auguria_video')->__('Display on home page'),
@@ -68,57 +77,79 @@ class Auguria_Video_Block_Adminhtml_Video_Edit_Tab_Form extends Mage_Adminhtml_B
68
  )
69
  );
70
 
71
- if (Mage::registry('video_data')) {
72
- $form->setValues(Mage::registry('video_data')->getData());
73
- }
74
- return parent::_prepareForm();
75
- }
76
-
77
- public function _getAddProductButton()
78
- {
79
- $productId = "";
80
- if (Mage::registry('video_data') && (int)Mage::registry('video_data')->getProductId()>0) {
81
- $productId = Mage::registry('video_data')->getProductId();
82
- }
83
- $input = '<input type="hidden" value="'.$productId.'" name="product_id" id="auguria_video_product_id" />';
84
- if ((int)$productId==0) {
85
- $value = Mage::helper('auguria_video')->__('No product');
86
- }
87
- else {
88
- $product = Mage::getModel('catalog/product')->load($productId);
89
- $value = $product->getName();
90
- }
91
-
92
- $layout = Mage::getSingleton('core/layout');
93
-
94
- $html = '<script type="text/javascript">// <![CDATA[
95
- function displayProductGrid() {
96
- winGrid = new Window({className:"magento",title:"'.Mage::helper('auguria_video')->__('Select product').'",width:800,height:450,minimizable:false,maximizable:false,showEffectOptions:{duration:0.4},hideEffectOptions:{duration:0.4}});
97
- winGrid.setZIndex(100);
98
- winGrid.showCenter(true);
99
- winGrid.setContent("video_chooser_container");
100
- }
101
- // ]]></script>';
102
- $html .= $layout->createBlock('adminhtml/widget_button')
103
- ->setData(array(
104
- 'label' => Mage::helper('adminhtml')->__('Select product'),
105
- 'onclick' => 'displayProductGrid()',
106
- 'class' => 'add',
107
- 'before_html' => $input.'<div class="main"><p id="video_name">'.$value.'</p>',
108
- 'after_html' => '</div>'))
109
- ->toHtml();
110
-
111
- $productsGrid = $layout->createBlock('auguria_video/adminhtml_catalog_product_widget_chooser', '', array(
112
- 'id' => 'video_chooser',
113
- 'use_massaction' => false,
114
- 'product_type_id' => null,
115
- 'category_id' => null,
116
- ));
117
-
118
- $html .= "<div id='video_chooser_container' style='display:none'>";
119
- $html .= $productsGrid->toHtml();
120
- $html .= "</div>";
121
- return $html;
122
-
123
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
124
  }
7
  */
8
  class Auguria_Video_Block_Adminhtml_Video_Edit_Tab_Form extends Mage_Adminhtml_Block_Widget_Form
9
  {
10
+ protected function _prepareForm()
11
+ {
12
+ $form = new Varien_Data_Form();
13
+ $this->setForm($form);
14
+ $fieldset = $form->addFieldset('video_form', array('legend'=>Mage::helper('auguria_video')->__('Item information')));
15
 
16
+ $fieldset->addField('title', 'text', array(
17
+ 'label' => Mage::helper('auguria_video')->__('Title'),
18
+ 'class' => 'required-entry input-text',
19
+ 'required' => true,
20
+ 'name' => 'title',
21
+ ));
22
 
23
 
24
  //$wysiwygConfig = Mage::getSingleton('cms/wysiwyg_config')->getConfig();
25
+ $fieldset->addField('description', 'editor', array(
26
+ 'name' => 'description',
27
+ 'label' => Mage::helper('auguria_video')->__('Description'),
28
+ 'title' => Mage::helper('auguria_video')->__('Description'),
29
+ 'wysiwyg' => true,
30
+ 'style' => 'width:725px;height:460px',
31
+ //'config' => $wysiwygConfig
32
+ ));
33
+
34
+ $fieldset->addField('image_identifier', 'text', array(
35
+ 'label' => Mage::helper('auguria_video')->__('Identifier'),
36
+ 'note' => Mage::helper('auguria_video')->__("Video's identifier or filename if hosted on this server"),
37
+ 'class' => 'required-entry input-text',
38
+ 'required' => true,
39
+ 'name' => 'image_identifier',
40
+ ));
41
+
42
+ $fieldset->addField('host_id', 'select',
43
+ array(
44
+ 'name' => 'host_id',
45
+ 'label' => Mage::helper('auguria_video')->__('Host embedding the video'),
46
+ 'values' => Mage::getModel('auguria_video/adminhtml_system_config_source_host')->toOptionArray(),
47
+ )
48
+ );
49
+
50
+ $fieldset->addField('preview', 'image', array(
51
+ 'label' => Mage::helper('auguria_video')->__('Preview'),
52
+ 'class' => 'required-entry input-text',
53
+ 'required' => true,
54
+ 'name' => 'preview',
55
+ 'after_element_html' => '<p class="note"><span>Format: 425x239 pixels</span></p>',
56
+ ));
57
+
58
+ $fieldset->addField('status', 'select',
59
  array(
60
  'name' => 'status',
61
  'label' => Mage::helper('auguria_video')->__('Status'),
63
  )
64
  );
65
 
66
+ $button = $this->_getAddProductButton();
67
+ $fieldset->addField('product_id', 'note', array(
68
+ 'label' => Mage::helper('auguria_video')->__('Associated product'),
69
+ 'text' => $button,
70
+ ));
71
 
72
+ $fieldset->addField('display_on_home_page', 'select',
73
  array(
74
  'name' => 'display_on_home_page',
75
  'label' => Mage::helper('auguria_video')->__('Display on home page'),
77
  )
78
  );
79
 
80
+ $fieldset->addField('player_width', 'text', array(
81
+ 'label' => Mage::helper('auguria_video')->__('Video player width'),
82
+ 'note' => Mage::helper('auguria_video')->__('Leave blank to use configuration values'),
83
+ 'class' => 'input-text validate-digits',
84
+ 'required' => false,
85
+ 'name' => 'player_width',
86
+ ));
87
+
88
+ $fieldset->addField('player_height', 'text', array(
89
+ 'label' => Mage::helper('auguria_video')->__('Video player height'),
90
+ 'note' => Mage::helper('auguria_video')->__('Leave blank to use configuration values'),
91
+ 'class' => 'input-text validate-digits',
92
+ 'required' => false,
93
+ 'name' => 'player_height',
94
+ ));
95
+ // Mage::log('test');
96
+ // if (!Mage::getStoreConfig(Auguria_Video_Helper_Data::CONFIGPATH_FOLDER_VIDEO)){
97
+ // /* @var $tmp Mage_Adminhtml_Model_Session */
98
+ // $tmp = Mage::getSingleton('adminhtml/session');
99
+ // $tmp->addNotice(Mage::helper('auguria_video')->__("Please think about defining the video folder path in module configuration, it's currently blank"));
100
+ // }
101
+ //Mage::getSingleton('adminhtml/session')
102
+ if (Mage::registry('video_data')) {
103
+ $form->setValues(Mage::registry('video_data')->getData());
104
+ }
105
+ return parent::_prepareForm();
106
+ }
107
+
108
+ public function _getAddProductButton()
109
+ {
110
+ $productId = "";
111
+ if (Mage::registry('video_data') && (int)Mage::registry('video_data')->getProductId()>0) {
112
+ $productId = Mage::registry('video_data')->getProductId();
113
+ }
114
+ $input = '<input type="hidden" value="'.$productId.'" name="product_id" id="auguria_video_product_id" />';
115
+ if ((int)$productId==0) {
116
+ $value = Mage::helper('auguria_video')->__('No product');
117
+ }
118
+ else {
119
+ $product = Mage::getModel('catalog/product')->load($productId);
120
+ $value = $product->getName();
121
+ }
122
+
123
+ $layout = Mage::getSingleton('core/layout');
124
+
125
+ $html = '<script type="text/javascript">// <![CDATA[
126
+ function displayProductGrid() {
127
+ winGrid = new Window({className:"magento",title:"'.Mage::helper('auguria_video')->__('Select product').'",width:800,height:450,minimizable:false,maximizable:false,showEffectOptions:{duration:0.4},hideEffectOptions:{duration:0.4}});
128
+ winGrid.setZIndex(100);
129
+ winGrid.showCenter(true);
130
+ winGrid.setContent("video_chooser_container");
131
+ }
132
+ // ]]></script>';
133
+ $html .= $layout->createBlock('adminhtml/widget_button')
134
+ ->setData(array(
135
+ 'label' => Mage::helper('adminhtml')->__('Select product'),
136
+ 'onclick' => 'displayProductGrid()',
137
+ 'class' => 'add',
138
+ 'before_html' => $input.'<div class="main"><p id="video_name">'.$value.'</p>',
139
+ 'after_html' => '</div>'))
140
+ ->toHtml();
141
+
142
+ $productsGrid = $layout->createBlock('auguria_video/adminhtml_catalog_product_widget_chooser', '', array(
143
+ 'id' => 'video_chooser',
144
+ 'use_massaction' => false,
145
+ 'product_type_id' => null,
146
+ 'category_id' => null,
147
+ ));
148
+
149
+ $html .= "<div id='video_chooser_container' style='display:none'>";
150
+ $html .= $productsGrid->toHtml();
151
+ $html .= "</div>";
152
+ return $html;
153
+
154
+ }
155
  }
app/code/community/Auguria/Video/Block/Adminhtml/Video/Grid.php CHANGED
@@ -38,10 +38,10 @@ class Auguria_Video_Block_Adminhtml_Video_Grid extends Mage_Adminhtml_Block_Widg
38
  'index' => 'title',
39
  ));
40
 
41
- $this->addColumn('filename', array(
42
- 'header' => Mage::helper('auguria_video')->__('Filename'),
43
  'align' =>'left',
44
- 'index' => 'filename',
45
  ));
46
 
47
  $this->addColumn('status', array(
38
  'index' => 'title',
39
  ));
40
 
41
+ $this->addColumn('image_identifier', array(
42
+ 'header' => Mage::helper('auguria_video')->__('Identifier or filename'),
43
  'align' =>'left',
44
+ 'index' => 'image_identifier',
45
  ));
46
 
47
  $this->addColumn('status', array(
app/code/community/Auguria/Video/Helper/Data.php CHANGED
@@ -7,6 +7,26 @@
7
  */
8
  class Auguria_Video_Helper_Data extends Mage_Core_Helper_Abstract
9
  {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  public function statusToOptionArray()
11
  {
12
  return array (
@@ -15,6 +35,52 @@ class Auguria_Video_Helper_Data extends Mage_Core_Helper_Abstract
15
  );
16
  }
17
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  public function getPreviewResizedImage($_video, $width, $height)
19
  {
20
  if (!$_video->getPreview()) {
@@ -53,4 +119,29 @@ class Auguria_Video_Helper_Data extends Mage_Core_Helper_Abstract
53
  return false;
54
  }
55
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
56
  }
7
  */
8
  class Auguria_Video_Helper_Data extends Mage_Core_Helper_Abstract
9
  {
10
+ /** Constants */
11
+ # Video folder path
12
+ const CONFIGPATH_FOLDER_VIDEO = 'auguria_video/general/self_hosted_path';
13
+ # Preview -- Home
14
+ const CONFIGPATH_PREVIEW_WIDTH_HOME = 'auguria_video/sizes/preview_home_width';
15
+ const CONFIGPATH_PREVIEW_HEIGHT_HOME = 'auguria_video/sizes/preview_home_width';
16
+ # Preview -- List
17
+ const CONFIGPATH_PREVIEW_WIDTH_LIST = 'auguria_video/sizes/preview_list_width';
18
+ const CONFIGPATH_PREVIEW_HEIGHT_LIST = 'auguria_video/sizes/preview_list_height';
19
+ # Preview -- Product
20
+ const CONFIGPATH_PREVIEW_WIDTH_PRODUCT = 'auguria_video/sizes/preview_product_width';
21
+ const CONFIGPATH_PREVIEW_HEIGHT_PRODUCT = 'auguria_video/sizes/preview_product_height';
22
+ # Player
23
+ const CONFIGPATH_PLAYER_WIDTH = 'auguria_video/sizes/video_player_width';
24
+ const CONFIGPATH_PLAYER_HEIGHT = 'auguria_video/sizes/video_player_height';
25
+ const CONFIGPATH_PLAYER_MINIMIZE = 'auguria_video/options/permit_fullscreen';
26
+ const CONFIGPATH_PLAYER_FULLSCREEN = 'auguria_video/options/permit_minimize';
27
+
28
+
29
+
30
  public function statusToOptionArray()
31
  {
32
  return array (
35
  );
36
  }
37
 
38
+ /**
39
+ * Get the required player width, ie the one of the video if exists or else conf value
40
+ * @param Auguria_Video_Model_Video $video
41
+ * @return int video player width
42
+ */
43
+ public function getPlayerWidth(Auguria_Video_Model_Video $video)
44
+ {
45
+ $playerWidth = Mage::getStoreConfig(self::CONFIGPATH_PLAYER_WIDTH);
46
+ if ($video && $video->getPlayerWidth()) {
47
+ $playerWidth = $video->getPlayerWidth();
48
+ }
49
+ return $playerWidth;
50
+ }
51
+
52
+ /**
53
+ * Get the required player height, ie the one of the video if exists or else conf value
54
+ * @param Auguria_Video_Model_Video $video
55
+ * @return int video player height
56
+ */
57
+ public function getPlayerHeight(Auguria_Video_Model_Video $video)
58
+ {
59
+ $playerHeight = Mage::getStoreConfig(self::CONFIGPATH_PLAYER_HEIGHT);
60
+ if ($video && $video->getPlayerHeight()) {
61
+ $playerHeight = $video->getPlayerHeight();
62
+ }
63
+ return $playerHeight + 5;
64
+ }
65
+
66
+ /**
67
+ * Return minimizable conf
68
+ * @return boolean isMinizable
69
+ */
70
+ public function getMinimizable()
71
+ {
72
+ return Mage::getStoreConfig(self::CONFIGPATH_PLAYER_MINIMIZE);
73
+ }
74
+
75
+ /**
76
+ * Return fullscreen conf
77
+ * @return boolean canBeFullscreened
78
+ */
79
+ public function getFullscreen()
80
+ {
81
+ return Mage::getStoreConfig(self::CONFIGPATH_PLAYER_FULLSCREEN);
82
+ }
83
+
84
  public function getPreviewResizedImage($_video, $width, $height)
85
  {
86
  if (!$_video->getPreview()) {
119
  return false;
120
  }
121
  }
122
+
123
+ /**
124
+ * Return a usable src for the video passed as parameter
125
+ * @param Auguria_Video_Model_Video $video
126
+ */
127
+ public function getVideoSrc(Auguria_Video_Model_Video $video)
128
+ {
129
+ $videoSrc = '';
130
+
131
+ /* @var $video Auguria_Video_Model_Video*/
132
+ if ($video) {
133
+ if ($video->getHostId()) {
134
+ // Embeded video
135
+ $host = Mage::getModel('auguria_video/host')->load($video->getHostId());
136
+ $videoSrc = $host->getBaseUrl() . $video->getImageIdentifier() . $host->getUrlParameters();
137
+ } else {
138
+ // Local hosted video
139
+ $videoSrc = Mage::getBaseUrl('media') .
140
+ trim(Mage::getStoreConfig(self::CONFIGPATH_FOLDER_VIDEO), " /") .
141
+ DS . $video->getImageIdentifier();
142
+ }
143
+ }
144
+
145
+ return $videoSrc;
146
+ }
147
  }
app/code/community/Auguria/Video/Model/Adminhtml/System/Config/Source/Host.php ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @category Auguria
4
+ * @package Auguria_Video
5
+ * @author Auguria
6
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
7
+ */
8
+
9
+ /**
10
+ * Used in creating options for Yes|No config value selection
11
+ *
12
+ */
13
+ class Auguria_Video_Model_Adminhtml_System_Config_Source_Host
14
+ {
15
+ /**
16
+ * Options getter
17
+ *
18
+ * @return array
19
+ */
20
+ public function toOptionArray()
21
+ {
22
+
23
+ $collection = Mage::getModel('auguria_video/host')->getCollection();
24
+
25
+ $options[] = array(
26
+ 'value' => 0,
27
+ 'label' => Mage::helper('adminhtml')->__("Local (self hosted from configuration's path)")
28
+ );
29
+
30
+ /* @var $host Auguria_Video_Model_Host */
31
+ foreach ($collection as $host) {
32
+ $options[] = array(
33
+ 'value' => $host->getId(),
34
+ 'label' => $host->getTitle()
35
+ );
36
+ }
37
+
38
+ return $options;
39
+ }
40
+ }
app/code/community/Auguria/Video/Model/Host.php ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @category Auguria
4
+ * @package Auguria_Video
5
+ * @author Auguria
6
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
7
+ */
8
+ class Auguria_Video_Model_Host extends Mage_Core_Model_Abstract
9
+ {
10
+ public function _construct()
11
+ {
12
+ parent::_construct();
13
+ $this->_init('auguria_video/host');
14
+ }
15
+
16
+ // TODO: prepareParameters (sauvegarder tout sans une ligne: &xxx=1&yyy=2... )
17
+ }
app/code/community/Auguria/Video/Model/Mysql4/Host.php ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @category Auguria
4
+ * @package Auguria_Video
5
+ * @author Auguria
6
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
7
+ */
8
+ class Auguria_Video_Model_Mysql4_Host extends Mage_Core_Model_Mysql4_Abstract
9
+ {
10
+ public function _construct()
11
+ {
12
+ $this->_init('auguria_video/host', 'auguria_host_id');
13
+ }
14
+ }
app/code/community/Auguria/Video/Model/Mysql4/Host/Collection.php ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @category Auguria
4
+ * @package Auguria_Video
5
+ * @author Auguria
6
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
7
+ */
8
+ class Auguria_Video_Model_Mysql4_Host_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
9
+ {
10
+ public function _construct()
11
+ {
12
+ parent::_construct();
13
+ $this->_init('auguria_video/host');
14
+ }
15
+ }
app/code/community/Auguria/Video/controllers/Adminhtml/HostController.php ADDED
@@ -0,0 +1,160 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @category Auguria
4
+ * @package Auguria_Video
5
+ * @author Auguria
6
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
7
+ */
8
+ class Auguria_Video_Adminhtml_HostController extends Mage_Adminhtml_Controller_Action
9
+ {
10
+
11
+ protected function _initAction()
12
+ {
13
+ $this->loadLayout()
14
+ ->_setActiveMenu('auguria_video')
15
+ ->_addBreadcrumb(Mage::helper('adminhtml')->__('Hosts Manager'), Mage::helper('adminhtml')->__('Hosts Manager'));
16
+
17
+ if (!Mage::getStoreConfig(Auguria_Video_Helper_Data::CONFIGPATH_FOLDER_VIDEO)){
18
+ /* @var $tmp Mage_Adminhtml_Model_Session */
19
+ $tmp = Mage::getSingleton('adminhtml/session');
20
+ $tmp->addNotice(Mage::helper('auguria_video')->__("Please think about defining the video folder path in module configuration, it's currently blank"));
21
+ }
22
+
23
+ return $this;
24
+ }
25
+
26
+ public function indexAction()
27
+ {
28
+ $this->_initAction()
29
+ ->renderLayout();
30
+ }
31
+
32
+ public function newAction()
33
+ {
34
+ $this->_forward('edit');
35
+ }
36
+
37
+ public function deleteAction()
38
+ {
39
+ $id = $this->getRequest()->getParam('id');
40
+ $model = Mage::getModel('auguria_video/host')->load($id);
41
+ if ($model->getId()) {
42
+ $model->delete();
43
+ Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('auguria_video')->__("The host has been successfully deleted"));
44
+ $this->_redirect('*/*/');
45
+ }
46
+ else {
47
+ Mage::getSingleton('adminhtml/session')->addError(Mage::helper('auguria_video')->__("This host doesn't exist"));
48
+ $this->_redirect('*/*/');
49
+ }
50
+ }
51
+
52
+ public function editAction()
53
+ {
54
+ $id = $this->getRequest()->getParam('id');
55
+
56
+ $model = Mage::getModel('auguria_video/host')->load($id);
57
+ if ($model->getId() || $id == 0)
58
+ {
59
+ $data = Mage::getSingleton('adminhtml/session')->getFormData(true);
60
+ if (!empty($data))
61
+ {
62
+ $model->setData($data);
63
+ }
64
+
65
+ Mage::register('host_data', $model);
66
+
67
+ $this->loadLayout();
68
+ $this->_setActiveMenu('auguria_video');
69
+
70
+ $this->_addBreadcrumb(Mage::helper('adminhtml')->__('Item Manager'), Mage::helper('adminhtml')->__('Item Manager'));
71
+ $this->_addBreadcrumb(Mage::helper('adminhtml')->__('Item News'), Mage::helper('adminhtml')->__('Item News'));
72
+
73
+ $this->getLayout()->getBlock('head')->setCanLoadExtJs(true);
74
+
75
+ $this->_addContent($this->getLayout()->createBlock('auguria_video/adminhtml_host_edit'))
76
+ ->_addLeft($this->getLayout()->createBlock('auguria_video/adminhtml_host_edit_tabs'));
77
+
78
+ $this->renderLayout();
79
+ }
80
+ else
81
+ {
82
+ Mage::getSingleton('adminhtml/session')->addError(Mage::helper('auguria_video')->__('Item does not exist'));
83
+ $this->_redirect('*/*/');
84
+ }
85
+ }
86
+
87
+ public function saveAction()
88
+ {
89
+ if ($data = $this->getRequest()->getPost()) {
90
+ Mage::log($data);
91
+ try {
92
+ $id = $this->getRequest()->getParam('id');
93
+ $model = Mage::getModel('auguria_video/host')->load($id);
94
+ $data['auguria_host_id'] = $id;
95
+ $model->setData($data);
96
+ Mage::log($model->getData());
97
+ $model->save();
98
+
99
+ Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('auguria_video')->__("The host has been successfully recorded"));
100
+ Mage::getSingleton('adminhtml/session')->setFormData(false);
101
+
102
+ if ($this->getRequest()->getParam('back')) {
103
+ $this->_redirect('*/*/edit', array('id' => $model->getId()));
104
+ return;
105
+ }
106
+ $this->_redirect('*/*/');
107
+ return;
108
+ }
109
+ catch (Exception $e) {
110
+ Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
111
+ Mage::getSingleton('adminhtml/session')->setFormData($data);
112
+ $this->_redirect('*/*/edit', array('id' => $this->getRequest()->getParam('id')));
113
+ return;
114
+ }
115
+ }
116
+ Mage::getSingleton('adminhtml/session')->addError(Mage::helper('auguria_video')->__("Unable to find change to save"));
117
+ $this->_redirect('*/*/');
118
+ }
119
+
120
+ public function massDeleteAction()
121
+ {
122
+ Mage::log($this->getRequest()->getParams());
123
+ $hostIds = $this->getRequest()->getParam('hosts');
124
+ if(!is_array($hostIds)) {
125
+ $this->_getSession()->addError(Mage::helper('auguria_video')->__("Please select keys"));
126
+ }
127
+ else {
128
+ foreach ($hostIds as $keyId) {
129
+ $model = Mage::getModel('auguria_video/host')->load($keyId);
130
+ if ($model->getId()) {
131
+ $model->delete();
132
+ }
133
+ }
134
+ $this->_getSession()->addSuccess(
135
+ $this->__('Total of %d record(s) were successfully deleted', count($hostIds))
136
+ );
137
+ }
138
+ $this->_redirect('*/*/index');
139
+ }
140
+
141
+ public function massStatusAction()
142
+ {
143
+ $hostIds = $this->getRequest()->getParam('videos');
144
+ if(!is_array($hostIds)) {
145
+ $this->_getSession()->addError(Mage::helper('auguria_video')->__("Please select keys"));
146
+ }
147
+ else {
148
+ foreach ($hostIds as $keyId) {
149
+ $model = Mage::getModel('auguria_video/host')->load($keyId);
150
+ if ($model->getId()) {
151
+ $model->save();
152
+ }
153
+ }
154
+ $this->_getSession()->addSuccess(
155
+ $this->__('Total of %d record(s) were successfully updated', count($hostIds))
156
+ );
157
+ }
158
+ $this->_redirect('*/*/index');
159
+ }
160
+ }
app/code/community/Auguria/Video/controllers/Adminhtml/VideoController.php CHANGED
@@ -13,6 +13,13 @@ class Auguria_Video_Adminhtml_VideoController extends Mage_Adminhtml_Controller_
13
  $this->loadLayout()
14
  ->_setActiveMenu('auguria_video')
15
  ->_addBreadcrumb(Mage::helper('adminhtml')->__('Videos Manager'), Mage::helper('adminhtml')->__('Videos Manager'));
 
 
 
 
 
 
 
16
  return $this;
17
  }
18
 
13
  $this->loadLayout()
14
  ->_setActiveMenu('auguria_video')
15
  ->_addBreadcrumb(Mage::helper('adminhtml')->__('Videos Manager'), Mage::helper('adminhtml')->__('Videos Manager'));
16
+
17
+ if (!Mage::getStoreConfig(Auguria_Video_Helper_Data::CONFIGPATH_FOLDER_VIDEO)){
18
+ /* @var $tmp Mage_Adminhtml_Model_Session */
19
+ $tmp = Mage::getSingleton('adminhtml/session');
20
+ $tmp->addNotice(Mage::helper('auguria_video')->__("Please think about defining the video folder path in module configuration, it's currently blank"));
21
+ }
22
+
23
  return $this;
24
  }
25
 
app/code/community/Auguria/Video/etc/adminhtml.xml CHANGED
@@ -18,6 +18,11 @@
18
  <sort_order>0</sort_order>
19
  <action>adminhtml/video</action>
20
  </items>
 
 
 
 
 
21
  </children>
22
  </auguria_video>
23
  </menu>
@@ -35,8 +40,22 @@
35
  <items module="auguria_video">
36
  <title>Manage videos</title>
37
  </items>
 
 
 
38
  </children>
39
  </auguria_video>
 
 
 
 
 
 
 
 
 
 
 
40
  </children>
41
  </admin>
42
  </resources>
18
  <sort_order>0</sort_order>
19
  <action>adminhtml/video</action>
20
  </items>
21
+ <hosts module="auguria_video">
22
+ <title>Manage hosts</title>
23
+ <sort_order>1</sort_order>
24
+ <action>adminhtml/host</action>
25
+ </hosts>
26
  </children>
27
  </auguria_video>
28
  </menu>
40
  <items module="auguria_video">
41
  <title>Manage videos</title>
42
  </items>
43
+ <hosts module="auguria_video">
44
+ <title>Manage hosts</title>
45
+ </hosts>
46
  </children>
47
  </auguria_video>
48
+ <system>
49
+ <children>
50
+ <config>
51
+ <children>
52
+ <auguria_video translate="title" module="auguria_video">
53
+ <title>Auguria Video</title>
54
+ </auguria_video>
55
+ </children>
56
+ </config>
57
+ </children>
58
+ </system>
59
  </children>
60
  </admin>
61
  </resources>
app/code/community/Auguria/Video/etc/config.xml CHANGED
@@ -10,7 +10,7 @@
10
  <config>
11
  <modules>
12
  <Auguria_Video>
13
- <version>0.0.3</version>
14
  </Auguria_Video>
15
  </modules>
16
  <frontend>
@@ -81,6 +81,9 @@
81
  <video>
82
  <table>auguria_video</table>
83
  </video>
 
 
 
84
  </entities>
85
  </auguria_video_mysql4>
86
  </models>
10
  <config>
11
  <modules>
12
  <Auguria_Video>
13
+ <version>0.0.4</version>
14
  </Auguria_Video>
15
  </modules>
16
  <frontend>
81
  <video>
82
  <table>auguria_video</table>
83
  </video>
84
+ <host>
85
+ <table>auguria_video_host</table>
86
+ </host>
87
  </entities>
88
  </auguria_video_mysql4>
89
  </models>
app/code/community/Auguria/Video/etc/system.xml ADDED
@@ -0,0 +1,156 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <!--
3
+ /**
4
+ * @category Auguria
5
+ * @package Auguria_Contact
6
+ * @author Auguria
7
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
8
+ */
9
+ -->
10
+ <config>
11
+ <sections>
12
+ <auguria_video translate="label" module="auguria_video">
13
+ <label>Auguria Videos</label>
14
+ <tab>general</tab>
15
+ <frontend_type>text</frontend_type>
16
+ <sort_order>200</sort_order>
17
+ <show_in_default>1</show_in_default>
18
+ <show_in_website>1</show_in_website>
19
+ <show_in_store>1</show_in_store>
20
+ <groups >
21
+ <general translate="label">
22
+ <label>General</label>
23
+ <frontend_type>text</frontend_type>
24
+ <sort_order>1</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
+ <fields>
29
+ <self_hosted_path translate="label comment">
30
+ <label>Video's folder path from media</label>
31
+ <comment>Path from media folder</comment>
32
+ <frontend_type>text</frontend_type>
33
+ <sort_order>1</sort_order>
34
+ <show_in_default>1</show_in_default>
35
+ <show_in_website>1</show_in_website>
36
+ <show_in_store>1</show_in_store>
37
+ </self_hosted_path>
38
+ </fields>
39
+ </general>
40
+ <sizes translate="label">
41
+ <label>Video player sizes options</label>
42
+ <frontend_type>text</frontend_type>
43
+ <sort_order>2</sort_order>
44
+ <show_in_default>1</show_in_default>
45
+ <show_in_website>1</show_in_website>
46
+ <show_in_store>1</show_in_store>
47
+ <fields>
48
+ <preview_home_width translate="label">
49
+ <label>Preview home width</label>
50
+ <frontend_type>text</frontend_type>
51
+ <validate>validate-digits</validate>
52
+ <sort_order>1</sort_order>
53
+ <show_in_default>1</show_in_default>
54
+ <show_in_website>1</show_in_website>
55
+ <show_in_store>1</show_in_store>
56
+ </preview_home_width>
57
+ <preview_home_height translate="label">
58
+ <label>Preview home height</label>
59
+ <frontend_type>text</frontend_type>
60
+ <validate>validate-digits</validate>
61
+ <sort_order>2</sort_order>
62
+ <show_in_default>1</show_in_default>
63
+ <show_in_website>1</show_in_website>
64
+ <show_in_store>1</show_in_store>
65
+ </preview_home_height>
66
+
67
+ <preview_list_width translate="label">
68
+ <label>Preview list width</label>
69
+ <frontend_type>text</frontend_type>
70
+ <validate>validate-digits</validate>
71
+ <sort_order>3</sort_order>
72
+ <show_in_default>1</show_in_default>
73
+ <show_in_website>1</show_in_website>
74
+ <show_in_store>1</show_in_store>
75
+ </preview_list_width>
76
+ <preview_list_height translate="label">
77
+ <label>Preview list height</label>
78
+ <frontend_type>text</frontend_type>
79
+ <validate>validate-digits</validate>
80
+ <sort_order>4</sort_order>
81
+ <show_in_default>1</show_in_default>
82
+ <show_in_website>1</show_in_website>
83
+ <show_in_store>1</show_in_store>
84
+ </preview_list_height>
85
+
86
+ <preview_product_width translate="label">
87
+ <label>Preview product width</label>
88
+ <frontend_type>text</frontend_type>
89
+ <validate>validate-digits</validate>
90
+ <sort_order>5</sort_order>
91
+ <show_in_default>1</show_in_default>
92
+ <show_in_website>1</show_in_website>
93
+ <show_in_store>1</show_in_store>
94
+ </preview_product_width>
95
+ <preview_product_height translate="label">
96
+ <label>Preview product height</label>
97
+ <frontend_type>text</frontend_type>
98
+ <validate>validate-digits</validate>
99
+ <sort_order>6</sort_order>
100
+ <show_in_default>1</show_in_default>
101
+ <show_in_website>1</show_in_website>
102
+ <show_in_store>1</show_in_store>
103
+ </preview_product_height>
104
+
105
+ <video_player_width translate="label">
106
+ <label>Video player width</label>
107
+ <frontend_type>text</frontend_type>
108
+ <validate>validate-digits</validate>
109
+ <sort_order>7</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
+ </video_player_width>
114
+ <video_player_height translate="label">
115
+ <label>Video player height</label>
116
+ <frontend_type>text</frontend_type>
117
+ <validate>validate-digits</validate>
118
+ <sort_order>8</sort_order>
119
+ <show_in_default>1</show_in_default>
120
+ <show_in_website>1</show_in_website>
121
+ <show_in_store>1</show_in_store>
122
+ </video_player_height>
123
+ </fields>
124
+ </sizes>
125
+ <options translate="label">
126
+ <label>Options</label>
127
+ <frontend_type>text</frontend_type>
128
+ <sort_order>3</sort_order>
129
+ <show_in_default>1</show_in_default>
130
+ <show_in_website>1</show_in_website>
131
+ <show_in_store>1</show_in_store>
132
+ <fields>
133
+ <permit_fullscreen translate="label comment">
134
+ <label>Permit users to watch fullscreen videos</label>
135
+ <frontend_type>select</frontend_type>
136
+ <source_model>adminhtml/system_config_source_yesno</source_model>
137
+ <sort_order>1</sort_order>
138
+ <show_in_default>1</show_in_default>
139
+ <show_in_website>1</show_in_website>
140
+ <show_in_store>1</show_in_store>
141
+ </permit_fullscreen>
142
+ <permit_minimize translate="label comment">
143
+ <label>Permit users to minimize videos</label>
144
+ <frontend_type>select</frontend_type>
145
+ <source_model>adminhtml/system_config_source_yesno</source_model>
146
+ <sort_order>1</sort_order>
147
+ <show_in_default>1</show_in_default>
148
+ <show_in_website>1</show_in_website>
149
+ <show_in_store>1</show_in_store>
150
+ </permit_minimize>
151
+ </fields>
152
+ </options>
153
+ </groups>
154
+ </auguria_video>
155
+ </sections>
156
+ </config>
app/code/community/Auguria/Video/sql/auguria_video_setup/mysql4-upgrade-0.0.3-0.0.4.php ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Create video table
4
+ * @category Auguria
5
+ * @package Auguria_Video
6
+ * @author Auguria
7
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
8
+ */
9
+ $setup = $this;
10
+ $setup->startSetup();
11
+
12
+ $setup->run("
13
+ -- DROP TABLE IF EXISTS {$this->getTable('auguria_video/host')};
14
+ CREATE TABLE {$this->getTable('auguria_video/host')} (
15
+ `auguria_host_id` int(11) unsigned NOT NULL auto_increment,
16
+ `title` varchar(255) NOT NULL default '',
17
+ `description` text,
18
+ `base_url` varchar(255) NOT NULL default '',
19
+ `url_parameters` varchar(255) NOT NULL default '',
20
+ PRIMARY KEY (`auguria_host_id`)
21
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
22
+ ");
23
+
24
+ $setup->run("
25
+ ALTER TABLE {$this->getTable('auguria_video/video')} ADD `host_id` INT(11) NOT NULL;
26
+ ALTER TABLE {$this->getTable('auguria_video/video')} ADD `player_width` INT(11) NULL;
27
+ ALTER TABLE {$this->getTable('auguria_video/video')} ADD `player_height` INT(11) NULL;
28
+ ");
29
+
30
+ $host = Mage::getModel('auguria_video/host')->setData(
31
+ array(
32
+ 'title' => 'Youtube',
33
+ 'base_url' => 'http://www.youtube.com/v/',
34
+ 'url_parameters' => '&hl=fr&autoplay=1'
35
+ )
36
+ );
37
+ $host->save();
38
+
39
+ $host = Mage::getModel('auguria_video/host')->setData(
40
+ array(
41
+ 'title' => 'Dailymotion',
42
+ 'base_url' => 'http://www.dailymotion.com/embed/video/',
43
+ 'url_parameters' => '&autoplay=1'
44
+ )
45
+ );
46
+ $host->save();
47
+
48
+ // No support for anything else than youtube before
49
+ $setup->run("
50
+ UPDATE {$this->getTable('auguria_video/video')} SET `host_id` = {$youtubeHost->getId()};
51
+ ");
52
+
53
+ $setup->endSetup();
app/design/adminhtml/default/default/layout/auguria/video.xml CHANGED
@@ -8,15 +8,27 @@
8
  */
9
  -->
10
  <layout version="0.1.0">
11
- <adminhtml_video_index>
12
  <reference name="content">
13
  <block type="auguria_video/adminhtml_video" name="video_list" />
14
- </reference>
15
  </adminhtml_video_index>
16
  <adminhtml_video_edit>
17
  <reference name="head">
18
  <action method="addItem"><type>js_css</type><name>prototype/windows/themes/default.css</name></action>
19
  <action method="addItem"><type>js_css</type><name>prototype/windows/themes/magento.css</name></action>
20
  </reference>
21
- </adminhtml_video_edit>
 
 
 
 
 
 
 
 
 
 
 
 
22
  </layout>
8
  */
9
  -->
10
  <layout version="0.1.0">
11
+ <adminhtml_video_index>
12
  <reference name="content">
13
  <block type="auguria_video/adminhtml_video" name="video_list" />
14
+ </reference>
15
  </adminhtml_video_index>
16
  <adminhtml_video_edit>
17
  <reference name="head">
18
  <action method="addItem"><type>js_css</type><name>prototype/windows/themes/default.css</name></action>
19
  <action method="addItem"><type>js_css</type><name>prototype/windows/themes/magento.css</name></action>
20
  </reference>
21
+ </adminhtml_video_edit>
22
+
23
+ <adminhtml_host_index>
24
+ <reference name="content">
25
+ <block type="auguria_video/adminhtml_host" name="host_list" />
26
+ </reference>
27
+ </adminhtml_host_index>
28
+ <adminhtml_host_edit>
29
+ <reference name="head">
30
+ <action method="addItem"><type>js_css</type><name>prototype/windows/themes/default.css</name></action>
31
+ <action method="addItem"><type>js_css</type><name>prototype/windows/themes/magento.css</name></action>
32
+ </reference>
33
+ </adminhtml_host_edit>
34
  </layout>
app/design/frontend/base/default/template/auguria/video/home.phtml CHANGED
@@ -7,42 +7,44 @@
7
  */
8
  ?>
9
  <?php
10
- $_item = $this->getVideo();
11
- if ($_item):
12
- if ($this->getItemImage($_item)!=false):
 
13
  ?>
14
- <div id="video-player-container" style="display:none">
15
- <iframe id="video-player" width="<?php echo Mage::getStoreConfig('auguria_video/sizes/video_player_width'); ?>" height="<?php echo Mage::getStoreConfig('auguria_video/sizes/video_player_height'); ?>" src="" frameborder="0" allowfullscreen></iframe>
16
- </div>
17
- <div id="home_video_preview" class="link">
18
- <div class="hvp_play"></div>
19
- <img src="<?php echo $this->getItemImage($_item); ?>" alt="<?php echo $_item->getTitle(); ?>" />
20
- <div><?php echo $_item->getDescription(); ?></div>
21
- </div>
22
- <script type="text/javascript">
23
- //<![CDATA[
24
- Event.observe('home_video_preview', 'click', function(event) {
25
- videoPlayer = new Window({
26
- className:'magento',
27
- title:'<?php echo $_item->getTitle(); ?>',
28
- content:$('video-player'),
29
- width:<?php echo Mage::getStoreConfig('auguria_video/sizes/video_player_width'); ?>,
30
- height:<?php echo Mage::getStoreConfig('auguria_video/sizes/video_player_height')+5; ?>,
31
- minimizable:false,
32
- maximizable:false,
33
- showEffectOptions:{duration:0.4},
34
- hideEffectOptions:{duration:0.4},
35
- onClose:function(event) { $('video-player').src=""; }
36
- });
37
- videoPlayer.setZIndex(100);
38
- videoPlayer.showCenter(true);
39
- $('video-player').src="http://www.youtube.com/v/<?php echo $_item->getImageIdentifier(); ?>&hl=fr&autoplay=1";
40
- videoPlayer.getContent().update($('video-player'));
41
- });
42
- //]]>
43
- </script>
44
-
 
45
  <?php
46
- endif;
47
- endif;
48
  ?>
7
  */
8
  ?>
9
  <?php
10
+ $_item = $this->getVideo();
11
+ if ($_item):
12
+ if ($this->getItemImage($_item)!=false):
13
+ $videoSrc = Mage::helper('auguria_video')->getVideoSrc($_item);
14
  ?>
15
+ <div id="video-player-container" style="display:none">
16
+ <iframe id="video-player" width="<?php echo Mage::helper('auguria_video')->getPlayerWidth($_item) ; ?>" height="<?php echo Mage::helper('auguria_video')->getPlayerHeight($_item) ?>" src="" frameborder="0" allowfullscreen></iframe>
17
+ </div>
18
+ <div id="home_video_preview" class="link">
19
+ <div class="hvp_play"></div>
20
+ <img src="<?php echo $this->getItemImage($_item); ?>" alt="<?php echo $_item->getTitle(); ?>" />
21
+ <div><?php echo $_item->getDescription(); ?></div>
22
+ </div>
23
+ <script type="text/javascript">
24
+ //<![CDATA[
25
+ Event.observe('home_video_preview', 'click', function(event) {
26
+ $('video-player').width = <?php echo Mage::helper('auguria_video')->getPlayerWidth($_item); ?>;
27
+ $('video-player').height = <?php echo Mage::helper('auguria_video')->getPlayerHeight($_item)-5; ?>;
28
+ videoPlayer = new Window({
29
+ className:'magento',
30
+ title:'<?php echo $_item->getTitle(); ?>',
31
+ content:$('video-player'),
32
+ width:<?php echo Mage::helper('auguria_video')->getPlayerWidth($_item) ?>,
33
+ height:<?php echo Mage::helper('auguria_video')->getPlayerHeight($_item) ?>,
34
+ minimizable: <?php echo Mage::helper('auguria_video')->getMinimizable(); ?>,
35
+ maximizable:<?php echo Mage::helper('auguria_video')->getFullscreen(); ?>,
36
+ showEffectOptions:{duration:0.4},
37
+ hideEffectOptions:{duration:0.4},
38
+ onClose:function(event) { $('video-player').src=""; }
39
+ });
40
+ videoPlayer.setZIndex(100);
41
+ videoPlayer.showCenter(true);
42
+ $('video-player').src="<?php echo $videoSrc; ?>";
43
+ videoPlayer.getContent().update($('video-player'));
44
+ });
45
+ //]]>
46
+ </script>
47
  <?php
48
+ endif;
49
+ endif;
50
  ?>
app/design/frontend/base/default/template/auguria/video/list.phtml CHANGED
@@ -8,65 +8,67 @@
8
  ?>
9
 
10
  <div id="messages_video_list">
11
- <div id="messages_video_msg"><?php echo $this->getMessagesBlock()->getGroupedHtml(); ?></div>
12
- <div class="page-title video-list-title">
13
- <h1><?php echo $this->__('Video page'); ?></h1>
14
- </div>
15
- <?php
16
- $_videos = $this->getVideos();
17
 
18
- if ($_videos && $_videos->count()>0):
19
- ?>
20
- <div id="video-player-container" style="display:none">
21
- <iframe id="video-player" width="<?php echo Mage::getStoreConfig('auguria_video/sizes/video_player_width'); ?>" height="<?php echo Mage::getStoreConfig('auguria_video/sizes/video_player_height'); ?>" src="" frameborder="0" allowfullscreen></iframe>
22
- </div>
23
- <ul>
24
- <?php
25
- foreach ($_videos as $_item):
26
- ?>
 
 
 
 
 
 
 
 
 
27
 
28
- <?php
29
- if ($this->getItemImage($_item)!=false):
30
- ?>
31
- <li class="link" id="li-<?php echo $_item->getId(); ?>">
32
- <div class="hvp_play"></div>
33
- <p class="title"><?php echo $_item->getTitle(); ?></p>
34
- <img src="<?php echo $this->getItemImage($_item); ?>" alt="<?php echo $_item->getTitle(); ?>" />
35
- <p class="description"><?php echo $_item->getDescription(); ?></p>
36
-
37
- <script type="text/javascript">
38
- //<![CDATA[
39
- Event.observe('li-<?php echo $_item->getId(); ?>', 'click', function(event) {
40
- videoPlayer = new Window({
41
- className:'magento',
42
- title:'<?php echo $_item->getTitle(); ?>',
43
- content:$('video-player'),
44
- width:<?php echo Mage::getStoreConfig('auguria_video/sizes/video_player_width'); ?>,
45
- height:<?php echo Mage::getStoreConfig('auguria_video/sizes/video_player_height')+5; ?>,
46
- minimizable:false,
47
- maximizable:false,
48
- showEffectOptions:{duration:0.4},
49
- hideEffectOptions:{duration:0.4},
50
- onClose:function(event) { $('video-player').src=""; }
51
- });
52
- videoPlayer.setZIndex(100);
53
- videoPlayer.showCenter(true);
54
- $('video-player').src="http://www.youtube.com/v/<?php echo $_item->getImageIdentifier(); ?>&hl=fr&autoplay=1";
55
- videoPlayer.getContent().update($('video-player'));
56
- });
57
- //]]>
58
- </script>
59
- </li>
60
- <?php
61
- endif;
62
- endforeach;
63
- ?>
64
- </ul>
65
- <?php
66
- else:
67
- ?>
68
- <p id="no-video"><?php echo $this->__('There is no available video.'); ?></p>
69
- <?php
70
- endif;
71
- ?>
72
  </div>
8
  ?>
9
 
10
  <div id="messages_video_list">
11
+ <div id="messages_video_msg"><?php echo $this->getMessagesBlock()->getGroupedHtml(); ?></div>
12
+ <div class="page-title video-list-title">
13
+ <h1><?php echo $this->__('Video page'); ?></h1>
14
+ </div>
15
+ <?php
16
+ $_videos = $this->getVideos();
17
 
18
+ if ($_videos && $_videos->count()>0):
19
+ ?>
20
+ <div id="video-player-container" style="display:none">
21
+ <iframe id="video-player" width="<?php echo Mage::getStoreConfig('auguria_video/sizes/video_player_width'); ?>" height="<?php echo Mage::getStoreConfig('auguria_video/sizes/video_player_height'); ?>" src="" frameborder="0" allowfullscreen></iframe>
22
+ </div>
23
+ <ul>
24
+ <?php
25
+ foreach ($_videos as $_item):
26
+ ?>
27
+ <?php
28
+ if ($this->getItemImage($_item)!=false):
29
+ $videoSrc = Mage::helper('auguria_video')->getVideoSrc($_item);
30
+ ?>
31
+ <li class="link" id="li-<?php echo $_item->getId(); ?>">
32
+ <div class="hvp_play"></div>
33
+ <p class="title"><?php echo $_item->getTitle(); ?></p>
34
+ <img src="<?php echo $this->getItemImage($_item); ?>" alt="<?php echo $_item->getTitle(); ?>" />
35
+ <p class="description"><?php echo $_item->getDescription(); ?></p>
36
 
37
+ <script type="text/javascript">
38
+ //<![CDATA[
39
+ Event.observe('li-<?php echo $_item->getId(); ?>', 'click', function(event) {
40
+ $('video-player').width = <?php echo Mage::helper('auguria_video')->getPlayerWidth($_item); ?>;
41
+ $('video-player').height = <?php echo Mage::helper('auguria_video')->getPlayerHeight($_item)-5; ?>;
42
+ videoPlayer = new Window({
43
+ className:'magento',
44
+ title:'<?php echo $_item->getTitle(); ?>',
45
+ content:$('video-player'),
46
+ width:<?php echo Mage::helper('auguria_video')->getPlayerWidth($_item);; ?>,
47
+ height:<?php echo Mage::helper('auguria_video')->getPlayerHeight($_item); ?>,
48
+ minimizable:false,
49
+ maximizable:false,
50
+ showEffectOptions:{duration:0.4},
51
+ hideEffectOptions:{duration:0.4},
52
+ onClose:function(event) { $('video-player').src=""; }
53
+ });
54
+ videoPlayer.setZIndex(100);
55
+ videoPlayer.showCenter(true);
56
+ $('video-player').src="<?php echo $videoSrc; ?>";
57
+ videoPlayer.getContent().update($('video-player'));
58
+ });
59
+ //]]>
60
+ </script>
61
+ </li>
62
+ <?php
63
+ endif;
64
+ endforeach;
65
+ ?>
66
+ </ul>
67
+ <?php
68
+ else:
69
+ ?>
70
+ <p id="no-video"><?php echo $this->__('There is no available video.'); ?></p>
71
+ <?php
72
+ endif;
73
+ ?>
 
 
 
 
 
 
 
74
  </div>
app/design/frontend/base/default/template/auguria/video/product.phtml CHANGED
@@ -7,61 +7,64 @@
7
  */
8
  ?>
9
  <div id="messages_video_list">
10
- <div id="messages_video_msg"><?php echo $this->getMessagesBlock()->getGroupedHtml() ?></div>
11
 
12
  <?php
13
- $_videos = $this->getVideos();
14
 
15
- if ($_videos && $_videos->count()>0):
16
  ?>
17
- <div id="video-player-container" style="display:none">
18
- <iframe id="video-player" width="<?php echo Mage::getStoreConfig('auguria_video/sizes/video_player_width'); ?>" height="<?php echo Mage::getStoreConfig('auguria_video/sizes/video_player_height'); ?>" src="" frameborder="0" allowfullscreen></iframe>
19
- </div>
20
- <ul>
21
  <?php
22
- foreach ($_videos as $_item):
23
  ?>
24
 
25
  <?php
26
- if ($this->getItemImage($_item)!=false):
 
27
  ?>
28
- <li class="link" id="li-<?php echo $_item->getId(); ?>">
29
- <div class="hvp_play"></div>
30
- <img src="<?php echo $this->getItemImage($_item); ?>" alt="<?php echo $_item->getTitle(); ?>" />
31
 
32
- <script type="text/javascript">
33
- //<![CDATA[
34
- Event.observe('li-<?php echo $_item->getId(); ?>', 'click', function(event) {
35
- videoPlayer = new Window({
36
- className:'magento',
37
- title:'<?php echo $_item->getTitle(); ?>',
38
- content:$('video-player'),
39
- width:<?php echo Mage::getStoreConfig('auguria_video/sizes/video_player_width'); ?>,
40
- height:<?php echo Mage::getStoreConfig('auguria_video/sizes/video_player_height')+5; ?>,
41
- minimizable:false,
42
- maximizable:false,
43
- showEffectOptions:{duration:0.4},
44
- hideEffectOptions:{duration:0.4},
45
- onClose:function(event) { $('video-player').src=""; }
46
- });
47
- videoPlayer.setZIndex(100);
48
- videoPlayer.showCenter(true);
 
 
49
 
50
- $('video-player').src="http://www.youtube.com/v/<?php echo $_item->getImageIdentifier(); ?>&hl=fr&autoplay=1";
51
- videoPlayer.getContent().update($('video-player'));
52
- });
53
- //]]>
54
- </script>
55
- </li>
56
  <?php
57
- endif;
58
- endforeach;
59
  ?>
60
- </ul>
61
  <?php
62
- else:
63
  ?>
64
- <p id="no-video"><?php echo $this->__('There is no available video.'); ?></p>
65
  <?php
66
  endif;
67
  ?>
7
  */
8
  ?>
9
  <div id="messages_video_list">
10
+ <div id="messages_video_msg"><?php echo $this->getMessagesBlock()->getGroupedHtml() ?></div>
11
 
12
  <?php
13
+ $_videos = $this->getVideos();
14
 
15
+ if ($_videos && $_videos->count()>0):
16
  ?>
17
+ <div id="video-player-container" style="display:none">
18
+ <iframe id="video-player" width="<?php echo Mage::getStoreConfig('auguria_video/sizes/video_player_width'); ?>" height="<?php echo Mage::getStoreConfig('auguria_video/sizes/video_player_height'); ?>" src="" frameborder="0" allowfullscreen></iframe>
19
+ </div>
20
+ <ul>
21
  <?php
22
+ foreach ($_videos as $_item):
23
  ?>
24
 
25
  <?php
26
+ if ($this->getItemImage($_item)!=false):
27
+ $videoSrc = Mage::helper('auguria_video')->getVideoSrc($_item);
28
  ?>
29
+ <li class="link" id="li-<?php echo $_item->getId(); ?>">
30
+ <div class="hvp_play"></div>
31
+ <img src="<?php echo $this->getItemImage($_item); ?>" alt="<?php echo $_item->getTitle(); ?>" />
32
 
33
+ <script type="text/javascript">
34
+ //<![CDATA[
35
+ Event.observe('li-<?php echo $_item->getId(); ?>', 'click', function(event) {
36
+ $('video-player').width = <?php echo Mage::helper('auguria_video')->getPlayerWidth($_item); ?>;
37
+ $('video-player').height = <?php echo Mage::helper('auguria_video')->getPlayerHeight($_item)-5; ?>;
38
+ videoPlayer = new Window({
39
+ className:'magento',
40
+ title:'<?php echo $_item->getTitle(); ?>',
41
+ content:$('video-player'),
42
+ width:<?php echo Mage::helper('auguria_video')->getPlayerWidth($_item);; ?>,
43
+ height:<?php echo Mage::helper('auguria_video')->getPlayerHeight($_item); ?>,
44
+ minimizable:false,
45
+ maximizable:false,
46
+ showEffectOptions:{duration:0.4},
47
+ hideEffectOptions:{duration:0.4},
48
+ onClose:function(event) { $('video-player').src=""; }
49
+ });
50
+ videoPlayer.setZIndex(100);
51
+ videoPlayer.showCenter(true);
52
 
53
+ $('video-player').src="<?php echo $videoSrc; ?>";
54
+ videoPlayer.getContent().update($('video-player'));
55
+ });
56
+ //]]>
57
+ </script>
58
+ </li>
59
  <?php
60
+ endif;
61
+ endforeach;
62
  ?>
63
+ </ul>
64
  <?php
65
+ else:
66
  ?>
67
+ <p id="no-video"><?php echo $this->__('There is no available video.'); ?></p>
68
  <?php
69
  endif;
70
  ?>
app/locale/fr_FR/Auguria_Video.csv CHANGED
@@ -3,21 +3,47 @@
3
  "Video page","Page des vidéos"
4
  "Manage videos","Gérer les vidéos"
5
  "Videos list","Liste des vidéos"
6
- "Item Information","Vidéo information"
7
- "Delete Item","Supprimer la vidéo"
8
- "Save Item","Sauvegarder la vidéo"
9
  "Save And Continue Edit","Sauvegarder et continuer à éditer"
10
- "Associated product","Produit associer"
11
  "Display on home page","Afficher sur la page d'accueil"
12
  "Select product","Sélectionner un produit"
13
  "The video has been successfully recorded","La vidéo a bien été enregistrée"
14
  "The video has been successfully deleted","La vidéo a bien été supprimée"
15
  "Are you sure to change status of selected videos ?","Êtes vous sûre de vouloir changer le statut des vidéos ?"
16
  "Are you sure to delete selected videos ?","Êtes vous sûre de vouloir supprimer les vidéos ?"
17
- "Total of %d record(s) were successfully deleted","%d vidéo(s) ont été supprimées"
18
- "Total of %d record(s) were successfully updated","%d vidéo(s) ont été mises à jour"
19
  "This video doesn't exist","Cette vidéo n'existe pas"
20
- "Item does not exist","Cette vidéo n'existe pas"
21
  "Add a video","Ajouter une vidéo"
22
  "Unable to find change to save","Impossible de trouver les modifications à enregistrer"
23
- "Please select keys","Merci de sélectionner des vidéos"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  "Video page","Page des vidéos"
4
  "Manage videos","Gérer les vidéos"
5
  "Videos list","Liste des vidéos"
6
+ "Item Information","Information de l'élément"
7
+ "Delete Item","Supprimer l'élément"
8
+ "Save Item","Sauvegarder l'élément"
9
  "Save And Continue Edit","Sauvegarder et continuer à éditer"
10
+ "Associated product","Produit associé"
11
  "Display on home page","Afficher sur la page d'accueil"
12
  "Select product","Sélectionner un produit"
13
  "The video has been successfully recorded","La vidéo a bien été enregistrée"
14
  "The video has been successfully deleted","La vidéo a bien été supprimée"
15
  "Are you sure to change status of selected videos ?","Êtes vous sûre de vouloir changer le statut des vidéos ?"
16
  "Are you sure to delete selected videos ?","Êtes vous sûre de vouloir supprimer les vidéos ?"
17
+ "Total of %d record(s) were successfully deleted","%d enregistrement(s) ont été supprimées"
18
+ "Total of %d record(s) were successfully updated","%d enregistrement(s) ont été mises à jour"
19
  "This video doesn't exist","Cette vidéo n'existe pas"
20
+ "Item does not exist","Cet élément n'existe pas"
21
  "Add a video","Ajouter une vidéo"
22
  "Unable to find change to save","Impossible de trouver les modifications à enregistrer"
23
+ "Please select keys","Merci de sélectionner des vidéos"
24
+ "Please think about defining the video folder path in module configuration, it's currently blank","Veuillez penser à définir le dossier de vidéo dans la configuration, il n'est actuellement pas renseigné"
25
+ "Include any part of the url before the video identifier. For example, youtube url is http://www.youtube.com/v/. Check the video hosting service's API to check it out.","Comprend l'intégralité de ce qui précède l'identifiant de la vidéo. Par exemple, l'url de base Youtube est http://www.youtube.com/v/. Se référer à l'API de l'hébergeur vidéo concerné pour vérfifier"
26
+ "Current valid format is: key=value&key=value...","Le format doit être de forme suivante: clé=valeur&clé=<valeur..."
27
+ "Edition of the host '%s'","Édition de l'hébergeur '%s'"
28
+ "Add a host","Ajouter un hébergeur"
29
+ "Url parameters","Paramètres de l'url"
30
+ "Video's identifier or filename if hosted on this server","Identifiant de la vidéo si hébergement externe ou nom de fichier si hébergement sur ce serveur"
31
+ "Host embedding the video","Hébergement de la vidéo"
32
+ "Edition of the video '%s'","Édition de la vidéo '%s'"
33
+ "Identifier or filename","Identifiant ou nom de fichier"
34
+ "Hosts list","Liste des hébergement externes"
35
+ "Video's folder path from media","Chemin du dossier de vidéo"
36
+ "Path from media folder","Chemin à indiquer depuis le répertoire média"
37
+ "Preview home width","Prévisualisation page d'accueil: largeur"
38
+ "Preview home height","Prévisualisation page d'accueil: hauteur"
39
+ "Preview list width","Prévisualisation listes: largeur"
40
+ "Preview list height","Prévisualisation listes: largeur"
41
+ "Preview product width","Prévisualisation produit: hauteur"
42
+ "Preview product height","Prévisualisation produit: hauteur"
43
+ "Video player width","Largeur du lecteur"
44
+ "Video player height","Hauteur du lecteur"
45
+ "Leave blank to use configuration values","Laisser vide pour utiliser les valeurs enregistrées en configuration"
46
+ "Manage hosts","Gérer les hébergeurs"
47
+ "Permit users to minimize videos","Permettre aux utilisateurs de minimiser les vidéos"
48
+ "Permit users to watch fullscreen videos","Permettre aux utilisateurs de regarder les vidéos en plein écran"
49
+
js/prototype/windows/themes/magento.css ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .dialog { border:1px solid #555; }
2
+ .dialog .bot { display:none !important; }
3
+ .overlay_magento { background-color:#000; filter:alpha(opacity=60); -moz-opacity:.6; opacity:.6; -webkit-opacity:.6; }
4
+ .top.table_window { border-bottom:1px solid #e6e6e6; background:#6a838b url(magento/top_bg.gif) 0 100% repeat-x; }
5
+
6
+ .magento_nw { width:6px; height:28px; }
7
+ .magento_n { height:28px; }
8
+ .magento_ne { width:6px; height:28px; }
9
+
10
+ .magento_w { width:6px; }
11
+ .magento_e { width:6px; }
12
+ .magento_w,
13
+ .magento_e,
14
+ .magento_content { background: #fafafa url(magento/content_bg.gif) 0 0 repeat-x; }
15
+
16
+ .magento_sw { background:#deebf0; width:5px; height:3px; }
17
+ .magento_s { background:#deebf0; height:3px; }
18
+ .magento_se,
19
+
20
+ .magento_sizer { background:#deebf0; width:5px; height:3px; }
21
+ .magento_sizer { cursor:se-resize; }
22
+
23
+ .magento_close { width:16px; height:16px; background:url(magento/window_close.png) no-repeat 0 0; position:absolute; top:5px; right:7px; cursor:pointer; z-index:1000; }
24
+ .magento_minimize { width:16px; height:16px; background:url(magento/window_minimize.png) 0 0 no-repeat; position:absolute; top:5px; right:28px; cursor:pointer; z-index:1000; }
25
+ .magento_maximize { width:16px; height:16px; background:url(magento/window_maximize.png)0 0 no-repeat; position:absolute; top:5px; right:49px; cursor:pointer; z-index:1000; }
26
+
27
+ .magento_title { float:left; width:100%; font:bold 12px/28px Arial, Helvetica, sans-serif; color:#fff; text-align:left; }
28
+
29
+ .magento_content { overflow:auto; font-size:12px; }
30
+ .magento_content,
31
+ .magento_content label { color:#333; font-family:Arial, sans-serif; }
32
+
33
+ .magento_buttons { padding:10px; text-align:right; }
34
+ .magento_buttons input.button { border-width:1px; border-style:solid; border-color:#ed6502 #a04300 #a04300 #ed6502; background:#ffac47 url(magento/btn_bg.gif) 0 100% repeat-x; padding:0 7px 1px 7px; font:bold 12px/18px Arial, Helvetica, sans-serif; color:#fff; cursor:pointer; text-align:center; white-space:nowrap; }
35
+
36
+ /* FOR IE */
37
+ * html .magento_close { background-image:none; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/magento/window_maximize.png", sizingMethod="crop"); }
38
+ * html .magento_minimize { background-image:none; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/magento/window_close.png", sizingMethod="crop");}
39
+ * html .magento_maximize { background-image:none; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/magento/window_minimize.png", sizingMethod="crop"); }
js/prototype/windows/themes/magento/btn_bg.gif ADDED
Binary file
js/prototype/windows/themes/magento/content_bg.gif ADDED
Binary file
js/prototype/windows/themes/magento/top_bg.gif ADDED
Binary file
js/prototype/windows/themes/magento/window_close.png ADDED
Binary file
package.xml CHANGED
@@ -1,18 +1,24 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Auguria_Video</name>
4
- <version>0.0.3</version>
5
  <stability>stable</stability>
6
- <license uri="http://opensource.org/licenses/osl-3.0.php">OSL 3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
- <summary>Auguria_Video</summary>
10
- <description>Auguria_Video</description>
11
- <notes>Auguria_Video</notes>
 
 
 
 
 
 
12
  <authors><author><name>Auguria</name><user>Auguria</user><email>magento@auguria.net</email></author></authors>
13
- <date>2012-06-22</date>
14
- <time>12:19:04</time>
15
- <contents><target name="mageetc"><dir name="modules"><file name="Auguria_Video.xml" hash="3f7d24c30b1d1bf38f51f75ad89d141a"/></dir></target><target name="magecommunity"><dir name="Auguria"><dir name="Video"><dir name="Block"><dir name="Adminhtml"><dir name="Catalog"><dir name="Product"><dir name="Widget"><file name="Chooser.php" hash="757e3d10d47e1735f8aa4e7d36d57537"/></dir></dir></dir><dir name="Video"><dir name="Edit"><file name="Form.php" hash="743d6f1ab0091382fdf544db3fb11a15"/><dir name="Tab"><file name="Form.php" hash="45c3dc5c07ffca04d681a95b6f7d6af9"/></dir><file name="Tabs.php" hash="ebacc489645260eb8dc420a444ef30f3"/></dir><file name="Edit.php" hash="6c6be466d306e743885be08ff7462260"/><file name="Grid.php" hash="991bbfaadee5f62ad29f0e726ba15d11"/></dir><file name="Video.php" hash="7e6631a917efda1d8374f034748dbe5f"/></dir><file name="Home.php" hash="87d328c177ccd0b39366ba9284b275cf"/><file name="List.php" hash="9b73d80cb69871fc0a1da80552ab78fa"/><file name="Product.php" hash="0e3183b98bacb084396fd62293923afc"/></dir><dir name="Helper"><file name="Data.php" hash="d56b466bdfc3a3359689e994fc95a6ab"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Video"><file name="Collection.php" hash="573e4551b271bd450e64225a3c7657fb"/></dir><file name="Video.php" hash="9ee3447fe36e87ec224959d28b01dc90"/></dir><file name="Video.php" hash="37c3b550cae6838a2405ca94200c5326"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="VideoController.php" hash="b44de16050b0ec5991dbe215fe53bb5c"/></dir><file name="IndexController.php" hash="3588273b74295159313b52de9ee65160"/></dir><dir name="etc"><file name="adminhtml.xml" hash="85dcc6fe92520c617ffc00861f6b1db8"/><file name="config.xml" hash="57b1b6384befa906be3e0c2bb7558fde"/></dir><dir name="sql"><dir name="auguria_video_setup"><file name="mysql4-install-0.0.1.php" hash="bf474926ec7a92a220704024ee1ff555"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><dir name="auguria"><file name="video.xml" hash="197da266c6534bffa927b4a364740d3d"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="auguria"><file name="video.xml" hash="0c0bb8e338c66087b4982940fbe9d35b"/></dir></dir><dir name="template"><dir name="auguria"><dir name="video"><file name="home.phtml" hash="a51752cf313617b11a7996f869cbb52d"/><file name="list.phtml" hash="491864f9edd202be20846ac5ece93f93"/><file name="product.phtml" hash="13fbf2b26923c35743c3f089426524d8"/></dir></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="fr_FR"><file name="Auguria_Video.csv" hash="a7a3c254d05fbcc43a7d963a52c9d1ee"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="auguria"><dir name="video"><file name="styles.css" hash="54722bf09ea43d3cdbecfbec90d1a7f9"/></dir></dir></dir><dir name="images"><dir name="auguria"><dir name="video"><file name="i_video-player_play.png" hash="e36c1eecfb37aa89e6a4b92e6ddb8ed1"/><file name="i_video-player_play_thumb.png" hash="ded9958fe69a2ecf591370511af74069"/></dir></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>5.6.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Auguria_Video</name>
4
+ <version>0.0.4</version>
5
  <stability>stable</stability>
6
+ <license uri="http://opensource.org/licenses/gpl-3.0.html">GPL 3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
+ <summary>Manage your embed or self hosted video easily from your back-office</summary>
10
+ <description>This extension enable a detailed management of your video content from your back-office.&#xD;
11
+ &#xD;
12
+ Create your own hosts for embed contents from Youtube, Dailymotion or else! You can also host it yourself to pass throught the advertising.&#xD;
13
+ &#xD;
14
+ You'll then just need an identifier or a filename to make any video you want show up on your frontend in a few seconds.&#xD;
15
+ &#xD;
16
+ </description>
17
+ <notes>If you have ideas for improvements or find bugs, please send them contact@auguria.net, with Auguria_Video as part of the subject line.</notes>
18
  <authors><author><name>Auguria</name><user>Auguria</user><email>magento@auguria.net</email></author></authors>
19
+ <date>2014-01-06</date>
20
+ <time>15:54:05</time>
21
+ <contents><target name="magecommunity"><dir name="Auguria"><dir name="Video"><dir name="Block"><dir name="Adminhtml"><dir name="Catalog"><dir name="Product"><dir name="Widget"><file name="Chooser.php" hash="757e3d10d47e1735f8aa4e7d36d57537"/></dir></dir></dir><dir name="Host"><dir name="Edit"><file name="Form.php" hash="14024ca89c7fa12985e59e733eda2834"/><dir name="Tab"><file name="Form.php" hash="79b18f60d6dde7c5ee4e8585363978ef"/></dir><file name="Tabs.php" hash="faa06f0062fee799dc894d9df27597df"/></dir><file name="Edit.php" hash="3c763c89771887bfda5d6913d6ec97d4"/><file name="Grid.php" hash="cdd778a8e1eeaacb2a23fb9e4c027b0d"/></dir><file name="Host.php" hash="626306f69cfdc6cdce144578bb2569a9"/><dir name="Video"><dir name="Edit"><file name="Form.php" hash="743d6f1ab0091382fdf544db3fb11a15"/><dir name="Tab"><file name="Form.php" hash="a5806ee4eae8861f068f1f743d7ec714"/></dir><file name="Tabs.php" hash="ebacc489645260eb8dc420a444ef30f3"/></dir><file name="Edit.php" hash="6c6be466d306e743885be08ff7462260"/><file name="Grid.php" hash="9780ec151b676e653578ab6c53619b77"/></dir><file name="Video.php" hash="7e6631a917efda1d8374f034748dbe5f"/></dir><file name="Home.php" hash="87d328c177ccd0b39366ba9284b275cf"/><file name="List.php" hash="9b73d80cb69871fc0a1da80552ab78fa"/><file name="Product.php" hash="0e3183b98bacb084396fd62293923afc"/></dir><dir name="Helper"><file name="Data.php" hash="9c965b30895170b7bebc4b7a0f69b2c5"/></dir><dir name="Model"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Source"><file name="Host.php" hash="aed2732d09da1e55df737885a403818e"/></dir></dir></dir></dir><file name="Host.php" hash="5d084c2b9a06244e48dfefd084cb5678"/><dir name="Mysql4"><dir name="Host"><file name="Collection.php" hash="eb010c27804c9928514e30c3ec360317"/></dir><file name="Host.php" hash="e731d2746d6a97c91ace4adfec28a8b0"/><dir name="Video"><file name="Collection.php" hash="573e4551b271bd450e64225a3c7657fb"/></dir><file name="Video.php" hash="9ee3447fe36e87ec224959d28b01dc90"/></dir><file name="Video.php" hash="37c3b550cae6838a2405ca94200c5326"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="HostController.php" hash="3c20ad4f92bf88c1ac7bddbef11be596"/><file name="VideoController.php" hash="8cbada03b612698f68e9bdb4fbc40f45"/></dir><file name="IndexController.php" hash="3588273b74295159313b52de9ee65160"/></dir><dir name="etc"><file name="adminhtml.xml" hash="d47b4d927fe7946c6d841b7dab75412f"/><file name="config.xml" hash="d149096c540010d48349137c7ff76f97"/><file name="system.xml" hash="bfcffbb6f7c5f4b636cf65da3d4b706b"/></dir><dir name="sql"><dir name="auguria_video_setup"><file name="mysql4-install-0.0.1.php" hash="bf474926ec7a92a220704024ee1ff555"/><file name="mysql4-upgrade-0.0.3-0.0.4.php" hash="4c72abc1808424fc8f6e74a4602f1385"/></dir></dir></dir></dir></target><target name="mage"><dir name="app"><dir name="etc"><dir name="modules"><file name="Auguria_Video.xml" hash="3f7d24c30b1d1bf38f51f75ad89d141a"/></dir></dir></dir><dir name="js"><dir name="prototype"><dir name="windows"><dir name="themes"><file name="magento.css" hash="a0b153cee7655dad31ee2923657cc08a"/><dir name="magento"><file name="btn_bg.gif" hash="37c51a4d48a92da9648dcd3ca011039f"/><file name="content_bg.gif" hash="21278ea0da2d4256f4ced96b6080ba2e"/><file name="top_bg.gif" hash="26f28090de87d64f9b01bf624f89bfe2"/><file name="window_close.png" hash="3af14f053f360bf31f8ba2df73ec7f1e"/></dir></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><dir name="auguria"><file name="video.xml" hash="0ec4838b5d87d040d0caf969696538c0"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir><dir name="template"><dir name="auguria"><dir name="video"><file name="home.phtml" hash="c0121e44ad3f5834ce21a549f30e93d0"/><file name="list.phtml" hash="3fb1498b44dd601601a04a7b86c1dc91"/><file name="product.phtml" hash="c35d49815856d8ac8bbb3303a17728b7"/></dir></dir></dir></dir><dir name="layout"><dir name="auguria"><file name="video.xml" hash="0c0bb8e338c66087b4982940fbe9d35b"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="auguria"><dir name="video"><file name="styles.css" hash="54722bf09ea43d3cdbecfbec90d1a7f9"/></dir></dir></dir><dir name="images"><dir name="auguria"><dir name="video"><file name="i_video-player_play.png" hash="e36c1eecfb37aa89e6a4b92e6ddb8ed1"/><file name="i_video-player_play_thumb.png" hash="ded9958fe69a2ecf591370511af74069"/></dir></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="fr_FR"><file name="Auguria_Video.csv" hash="9fd2584e9c4f3d45b810d4fc83e6178b"/></dir></target></contents>
22
  <compatible/>
23
  <dependencies><required><php><min>5.2.0</min><max>5.6.0</max></php></required></dependencies>
24
  </package>