Version Notes
First Release.
Download this release
Release Info
Developer | SetuBridge |
Extension | Product_Back_Image_On_Hover |
Version | 1.0.2 |
Comparing to | |
See all releases |
Code changes from version 1.0.1 to 1.0.2
- app/code/local/Sbridge/Moreview/Block/Adminhtml/Moreview.php +0 -21
- app/code/local/Sbridge/Moreview/Block/Adminhtml/Moreview/Edit.php +0 -54
- app/code/local/Sbridge/Moreview/Block/Adminhtml/Moreview/Edit/Form.php +0 -28
- app/code/local/Sbridge/Moreview/Block/Adminhtml/Moreview/Edit/Tab/Form.php +0 -67
- app/code/local/Sbridge/Moreview/Block/Adminhtml/Moreview/Edit/Tabs.php +0 -33
- app/code/local/Sbridge/Moreview/Block/Adminhtml/Moreview/Grid.php +0 -125
- app/code/local/Sbridge/Moreview/Block/Moreview.php +0 -26
- app/code/local/Sbridge/Moreview/Model/Moreview.php +0 -19
- app/code/local/Sbridge/Moreview/Model/Mysql4/Moreview.php +0 -19
- app/code/local/Sbridge/Moreview/Model/Mysql4/Moreview/Collection.php +0 -19
- app/code/local/Sbridge/Moreview/Model/Status.php +0 -24
- app/code/local/Sbridge/Moreview/etc/adminhtml.xml +1 -9
- app/code/local/Sbridge/Moreview/etc/config.xml +44 -20
- app/code/local/Sbridge/Moreview/etc/system.xml +6 -14
- app/code/local/Sbridge/Moreview/sql/moreview_setup/mysql4-install-0.1.0.php +0 -32
- app/design/frontend/default/default/layout/moreview.xml +1 -9
- package.xml +4 -4
app/code/local/Sbridge/Moreview/Block/Adminhtml/Moreview.php
DELETED
@@ -1,21 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/**
|
4 |
-
* Setubridge Technolabs
|
5 |
-
* http://www.setubridge.com/
|
6 |
-
* @author SetuBridge
|
7 |
-
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
-
**/
|
9 |
-
?>
|
10 |
-
<?php
|
11 |
-
class Sbridge_Moreview_Block_Adminhtml_Moreview extends Mage_Adminhtml_Block_Widget_Grid_Container
|
12 |
-
{
|
13 |
-
public function __construct()
|
14 |
-
{
|
15 |
-
$this->_controller = 'adminhtml_moreview';
|
16 |
-
$this->_blockGroup = 'moreview';
|
17 |
-
$this->_headerText = Mage::helper('moreview')->__('Item Manager');
|
18 |
-
$this->_addButtonLabel = Mage::helper('moreview')->__('Add Item');
|
19 |
-
parent::__construct();
|
20 |
-
}
|
21 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Sbridge/Moreview/Block/Adminhtml/Moreview/Edit.php
DELETED
@@ -1,54 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/**
|
4 |
-
* Setubridge Technolabs
|
5 |
-
* http://www.setubridge.com/
|
6 |
-
* @author SetuBridge
|
7 |
-
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
-
**/
|
9 |
-
?>
|
10 |
-
<?php
|
11 |
-
|
12 |
-
class Sbridge_Moreview_Block_Adminhtml_Moreview_Edit extends Mage_Adminhtml_Block_Widget_Form_Container
|
13 |
-
{
|
14 |
-
public function __construct()
|
15 |
-
{
|
16 |
-
parent::__construct();
|
17 |
-
|
18 |
-
$this->_objectId = 'id';
|
19 |
-
$this->_blockGroup = 'moreview';
|
20 |
-
$this->_controller = 'adminhtml_moreview';
|
21 |
-
|
22 |
-
$this->_updateButton('save', 'label', Mage::helper('moreview')->__('Save Item'));
|
23 |
-
$this->_updateButton('delete', 'label', Mage::helper('moreview')->__('Delete Item'));
|
24 |
-
|
25 |
-
$this->_addButton('saveandcontinue', array(
|
26 |
-
'label' => Mage::helper('adminhtml')->__('Save And Continue Edit'),
|
27 |
-
'onclick' => 'saveAndContinueEdit()',
|
28 |
-
'class' => 'save',
|
29 |
-
), -100);
|
30 |
-
|
31 |
-
$this->_formScripts[] = "
|
32 |
-
function toggleEditor() {
|
33 |
-
if (tinyMCE.getInstanceById('moreview_content') == null) {
|
34 |
-
tinyMCE.execCommand('mceAddControl', false, 'moreview_content');
|
35 |
-
} else {
|
36 |
-
tinyMCE.execCommand('mceRemoveControl', false, 'moreview_content');
|
37 |
-
}
|
38 |
-
}
|
39 |
-
|
40 |
-
function saveAndContinueEdit(){
|
41 |
-
editForm.submit($('edit_form').action+'back/edit/');
|
42 |
-
}
|
43 |
-
";
|
44 |
-
}
|
45 |
-
|
46 |
-
public function getHeaderText()
|
47 |
-
{
|
48 |
-
if( Mage::registry('moreview_data') && Mage::registry('moreview_data')->getId() ) {
|
49 |
-
return Mage::helper('moreview')->__("Edit Item '%s'", $this->htmlEscape(Mage::registry('moreview_data')->getTitle()));
|
50 |
-
} else {
|
51 |
-
return Mage::helper('moreview')->__('Add Item');
|
52 |
-
}
|
53 |
-
}
|
54 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Sbridge/Moreview/Block/Adminhtml/Moreview/Edit/Form.php
DELETED
@@ -1,28 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/**
|
4 |
-
* Setubridge Technolabs
|
5 |
-
* http://www.setubridge.com/
|
6 |
-
* @author SetuBridge
|
7 |
-
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
-
**/
|
9 |
-
?>
|
10 |
-
<?php
|
11 |
-
|
12 |
-
class Sbridge_Moreview_Block_Adminhtml_Moreview_Edit_Form extends Mage_Adminhtml_Block_Widget_Form
|
13 |
-
{
|
14 |
-
protected function _prepareForm()
|
15 |
-
{
|
16 |
-
$form = new Varien_Data_Form(array(
|
17 |
-
'id' => 'edit_form',
|
18 |
-
'action' => $this->getUrl('*/*/save', array('id' => $this->getRequest()->getParam('id'))),
|
19 |
-
'method' => 'post',
|
20 |
-
'enctype' => 'multipart/form-data'
|
21 |
-
)
|
22 |
-
);
|
23 |
-
|
24 |
-
$form->setUseContainer(true);
|
25 |
-
$this->setForm($form);
|
26 |
-
return parent::_prepareForm();
|
27 |
-
}
|
28 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Sbridge/Moreview/Block/Adminhtml/Moreview/Edit/Tab/Form.php
DELETED
@@ -1,67 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/**
|
4 |
-
* Setubridge Technolabs
|
5 |
-
* http://www.setubridge.com/
|
6 |
-
* @author SetuBridge
|
7 |
-
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
-
**/
|
9 |
-
?>
|
10 |
-
<?php
|
11 |
-
|
12 |
-
class Sbridge_Moreview_Block_Adminhtml_Moreview_Edit_Tab_Form extends Mage_Adminhtml_Block_Widget_Form
|
13 |
-
{
|
14 |
-
protected function _prepareForm()
|
15 |
-
{
|
16 |
-
$form = new Varien_Data_Form();
|
17 |
-
$this->setForm($form);
|
18 |
-
$fieldset = $form->addFieldset('moreview_form', array('legend'=>Mage::helper('moreview')->__('Item information')));
|
19 |
-
|
20 |
-
$fieldset->addField('title', 'text', array(
|
21 |
-
'label' => Mage::helper('moreview')->__('Title'),
|
22 |
-
'class' => 'required-entry',
|
23 |
-
'required' => true,
|
24 |
-
'name' => 'title',
|
25 |
-
));
|
26 |
-
|
27 |
-
$fieldset->addField('filename', 'file', array(
|
28 |
-
'label' => Mage::helper('moreview')->__('File'),
|
29 |
-
'required' => false,
|
30 |
-
'name' => 'filename',
|
31 |
-
));
|
32 |
-
|
33 |
-
$fieldset->addField('status', 'select', array(
|
34 |
-
'label' => Mage::helper('moreview')->__('Status'),
|
35 |
-
'name' => 'status',
|
36 |
-
'values' => array(
|
37 |
-
array(
|
38 |
-
'value' => 1,
|
39 |
-
'label' => Mage::helper('moreview')->__('Enabled'),
|
40 |
-
),
|
41 |
-
|
42 |
-
array(
|
43 |
-
'value' => 2,
|
44 |
-
'label' => Mage::helper('moreview')->__('Disabled'),
|
45 |
-
),
|
46 |
-
),
|
47 |
-
));
|
48 |
-
|
49 |
-
$fieldset->addField('content', 'editor', array(
|
50 |
-
'name' => 'content',
|
51 |
-
'label' => Mage::helper('moreview')->__('Content'),
|
52 |
-
'title' => Mage::helper('moreview')->__('Content'),
|
53 |
-
'style' => 'width:700px; height:500px;',
|
54 |
-
'wysiwyg' => false,
|
55 |
-
'required' => true,
|
56 |
-
));
|
57 |
-
|
58 |
-
if ( Mage::getSingleton('adminhtml/session')->getMoreviewData() )
|
59 |
-
{
|
60 |
-
$form->setValues(Mage::getSingleton('adminhtml/session')->getMoreviewData());
|
61 |
-
Mage::getSingleton('adminhtml/session')->setMoreviewData(null);
|
62 |
-
} elseif ( Mage::registry('moreview_data') ) {
|
63 |
-
$form->setValues(Mage::registry('moreview_data')->getData());
|
64 |
-
}
|
65 |
-
return parent::_prepareForm();
|
66 |
-
}
|
67 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Sbridge/Moreview/Block/Adminhtml/Moreview/Edit/Tabs.php
DELETED
@@ -1,33 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/**
|
4 |
-
* Setubridge Technolabs
|
5 |
-
* http://www.setubridge.com/
|
6 |
-
* @author SetuBridge
|
7 |
-
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
-
**/
|
9 |
-
?>
|
10 |
-
<?php
|
11 |
-
|
12 |
-
class Sbridge_Moreview_Block_Adminhtml_Moreview_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs
|
13 |
-
{
|
14 |
-
|
15 |
-
public function __construct()
|
16 |
-
{
|
17 |
-
parent::__construct();
|
18 |
-
$this->setId('moreview_tabs');
|
19 |
-
$this->setDestElementId('edit_form');
|
20 |
-
$this->setTitle(Mage::helper('moreview')->__('Item Information'));
|
21 |
-
}
|
22 |
-
|
23 |
-
protected function _beforeToHtml()
|
24 |
-
{
|
25 |
-
$this->addTab('form_section', array(
|
26 |
-
'label' => Mage::helper('moreview')->__('Item Information'),
|
27 |
-
'title' => Mage::helper('moreview')->__('Item Information'),
|
28 |
-
'content' => $this->getLayout()->createBlock('moreview/adminhtml_moreview_edit_tab_form')->toHtml(),
|
29 |
-
));
|
30 |
-
|
31 |
-
return parent::_beforeToHtml();
|
32 |
-
}
|
33 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Sbridge/Moreview/Block/Adminhtml/Moreview/Grid.php
DELETED
@@ -1,125 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/**
|
4 |
-
* Setubridge Technolabs
|
5 |
-
* http://www.setubridge.com/
|
6 |
-
* @author SetuBridge
|
7 |
-
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
-
**/
|
9 |
-
?>
|
10 |
-
<?php
|
11 |
-
|
12 |
-
class Sbridge_Moreview_Block_Adminhtml_Moreview_Grid extends Mage_Adminhtml_Block_Widget_Grid
|
13 |
-
{
|
14 |
-
public function __construct()
|
15 |
-
{
|
16 |
-
parent::__construct();
|
17 |
-
$this->setId('moreviewGrid');
|
18 |
-
$this->setDefaultSort('moreview_id');
|
19 |
-
$this->setDefaultDir('ASC');
|
20 |
-
$this->setSaveParametersInSession(true);
|
21 |
-
}
|
22 |
-
|
23 |
-
protected function _prepareCollection()
|
24 |
-
{
|
25 |
-
$collection = Mage::getModel('moreview/moreview')->getCollection();
|
26 |
-
$this->setCollection($collection);
|
27 |
-
return parent::_prepareCollection();
|
28 |
-
}
|
29 |
-
|
30 |
-
protected function _prepareColumns()
|
31 |
-
{
|
32 |
-
$this->addColumn('moreview_id', array(
|
33 |
-
'header' => Mage::helper('moreview')->__('ID'),
|
34 |
-
'align' =>'right',
|
35 |
-
'width' => '50px',
|
36 |
-
'index' => 'moreview_id',
|
37 |
-
));
|
38 |
-
|
39 |
-
$this->addColumn('title', array(
|
40 |
-
'header' => Mage::helper('moreview')->__('Title'),
|
41 |
-
'align' =>'left',
|
42 |
-
'index' => 'title',
|
43 |
-
));
|
44 |
-
|
45 |
-
/*
|
46 |
-
$this->addColumn('content', array(
|
47 |
-
'header' => Mage::helper('moreview')->__('Item Content'),
|
48 |
-
'width' => '150px',
|
49 |
-
'index' => 'content',
|
50 |
-
));
|
51 |
-
*/
|
52 |
-
|
53 |
-
$this->addColumn('status', array(
|
54 |
-
'header' => Mage::helper('moreview')->__('Status'),
|
55 |
-
'align' => 'left',
|
56 |
-
'width' => '80px',
|
57 |
-
'index' => 'status',
|
58 |
-
'type' => 'options',
|
59 |
-
'options' => array(
|
60 |
-
1 => 'Enabled',
|
61 |
-
2 => 'Disabled',
|
62 |
-
),
|
63 |
-
));
|
64 |
-
|
65 |
-
$this->addColumn('action',
|
66 |
-
array(
|
67 |
-
'header' => Mage::helper('moreview')->__('Action'),
|
68 |
-
'width' => '100',
|
69 |
-
'type' => 'action',
|
70 |
-
'getter' => 'getId',
|
71 |
-
'actions' => array(
|
72 |
-
array(
|
73 |
-
'caption' => Mage::helper('moreview')->__('Edit'),
|
74 |
-
'url' => array('base'=> '*/*/edit'),
|
75 |
-
'field' => 'id'
|
76 |
-
)
|
77 |
-
),
|
78 |
-
'filter' => false,
|
79 |
-
'sortable' => false,
|
80 |
-
'index' => 'stores',
|
81 |
-
'is_system' => true,
|
82 |
-
));
|
83 |
-
|
84 |
-
$this->addExportType('*/*/exportCsv', Mage::helper('moreview')->__('CSV'));
|
85 |
-
$this->addExportType('*/*/exportXml', Mage::helper('moreview')->__('XML'));
|
86 |
-
|
87 |
-
return parent::_prepareColumns();
|
88 |
-
}
|
89 |
-
|
90 |
-
protected function _prepareMassaction()
|
91 |
-
{
|
92 |
-
$this->setMassactionIdField('moreview_id');
|
93 |
-
$this->getMassactionBlock()->setFormFieldName('moreview');
|
94 |
-
|
95 |
-
$this->getMassactionBlock()->addItem('delete', array(
|
96 |
-
'label' => Mage::helper('moreview')->__('Delete'),
|
97 |
-
'url' => $this->getUrl('*/*/massDelete'),
|
98 |
-
'confirm' => Mage::helper('moreview')->__('Are you sure?')
|
99 |
-
));
|
100 |
-
|
101 |
-
$statuses = Mage::getSingleton('moreview/status')->getOptionArray();
|
102 |
-
|
103 |
-
array_unshift($statuses, array('label'=>'', 'value'=>''));
|
104 |
-
$this->getMassactionBlock()->addItem('status', array(
|
105 |
-
'label'=> Mage::helper('moreview')->__('Change status'),
|
106 |
-
'url' => $this->getUrl('*/*/massStatus', array('_current'=>true)),
|
107 |
-
'additional' => array(
|
108 |
-
'visibility' => array(
|
109 |
-
'name' => 'status',
|
110 |
-
'type' => 'select',
|
111 |
-
'class' => 'required-entry',
|
112 |
-
'label' => Mage::helper('moreview')->__('Status'),
|
113 |
-
'values' => $statuses
|
114 |
-
)
|
115 |
-
)
|
116 |
-
));
|
117 |
-
return $this;
|
118 |
-
}
|
119 |
-
|
120 |
-
public function getRowUrl($row)
|
121 |
-
{
|
122 |
-
return $this->getUrl('*/*/edit', array('id' => $row->getId()));
|
123 |
-
}
|
124 |
-
|
125 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Sbridge/Moreview/Block/Moreview.php
DELETED
@@ -1,26 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/**
|
4 |
-
* Setubridge Technolabs
|
5 |
-
* http://www.setubridge.com/
|
6 |
-
* @author SetuBridge
|
7 |
-
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
-
**/
|
9 |
-
?>
|
10 |
-
<?php
|
11 |
-
class Sbridge_Moreview_Block_Moreview extends Mage_Core_Block_Template
|
12 |
-
{
|
13 |
-
public function _prepareLayout()
|
14 |
-
{
|
15 |
-
return parent::_prepareLayout();
|
16 |
-
}
|
17 |
-
|
18 |
-
public function getMoreview()
|
19 |
-
{
|
20 |
-
if (!$this->hasData('moreview')) {
|
21 |
-
$this->setData('moreview', Mage::registry('moreview'));
|
22 |
-
}
|
23 |
-
return $this->getData('moreview');
|
24 |
-
|
25 |
-
}
|
26 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Sbridge/Moreview/Model/Moreview.php
DELETED
@@ -1,19 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/**
|
4 |
-
* Setubridge Technolabs
|
5 |
-
* http://www.setubridge.com/
|
6 |
-
* @author SetuBridge
|
7 |
-
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
-
**/
|
9 |
-
?>
|
10 |
-
<?php
|
11 |
-
|
12 |
-
class Sbridge_Moreview_Model_Moreview extends Mage_Core_Model_Abstract
|
13 |
-
{
|
14 |
-
public function _construct()
|
15 |
-
{
|
16 |
-
parent::_construct();
|
17 |
-
$this->_init('moreview/moreview');
|
18 |
-
}
|
19 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Sbridge/Moreview/Model/Mysql4/Moreview.php
DELETED
@@ -1,19 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/**
|
4 |
-
* Setubridge Technolabs
|
5 |
-
* http://www.setubridge.com/
|
6 |
-
* @author SetuBridge
|
7 |
-
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
-
**/
|
9 |
-
?>
|
10 |
-
<?php
|
11 |
-
|
12 |
-
class Sbridge_Moreview_Model_Mysql4_Moreview extends Mage_Core_Model_Mysql4_Abstract
|
13 |
-
{
|
14 |
-
public function _construct()
|
15 |
-
{
|
16 |
-
// Note that the moreview_id refers to the key field in your database table.
|
17 |
-
$this->_init('moreview/moreview', 'moreview_id');
|
18 |
-
}
|
19 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Sbridge/Moreview/Model/Mysql4/Moreview/Collection.php
DELETED
@@ -1,19 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/**
|
4 |
-
* Setubridge Technolabs
|
5 |
-
* http://www.setubridge.com/
|
6 |
-
* @author SetuBridge
|
7 |
-
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
-
**/
|
9 |
-
?>
|
10 |
-
<?php
|
11 |
-
|
12 |
-
class Sbridge_Moreview_Model_Mysql4_Moreview_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
|
13 |
-
{
|
14 |
-
public function _construct()
|
15 |
-
{
|
16 |
-
parent::_construct();
|
17 |
-
$this->_init('moreview/moreview');
|
18 |
-
}
|
19 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Sbridge/Moreview/Model/Status.php
DELETED
@@ -1,24 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/**
|
4 |
-
* Setubridge Technolabs
|
5 |
-
* http://www.setubridge.com/
|
6 |
-
* @author SetuBridge
|
7 |
-
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
-
**/
|
9 |
-
?>
|
10 |
-
<?php
|
11 |
-
|
12 |
-
class Sbridge_Moreview_Model_Status extends Varien_Object
|
13 |
-
{
|
14 |
-
const STATUS_ENABLED = 1;
|
15 |
-
const STATUS_DISABLED = 2;
|
16 |
-
|
17 |
-
static public function getOptionArray()
|
18 |
-
{
|
19 |
-
return array(
|
20 |
-
self::STATUS_ENABLED => Mage::helper('moreview')->__('Enabled'),
|
21 |
-
self::STATUS_DISABLED => Mage::helper('moreview')->__('Disabled')
|
22 |
-
);
|
23 |
-
}
|
24 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Sbridge/Moreview/etc/adminhtml.xml
CHANGED
@@ -1,12 +1,4 @@
|
|
1 |
-
|
2 |
-
/**
|
3 |
-
* @category Sbridge
|
4 |
-
* @package Sbridge_Moreview
|
5 |
-
* @author ModuleCreator
|
6 |
-
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
7 |
-
*/
|
8 |
-
-->
|
9 |
-
<?xml version="1.0" ?>
|
10 |
<config>
|
11 |
<acl>
|
12 |
<resources>
|
1 |
+
<?xml version="1.0" ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
<config>
|
3 |
<acl>
|
4 |
<resources>
|
app/code/local/Sbridge/Moreview/etc/config.xml
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<!--
|
3 |
/**
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
<config>
|
11 |
<modules>
|
12 |
<Sbridge_Moreview>
|
@@ -33,17 +33,41 @@
|
|
33 |
</frontend>
|
34 |
<admin>
|
35 |
<routers>
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
</routers>
|
44 |
-
</admin>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
<global>
|
46 |
-
|
47 |
<moreview>
|
48 |
<class>Sbridge_Moreview_Model</class>
|
49 |
<resourceModel>moreview_mysql4</resourceModel>
|
@@ -56,8 +80,8 @@
|
|
56 |
</moreview>
|
57 |
</entities>
|
58 |
</moreview_mysql4>
|
59 |
-
</models
|
60 |
-
|
61 |
<moreview_setup>
|
62 |
<setup>
|
63 |
<module>Sbridge_Moreview</module>
|
@@ -76,12 +100,12 @@
|
|
76 |
<use>core_read</use>
|
77 |
</connection>
|
78 |
</moreview_read>
|
79 |
-
</resources
|
80 |
-
|
81 |
<moreview>
|
82 |
<class>Sbridge_Moreview_Block</class>
|
83 |
</moreview>
|
84 |
-
</blocks
|
85 |
<helpers>
|
86 |
<moreview>
|
87 |
<class>Sbridge_Moreview_Helper</class>
|
1 |
<?xml version="1.0"?>
|
2 |
<!--
|
3 |
/**
|
4 |
+
* @category Sbridge
|
5 |
+
* @package Sbridge_Moreview
|
6 |
+
* @author ModuleCreator
|
7 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
+
*/
|
9 |
+
-->
|
10 |
<config>
|
11 |
<modules>
|
12 |
<Sbridge_Moreview>
|
33 |
</frontend>
|
34 |
<admin>
|
35 |
<routers>
|
36 |
+
<moreview>
|
37 |
+
<use>admin</use>
|
38 |
+
<args>
|
39 |
+
<module>Sbridge_Moreview</module>
|
40 |
+
<frontName>moreview</frontName>
|
41 |
+
</args>
|
42 |
+
</moreview>
|
43 |
</routers>
|
44 |
+
</admin>
|
45 |
+
<adminhtml>
|
46 |
+
<acl>
|
47 |
+
<resources>
|
48 |
+
<all>
|
49 |
+
<title>Allow Everything</title>
|
50 |
+
</all>
|
51 |
+
<admin>
|
52 |
+
<children>
|
53 |
+
<Sbridge_Moreview>
|
54 |
+
<title>Moreview</title>
|
55 |
+
<sort_order>10</sort_order>
|
56 |
+
</Sbridge_Moreview>
|
57 |
+
</children>
|
58 |
+
</admin>
|
59 |
+
</resources>
|
60 |
+
</acl>
|
61 |
+
<layout>
|
62 |
+
<updates>
|
63 |
+
<pricematch>
|
64 |
+
<file>moreview.xml</file>
|
65 |
+
</pricematch>
|
66 |
+
</updates>
|
67 |
+
</layout>
|
68 |
+
</adminhtml>
|
69 |
<global>
|
70 |
+
<!--<models>
|
71 |
<moreview>
|
72 |
<class>Sbridge_Moreview_Model</class>
|
73 |
<resourceModel>moreview_mysql4</resourceModel>
|
80 |
</moreview>
|
81 |
</entities>
|
82 |
</moreview_mysql4>
|
83 |
+
</models>-->
|
84 |
+
<!--<resources>
|
85 |
<moreview_setup>
|
86 |
<setup>
|
87 |
<module>Sbridge_Moreview</module>
|
100 |
<use>core_read</use>
|
101 |
</connection>
|
102 |
</moreview_read>
|
103 |
+
</resources>-->
|
104 |
+
<!--<blocks>
|
105 |
<moreview>
|
106 |
<class>Sbridge_Moreview_Block</class>
|
107 |
</moreview>
|
108 |
+
</blocks>-->
|
109 |
<helpers>
|
110 |
<moreview>
|
111 |
<class>Sbridge_Moreview_Helper</class>
|
app/code/local/Sbridge/Moreview/etc/system.xml
CHANGED
@@ -1,27 +1,19 @@
|
|
1 |
-
|
2 |
-
/**
|
3 |
-
* @category Sbridge
|
4 |
-
* @package Sbridge_Moreview
|
5 |
-
* @author ModuleCreator
|
6 |
-
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
7 |
-
*/
|
8 |
-
-->
|
9 |
-
<?xml version="1.0" encoding="utf-8"?>
|
10 |
<config>
|
11 |
<tabs>
|
12 |
-
<
|
13 |
-
<label>
|
14 |
<sort_order>100</sort_order>
|
15 |
-
</
|
16 |
</tabs>
|
17 |
<sections>
|
18 |
<moreview_section module="moreview" translate="label">
|
19 |
-
<label>
|
20 |
<sort_order>100</sort_order>
|
21 |
<show_in_default>1</show_in_default>
|
22 |
<show_in_website>1</show_in_website>
|
23 |
<show_in_store>1</show_in_store>
|
24 |
-
<tab>
|
25 |
<groups>
|
26 |
<general_group translate="label">
|
27 |
<label>General</label>
|
1 |
+
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
<config>
|
3 |
<tabs>
|
4 |
+
<sbridge_tab module="moreview" translate="label">
|
5 |
+
<label>SetuBridge</label>
|
6 |
<sort_order>100</sort_order>
|
7 |
+
</sbridge_tab>
|
8 |
</tabs>
|
9 |
<sections>
|
10 |
<moreview_section module="moreview" translate="label">
|
11 |
+
<label>Product Back Image On Hover</label>
|
12 |
<sort_order>100</sort_order>
|
13 |
<show_in_default>1</show_in_default>
|
14 |
<show_in_website>1</show_in_website>
|
15 |
<show_in_store>1</show_in_store>
|
16 |
+
<tab>sbridge_tab</tab>
|
17 |
<groups>
|
18 |
<general_group translate="label">
|
19 |
<label>General</label>
|
app/code/local/Sbridge/Moreview/sql/moreview_setup/mysql4-install-0.1.0.php
DELETED
@@ -1,32 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/**
|
4 |
-
* Setubridge Technolabs
|
5 |
-
* http://www.setubridge.com/
|
6 |
-
* @author SetuBridge
|
7 |
-
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
8 |
-
**/
|
9 |
-
?>
|
10 |
-
<?php
|
11 |
-
|
12 |
-
$installer = $this;
|
13 |
-
|
14 |
-
$installer->startSetup();
|
15 |
-
|
16 |
-
$installer->run("
|
17 |
-
|
18 |
-
-- DROP TABLE IF EXISTS {$this->getTable('moreview')};
|
19 |
-
CREATE TABLE {$this->getTable('moreview')} (
|
20 |
-
`moreview_id` int(11) unsigned NOT NULL auto_increment,
|
21 |
-
`title` varchar(255) NOT NULL default '',
|
22 |
-
`filename` varchar(255) NOT NULL default '',
|
23 |
-
`content` text NOT NULL default '',
|
24 |
-
`status` smallint(6) NOT NULL default '0',
|
25 |
-
`created_time` datetime NULL,
|
26 |
-
`update_time` datetime NULL,
|
27 |
-
PRIMARY KEY (`moreview_id`)
|
28 |
-
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
29 |
-
|
30 |
-
");
|
31 |
-
|
32 |
-
$installer->endSetup();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/default/default/layout/moreview.xml
CHANGED
@@ -1,12 +1,4 @@
|
|
1 |
-
|
2 |
-
/**
|
3 |
-
* @category Sbridge
|
4 |
-
* @package Sbridge_Moreview
|
5 |
-
* @author ModuleCreator
|
6 |
-
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
7 |
-
*/
|
8 |
-
-->
|
9 |
-
<?xml version="1.0"?>
|
10 |
<layout version="0.1.0">
|
11 |
<default>
|
12 |
<reference name="head">
|
1 |
+
<?xml version="1.0"?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
<layout version="0.1.0">
|
3 |
<default>
|
4 |
<reference name="head">
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Product_Back_Image_On_Hover</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license>OSLv3.0</license>
|
7 |
<channel>community</channel>
|
@@ -23,9 +23,9 @@ With online shopping perfect showcase of your catalog is must necessarily outsta
|
|
23 |
<li>Direct filter in Moreviews to load back button image rather than ugly looping concept</li></description>
|
24 |
<notes>First Release.</notes>
|
25 |
<authors><author><name>SetuBridge</name><user>Technolabs</user><email>support@setubridge.com</email></author></authors>
|
26 |
-
<date>2014-03-
|
27 |
-
<time>10:07
|
28 |
-
<contents><target name="magelocal"><dir name="Sbridge"><dir name="Moreview"><dir name="
|
29 |
<compatible/>
|
30 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
31 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Product_Back_Image_On_Hover</name>
|
4 |
+
<version>1.0.2</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>OSLv3.0</license>
|
7 |
<channel>community</channel>
|
23 |
<li>Direct filter in Moreviews to load back button image rather than ugly looping concept</li></description>
|
24 |
<notes>First Release.</notes>
|
25 |
<authors><author><name>SetuBridge</name><user>Technolabs</user><email>support@setubridge.com</email></author></authors>
|
26 |
+
<date>2014-03-15</date>
|
27 |
+
<time>11:10:07</time>
|
28 |
+
<contents><target name="magelocal"><dir name="Sbridge"><dir name="Moreview"><dir name="Helper"><file name="Data.php" hash="77ad595320752f10a30b61bf5e723e19"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="MoreviewController.php" hash="84754802778f1983da620879806206a4"/></dir><file name="IndexController.php" hash="062e025896b8de25acd2fd0d65d55cc0"/></dir><dir name="etc"><file name="adminhtml.xml" hash="728425db93a9a90d36c7651ae011fb4e"/><file name="config.xml" hash="1fa23d3c574ba50e6ddbc7ae8b310f34"/><file name="system.xml" hash="496459405b10355e23acd02d3f3878a1"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="template"><dir name="moreview"><file name="crosssell.phtml" hash="7bc6d54dd7db3d2d271198d024caa0c8"/><file name="list.phtml" hash="b1b1d3a45f12bbe4089093d27a1cc575"/><file name="moreview.phtml" hash="a1722fdcb91f8cc555e54c8fb12ce6e6"/><file name="related.phtml" hash="e44796becd9dcae45f815f3915e4f5cc"/><file name="upsell.phtml" hash="e973ba07390da41b2756a4d914dd9c79"/></dir></dir><dir name="layout"><file name="moreview.xml" hash="7e31ba4d2594523f0c979968b601c214"/></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="moreview.xml" hash="1e81c54dc590a17f70063a4529383a98"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Sbridge_Moreview.xml" hash="7a70ff4f71a279ab47f34b46de09ec16"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="css"><file name="moreview.css" hash="ecc5ddad78877b293b4cce18fada5c7f"/></dir></dir></dir></dir></target></contents>
|
29 |
<compatible/>
|
30 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
31 |
</package>
|