shweta_testimonials - Version 1.0.3

Version Notes

please fix the small errors if any.

Download this release

Release Info

Developer Shweta Agarwal
Extension shweta_testimonials
Version 1.0.3
Comparing to
See all releases


Code changes from version 1.0.1 to 1.0.3

Files changed (37) hide show
  1. app/code/local/Shweta/Testimonials/Block/Adminhtml/Testimonials.php +16 -16
  2. app/code/local/Shweta/Testimonials/Block/Adminhtml/Testimonials/Edit.php +43 -43
  3. app/code/local/Shweta/Testimonials/Block/Adminhtml/Testimonials/Edit/Form.php +17 -17
  4. app/code/local/Shweta/Testimonials/Block/Adminhtml/Testimonials/Edit/Tab/Form.php +38 -38
  5. app/code/local/Shweta/Testimonials/Block/Adminhtml/Testimonials/Edit/Tabs.php +21 -21
  6. app/code/local/Shweta/Testimonials/Block/Adminhtml/Testimonials/Grid.php +61 -61
  7. app/code/local/Shweta/Testimonials/Block/Adminhtml/Testimonialsbackend.php +4 -4
  8. app/code/local/Shweta/Testimonials/Block/Index.php +37 -37
  9. app/code/local/Shweta/Testimonials/Block/Left.php +35 -35
  10. app/code/local/Shweta/Testimonials/Block/Testimonials.php +13 -13
  11. app/code/local/Shweta/Testimonials/Helper/Data.php +6 -6
  12. app/code/local/Shweta/Testimonials/Model/Mysql4/Testimonials.php +7 -7
  13. app/code/local/Shweta/Testimonials/Model/Mysql4/Testimonials/Collection.php +11 -11
  14. app/code/local/Shweta/Testimonials/Model/Testimonials.php +11 -11
  15. app/code/local/Shweta/Testimonials/Model/{words.php → Words.php} +14 -14
  16. app/code/local/Shweta/Testimonials/controllers/Adminhtml/TestimonialsController.php +209 -209
  17. app/code/local/Shweta/Testimonials/controllers/Adminhtml/TestimonialsbackendController.php +9 -9
  18. app/code/local/Shweta/Testimonials/controllers/IndexController.php +21 -21
  19. app/code/local/Shweta/Testimonials/controllers/TestimonialsController.php +21 -21
  20. app/code/local/Shweta/Testimonials/etc/10.5.13config.xml +143 -143
  21. app/code/local/Shweta/Testimonials/etc/10.5.13system.xml +14 -14
  22. app/code/local/Shweta/Testimonials/etc/13.5.13config.xml +159 -159
  23. app/code/local/Shweta/Testimonials/etc/13.5.13system.xml +59 -59
  24. app/code/local/Shweta/Testimonials/etc/9.5.13config.xml +133 -133
  25. app/code/local/Shweta/Testimonials/etc/adminhtml.xml +26 -26
  26. app/code/local/Shweta/Testimonials/etc/config.xml +154 -154
  27. app/code/local/Shweta/Testimonials/etc/system.xml +79 -79
  28. app/code/local/Shweta/Testimonials/sql/testimonials_setup/mysql4-install-0.1.0.php +13 -13
  29. app/design/adminhtml/default/default/layout/testimonials.xml +12 -12
  30. app/design/adminhtml/default/default/template/testimonials/testimonialsbackend.phtml +1 -0
  31. app/design/frontend/base/default/layout/testimonials.xml +22 -22
  32. app/design/frontend/base/default/template/testimonials/index.phtml +81 -81
  33. app/design/frontend/base/default/template/testimonials/left.phtml +81 -81
  34. app/design/frontend/base/default/template/testimonials/testimonials.phtml +59 -59
  35. app/etc/modules/Shweta_Testimonials.xml +9 -9
  36. js/jquery.cycle.all.latest.js +1331 -1331
  37. package.xml +4 -4
app/code/local/Shweta/Testimonials/Block/Adminhtml/Testimonials.php CHANGED
@@ -1,17 +1,17 @@
1
- <?php
2
-
3
-
4
- class Shweta_Testimonials_Block_Adminhtml_Testimonials extends Mage_Adminhtml_Block_Widget_Grid_Container{
5
-
6
- public function __construct()
7
- {
8
-
9
- $this->_controller = "adminhtml_testimonials";
10
- $this->_blockGroup = "testimonials";
11
- $this->_headerText = Mage::helper("testimonials")->__("Testimonials Manager");
12
- $this->_addButtonLabel = Mage::helper("testimonials")->__("Add New Item");
13
- parent::__construct();
14
-
15
- }
16
-
17
}
1
+ <?php
2
+
3
+
4
+ class Shweta_Testimonials_Block_Adminhtml_Testimonials extends Mage_Adminhtml_Block_Widget_Grid_Container{
5
+
6
+ public function __construct()
7
+ {
8
+
9
+ $this->_controller = "adminhtml_testimonials";
10
+ $this->_blockGroup = "testimonials";
11
+ $this->_headerText = Mage::helper("testimonials")->__("Testimonials Manager");
12
+ $this->_addButtonLabel = Mage::helper("testimonials")->__("Add New Item");
13
+ parent::__construct();
14
+
15
+ }
16
+
17
}
app/code/local/Shweta/Testimonials/Block/Adminhtml/Testimonials/Edit.php CHANGED
@@ -1,44 +1,44 @@
1
- <?php
2
-
3
- class Shweta_Testimonials_Block_Adminhtml_Testimonials_Edit extends Mage_Adminhtml_Block_Widget_Form_Container
4
- {
5
- public function __construct()
6
- {
7
-
8
- parent::__construct();
9
- $this->_objectId = "id";
10
- $this->_blockGroup = "testimonials";
11
- $this->_controller = "adminhtml_testimonials";
12
- $this->_updateButton("save", "label", Mage::helper("testimonials")->__("Save Item"));
13
- $this->_updateButton("delete", "label", Mage::helper("testimonials")->__("Delete Item"));
14
-
15
- $this->_addButton("saveandcontinue", array(
16
- "label" => Mage::helper("testimonials")->__("Save And Continue Edit"),
17
- "onclick" => "saveAndContinueEdit()",
18
- "class" => "save",
19
- ), -100);
20
-
21
-
22
-
23
- $this->_formScripts[] = "
24
-
25
- function saveAndContinueEdit(){
26
- editForm.submit($('edit_form').action+'back/edit/');
27
- }
28
- ";
29
- }
30
-
31
- public function getHeaderText()
32
- {
33
- if( Mage::registry("testimonials_data") && Mage::registry("testimonials_data")->getId() ){
34
-
35
- return Mage::helper("testimonials")->__("Edit Item '%s'", $this->htmlEscape(Mage::registry("testimonials_data")->getId()));
36
-
37
- }
38
- else{
39
-
40
- return Mage::helper("testimonials")->__("Add Item");
41
-
42
- }
43
- }
44
}
1
+ <?php
2
+
3
+ class Shweta_Testimonials_Block_Adminhtml_Testimonials_Edit extends Mage_Adminhtml_Block_Widget_Form_Container
4
+ {
5
+ public function __construct()
6
+ {
7
+
8
+ parent::__construct();
9
+ $this->_objectId = "id";
10
+ $this->_blockGroup = "testimonials";
11
+ $this->_controller = "adminhtml_testimonials";
12
+ $this->_updateButton("save", "label", Mage::helper("testimonials")->__("Save Item"));
13
+ $this->_updateButton("delete", "label", Mage::helper("testimonials")->__("Delete Item"));
14
+
15
+ $this->_addButton("saveandcontinue", array(
16
+ "label" => Mage::helper("testimonials")->__("Save And Continue Edit"),
17
+ "onclick" => "saveAndContinueEdit()",
18
+ "class" => "save",
19
+ ), -100);
20
+
21
+
22
+
23
+ $this->_formScripts[] = "
24
+
25
+ function saveAndContinueEdit(){
26
+ editForm.submit($('edit_form').action+'back/edit/');
27
+ }
28
+ ";
29
+ }
30
+
31
+ public function getHeaderText()
32
+ {
33
+ if( Mage::registry("testimonials_data") && Mage::registry("testimonials_data")->getId() ){
34
+
35
+ return Mage::helper("testimonials")->__("Edit Item '%s'", $this->htmlEscape(Mage::registry("testimonials_data")->getId()));
36
+
37
+ }
38
+ else{
39
+
40
+ return Mage::helper("testimonials")->__("Add Item");
41
+
42
+ }
43
+ }
44
}
app/code/local/Shweta/Testimonials/Block/Adminhtml/Testimonials/Edit/Form.php CHANGED
@@ -1,17 +1,17 @@
1
- <?php
2
- class Shweta_Testimonials_Block_Adminhtml_Testimonials_Edit_Form extends Mage_Adminhtml_Block_Widget_Form
3
- {
4
- protected function _prepareForm()
5
- {
6
- $form = new Varien_Data_Form(array(
7
- "id" => "edit_form",
8
- "action" => $this->getUrl("*/*/save", array("id" => $this->getRequest()->getParam("id"))),
9
- "method" => "post",
10
- "enctype" =>"multipart/form-data",
11
- )
12
- );
13
- $form->setUseContainer(true);
14
- $this->setForm($form);
15
- return parent::_prepareForm();
16
- }
17
- }
1
+ <?php
2
+ class Shweta_Testimonials_Block_Adminhtml_Testimonials_Edit_Form extends Mage_Adminhtml_Block_Widget_Form
3
+ {
4
+ protected function _prepareForm()
5
+ {
6
+ $form = new Varien_Data_Form(array(
7
+ "id" => "edit_form",
8
+ "action" => $this->getUrl("*/*/save", array("id" => $this->getRequest()->getParam("id"))),
9
+ "method" => "post",
10
+ "enctype" =>"multipart/form-data",
11
+ )
12
+ );
13
+ $form->setUseContainer(true);
14
+ $this->setForm($form);
15
+ return parent::_prepareForm();
16
+ }
17
+ }
app/code/local/Shweta/Testimonials/Block/Adminhtml/Testimonials/Edit/Tab/Form.php CHANGED
@@ -1,38 +1,38 @@
1
- <?php
2
- class Shweta_Testimonials_Block_Adminhtml_Testimonials_Edit_Tab_Form extends Mage_Adminhtml_Block_Widget_Form
3
- {
4
- protected function _prepareForm()
5
- {
6
-
7
- $form = new Varien_Data_Form();
8
- $this->setForm($form);
9
- $fieldset = $form->addFieldset("testimonials_form", array("legend"=>Mage::helper("testimonials")->__("Item information")));
10
-
11
-
12
- $fieldset->addField("name", "text", array(
13
- "label" => Mage::helper("testimonials")->__("name"),
14
- "name" => "name",
15
- ));
16
-
17
- $fieldset->addField('pic', 'image', array(
18
- 'label' => Mage::helper('testimonials')->__('picture'),
19
- 'name' => 'pic',
20
- 'note' => '(*.jpg, *.png, *.gif)',
21
- ));
22
- $fieldset->addField("message", "textarea", array(
23
- "label" => Mage::helper("testimonials")->__("message"),
24
- "name" => "message",
25
- ));
26
-
27
-
28
- if (Mage::getSingleton("adminhtml/session")->getTestimonialsData())
29
- {
30
- $form->setValues(Mage::getSingleton("adminhtml/session")->getTestimonialsData());
31
- Mage::getSingleton("adminhtml/session")->setTestimonialsData(null);
32
- }
33
- elseif(Mage::registry("testimonials_data")) {
34
- $form->setValues(Mage::registry("testimonials_data")->getData());
35
- }
36
- return parent::_prepareForm();
37
- }
38
- }
1
+ <?php
2
+ class Shweta_Testimonials_Block_Adminhtml_Testimonials_Edit_Tab_Form extends Mage_Adminhtml_Block_Widget_Form
3
+ {
4
+ protected function _prepareForm()
5
+ {
6
+
7
+ $form = new Varien_Data_Form();
8
+ $this->setForm($form);
9
+ $fieldset = $form->addFieldset("testimonials_form", array("legend"=>Mage::helper("testimonials")->__("Item information")));
10
+
11
+
12
+ $fieldset->addField("name", "text", array(
13
+ "label" => Mage::helper("testimonials")->__("name"),
14
+ "name" => "name",
15
+ ));
16
+
17
+ $fieldset->addField('pic', 'image', array(
18
+ 'label' => Mage::helper('testimonials')->__('picture'),
19
+ 'name' => 'pic',
20
+ 'note' => '(*.jpg, *.png, *.gif)',
21
+ ));
22
+ $fieldset->addField("message", "textarea", array(
23
+ "label" => Mage::helper("testimonials")->__("message"),
24
+ "name" => "message",
25
+ ));
26
+
27
+
28
+ if (Mage::getSingleton("adminhtml/session")->getTestimonialsData())
29
+ {
30
+ $form->setValues(Mage::getSingleton("adminhtml/session")->getTestimonialsData());
31
+ Mage::getSingleton("adminhtml/session")->setTestimonialsData(null);
32
+ }
33
+ elseif(Mage::registry("testimonials_data")) {
34
+ $form->setValues(Mage::registry("testimonials_data")->getData());
35
+ }
36
+ return parent::_prepareForm();
37
+ }
38
+ }
app/code/local/Shweta/Testimonials/Block/Adminhtml/Testimonials/Edit/Tabs.php CHANGED
@@ -1,21 +1,21 @@
1
- <?php
2
- class Shweta_Testimonials_Block_Adminhtml_Testimonials_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs
3
- {
4
- public function __construct()
5
- {
6
- parent::__construct();
7
- $this->setId("testimonials_tabs");
8
- $this->setDestElementId("edit_form");
9
- $this->setTitle(Mage::helper("testimonials")->__("Item Information"));
10
- }
11
- protected function _beforeToHtml()
12
- {
13
- $this->addTab("form_section", array(
14
- "label" => Mage::helper("testimonials")->__("Item Information"),
15
- "title" => Mage::helper("testimonials")->__("Item Information"),
16
- "content" => $this->getLayout()->createBlock("testimonials/adminhtml_testimonials_edit_tab_form")->toHtml(),
17
- ));
18
- return parent::_beforeToHtml();
19
- }
20
-
21
- }
1
+ <?php
2
+ class Shweta_Testimonials_Block_Adminhtml_Testimonials_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs
3
+ {
4
+ public function __construct()
5
+ {
6
+ parent::__construct();
7
+ $this->setId("testimonials_tabs");
8
+ $this->setDestElementId("edit_form");
9
+ $this->setTitle(Mage::helper("testimonials")->__("Item Information"));
10
+ }
11
+ protected function _beforeToHtml()
12
+ {
13
+ $this->addTab("form_section", array(
14
+ "label" => Mage::helper("testimonials")->__("Item Information"),
15
+ "title" => Mage::helper("testimonials")->__("Item Information"),
16
+ "content" => $this->getLayout()->createBlock("testimonials/adminhtml_testimonials_edit_tab_form")->toHtml(),
17
+ ));
18
+ return parent::_beforeToHtml();
19
+ }
20
+
21
+ }
app/code/local/Shweta/Testimonials/Block/Adminhtml/Testimonials/Grid.php CHANGED
@@ -1,62 +1,62 @@
1
- <?php
2
-
3
- class Shweta_Testimonials_Block_Adminhtml_Testimonials_Grid extends Mage_Adminhtml_Block_Widget_Grid
4
- {
5
-
6
- public function __construct()
7
- {
8
- parent::__construct();
9
- $this->setId("testimonialsGrid");
10
- $this->setDefaultSort("id");
11
- $this->setDefaultDir("ASC");
12
- $this->setSaveParametersInSession(true);
13
- }
14
-
15
- protected function _prepareCollection()
16
- {
17
- $collection = Mage::getModel("testimonials/testimonials")->getCollection();
18
- $this->setCollection($collection);
19
- return parent::_prepareCollection();
20
- }
21
- protected function _prepareColumns()
22
- {
23
- $this->addColumn("id", array(
24
- "header" => Mage::helper("testimonials")->__("ID"),
25
- "align" =>"right",
26
- "width" => "50px",
27
- "type" => "number",
28
- "index" => "id",
29
- ));
30
-
31
- $this->addColumn("name", array(
32
- "header" => Mage::helper("testimonials")->__("name"),
33
- "index" => "name",
34
- ));
35
- $this->addExportType('*/*/exportCsv', Mage::helper('sales')->__('CSV'));
36
- $this->addExportType('*/*/exportExcel', Mage::helper('sales')->__('Excel'));
37
-
38
- return parent::_prepareColumns();
39
- }
40
-
41
- public function getRowUrl($row)
42
- {
43
- return $this->getUrl("*/*/edit", array("id" => $row->getId()));
44
- }
45
-
46
-
47
-
48
- protected function _prepareMassaction()
49
- {
50
- $this->setMassactionIdField('id');
51
- $this->getMassactionBlock()->setFormFieldName('ids');
52
- $this->getMassactionBlock()->setUseSelectAll(true);
53
- $this->getMassactionBlock()->addItem('remove_testimonials', array(
54
- 'label'=> Mage::helper('testimonials')->__('Remove Testimonials'),
55
- 'url' => $this->getUrl('*/adminhtml_testimonials/massRemove'),
56
- 'confirm' => Mage::helper('testimonials')->__('Are you sure?')
57
- ));
58
- return $this;
59
- }
60
-
61
-
62
}
1
+ <?php
2
+
3
+ class Shweta_Testimonials_Block_Adminhtml_Testimonials_Grid extends Mage_Adminhtml_Block_Widget_Grid
4
+ {
5
+
6
+ public function __construct()
7
+ {
8
+ parent::__construct();
9
+ $this->setId("testimonialsGrid");
10
+ $this->setDefaultSort("id");
11
+ $this->setDefaultDir("ASC");
12
+ $this->setSaveParametersInSession(true);
13
+ }
14
+
15
+ protected function _prepareCollection()
16
+ {
17
+ $collection = Mage::getModel("testimonials/testimonials")->getCollection();
18
+ $this->setCollection($collection);
19
+ return parent::_prepareCollection();
20
+ }
21
+ protected function _prepareColumns()
22
+ {
23
+ $this->addColumn("id", array(
24
+ "header" => Mage::helper("testimonials")->__("ID"),
25
+ "align" =>"right",
26
+ "width" => "50px",
27
+ "type" => "number",
28
+ "index" => "id",
29
+ ));
30
+
31
+ $this->addColumn("name", array(
32
+ "header" => Mage::helper("testimonials")->__("name"),
33
+ "index" => "name",
34
+ ));
35
+ $this->addExportType('*/*/exportCsv', Mage::helper('sales')->__('CSV'));
36
+ $this->addExportType('*/*/exportExcel', Mage::helper('sales')->__('Excel'));
37
+
38
+ return parent::_prepareColumns();
39
+ }
40
+
41
+ public function getRowUrl($row)
42
+ {
43
+ return $this->getUrl("*/*/edit", array("id" => $row->getId()));
44
+ }
45
+
46
+
47
+
48
+ protected function _prepareMassaction()
49
+ {
50
+ $this->setMassactionIdField('id');
51
+ $this->getMassactionBlock()->setFormFieldName('ids');
52
+ $this->getMassactionBlock()->setUseSelectAll(true);
53
+ $this->getMassactionBlock()->addItem('remove_testimonials', array(
54
+ 'label'=> Mage::helper('testimonials')->__('Remove Testimonials'),
55
+ 'url' => $this->getUrl('*/adminhtml_testimonials/massRemove'),
56
+ 'confirm' => Mage::helper('testimonials')->__('Are you sure?')
57
+ ));
58
+ return $this;
59
+ }
60
+
61
+
62
}
app/code/local/Shweta/Testimonials/Block/Adminhtml/Testimonialsbackend.php CHANGED
@@ -1,5 +1,5 @@
1
- <?php
2
-
3
- class Shweta_Testimonials_Block_Adminhtml_Testimonialsbackend extends Mage_Adminhtml_Block_Template {
4
-
5
}
1
+ <?php
2
+
3
+ class Shweta_Testimonials_Block_Adminhtml_Testimonialsbackend extends Mage_Adminhtml_Block_Template {
4
+
5
}
app/code/local/Shweta/Testimonials/Block/Index.php CHANGED
@@ -1,37 +1,37 @@
1
- <?php
2
-
3
- class Shweta_Testimonials_Block_Index extends Mage_Core_Block_Template{
4
-
5
-
6
-
7
- public function ShowTestimonialsRecords()
8
- {
9
- $w = Mage::getSingleton('core/resource')->getConnection('core_write');
10
- $results = $w->query('SELECT * FROM shweta_testimonials');
11
- return $results;
12
-
13
- }
14
-
15
- public function getTestimonialsEnabled()
16
- {
17
- return Mage::getStoreConfig('shweta/shweta_group/shweta_select',Mage::app()->getStore());
18
- }
19
- public function getTestimonialsImageWidth()
20
- {
21
- return Mage::getStoreConfig('shweta/shweta_group/shweta_width',Mage::app()->getStore());
22
- }
23
- public function getTestimonialsImageHeight()
24
- {
25
- return Mage::getStoreConfig('shweta/shweta_group/shweta_height',Mage::app()->getStore());
26
- }
27
- public function getTestimonialsView()
28
- {
29
- return Mage::getStoreConfig('shweta/shweta_group/shweta_view',Mage::app()->getStore());
30
- }
31
- public function getTestimonialsImages()
32
- {
33
- return Mage::getStoreConfig('shweta/shweta_group/shweta_image',Mage::app()->getStore());
34
- }
35
-
36
-
37
- }
1
+ <?php
2
+
3
+ class Shweta_Testimonials_Block_Index extends Mage_Core_Block_Template{
4
+
5
+
6
+
7
+ public function ShowTestimonialsRecords()
8
+ {
9
+ $w = Mage::getSingleton('core/resource')->getConnection('core_write');
10
+ $results = $w->query('SELECT * FROM shweta_testimonials');
11
+ return $results;
12
+
13
+ }
14
+
15
+ public function getTestimonialsEnabled()
16
+ {
17
+ return Mage::getStoreConfig('shweta/shweta_group/shweta_select',Mage::app()->getStore());
18
+ }
19
+ public function getTestimonialsImageWidth()
20
+ {
21
+ return Mage::getStoreConfig('shweta/shweta_group/shweta_width',Mage::app()->getStore());
22
+ }
23
+ public function getTestimonialsImageHeight()
24
+ {
25
+ return Mage::getStoreConfig('shweta/shweta_group/shweta_height',Mage::app()->getStore());
26
+ }
27
+ public function getTestimonialsView()
28
+ {
29
+ return Mage::getStoreConfig('shweta/shweta_group/shweta_view',Mage::app()->getStore());
30
+ }
31
+ public function getTestimonialsImages()
32
+ {
33
+ return Mage::getStoreConfig('shweta/shweta_group/shweta_image',Mage::app()->getStore());
34
+ }
35
+
36
+
37
+ }
app/code/local/Shweta/Testimonials/Block/Left.php CHANGED
@@ -1,35 +1,35 @@
1
- <?php
2
- class Shweta_Testimonials_Block_Left extends Mage_Core_Block_Template{
3
-
4
- public function ShowTestimonialsRecords()
5
- {
6
- $w = Mage::getSingleton('core/resource')->getConnection('core_write');
7
- $results = $w->query('SELECT * FROM shweta_testimonials');
8
- return $results;
9
-
10
- }
11
-
12
- public function getTestimonialsEnabled()
13
- {
14
- return Mage::getStoreConfig('shweta/shweta_group/shweta_select',Mage::app()->getStore());
15
- }
16
- public function getTestimonialsImageWidth()
17
- {
18
- return Mage::getStoreConfig('shweta/shweta_group/shweta_width',Mage::app()->getStore());
19
- }
20
- public function getTestimonialsImageHeight()
21
- {
22
- return Mage::getStoreConfig('shweta/shweta_group/shweta_height',Mage::app()->getStore());
23
- }
24
- public function getTestimonialsView()
25
- {
26
- return Mage::getStoreConfig('shweta/shweta_group/shweta_view',Mage::app()->getStore());
27
- }
28
- public function getTestimonialsImages()
29
- {
30
- return Mage::getStoreConfig('shweta/shweta_group/shweta_image',Mage::app()->getStore());
31
- }
32
-
33
-
34
-
35
- }
1
+ <?php
2
+ class Shweta_Testimonials_Block_Left extends Mage_Core_Block_Template{
3
+
4
+ public function ShowTestimonialsRecords()
5
+ {
6
+ $w = Mage::getSingleton('core/resource')->getConnection('core_write');
7
+ $results = $w->query('SELECT * FROM shweta_testimonials');
8
+ return $results;
9
+
10
+ }
11
+
12
+ public function getTestimonialsEnabled()
13
+ {
14
+ return Mage::getStoreConfig('shweta/shweta_group/shweta_select',Mage::app()->getStore());
15
+ }
16
+ public function getTestimonialsImageWidth()
17
+ {
18
+ return Mage::getStoreConfig('shweta/shweta_group/shweta_width',Mage::app()->getStore());
19
+ }
20
+ public function getTestimonialsImageHeight()
21
+ {
22
+ return Mage::getStoreConfig('shweta/shweta_group/shweta_height',Mage::app()->getStore());
23
+ }
24
+ public function getTestimonialsView()
25
+ {
26
+ return Mage::getStoreConfig('shweta/shweta_group/shweta_view',Mage::app()->getStore());
27
+ }
28
+ public function getTestimonialsImages()
29
+ {
30
+ return Mage::getStoreConfig('shweta/shweta_group/shweta_image',Mage::app()->getStore());
31
+ }
32
+
33
+
34
+
35
+ }
app/code/local/Shweta/Testimonials/Block/Testimonials.php CHANGED
@@ -1,13 +1,13 @@
1
- <?php
2
- class Shweta_Testimonials_Block_Testimonials extends Mage_Core_Block_Template{
3
-
4
-
5
- public function ShowCustomRecords()
6
- {
7
- $w = Mage::getSingleton('core/resource')->getConnection('core_write');
8
- $results = $w->query('SELECT * FROM shweta_testimonials');
9
- return $results;
10
-
11
- }
12
-
13
- }
1
+ <?php
2
+ class Shweta_Testimonials_Block_Testimonials extends Mage_Core_Block_Template{
3
+
4
+
5
+ public function ShowCustomRecords()
6
+ {
7
+ $w = Mage::getSingleton('core/resource')->getConnection('core_write');
8
+ $results = $w->query('SELECT * FROM shweta_testimonials');
9
+ return $results;
10
+
11
+ }
12
+
13
+ }
app/code/local/Shweta/Testimonials/Helper/Data.php CHANGED
@@ -1,6 +1,6 @@
1
- <?php
2
- class Shweta_Testimonials_Helper_Data extends Mage_Core_Helper_Abstract
3
- {
4
-
5
- }
6
-
1
+ <?php
2
+ class Shweta_Testimonials_Helper_Data extends Mage_Core_Helper_Abstract
3
+ {
4
+
5
+ }
6
+
app/code/local/Shweta/Testimonials/Model/Mysql4/Testimonials.php CHANGED
@@ -1,8 +1,8 @@
1
- <?php
2
- class Shweta_Testimonials_Model_Mysql4_Testimonials extends Mage_Core_Model_Mysql4_Abstract
3
- {
4
- protected function _construct()
5
- {
6
- $this->_init("testimonials/testimonials", "id");
7
- }
8
}
1
+ <?php
2
+ class Shweta_Testimonials_Model_Mysql4_Testimonials extends Mage_Core_Model_Mysql4_Abstract
3
+ {
4
+ protected function _construct()
5
+ {
6
+ $this->_init("testimonials/testimonials", "id");
7
+ }
8
}
app/code/local/Shweta/Testimonials/Model/Mysql4/Testimonials/Collection.php CHANGED
@@ -1,12 +1,12 @@
1
- <?php
2
- class Shweta_Testimonials_Model_Mysql4_Testimonials_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
3
- {
4
-
5
- public function _construct(){
6
- $this->_init("testimonials/testimonials");
7
- }
8
-
9
-
10
-
11
- }
12
1
+ <?php
2
+ class Shweta_Testimonials_Model_Mysql4_Testimonials_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
3
+ {
4
+
5
+ public function _construct(){
6
+ $this->_init("testimonials/testimonials");
7
+ }
8
+
9
+
10
+
11
+ }
12
app/code/local/Shweta/Testimonials/Model/Testimonials.php CHANGED
@@ -1,12 +1,12 @@
1
- <?php
2
-
3
- class Shweta_Testimonials_Model_Testimonials extends Mage_Core_Model_Abstract
4
- {
5
- protected function _construct(){
6
-
7
- $this->_init("testimonials/testimonials");
8
-
9
- }
10
-
11
- }
12
1
+ <?php
2
+
3
+ class Shweta_Testimonials_Model_Testimonials extends Mage_Core_Model_Abstract
4
+ {
5
+ protected function _construct(){
6
+
7
+ $this->_init("testimonials/testimonials");
8
+
9
+ }
10
+
11
+ }
12
app/code/local/Shweta/Testimonials/Model/{words.php → Words.php} RENAMED
@@ -1,14 +1,14 @@
1
- <?php
2
-
3
- class Shweta_Testimonials_Model_Words
4
- {
5
- public function toOptionArray()
6
- {
7
- return array(
8
- array('value'=>1, 'label'=>Mage::helper('testimonials')->__('left')),
9
- array('value'=>2, 'label'=>Mage::helper('testimonials')->__('middle')),
10
- );
11
- }
12
-
13
- }
14
-
1
+ <?php
2
+
3
+ class Shweta_Testimonials_Model_Words
4
+ {
5
+ public function toOptionArray()
6
+ {
7
+ return array(
8
+ array('value'=>1, 'label'=>Mage::helper('testimonials')->__('left')),
9
+ array('value'=>2, 'label'=>Mage::helper('testimonials')->__('middle')),
10
+ );
11
+ }
12
+
13
+ }
14
+
app/code/local/Shweta/Testimonials/controllers/Adminhtml/TestimonialsController.php CHANGED
@@ -1,209 +1,209 @@
1
- <?php
2
-
3
- class Shweta_Testimonials_Adminhtml_TestimonialsController extends Mage_Adminhtml_Controller_Action
4
- {
5
- protected function _initAction()
6
- {
7
- $this->loadLayout()->_setActiveMenu("testimonials/testimonials")->_addBreadcrumb(Mage::helper("adminhtml")->__("Testimonials Manager"),Mage::helper("adminhtml")->__("Testimonials Manager"));
8
- return $this;
9
- }
10
- public function indexAction()
11
- {
12
- $this->_title($this->__("Testimonials"));
13
- $this->_title($this->__("Manager Testimonials"));
14
-
15
- $this->_initAction();
16
- $this->renderLayout();
17
- }
18
- public function editAction()
19
- {
20
- $this->_title($this->__("Testimonials"));
21
- $this->_title($this->__("Testimonials"));
22
- $this->_title($this->__("Edit Item"));
23
-
24
- $id = $this->getRequest()->getParam("id");
25
- $model = Mage::getModel("testimonials/testimonials")->load($id);
26
- if ($model->getId()) {
27
- Mage::register("testimonials_data", $model);
28
- $this->loadLayout();
29
- $this->_setActiveMenu("testimonials/testimonials");
30
- $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Testimonials Manager"), Mage::helper("adminhtml")->__("Testimonials Manager"));
31
- $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Testimonials Description"), Mage::helper("adminhtml")->__("Testimonials Description"));
32
- $this->getLayout()->getBlock("head")->setCanLoadExtJs(true);
33
- $this->_addContent($this->getLayout()->createBlock("testimonials/adminhtml_testimonials_edit"))->_addLeft($this->getLayout()->createBlock("testimonials/adminhtml_testimonials_edit_tabs"));
34
- $this->renderLayout();
35
- }
36
- else {
37
- Mage::getSingleton("adminhtml/session")->addError(Mage::helper("testimonials")->__("Item does not exist."));
38
- $this->_redirect("*/*/");
39
- }
40
- }
41
-
42
- public function newAction()
43
- {
44
-
45
- $this->_title($this->__("Testimonials"));
46
- $this->_title($this->__("Testimonials"));
47
- $this->_title($this->__("New Item"));
48
-
49
- $id = $this->getRequest()->getParam("id");
50
- $model = Mage::getModel("testimonials/testimonials")->load($id);
51
-
52
- $data = Mage::getSingleton("adminhtml/session")->getFormData(true);
53
- if (!empty($data)) {
54
- $model->setData($data);
55
- }
56
-
57
- Mage::register("testimonials_data", $model);
58
-
59
- $this->loadLayout();
60
- $this->_setActiveMenu("testimonials/testimonials");
61
-
62
- $this->getLayout()->getBlock("head")->setCanLoadExtJs(true);
63
-
64
- $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Testimonials Manager"), Mage::helper("adminhtml")->__("Testimonials Manager"));
65
- $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Testimonials Description"), Mage::helper("adminhtml")->__("Testimonials Description"));
66
-
67
-
68
- $this->_addContent($this->getLayout()->createBlock("testimonials/adminhtml_testimonials_edit"))->_addLeft($this->getLayout()->createBlock("testimonials/adminhtml_testimonials_edit_tabs"));
69
-
70
- $this->renderLayout();
71
-
72
- }
73
- public function saveAction()
74
- {
75
-
76
- $post_data=$this->getRequest()->getPost();
77
-
78
-
79
- if ($post_data) {
80
-
81
- try {
82
-
83
-
84
- //save image
85
- try{
86
-
87
- if((bool)$post_data['pic']['delete']==1) {
88
-
89
- $post_data['pic']='';
90
-
91
- }
92
- else {
93
-
94
- unset($post_data['pic']);
95
-
96
- if (isset($_FILES)){
97
-
98
- if ($_FILES['pic']['name']) {
99
-
100
- if($this->getRequest()->getParam("id")){
101
- $model = Mage::getModel("testimonials/testimonials")->load($this->getRequest()->getParam("id"));
102
- if($model->getData('pic')){
103
- $io = new Varien_Io_File();
104
- $io->rm(Mage::getBaseDir('media').DS.implode(DS,explode('/',$model->getData('pic'))));
105
- }
106
- }
107
- $path = Mage::getBaseDir('media') . DS . 'testimonials' . DS .'testimonials'.DS;
108
- $uploader = new Varien_File_Uploader('pic');
109
- $uploader->setAllowedExtensions(array('jpg','png','gif'));
110
- $uploader->setAllowRenameFiles(false);
111
- $uploader->setFilesDispersion(false);
112
- $destFile = $path.$_FILES['pic']['name'];
113
- $filename = $uploader->getNewFileName($destFile);
114
- $uploader->save($path, $filename);
115
-
116
- $post_data['pic']='testimonials/testimonials/'.$filename;
117
- }
118
- }
119
- }
120
-
121
- } catch (Exception $e) {
122
- Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
123
- $this->_redirect('*/*/edit', array('id' => $this->getRequest()->getParam('id')));
124
- return;
125
- }
126
- //save image
127
-
128
-
129
- $model = Mage::getModel("testimonials/testimonials")
130
- ->addData($post_data)
131
- ->setId($this->getRequest()->getParam("id"))
132
- ->save();
133
-
134
- Mage::getSingleton("adminhtml/session")->addSuccess(Mage::helper("adminhtml")->__("Testimonials was successfully saved"));
135
- Mage::getSingleton("adminhtml/session")->setTestimonialsData(false);
136
-
137
- if ($this->getRequest()->getParam("back")) {
138
- $this->_redirect("*/*/edit", array("id" => $model->getId()));
139
- return;
140
- }
141
- $this->_redirect("*/*/");
142
- return;
143
- }
144
- catch (Exception $e) {
145
- Mage::getSingleton("adminhtml/session")->addError($e->getMessage());
146
- Mage::getSingleton("adminhtml/session")->setTestimonialsData($this->getRequest()->getPost());
147
- $this->_redirect("*/*/edit", array("id" => $this->getRequest()->getParam("id")));
148
- return;
149
- }
150
-
151
- }
152
- $this->_redirect("*/*/");
153
- }
154
-
155
-
156
-
157
- public function deleteAction()
158
- {
159
- if( $this->getRequest()->getParam("id") > 0 ) {
160
- try {
161
- $model = Mage::getModel("testimonials/testimonials");
162
- $model->setId($this->getRequest()->getParam("id"))->delete();
163
- Mage::getSingleton("adminhtml/session")->addSuccess(Mage::helper("adminhtml")->__("Item was successfully deleted"));
164
- $this->_redirect("*/*/");
165
- }
166
- catch (Exception $e) {
167
- Mage::getSingleton("adminhtml/session")->addError($e->getMessage());
168
- $this->_redirect("*/*/edit", array("id" => $this->getRequest()->getParam("id")));
169
- }
170
- }
171
- $this->_redirect("*/*/");
172
- }
173
-
174
-
175
- public function massRemoveAction()
176
- {
177
- try {
178
- $ids = $this->getRequest()->getPost('ids', array());
179
- foreach ($ids as $id) {
180
- $model = Mage::getModel("testimonials/testimonials");
181
- $model->setId($id)->delete();
182
- }
183
- Mage::getSingleton("adminhtml/session")->addSuccess(Mage::helper("adminhtml")->__("Item(s) was successfully removed"));
184
- }
185
- catch (Exception $e) {
186
- Mage::getSingleton("adminhtml/session")->addError($e->getMessage());
187
- }
188
- $this->_redirect('*/*/');
189
- }
190
-
191
- /**
192
- * Export order grid to CSV format
193
- */
194
- public function exportCsvAction()
195
- {
196
- $fileName = 'testimonials.csv';
197
- $grid = $this->getLayout()->createBlock('testimonials/adminhtml_testimonials_grid');
198
- $this->_prepareDownloadResponse($fileName, $grid->getCsvFile());
199
- }
200
- /**
201
- * Export order grid to Excel XML format
202
- */
203
- public function exportExcelAction()
204
- {
205
- $fileName = 'testimonials.xml';
206
- $grid = $this->getLayout()->createBlock('testimonials/adminhtml_testimonials_grid');
207
- $this->_prepareDownloadResponse($fileName, $grid->getExcelFile($fileName));
208
- }
209
- }
1
+ <?php
2
+
3
+ class Shweta_Testimonials_Adminhtml_TestimonialsController extends Mage_Adminhtml_Controller_Action
4
+ {
5
+ protected function _initAction()
6
+ {
7
+ $this->loadLayout()->_setActiveMenu("testimonials/testimonials")->_addBreadcrumb(Mage::helper("adminhtml")->__("Testimonials Manager"),Mage::helper("adminhtml")->__("Testimonials Manager"));
8
+ return $this;
9
+ }
10
+ public function indexAction()
11
+ {
12
+ $this->_title($this->__("Testimonials"));
13
+ $this->_title($this->__("Manager Testimonials"));
14
+
15
+ $this->_initAction();
16
+ $this->renderLayout();
17
+ }
18
+ public function editAction()
19
+ {
20
+ $this->_title($this->__("Testimonials"));
21
+ $this->_title($this->__("Testimonials"));
22
+ $this->_title($this->__("Edit Item"));
23
+
24
+ $id = $this->getRequest()->getParam("id");
25
+ $model = Mage::getModel("testimonials/testimonials")->load($id);
26
+ if ($model->getId()) {
27
+ Mage::register("testimonials_data", $model);
28
+ $this->loadLayout();
29
+ $this->_setActiveMenu("testimonials/testimonials");
30
+ $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Testimonials Manager"), Mage::helper("adminhtml")->__("Testimonials Manager"));
31
+ $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Testimonials Description"), Mage::helper("adminhtml")->__("Testimonials Description"));
32
+ $this->getLayout()->getBlock("head")->setCanLoadExtJs(true);
33
+ $this->_addContent($this->getLayout()->createBlock("testimonials/adminhtml_testimonials_edit"))->_addLeft($this->getLayout()->createBlock("testimonials/adminhtml_testimonials_edit_tabs"));
34
+ $this->renderLayout();
35
+ }
36
+ else {
37
+ Mage::getSingleton("adminhtml/session")->addError(Mage::helper("testimonials")->__("Item does not exist."));
38
+ $this->_redirect("*/*/");
39
+ }
40
+ }
41
+
42
+ public function newAction()
43
+ {
44
+
45
+ $this->_title($this->__("Testimonials"));
46
+ $this->_title($this->__("Testimonials"));
47
+ $this->_title($this->__("New Item"));
48
+
49
+ $id = $this->getRequest()->getParam("id");
50
+ $model = Mage::getModel("testimonials/testimonials")->load($id);
51
+
52
+ $data = Mage::getSingleton("adminhtml/session")->getFormData(true);
53
+ if (!empty($data)) {
54
+ $model->setData($data);
55
+ }
56
+
57
+ Mage::register("testimonials_data", $model);
58
+
59
+ $this->loadLayout();
60
+ $this->_setActiveMenu("testimonials/testimonials");
61
+
62
+ $this->getLayout()->getBlock("head")->setCanLoadExtJs(true);
63
+
64
+ $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Testimonials Manager"), Mage::helper("adminhtml")->__("Testimonials Manager"));
65
+ $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Testimonials Description"), Mage::helper("adminhtml")->__("Testimonials Description"));
66
+
67
+
68
+ $this->_addContent($this->getLayout()->createBlock("testimonials/adminhtml_testimonials_edit"))->_addLeft($this->getLayout()->createBlock("testimonials/adminhtml_testimonials_edit_tabs"));
69
+
70
+ $this->renderLayout();
71
+
72
+ }
73
+ public function saveAction()
74
+ {
75
+
76
+ $post_data=$this->getRequest()->getPost();
77
+
78
+
79
+ if ($post_data) {
80
+
81
+ try {
82
+
83
+
84
+ //save image
85
+ try{
86
+
87
+ if((bool)$post_data['pic']['delete']==1) {
88
+
89
+ $post_data['pic']='';
90
+
91
+ }
92
+ else {
93
+
94
+ unset($post_data['pic']);
95
+
96
+ if (isset($_FILES)){
97
+
98
+ if ($_FILES['pic']['name']) {
99
+
100
+ if($this->getRequest()->getParam("id")){
101
+ $model = Mage::getModel("testimonials/testimonials")->load($this->getRequest()->getParam("id"));
102
+ if($model->getData('pic')){
103
+ $io = new Varien_Io_File();
104
+ $io->rm(Mage::getBaseDir('media').DS.implode(DS,explode('/',$model->getData('pic'))));
105
+ }
106
+ }
107
+ $path = Mage::getBaseDir('media') . DS . 'testimonials' . DS .'testimonials'.DS;
108
+ $uploader = new Varien_File_Uploader('pic');
109
+ $uploader->setAllowedExtensions(array('jpg','png','gif'));
110
+ $uploader->setAllowRenameFiles(false);
111
+ $uploader->setFilesDispersion(false);
112
+ $destFile = $path.$_FILES['pic']['name'];
113
+ $filename = $uploader->getNewFileName($destFile);
114
+ $uploader->save($path, $filename);
115
+
116
+ $post_data['pic']='testimonials/testimonials/'.$filename;
117
+ }
118
+ }
119
+ }
120
+
121
+ } catch (Exception $e) {
122
+ Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
123
+ $this->_redirect('*/*/edit', array('id' => $this->getRequest()->getParam('id')));
124
+ return;
125
+ }
126
+ //save image
127
+
128
+
129
+ $model = Mage::getModel("testimonials/testimonials")
130
+ ->addData($post_data)
131
+ ->setId($this->getRequest()->getParam("id"))
132
+ ->save();
133
+
134
+ Mage::getSingleton("adminhtml/session")->addSuccess(Mage::helper("adminhtml")->__("Testimonials was successfully saved"));
135
+ Mage::getSingleton("adminhtml/session")->setTestimonialsData(false);
136
+
137
+ if ($this->getRequest()->getParam("back")) {
138
+ $this->_redirect("*/*/edit", array("id" => $model->getId()));
139
+ return;
140
+ }
141
+ $this->_redirect("*/*/");
142
+ return;
143
+ }
144
+ catch (Exception $e) {
145
+ Mage::getSingleton("adminhtml/session")->addError($e->getMessage());
146
+ Mage::getSingleton("adminhtml/session")->setTestimonialsData($this->getRequest()->getPost());
147
+ $this->_redirect("*/*/edit", array("id" => $this->getRequest()->getParam("id")));
148
+ return;
149
+ }
150
+
151
+ }
152
+ $this->_redirect("*/*/");
153
+ }
154
+
155
+
156
+
157
+ public function deleteAction()
158
+ {
159
+ if( $this->getRequest()->getParam("id") > 0 ) {
160
+ try {
161
+ $model = Mage::getModel("testimonials/testimonials");
162
+ $model->setId($this->getRequest()->getParam("id"))->delete();
163
+ Mage::getSingleton("adminhtml/session")->addSuccess(Mage::helper("adminhtml")->__("Item was successfully deleted"));
164
+ $this->_redirect("*/*/");
165
+ }
166
+ catch (Exception $e) {
167
+ Mage::getSingleton("adminhtml/session")->addError($e->getMessage());
168
+ $this->_redirect("*/*/edit", array("id" => $this->getRequest()->getParam("id")));
169
+ }
170
+ }
171
+ $this->_redirect("*/*/");
172
+ }
173
+
174
+
175
+ public function massRemoveAction()
176
+ {
177
+ try {
178
+ $ids = $this->getRequest()->getPost('ids', array());
179
+ foreach ($ids as $id) {
180
+ $model = Mage::getModel("testimonials/testimonials");
181
+ $model->setId($id)->delete();
182
+ }
183
+ Mage::getSingleton("adminhtml/session")->addSuccess(Mage::helper("adminhtml")->__("Item(s) was successfully removed"));
184
+ }
185
+ catch (Exception $e) {
186
+ Mage::getSingleton("adminhtml/session")->addError($e->getMessage());
187
+ }
188
+ $this->_redirect('*/*/');
189
+ }
190
+
191
+ /**
192
+ * Export order grid to CSV format
193
+ */
194
+ public function exportCsvAction()
195
+ {
196
+ $fileName = 'testimonials.csv';
197
+ $grid = $this->getLayout()->createBlock('testimonials/adminhtml_testimonials_grid');
198
+ $this->_prepareDownloadResponse($fileName, $grid->getCsvFile());
199
+ }
200
+ /**
201
+ * Export order grid to Excel XML format
202
+ */
203
+ public function exportExcelAction()
204
+ {
205
+ $fileName = 'testimonials.xml';
206
+ $grid = $this->getLayout()->createBlock('testimonials/adminhtml_testimonials_grid');
207
+ $this->_prepareDownloadResponse($fileName, $grid->getExcelFile($fileName));
208
+ }
209
+ }
app/code/local/Shweta/Testimonials/controllers/Adminhtml/TestimonialsbackendController.php CHANGED
@@ -1,10 +1,10 @@
1
- <?php
2
- class Shweta_Testimonials_Adminhtml_TestimonialsbackendController extends Mage_Adminhtml_Controller_Action
3
- {
4
- public function indexAction()
5
- {
6
- $this->loadLayout();
7
- $this->_title($this->__("Testimonials"));
8
- $this->renderLayout();
9
- }
10
}
1
+ <?php
2
+ class Shweta_Testimonials_Adminhtml_TestimonialsbackendController extends Mage_Adminhtml_Controller_Action
3
+ {
4
+ public function indexAction()
5
+ {
6
+ $this->loadLayout();
7
+ $this->_title($this->__("Testimonials"));
8
+ $this->renderLayout();
9
+ }
10
}
app/code/local/Shweta/Testimonials/controllers/IndexController.php CHANGED
@@ -1,22 +1,22 @@
1
- <?php
2
- class Shweta_Testimonials_IndexController extends Mage_Core_Controller_Front_Action{
3
- public function IndexAction() {
4
-
5
- $this->loadLayout();
6
- $this->getLayout()->getBlock("head")->setTitle($this->__("Testimonials"));
7
- $breadcrumbs = $this->getLayout()->getBlock("breadcrumbs");
8
- $breadcrumbs->addCrumb("home", array(
9
- "label" => $this->__("Home Page"),
10
- "title" => $this->__("Home Page"),
11
- "link" => Mage::getBaseUrl()
12
- ));
13
-
14
- $breadcrumbs->addCrumb("testimonials", array(
15
- "label" => $this->__("Testimonials"),
16
- "title" => $this->__("Testimonials")
17
- ));
18
-
19
- $this->renderLayout();
20
-
21
- }
22
}
1
+ <?php
2
+ class Shweta_Testimonials_IndexController extends Mage_Core_Controller_Front_Action{
3
+ public function IndexAction() {
4
+
5
+ $this->loadLayout();
6
+ $this->getLayout()->getBlock("head")->setTitle($this->__("Testimonials"));
7
+ $breadcrumbs = $this->getLayout()->getBlock("breadcrumbs");
8
+ $breadcrumbs->addCrumb("home", array(
9
+ "label" => $this->__("Home Page"),
10
+ "title" => $this->__("Home Page"),
11
+ "link" => Mage::getBaseUrl()
12
+ ));
13
+
14
+ $breadcrumbs->addCrumb("testimonials", array(
15
+ "label" => $this->__("Testimonials"),
16
+ "title" => $this->__("Testimonials")
17
+ ));
18
+
19
+ $this->renderLayout();
20
+
21
+ }
22
}
app/code/local/Shweta/Testimonials/controllers/TestimonialsController.php CHANGED
@@ -1,22 +1,22 @@
1
- <?php
2
- class Shweta_Testimonials_TestimonialsController extends Mage_Core_Controller_Front_Action{
3
- public function IndexAction() {
4
-
5
- $this->loadLayout();
6
- $this->getLayout()->getBlock("head")->setTitle($this->__("Testimonials"));
7
- $breadcrumbs = $this->getLayout()->getBlock("breadcrumbs");
8
- $breadcrumbs->addCrumb("home", array(
9
- "label" => $this->__("Home Page"),
10
- "title" => $this->__("Home Page"),
11
- "link" => Mage::getBaseUrl()
12
- ));
13
-
14
- $breadcrumbs->addCrumb("testimonials", array(
15
- "label" => $this->__("Testimonials"),
16
- "title" => $this->__("Testimonials")
17
- ));
18
-
19
- $this->renderLayout();
20
-
21
- }
22
}
1
+ <?php
2
+ class Shweta_Testimonials_TestimonialsController extends Mage_Core_Controller_Front_Action{
3
+ public function IndexAction() {
4
+
5
+ $this->loadLayout();
6
+ $this->getLayout()->getBlock("head")->setTitle($this->__("Testimonials"));
7
+ $breadcrumbs = $this->getLayout()->getBlock("breadcrumbs");
8
+ $breadcrumbs->addCrumb("home", array(
9
+ "label" => $this->__("Home Page"),
10
+ "title" => $this->__("Home Page"),
11
+ "link" => Mage::getBaseUrl()
12
+ ));
13
+
14
+ $breadcrumbs->addCrumb("testimonials", array(
15
+ "label" => $this->__("Testimonials"),
16
+ "title" => $this->__("Testimonials")
17
+ ));
18
+
19
+ $this->renderLayout();
20
+
21
+ }
22
}
app/code/local/Shweta/Testimonials/etc/10.5.13config.xml CHANGED
@@ -1,143 +1,143 @@
1
- <?xml version="1.0"?>
2
- <config>
3
- <default>
4
- <shweta>
5
- <SAMPLE>
6
- <ENABLED>1</ENABLED>
7
- </SAMPLE>
8
- </shweta>
9
- </default>
10
-
11
- <modules>
12
- <Shweta_Testimonials>
13
- <version>0.1.0</version>
14
- </Shweta_Testimonials>
15
- </modules>
16
- <frontend>
17
- <routers>
18
- <testimonials>
19
- <use>standard</use>
20
- <args>
21
- <module>Shweta_Testimonials</module>
22
- <frontName>testimonials</frontName>
23
- </args>
24
- </testimonials>
25
- </routers>
26
- <layout>
27
- <updates>
28
- <testimonials>
29
- <file>testimonials.xml</file>
30
- </testimonials>
31
- </updates>
32
- </layout>
33
- </frontend>
34
- <global>
35
- <helpers>
36
- <testimonials>
37
- <class>Shweta_Testimonials_Helper</class>
38
- </testimonials>
39
- </helpers>
40
- <blocks>
41
- <testimonials>
42
- <class>Shweta_Testimonials_Block</class>
43
- </testimonials>
44
- </blocks>
45
- <models>
46
- <testimonials>
47
- <class>Shweta_Testimonials_Model</class>
48
- <resourceModel>testimonials_mysql4</resourceModel>
49
- </testimonials>
50
- <testimonials_mysql4>
51
- <class>Shweta_Testimonials_Model_Mysql4</class>
52
- <entities>
53
- <testimonials>
54
- <table>shweta_testimonials</table>
55
- </testimonials>
56
- </entities>
57
- </testimonials_mysql4>
58
- </models>
59
- <resources>
60
- <testimonials_setup>
61
- <setup>
62
- <module>Shweta_Testimonials</module>
63
- </setup>
64
- <connection>
65
- <use>core_setup</use>
66
- </connection>
67
- </testimonials_setup>
68
- <testimonials_write>
69
- <connection>
70
- <use>core_write</use>
71
- </connection>
72
- </testimonials_write>
73
- <testimonials_read>
74
- <connection>
75
- <use>core_read</use>
76
- </connection>
77
- </testimonials_read>
78
- </resources>
79
- </global>
80
- <admin>
81
- <routers>
82
- <testimonials>
83
- <use>admin</use>
84
- <args>
85
- <module>Shweta_Testimonials</module>
86
- <frontName>testimonials</frontName>
87
- </args>
88
- </testimonials>
89
- </routers>
90
- </admin>
91
- <adminhtml>
92
- <menu>
93
- <testimonials module="testimonials">
94
- <title>Testimonials</title>
95
- <sort_order>100</sort_order>
96
- <children>
97
- <testimonialsbackend module="testimonials">
98
- <title>Testimonials</title>
99
- <sort_order>0</sort_order>
100
- <action>testimonials/adminhtml_testimonialsbackend</action>
101
- </testimonialsbackend>
102
- <testimonials module="testimonials">
103
- <title>Manage Testimonials</title>
104
- <sort_order>0</sort_order>
105
- <action>testimonials/adminhtml_testimonials</action>
106
- </testimonials>
107
- </children>
108
- </testimonials>
109
- </menu>
110
- <acl>
111
- <resources>
112
- <all>
113
- <title>Allow Everything</title>
114
- </all>
115
- <admin>
116
- <children>
117
- <testimonials translate="title" module="testimonials">
118
- <title>Testimonials</title>
119
- <sort_order>1000</sort_order>
120
- <children>
121
- <testimonialsbackend translate="title">
122
- <title>Testimonials</title>
123
- </testimonialsbackend>
124
- <testimonials translate="title">
125
- <title>Manage Testimonials</title>
126
- <sort_order>0</sort_order>
127
- </testimonials>
128
- </children>
129
- </testimonials>
130
- </children>
131
- </admin>
132
- </resources>
133
- </acl>
134
- <layout>
135
- <updates>
136
- <testimonials>
137
- <file>testimonials.xml</file>
138
- </testimonials>
139
- </updates>
140
- </layout>
141
- </adminhtml>
142
-
143
- </config>
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <default>
4
+ <shweta>
5
+ <SAMPLE>
6
+ <ENABLED>1</ENABLED>
7
+ </SAMPLE>
8
+ </shweta>
9
+ </default>
10
+
11
+ <modules>
12
+ <Shweta_Testimonials>
13
+ <version>0.1.0</version>
14
+ </Shweta_Testimonials>
15
+ </modules>
16
+ <frontend>
17
+ <routers>
18
+ <testimonials>
19
+ <use>standard</use>
20
+ <args>
21
+ <module>Shweta_Testimonials</module>
22
+ <frontName>testimonials</frontName>
23
+ </args>
24
+ </testimonials>
25
+ </routers>
26
+ <layout>
27
+ <updates>
28
+ <testimonials>
29
+ <file>testimonials.xml</file>
30
+ </testimonials>
31
+ </updates>
32
+ </layout>
33
+ </frontend>
34
+ <global>
35
+ <helpers>
36
+ <testimonials>
37
+ <class>Shweta_Testimonials_Helper</class>
38
+ </testimonials>
39
+ </helpers>
40
+ <blocks>
41
+ <testimonials>
42
+ <class>Shweta_Testimonials_Block</class>
43
+ </testimonials>
44
+ </blocks>
45
+ <models>
46
+ <testimonials>
47
+ <class>Shweta_Testimonials_Model</class>
48
+ <resourceModel>testimonials_mysql4</resourceModel>
49
+ </testimonials>
50
+ <testimonials_mysql4>
51
+ <class>Shweta_Testimonials_Model_Mysql4</class>
52
+ <entities>
53
+ <testimonials>
54
+ <table>shweta_testimonials</table>
55
+ </testimonials>
56
+ </entities>
57
+ </testimonials_mysql4>
58
+ </models>
59
+ <resources>
60
+ <testimonials_setup>
61
+ <setup>
62
+ <module>Shweta_Testimonials</module>
63
+ </setup>
64
+ <connection>
65
+ <use>core_setup</use>
66
+ </connection>
67
+ </testimonials_setup>
68
+ <testimonials_write>
69
+ <connection>
70
+ <use>core_write</use>
71
+ </connection>
72
+ </testimonials_write>
73
+ <testimonials_read>
74
+ <connection>
75
+ <use>core_read</use>
76
+ </connection>
77
+ </testimonials_read>
78
+ </resources>
79
+ </global>
80
+ <admin>
81
+ <routers>
82
+ <testimonials>
83
+ <use>admin</use>
84
+ <args>
85
+ <module>Shweta_Testimonials</module>
86
+ <frontName>testimonials</frontName>
87
+ </args>
88
+ </testimonials>
89
+ </routers>
90
+ </admin>
91
+ <adminhtml>
92
+ <menu>
93
+ <testimonials module="testimonials">
94
+ <title>Testimonials</title>
95
+ <sort_order>100</sort_order>
96
+ <children>
97
+ <testimonialsbackend module="testimonials">
98
+ <title>Testimonials</title>
99
+ <sort_order>0</sort_order>
100
+ <action>testimonials/adminhtml_testimonialsbackend</action>
101
+ </testimonialsbackend>
102
+ <testimonials module="testimonials">
103
+ <title>Manage Testimonials</title>
104
+ <sort_order>0</sort_order>
105
+ <action>testimonials/adminhtml_testimonials</action>
106
+ </testimonials>
107
+ </children>
108
+ </testimonials>
109
+ </menu>
110
+ <acl>
111
+ <resources>
112
+ <all>
113
+ <title>Allow Everything</title>
114
+ </all>
115
+ <admin>
116
+ <children>
117
+ <testimonials translate="title" module="testimonials">
118
+ <title>Testimonials</title>
119
+ <sort_order>1000</sort_order>
120
+ <children>
121
+ <testimonialsbackend translate="title">
122
+ <title>Testimonials</title>
123
+ </testimonialsbackend>
124
+ <testimonials translate="title">
125
+ <title>Manage Testimonials</title>
126
+ <sort_order>0</sort_order>
127
+ </testimonials>
128
+ </children>
129
+ </testimonials>
130
+ </children>
131
+ </admin>
132
+ </resources>
133
+ </acl>
134
+ <layout>
135
+ <updates>
136
+ <testimonials>
137
+ <file>testimonials.xml</file>
138
+ </testimonials>
139
+ </updates>
140
+ </layout>
141
+ </adminhtml>
142
+
143
+ </config>
app/code/local/Shweta/Testimonials/etc/10.5.13system.xml CHANGED
@@ -1,14 +1,14 @@
1
- <?xml version="1.0"?>
2
- <config>
3
- <sections>
4
- <shweta translate="label">
5
- <label>Testimonials</label>
6
- <tab>general</tab>
7
- <frontend_type>text</frontend_type>
8
- <sort_order>1000</sort_order>
9
- <show_in_default>1</show_in_default>
10
- <show_in_website>1</show_in_website>
11
- <show_in_store>1</show_in_store>
12
- </shweta>
13
- </sections>
14
- </config>
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <sections>
4
+ <shweta translate="label">
5
+ <label>Testimonials</label>
6
+ <tab>general</tab>
7
+ <frontend_type>text</frontend_type>
8
+ <sort_order>1000</sort_order>
9
+ <show_in_default>1</show_in_default>
10
+ <show_in_website>1</show_in_website>
11
+ <show_in_store>1</show_in_store>
12
+ </shweta>
13
+ </sections>
14
+ </config>
app/code/local/Shweta/Testimonials/etc/13.5.13config.xml CHANGED
@@ -1,159 +1,159 @@
1
- <?xml version="1.0"?>
2
- <config>
3
-
4
- <modules>
5
- <Shweta_Testimonials>
6
- <version>0.1.0</version>
7
- </Shweta_Testimonials>
8
- </modules>
9
- <frontend>
10
- <routers>
11
- <testimonials>
12
- <use>standard</use>
13
- <args>
14
- <module>Shweta_Testimonials</module>
15
- <frontName>testimonials</frontName>
16
- </args>
17
- </testimonials>
18
- </routers>
19
- <layout>
20
- <updates>
21
- <testimonials>
22
- <file>testimonials.xml</file>
23
- </testimonials>
24
- </updates>
25
- </layout>
26
- </frontend>
27
- <global>
28
- <helpers>
29
- <testimonials>
30
- <class>Shweta_Testimonials_Helper</class>
31
- </testimonials>
32
- </helpers>
33
- <blocks>
34
- <testimonials>
35
- <class>Shweta_Testimonials_Block</class>
36
- </testimonials>
37
- </blocks>
38
- <models>
39
- <testimonials>
40
- <class>Shweta_Testimonials_Model</class>
41
- <resourceModel>testimonials_mysql4</resourceModel>
42
- </testimonials>
43
- <testimonials_mysql4>
44
- <class>Shweta_Testimonials_Model_Mysql4</class>
45
- <entities>
46
- <testimonials>
47
- <table>shweta_testimonials</table>
48
- </testimonials>
49
- </entities>
50
- </testimonials_mysql4>
51
- </models>
52
- <resources>
53
- <testimonials_setup>
54
- <setup>
55
- <module>Shweta_Testimonials</module>
56
- </setup>
57
- <connection>
58
- <use>core_setup</use>
59
- </connection>
60
- </testimonials_setup>
61
- <testimonials_write>
62
- <connection>
63
- <use>core_write</use>
64
- </connection>
65
- </testimonials_write>
66
- <testimonials_read>
67
- <connection>
68
- <use>core_read</use>
69
- </connection>
70
- </testimonials_read>
71
- </resources>
72
- </global>
73
- <admin>
74
- <routers>
75
- <testimonials>
76
- <use>admin</use>
77
- <args>
78
- <module>Shweta_Testimonials</module>
79
- <frontName>testimonials</frontName>
80
- </args>
81
- </testimonials>
82
- </routers>
83
- </admin>
84
- <adminhtml>
85
- <menu>
86
- <testimonials module="testimonials">
87
- <title>Testimonials</title>
88
- <sort_order>100</sort_order>
89
- <children>
90
- <testimonialsbackend module="testimonials">
91
- <title>Testimonials</title>
92
- <sort_order>0</sort_order>
93
- <action>testimonials/adminhtml_testimonialsbackend</action>
94
- </testimonialsbackend>
95
- <testimonials module="testimonials">
96
- <title>Manage Testimonials</title>
97
- <sort_order>0</sort_order>
98
- <action>testimonials/adminhtml_testimonials</action>
99
- </testimonials>
100
- </children>
101
- </testimonials>
102
- </menu>
103
- <acl>
104
- <resources>
105
- <all>
106
- <title>Allow Everything</title>
107
- </all>
108
- <admin>
109
- <children>
110
- <testimonials translate="title" module="testimonials">
111
- <title>Testimonials</title>
112
- <sort_order>1000</sort_order>
113
- <children>
114
- <testimonialsbackend translate="title">
115
- <title>Testimonials</title>
116
- </testimonialsbackend>
117
- <testimonials translate="title">
118
- <title>Manage Testimonials</title>
119
- <sort_order>0</sort_order>
120
- </testimonials>
121
- </children>
122
- </testimonials>
123
- </children>
124
- </admin>
125
- </resources>
126
- </acl>
127
- <layout>
128
- <updates>
129
- <testimonials>
130
- <file>testimonials.xml</file>
131
- </testimonials>
132
- </updates>
133
- </layout>
134
- </adminhtml>
135
- <adminhtml>
136
- <acl>
137
- <resources>
138
- <all>
139
- <title>Allow Everything</title>
140
- </all>
141
- <admin>
142
- <children>
143
- <system>
144
- <children>
145
- <config>
146
- <children>
147
- <Shweta>
148
- <title>Shweta Testimonials</title>
149
- </Shweta>
150
- </children>
151
- </config>
152
- </children>
153
- </system>
154
- </children>
155
- </admin>
156
- </resources>
157
- </acl>
158
- </adminhtml>
159
- </config>
1
+ <?xml version="1.0"?>
2
+ <config>
3
+
4
+ <modules>
5
+ <Shweta_Testimonials>
6
+ <version>0.1.0</version>
7
+ </Shweta_Testimonials>
8
+ </modules>
9
+ <frontend>
10
+ <routers>
11
+ <testimonials>
12
+ <use>standard</use>
13
+ <args>
14
+ <module>Shweta_Testimonials</module>
15
+ <frontName>testimonials</frontName>
16
+ </args>
17
+ </testimonials>
18
+ </routers>
19
+ <layout>
20
+ <updates>
21
+ <testimonials>
22
+ <file>testimonials.xml</file>
23
+ </testimonials>
24
+ </updates>
25
+ </layout>
26
+ </frontend>
27
+ <global>
28
+ <helpers>
29
+ <testimonials>
30
+ <class>Shweta_Testimonials_Helper</class>
31
+ </testimonials>
32
+ </helpers>
33
+ <blocks>
34
+ <testimonials>
35
+ <class>Shweta_Testimonials_Block</class>
36
+ </testimonials>
37
+ </blocks>
38
+ <models>
39
+ <testimonials>
40
+ <class>Shweta_Testimonials_Model</class>
41
+ <resourceModel>testimonials_mysql4</resourceModel>
42
+ </testimonials>
43
+ <testimonials_mysql4>
44
+ <class>Shweta_Testimonials_Model_Mysql4</class>
45
+ <entities>
46
+ <testimonials>
47
+ <table>shweta_testimonials</table>
48
+ </testimonials>
49
+ </entities>
50
+ </testimonials_mysql4>
51
+ </models>
52
+ <resources>
53
+ <testimonials_setup>
54
+ <setup>
55
+ <module>Shweta_Testimonials</module>
56
+ </setup>
57
+ <connection>
58
+ <use>core_setup</use>
59
+ </connection>
60
+ </testimonials_setup>
61
+ <testimonials_write>
62
+ <connection>
63
+ <use>core_write</use>
64
+ </connection>
65
+ </testimonials_write>
66
+ <testimonials_read>
67
+ <connection>
68
+ <use>core_read</use>
69
+ </connection>
70
+ </testimonials_read>
71
+ </resources>
72
+ </global>
73
+ <admin>
74
+ <routers>
75
+ <testimonials>
76
+ <use>admin</use>
77
+ <args>
78
+ <module>Shweta_Testimonials</module>
79
+ <frontName>testimonials</frontName>
80
+ </args>
81
+ </testimonials>
82
+ </routers>
83
+ </admin>
84
+ <adminhtml>
85
+ <menu>
86
+ <testimonials module="testimonials">
87
+ <title>Testimonials</title>
88
+ <sort_order>100</sort_order>
89
+ <children>
90
+ <testimonialsbackend module="testimonials">
91
+ <title>Testimonials</title>
92
+ <sort_order>0</sort_order>
93
+ <action>testimonials/adminhtml_testimonialsbackend</action>
94
+ </testimonialsbackend>
95
+ <testimonials module="testimonials">
96
+ <title>Manage Testimonials</title>
97
+ <sort_order>0</sort_order>
98
+ <action>testimonials/adminhtml_testimonials</action>
99
+ </testimonials>
100
+ </children>
101
+ </testimonials>
102
+ </menu>
103
+ <acl>
104
+ <resources>
105
+ <all>
106
+ <title>Allow Everything</title>
107
+ </all>
108
+ <admin>
109
+ <children>
110
+ <testimonials translate="title" module="testimonials">
111
+ <title>Testimonials</title>
112
+ <sort_order>1000</sort_order>
113
+ <children>
114
+ <testimonialsbackend translate="title">
115
+ <title>Testimonials</title>
116
+ </testimonialsbackend>
117
+ <testimonials translate="title">
118
+ <title>Manage Testimonials</title>
119
+ <sort_order>0</sort_order>
120
+ </testimonials>
121
+ </children>
122
+ </testimonials>
123
+ </children>
124
+ </admin>
125
+ </resources>
126
+ </acl>
127
+ <layout>
128
+ <updates>
129
+ <testimonials>
130
+ <file>testimonials.xml</file>
131
+ </testimonials>
132
+ </updates>
133
+ </layout>
134
+ </adminhtml>
135
+ <adminhtml>
136
+ <acl>
137
+ <resources>
138
+ <all>
139
+ <title>Allow Everything</title>
140
+ </all>
141
+ <admin>
142
+ <children>
143
+ <system>
144
+ <children>
145
+ <config>
146
+ <children>
147
+ <Shweta>
148
+ <title>Shweta Testimonials</title>
149
+ </Shweta>
150
+ </children>
151
+ </config>
152
+ </children>
153
+ </system>
154
+ </children>
155
+ </admin>
156
+ </resources>
157
+ </acl>
158
+ </adminhtml>
159
+ </config>
app/code/local/Shweta/Testimonials/etc/13.5.13system.xml CHANGED
@@ -1,59 +1,59 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <config>
3
- <tabs>
4
- <shweta translate="label" module="testimonials">
5
- <label>Testimonials</label>
6
- <sort_order>100</sort_order>
7
- </shweta>
8
- </tabs>
9
- <sections>
10
- <shweta translate="label" module="testimonials">
11
- <label>Shweta testimonials</label>
12
- <tab>shweta</tab>
13
- <sort_order>1000</sort_order>
14
- <show_in_default>1</show_in_default>
15
- <show_in_website>1</show_in_website>
16
- <show_in_store>1</show_in_store>
17
- <groups>
18
- <shweta_group translate="label" module="testimonials">
19
- <label>Settings</label>
20
- <frontend_type>text</frontend_type>
21
- <sort_order>1000</sort_order>
22
- <show_in_default>1</show_in_default>
23
- <show_in_website>1</show_in_website>
24
- <show_in_store>1</show_in_store>
25
- <fields>
26
- <shweta_select translate="label">
27
- <label>Enable Testimonials </label>
28
- <comment>enable testimonials to your site Yes/No </comment>
29
- <frontend_type>select</frontend_type>
30
- <sort_order>1</sort_order>
31
- <show_in_default>1</show_in_default>
32
- <show_in_website>1</show_in_website>
33
- <show_in_store>1</show_in_store>
34
- <source_model>adminhtml/system_config_source_yesno</source_model>
35
- </shweta_select>
36
- <shweta_width translate="label">
37
- <label>Image Width: </label>
38
- <comment><![CDATA[in px]]></comment>
39
- <frontend_type>text</frontend_type>
40
- <sort_order>2</sort_order>
41
- <show_in_default>1</show_in_default>
42
- <show_in_website>1</show_in_website>
43
- <show_in_store>1</show_in_store>
44
- </shweta_width>
45
- <shweta_height translate="label">
46
- <label>Image Height: </label>
47
- <comment><![CDATA[in px]]></comment>
48
- <frontend_type>text</frontend_type>
49
- <sort_order>3</sort_order>
50
- <show_in_default>1</show_in_default>
51
- <show_in_website>1</show_in_website>
52
- <show_in_store>1</show_in_store>
53
- </shweta_height>
54
- </fields>
55
- </shweta_group>
56
- </groups>
57
- </shweta>
58
- </sections>
59
- </config>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <config>
3
+ <tabs>
4
+ <shweta translate="label" module="testimonials">
5
+ <label>Testimonials</label>
6
+ <sort_order>100</sort_order>
7
+ </shweta>
8
+ </tabs>
9
+ <sections>
10
+ <shweta translate="label" module="testimonials">
11
+ <label>Shweta testimonials</label>
12
+ <tab>shweta</tab>
13
+ <sort_order>1000</sort_order>
14
+ <show_in_default>1</show_in_default>
15
+ <show_in_website>1</show_in_website>
16
+ <show_in_store>1</show_in_store>
17
+ <groups>
18
+ <shweta_group translate="label" module="testimonials">
19
+ <label>Settings</label>
20
+ <frontend_type>text</frontend_type>
21
+ <sort_order>1000</sort_order>
22
+ <show_in_default>1</show_in_default>
23
+ <show_in_website>1</show_in_website>
24
+ <show_in_store>1</show_in_store>
25
+ <fields>
26
+ <shweta_select translate="label">
27
+ <label>Enable Testimonials </label>
28
+ <comment>enable testimonials to your site Yes/No </comment>
29
+ <frontend_type>select</frontend_type>
30
+ <sort_order>1</sort_order>
31
+ <show_in_default>1</show_in_default>
32
+ <show_in_website>1</show_in_website>
33
+ <show_in_store>1</show_in_store>
34
+ <source_model>adminhtml/system_config_source_yesno</source_model>
35
+ </shweta_select>
36
+ <shweta_width translate="label">
37
+ <label>Image Width: </label>
38
+ <comment><![CDATA[in px]]></comment>
39
+ <frontend_type>text</frontend_type>
40
+ <sort_order>2</sort_order>
41
+ <show_in_default>1</show_in_default>
42
+ <show_in_website>1</show_in_website>
43
+ <show_in_store>1</show_in_store>
44
+ </shweta_width>
45
+ <shweta_height translate="label">
46
+ <label>Image Height: </label>
47
+ <comment><![CDATA[in px]]></comment>
48
+ <frontend_type>text</frontend_type>
49
+ <sort_order>3</sort_order>
50
+ <show_in_default>1</show_in_default>
51
+ <show_in_website>1</show_in_website>
52
+ <show_in_store>1</show_in_store>
53
+ </shweta_height>
54
+ </fields>
55
+ </shweta_group>
56
+ </groups>
57
+ </shweta>
58
+ </sections>
59
+ </config>
app/code/local/Shweta/Testimonials/etc/9.5.13config.xml CHANGED
@@ -1,134 +1,134 @@
1
- <?xml version="1.0"?>
2
- <config>
3
- <modules>
4
- <Shweta_Testimonials>
5
- <version>0.1.0</version>
6
- </Shweta_Testimonials>
7
- </modules>
8
- <frontend>
9
- <routers>
10
- <testimonials>
11
- <use>standard</use>
12
- <args>
13
- <module>Shweta_Testimonials</module>
14
- <frontName>testimonials</frontName>
15
- </args>
16
- </testimonials>
17
- </routers>
18
- <layout>
19
- <updates>
20
- <testimonials>
21
- <file>testimonials.xml</file>
22
- </testimonials>
23
- </updates>
24
- </layout>
25
- </frontend>
26
- <global>
27
- <helpers>
28
- <testimonials>
29
- <class>Shweta_Testimonials_Helper</class>
30
- </testimonials>
31
- </helpers>
32
- <blocks>
33
- <testimonials>
34
- <class>Shweta_Testimonials_Block</class>
35
- </testimonials>
36
- </blocks>
37
- <models>
38
- <testimonials>
39
- <class>Shweta_Testimonials_Model</class>
40
- <resourceModel>testimonials_mysql4</resourceModel>
41
- </testimonials>
42
- <testimonials_mysql4>
43
- <class>Shweta_Testimonials_Model_Mysql4</class>
44
- <entities>
45
- <testimonials>
46
- <table>shweta_testimonials</table>
47
- </testimonials>
48
- </entities>
49
- </testimonials_mysql4>
50
- </models>
51
- <resources>
52
- <testimonials_setup>
53
- <setup>
54
- <module>Shweta_Testimonials</module>
55
- </setup>
56
- <connection>
57
- <use>core_setup</use>
58
- </connection>
59
- </testimonials_setup>
60
- <testimonials_write>
61
- <connection>
62
- <use>core_write</use>
63
- </connection>
64
- </testimonials_write>
65
- <testimonials_read>
66
- <connection>
67
- <use>core_read</use>
68
- </connection>
69
- </testimonials_read>
70
- </resources>
71
- </global>
72
- <admin>
73
- <routers>
74
- <testimonials>
75
- <use>admin</use>
76
- <args>
77
- <module>Shweta_Testimonials</module>
78
- <frontName>testimonials</frontName>
79
- </args>
80
- </testimonials>
81
- </routers>
82
- </admin>
83
- <adminhtml>
84
- <menu>
85
- <testimonials module="testimonials">
86
- <title>Testimonials</title>
87
- <sort_order>100</sort_order>
88
- <children>
89
- <testimonialsbackend module="testimonials">
90
- <title>Testimonials</title>
91
- <sort_order>0</sort_order>
92
- <action>testimonials/adminhtml_testimonialsbackend</action>
93
- </testimonialsbackend>
94
- <testimonials module="testimonials">
95
- <title>Manage Testimonials</title>
96
- <sort_order>0</sort_order>
97
- <action>testimonials/adminhtml_testimonials</action>
98
- </testimonials>
99
- </children>
100
- </testimonials>
101
- </menu>
102
- <acl>
103
- <resources>
104
- <all>
105
- <title>Allow Everything</title>
106
- </all>
107
- <admin>
108
- <children>
109
- <testimonials translate="title" module="testimonials">
110
- <title>Testimonials</title>
111
- <sort_order>1000</sort_order>
112
- <children>
113
- <testimonialsbackend translate="title">
114
- <title>Testimonials</title>
115
- </testimonialsbackend>
116
- <testimonials translate="title">
117
- <title>Manage Testimonials</title>
118
- <sort_order>0</sort_order>
119
- </testimonials>
120
- </children>
121
- </testimonials>
122
- </children>
123
- </admin>
124
- </resources>
125
- </acl>
126
- <layout>
127
- <updates>
128
- <testimonials>
129
- <file>testimonials.xml</file>
130
- </testimonials>
131
- </updates>
132
- </layout>
133
- </adminhtml>
134
</config>
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Shweta_Testimonials>
5
+ <version>0.1.0</version>
6
+ </Shweta_Testimonials>
7
+ </modules>
8
+ <frontend>
9
+ <routers>
10
+ <testimonials>
11
+ <use>standard</use>
12
+ <args>
13
+ <module>Shweta_Testimonials</module>
14
+ <frontName>testimonials</frontName>
15
+ </args>
16
+ </testimonials>
17
+ </routers>
18
+ <layout>
19
+ <updates>
20
+ <testimonials>
21
+ <file>testimonials.xml</file>
22
+ </testimonials>
23
+ </updates>
24
+ </layout>
25
+ </frontend>
26
+ <global>
27
+ <helpers>
28
+ <testimonials>
29
+ <class>Shweta_Testimonials_Helper</class>
30
+ </testimonials>
31
+ </helpers>
32
+ <blocks>
33
+ <testimonials>
34
+ <class>Shweta_Testimonials_Block</class>
35
+ </testimonials>
36
+ </blocks>
37
+ <models>
38
+ <testimonials>
39
+ <class>Shweta_Testimonials_Model</class>
40
+ <resourceModel>testimonials_mysql4</resourceModel>
41
+ </testimonials>
42
+ <testimonials_mysql4>
43
+ <class>Shweta_Testimonials_Model_Mysql4</class>
44
+ <entities>
45
+ <testimonials>
46
+ <table>shweta_testimonials</table>
47
+ </testimonials>
48
+ </entities>
49
+ </testimonials_mysql4>
50
+ </models>
51
+ <resources>
52
+ <testimonials_setup>
53
+ <setup>
54
+ <module>Shweta_Testimonials</module>
55
+ </setup>
56
+ <connection>
57
+ <use>core_setup</use>
58
+ </connection>
59
+ </testimonials_setup>
60
+ <testimonials_write>
61
+ <connection>
62
+ <use>core_write</use>
63
+ </connection>
64
+ </testimonials_write>
65
+ <testimonials_read>
66
+ <connection>
67
+ <use>core_read</use>
68
+ </connection>
69
+ </testimonials_read>
70
+ </resources>
71
+ </global>
72
+ <admin>
73
+ <routers>
74
+ <testimonials>
75
+ <use>admin</use>
76
+ <args>
77
+ <module>Shweta_Testimonials</module>
78
+ <frontName>testimonials</frontName>
79
+ </args>
80
+ </testimonials>
81
+ </routers>
82
+ </admin>
83
+ <adminhtml>
84
+ <menu>
85
+ <testimonials module="testimonials">
86
+ <title>Testimonials</title>
87
+ <sort_order>100</sort_order>
88
+ <children>
89
+ <testimonialsbackend module="testimonials">
90
+ <title>Testimonials</title>
91
+ <sort_order>0</sort_order>
92
+ <action>testimonials/adminhtml_testimonialsbackend</action>
93
+ </testimonialsbackend>
94
+ <testimonials module="testimonials">
95
+ <title>Manage Testimonials</title>
96
+ <sort_order>0</sort_order>
97
+ <action>testimonials/adminhtml_testimonials</action>
98
+ </testimonials>
99
+ </children>
100
+ </testimonials>
101
+ </menu>
102
+ <acl>
103
+ <resources>
104
+ <all>
105
+ <title>Allow Everything</title>
106
+ </all>
107
+ <admin>
108
+ <children>
109
+ <testimonials translate="title" module="testimonials">
110
+ <title>Testimonials</title>
111
+ <sort_order>1000</sort_order>
112
+ <children>
113
+ <testimonialsbackend translate="title">
114
+ <title>Testimonials</title>
115
+ </testimonialsbackend>
116
+ <testimonials translate="title">
117
+ <title>Manage Testimonials</title>
118
+ <sort_order>0</sort_order>
119
+ </testimonials>
120
+ </children>
121
+ </testimonials>
122
+ </children>
123
+ </admin>
124
+ </resources>
125
+ </acl>
126
+ <layout>
127
+ <updates>
128
+ <testimonials>
129
+ <file>testimonials.xml</file>
130
+ </testimonials>
131
+ </updates>
132
+ </layout>
133
+ </adminhtml>
134
</config>
app/code/local/Shweta/Testimonials/etc/adminhtml.xml CHANGED
@@ -1,26 +1,26 @@
1
- <?xml version="1.0"?>
2
- <config>
3
- <acl>
4
- <resources>
5
- <all>
6
- <title>Allow Everything</title>
7
- </all>
8
- <admin>
9
- <children>
10
- <system>
11
- <children>
12
- <config>
13
- <children>
14
- <shweta translate="title">
15
- <title>Testimonials</title>
16
- <sort_order>100</sort_order>
17
- </shweta>
18
- </children>
19
- </config>
20
- </children>
21
- </system>
22
- </children>
23
- </admin>
24
- </resources>
25
- </acl>
26
- </config>
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <acl>
4
+ <resources>
5
+ <all>
6
+ <title>Allow Everything</title>
7
+ </all>
8
+ <admin>
9
+ <children>
10
+ <system>
11
+ <children>
12
+ <config>
13
+ <children>
14
+ <shweta translate="title">
15
+ <title>Testimonials</title>
16
+ <sort_order>100</sort_order>
17
+ </shweta>
18
+ </children>
19
+ </config>
20
+ </children>
21
+ </system>
22
+ </children>
23
+ </admin>
24
+ </resources>
25
+ </acl>
26
+ </config>
app/code/local/Shweta/Testimonials/etc/config.xml CHANGED
@@ -1,154 +1,154 @@
1
- <?xml version="1.0"?>
2
- <config>
3
-
4
- <modules>
5
- <Shweta_Testimonials>
6
- <version>0.1.0</version>
7
- </Shweta_Testimonials>
8
- </modules>
9
- <frontend>
10
- <routers>
11
- <testimonials>
12
- <use>standard</use>
13
- <args>
14
- <module>Shweta_Testimonials</module>
15
- <frontName>testimonials</frontName>
16
- </args>
17
- </testimonials>
18
- </routers>
19
- <layout>
20
- <updates>
21
- <testimonials>
22
- <file>testimonials.xml</file>
23
- </testimonials>
24
- </updates>
25
- </layout>
26
- </frontend>
27
- <global>
28
- <helpers>
29
- <testimonials>
30
- <class>Shweta_Testimonials_Helper</class>
31
- </testimonials>
32
- </helpers>
33
- <blocks>
34
- <testimonials>
35
- <class>Shweta_Testimonials_Block</class>
36
- </testimonials>
37
- </blocks>
38
- <models>
39
- <testimonials>
40
- <class>Shweta_Testimonials_Model</class>
41
- <resourceModel>testimonials_mysql4</resourceModel>
42
- </testimonials>
43
- <testimonials_mysql4>
44
- <class>Shweta_Testimonials_Model_Mysql4</class>
45
- <entities>
46
- <testimonials>
47
- <table>shweta_testimonials</table>
48
- </testimonials>
49
- </entities>
50
- </testimonials_mysql4>
51
- </models>
52
- <resources>
53
- <testimonials_setup>
54
- <setup>
55
- <module>Shweta_Testimonials</module>
56
- </setup>
57
- <connection>
58
- <use>core_setup</use>
59
- </connection>
60
- </testimonials_setup>
61
- <testimonials_write>
62
- <connection>
63
- <use>core_write</use>
64
- </connection>
65
- </testimonials_write>
66
- <testimonials_read>
67
- <connection>
68
- <use>core_read</use>
69
- </connection>
70
- </testimonials_read>
71
- </resources>
72
- </global>
73
- <admin>
74
- <routers>
75
- <testimonials>
76
- <use>admin</use>
77
- <args>
78
- <module>Shweta_Testimonials</module>
79
- <frontName>testimonials</frontName>
80
- </args>
81
- </testimonials>
82
- </routers>
83
- </admin>
84
- <adminhtml>
85
- <menu>
86
- <testimonials module="testimonials">
87
- <title>Testimonials</title>
88
- <sort_order>100</sort_order>
89
- <children>
90
- <testimonials module="testimonials">
91
- <title>Manage Testimonials</title>
92
- <sort_order>0</sort_order>
93
- <action>testimonials/adminhtml_testimonials</action>
94
- </testimonials>
95
- </children>
96
- </testimonials>
97
- </menu>
98
- <acl>
99
- <resources>
100
- <all>
101
- <title>Allow Everything</title>
102
- </all>
103
- <admin>
104
- <children>
105
- <testimonials translate="title" module="testimonials">
106
- <title>Testimonials</title>
107
- <sort_order>1000</sort_order>
108
- <children>
109
- <testimonialsbackend translate="title">
110
- <title>Testimonials</title>
111
- </testimonialsbackend>
112
- <testimonials translate="title">
113
- <title>Manage Testimonials</title>
114
- <sort_order>0</sort_order>
115
- </testimonials>
116
- </children>
117
- </testimonials>
118
- </children>
119
- </admin>
120
- </resources>
121
- </acl>
122
- <layout>
123
- <updates>
124
- <testimonials>
125
- <file>testimonials.xml</file>
126
- </testimonials>
127
- </updates>
128
- </layout>
129
- </adminhtml>
130
- <adminhtml>
131
- <acl>
132
- <resources>
133
- <all>
134
- <title>Allow Everything</title>
135
- </all>
136
- <admin>
137
- <children>
138
- <system>
139
- <children>
140
- <config>
141
- <children>
142
- <Shweta>
143
- <title>Shweta Testimonials</title>
144
- </Shweta>
145
- </children>
146
- </config>
147
- </children>
148
- </system>
149
- </children>
150
- </admin>
151
- </resources>
152
- </acl>
153
- </adminhtml>
154
- </config>
1
+ <?xml version="1.0"?>
2
+ <config>
3
+
4
+ <modules>
5
+ <Shweta_Testimonials>
6
+ <version>0.1.0</version>
7
+ </Shweta_Testimonials>
8
+ </modules>
9
+ <frontend>
10
+ <routers>
11
+ <testimonials>
12
+ <use>standard</use>
13
+ <args>
14
+ <module>Shweta_Testimonials</module>
15
+ <frontName>testimonials</frontName>
16
+ </args>
17
+ </testimonials>
18
+ </routers>
19
+ <layout>
20
+ <updates>
21
+ <testimonials>
22
+ <file>testimonials.xml</file>
23
+ </testimonials>
24
+ </updates>
25
+ </layout>
26
+ </frontend>
27
+ <global>
28
+ <helpers>
29
+ <testimonials>
30
+ <class>Shweta_Testimonials_Helper</class>
31
+ </testimonials>
32
+ </helpers>
33
+ <blocks>
34
+ <testimonials>
35
+ <class>Shweta_Testimonials_Block</class>
36
+ </testimonials>
37
+ </blocks>
38
+ <models>
39
+ <testimonials>
40
+ <class>Shweta_Testimonials_Model</class>
41
+ <resourceModel>testimonials_mysql4</resourceModel>
42
+ </testimonials>
43
+ <testimonials_mysql4>
44
+ <class>Shweta_Testimonials_Model_Mysql4</class>
45
+ <entities>
46
+ <testimonials>
47
+ <table>shweta_testimonials</table>
48
+ </testimonials>
49
+ </entities>
50
+ </testimonials_mysql4>
51
+ </models>
52
+ <resources>
53
+ <testimonials_setup>
54
+ <setup>
55
+ <module>Shweta_Testimonials</module>
56
+ </setup>
57
+ <connection>
58
+ <use>core_setup</use>
59
+ </connection>
60
+ </testimonials_setup>
61
+ <testimonials_write>
62
+ <connection>
63
+ <use>core_write</use>
64
+ </connection>
65
+ </testimonials_write>
66
+ <testimonials_read>
67
+ <connection>
68
+ <use>core_read</use>
69
+ </connection>
70
+ </testimonials_read>
71
+ </resources>
72
+ </global>
73
+ <admin>
74
+ <routers>
75
+ <testimonials>
76
+ <use>admin</use>
77
+ <args>
78
+ <module>Shweta_Testimonials</module>
79
+ <frontName>testimonials</frontName>
80
+ </args>
81
+ </testimonials>
82
+ </routers>
83
+ </admin>
84
+ <adminhtml>
85
+ <menu>
86
+ <testimonials module="testimonials">
87
+ <title>Testimonials</title>
88
+ <sort_order>100</sort_order>
89
+ <children>
90
+ <testimonials module="testimonials">
91
+ <title>Manage Testimonials</title>
92
+ <sort_order>0</sort_order>
93
+ <action>testimonials/adminhtml_testimonials</action>
94
+ </testimonials>
95
+ </children>
96
+ </testimonials>
97
+ </menu>
98
+ <acl>
99
+ <resources>
100
+ <all>
101
+ <title>Allow Everything</title>
102
+ </all>
103
+ <admin>
104
+ <children>
105
+ <testimonials translate="title" module="testimonials">
106
+ <title>Testimonials</title>
107
+ <sort_order>1000</sort_order>
108
+ <children>
109
+ <testimonialsbackend translate="title">
110
+ <title>Testimonials</title>
111
+ </testimonialsbackend>
112
+ <testimonials translate="title">
113
+ <title>Manage Testimonials</title>
114
+ <sort_order>0</sort_order>
115
+ </testimonials>
116
+ </children>
117
+ </testimonials>
118
+ </children>
119
+ </admin>
120
+ </resources>
121
+ </acl>
122
+ <layout>
123
+ <updates>
124
+ <testimonials>
125
+ <file>testimonials.xml</file>
126
+ </testimonials>
127
+ </updates>
128
+ </layout>
129
+ </adminhtml>
130
+ <adminhtml>
131
+ <acl>
132
+ <resources>
133
+ <all>
134
+ <title>Allow Everything</title>
135
+ </all>
136
+ <admin>
137
+ <children>
138
+ <system>
139
+ <children>
140
+ <config>
141
+ <children>
142
+ <Shweta>
143
+ <title>Shweta Testimonials</title>
144
+ </Shweta>
145
+ </children>
146
+ </config>
147
+ </children>
148
+ </system>
149
+ </children>
150
+ </admin>
151
+ </resources>
152
+ </acl>
153
+ </adminhtml>
154
+ </config>
app/code/local/Shweta/Testimonials/etc/system.xml CHANGED
@@ -1,79 +1,79 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <config>
3
- <tabs>
4
- <shweta translate="label" module="testimonials">
5
- <label>Testimonials</label>
6
- <sort_order>100</sort_order>
7
- </shweta>
8
- </tabs>
9
- <sections>
10
- <shweta translate="label" module="testimonials">
11
- <label>Shweta testimonials</label>
12
- <tab>shweta</tab>
13
- <sort_order>1000</sort_order>
14
- <show_in_default>1</show_in_default>
15
- <show_in_website>1</show_in_website>
16
- <show_in_store>1</show_in_store>
17
- <groups>
18
- <shweta_group translate="label" module="testimonials">
19
- <label>Settings</label>
20
- <frontend_type>text</frontend_type>
21
- <sort_order>1000</sort_order>
22
- <show_in_default>1</show_in_default>
23
- <show_in_website>1</show_in_website>
24
- <show_in_store>1</show_in_store>
25
- <fields>
26
- <shweta_select translate="label">
27
- <label>Enable Testimonials </label>
28
- <comment>enable testimonials to your site Yes/No </comment>
29
- <frontend_type>select</frontend_type>
30
- <sort_order>1</sort_order>
31
- <show_in_default>1</show_in_default>
32
- <show_in_website>1</show_in_website>
33
- <show_in_store>1</show_in_store>
34
- <source_model>adminhtml/system_config_source_yesno</source_model>
35
- </shweta_select>
36
- <shweta_view translate="label">
37
- <label>View Testimonials </label>
38
- <comment>select testimonials to visible at</comment>
39
- <frontend_type>select</frontend_type>
40
- <sort_order>1</sort_order>
41
- <show_in_default>1</show_in_default>
42
- <show_in_website>1</show_in_website>
43
- <show_in_store>1</show_in_store>
44
- <source_model>testimonials/words</source_model>
45
- </shweta_view>
46
- <shweta_width translate="label">
47
- <label>Image Width: </label>
48
- <comment><![CDATA[in px]]></comment>
49
- <frontend_type>text</frontend_type>
50
- <sort_order>2</sort_order>
51
- <show_in_default>1</show_in_default>
52
- <show_in_website>1</show_in_website>
53
- <show_in_store>1</show_in_store>
54
- </shweta_width>
55
- <shweta_height translate="label">
56
- <label>Image Height: </label>
57
- <comment><![CDATA[in px]]></comment>
58
- <frontend_type>text</frontend_type>
59
- <sort_order>3</sort_order>
60
- <show_in_default>1</show_in_default>
61
- <show_in_website>1</show_in_website>
62
- <show_in_store>1</show_in_store>
63
- </shweta_height>
64
- <shweta_image translate="label">
65
- <label>Show face Images: </label>
66
- <comment>enable Images to your testimonials Yes/No </comment>
67
- <frontend_type>select</frontend_type>
68
- <sort_order>1</sort_order>
69
- <show_in_default>1</show_in_default>
70
- <show_in_website>1</show_in_website>
71
- <show_in_store>1</show_in_store>
72
- <source_model>adminhtml/system_config_source_yesno</source_model>
73
- </shweta_image>
74
- </fields>
75
- </shweta_group>
76
- </groups>
77
- </shweta>
78
- </sections>
79
- </config>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <config>
3
+ <tabs>
4
+ <shweta translate="label" module="testimonials">
5
+ <label>Testimonials</label>
6
+ <sort_order>100</sort_order>
7
+ </shweta>
8
+ </tabs>
9
+ <sections>
10
+ <shweta translate="label" module="testimonials">
11
+ <label>Shweta testimonials</label>
12
+ <tab>shweta</tab>
13
+ <sort_order>1000</sort_order>
14
+ <show_in_default>1</show_in_default>
15
+ <show_in_website>1</show_in_website>
16
+ <show_in_store>1</show_in_store>
17
+ <groups>
18
+ <shweta_group translate="label" module="testimonials">
19
+ <label>Settings</label>
20
+ <frontend_type>text</frontend_type>
21
+ <sort_order>1000</sort_order>
22
+ <show_in_default>1</show_in_default>
23
+ <show_in_website>1</show_in_website>
24
+ <show_in_store>1</show_in_store>
25
+ <fields>
26
+ <shweta_select translate="label">
27
+ <label>Enable Testimonials </label>
28
+ <comment>enable testimonials to your site Yes/No </comment>
29
+ <frontend_type>select</frontend_type>
30
+ <sort_order>1</sort_order>
31
+ <show_in_default>1</show_in_default>
32
+ <show_in_website>1</show_in_website>
33
+ <show_in_store>1</show_in_store>
34
+ <source_model>adminhtml/system_config_source_yesno</source_model>
35
+ </shweta_select>
36
+ <shweta_view translate="label">
37
+ <label>View Testimonials </label>
38
+ <comment>select testimonials to visible at</comment>
39
+ <frontend_type>select</frontend_type>
40
+ <sort_order>1</sort_order>
41
+ <show_in_default>1</show_in_default>
42
+ <show_in_website>1</show_in_website>
43
+ <show_in_store>1</show_in_store>
44
+ <source_model>testimonials/words</source_model>
45
+ </shweta_view>
46
+ <shweta_width translate="label">
47
+ <label>Image Width: </label>
48
+ <comment><![CDATA[in px]]></comment>
49
+ <frontend_type>text</frontend_type>
50
+ <sort_order>2</sort_order>
51
+ <show_in_default>1</show_in_default>
52
+ <show_in_website>1</show_in_website>
53
+ <show_in_store>1</show_in_store>
54
+ </shweta_width>
55
+ <shweta_height translate="label">
56
+ <label>Image Height: </label>
57
+ <comment><![CDATA[in px]]></comment>
58
+ <frontend_type>text</frontend_type>
59
+ <sort_order>3</sort_order>
60
+ <show_in_default>1</show_in_default>
61
+ <show_in_website>1</show_in_website>
62
+ <show_in_store>1</show_in_store>
63
+ </shweta_height>
64
+ <shweta_image translate="label">
65
+ <label>Show face Images: </label>
66
+ <comment>enable Images to your testimonials Yes/No </comment>
67
+ <frontend_type>select</frontend_type>
68
+ <sort_order>1</sort_order>
69
+ <show_in_default>1</show_in_default>
70
+ <show_in_website>1</show_in_website>
71
+ <show_in_store>1</show_in_store>
72
+ <source_model>adminhtml/system_config_source_yesno</source_model>
73
+ </shweta_image>
74
+ </fields>
75
+ </shweta_group>
76
+ </groups>
77
+ </shweta>
78
+ </sections>
79
+ </config>
app/code/local/Shweta/Testimonials/sql/testimonials_setup/mysql4-install-0.1.0.php CHANGED
@@ -1,14 +1,14 @@
1
- <?php
2
- $installer = $this;
3
- $installer->startSetup();
4
- $sql=<<<SQLTEXT
5
- create table shweta_testimonials(id int not null auto_increment, name varchar(100), pic varchar(255), message varchar(255),primary key(id));
6
-
7
- SQLTEXT;
8
-
9
- $installer->run($sql);
10
- //demo
11
- //Mage::getModel('core/url_rewrite')->setId(null);
12
- //demo
13
- $installer->endSetup();
14
1
+ <?php
2
+ $installer = $this;
3
+ $installer->startSetup();
4
+ $sql=<<<SQLTEXT
5
+ create table shweta_testimonials(id int not null auto_increment, name varchar(100), pic varchar(255), message varchar(255),primary key(id));
6
+
7
+ SQLTEXT;
8
+
9
+ $installer->run($sql);
10
+ //demo
11
+ //Mage::getModel('core/url_rewrite')->setId(null);
12
+ //demo
13
+ $installer->endSetup();
14
app/design/adminhtml/default/default/layout/testimonials.xml CHANGED
@@ -1,13 +1,13 @@
1
- <?xml version="1.0"?>
2
- <layout version="0.1.0">
3
- <testimonials_adminhtml_testimonialsbackend_index>
4
- <reference name="content">
5
- <block type="testimonials/adminhtml_testimonialsbackend" name="testimonialsbackend" template="testimonials/testimonialsbackend.phtml"/>
6
- </reference>
7
- </testimonials_adminhtml_testimonialsbackend_index>
8
- <testimonials_adminhtml_testimonials_index>
9
- <reference name="content">
10
- <block type="testimonials/adminhtml_testimonials" name="testimonials" />
11
- </reference>
12
- </testimonials_adminhtml_testimonials_index>
13
</layout>
1
+ <?xml version="1.0"?>
2
+ <layout version="0.1.0">
3
+ <testimonials_adminhtml_testimonialsbackend_index>
4
+ <reference name="content">
5
+ <block type="testimonials/adminhtml_testimonialsbackend" name="testimonialsbackend" template="testimonials/testimonialsbackend.phtml"/>
6
+ </reference>
7
+ </testimonials_adminhtml_testimonialsbackend_index>
8
+ <testimonials_adminhtml_testimonials_index>
9
+ <reference name="content">
10
+ <block type="testimonials/adminhtml_testimonials" name="testimonials" />
11
+ </reference>
12
+ </testimonials_adminhtml_testimonials_index>
13
</layout>
app/design/adminhtml/default/default/template/testimonials/testimonialsbackend.phtml ADDED
@@ -0,0 +1 @@
1
+ Testimonials
app/design/frontend/base/default/layout/testimonials.xml CHANGED
@@ -1,23 +1,23 @@
1
- <?xml version="1.0"?>
2
- <layout version="0.1.0">
3
- <testimonials_index_index>
4
- <reference name="root">
5
- <action method="setTemplate"><template>page/2columns-left.phtml</template></action>
6
- </reference>
7
- <reference name="left">
8
- <block type="testimonials/left" name="testimonials_left" template="testimonials/left.phtml"/>
9
- </reference>
10
- <reference name="content">
11
- <block type="testimonials/index" name="testimonials_index" template="testimonials/index.phtml"/>
12
- </reference>
13
- </testimonials_index_index>
14
- <testimonials_testimonials_index>
15
- <reference name="root">
16
- <action method="setTemplate"><template>page/1column.phtml</template></action>
17
- </reference>
18
- <reference name="content">
19
- <block type="testimonials/testimonials" name="testimonials_testimonials" template="testimonials/testimonials.phtml"/>
20
- </reference>
21
- </testimonials_testimonials_index>
22
- </layout>
23
1
+ <?xml version="1.0"?>
2
+ <layout version="0.1.0">
3
+ <testimonials_index_index>
4
+ <reference name="root">
5
+ <action method="setTemplate"><template>page/2columns-left.phtml</template></action>
6
+ </reference>
7
+ <reference name="left">
8
+ <block type="testimonials/left" name="testimonials_left" template="testimonials/left.phtml"/>
9
+ </reference>
10
+ <reference name="content">
11
+ <block type="testimonials/index" name="testimonials_index" template="testimonials/index.phtml"/>
12
+ </reference>
13
+ </testimonials_index_index>
14
+ <testimonials_testimonials_index>
15
+ <reference name="root">
16
+ <action method="setTemplate"><template>page/1column.phtml</template></action>
17
+ </reference>
18
+ <reference name="content">
19
+ <block type="testimonials/testimonials" name="testimonials_testimonials" template="testimonials/testimonials.phtml"/>
20
+ </reference>
21
+ </testimonials_testimonials_index>
22
+ </layout>
23
app/design/frontend/base/default/template/testimonials/index.phtml CHANGED
@@ -1,81 +1,81 @@
1
- <?php $enab=$this->getTestimonialsEnabled();
2
- if($enab==1) { ?>
3
- <?php $view=$this->getTestimonialsView();
4
- if($view==2) { ?>
5
- <?php $wid=$this->getTestimonialsImageWidth(); ?>
6
- <?php $hei=$this->getTestimonialsImageHeight(); ?>
7
- <?php $faceimg=$this->getTestimonialsImages(); ?>
8
-
9
- <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
10
- <!-- include Cycle plugin -->
11
-
12
- <script type="text/javascript" src="<?php echo $this->getJsUrl('jquery.cycle.all.latest.js') ?>"></script>
13
- <script type="text/javascript">
14
- $(document).ready(function() {
15
- $('#testimonials')
16
- .cycle({
17
- fx: 'fade', // choose your transition type, ex: fade, scrollUp, scrollRight, shuffle
18
- });
19
- });
20
- </script>
21
-
22
-
23
- <style>
24
- #testimonials {
25
- width:630px;
26
- background:#E7E9E6 url(images/bg-testimonials.png) left top repeat-x;
27
- border:1px solid #D8D9D6;
28
- margin:10px 0;
29
- height:220px;
30
- }
31
- #testimonials blockquote{
32
- padding:10px;
33
- width:600px !important;
34
- font-family:Georgia, "Times New Roman", Times, serif;
35
- font-style:italic;
36
- color:#808080;
37
- display:block;
38
- }
39
-
40
- #testimonials blockquote p{
41
- margin: 0 !important;padding: 5px!important;
42
- float:right;
43
- width:195px;
44
-
45
- }
46
- #testimonials blockquote cite {
47
- font-style: normal;
48
- display: block;
49
-
50
- text-transform: uppercase;
51
- font-weight: bold;
52
- font-style:italic;
53
- color: #555;
54
- padding-left:5px;
55
- margin-top:10px;
56
- }
57
- </style>
58
-
59
-
60
-
61
- <?php $testi=$this->ShowTestimonialsRecords(); ?>
62