Mks_Responsivebannerslider - Version 8.1.1

Version Notes

New Features :-
1. Add Banner Setting (Left Side)
2. Add Banner Effect (slide , fade)
3. User-friendly admin

Download this release

Release Info

Developer mukesh kumar saini
Extension Mks_Responsivebannerslider
Version 8.1.1
Comparing to
See all releases


Code changes from version 1.1.5 to 8.1.1

Files changed (74) hide show
  1. app/code/community/Mage/Adminhtml/Model/System/Config/Source/Diyoptions13946253323.php +0 -19
  2. app/code/community/Mage/Adminhtml/Model/System/Config/Source/{Diyoptions13946249653.php → Diyoptions13952315961.php} +3 -3
  3. app/code/community/Mks/Bannerslider/Block/Adminhtml/Bannersliderbackend.php +0 -5
  4. app/code/community/Mks/Bannerslider/Block/Adminhtml/Lightboxslider.php +0 -17
  5. app/code/community/Mks/Bannerslider/Block/Adminhtml/Lightboxslider/Edit.php +0 -44
  6. app/code/community/Mks/Bannerslider/Block/Adminhtml/Lightboxslider/Edit/Form.php +0 -17
  7. app/code/community/Mks/Bannerslider/Block/Adminhtml/Lightboxslider/Edit/Tab/Form.php +0 -48
  8. app/code/community/Mks/Bannerslider/Block/Adminhtml/Lightboxslider/Edit/Tabs.php +0 -21
  9. app/code/community/Mks/Bannerslider/Block/Adminhtml/Lightboxslider/Grid.php +0 -94
  10. app/code/community/Mks/Bannerslider/Block/Index.php +0 -8
  11. app/code/community/Mks/Bannerslider/Helper/Data.php +0 -5
  12. app/code/community/Mks/Bannerslider/Model/Lightboxslider.php +0 -12
  13. app/code/community/Mks/Bannerslider/Model/Mysql4/Lightboxslider.php +0 -8
  14. app/code/community/Mks/Bannerslider/Model/Mysql4/Lightboxslider/Collection.php +0 -12
  15. app/code/community/Mks/Bannerslider/controllers/Adminhtml/BannersliderbackendController.php +0 -10
  16. app/code/community/Mks/Bannerslider/controllers/Adminhtml/LightboxsliderController.php +0 -209
  17. app/code/community/Mks/Bannerslider/controllers/IndexController.php +0 -22
  18. app/code/community/Mks/Bannerslider/etc/config.xml +0 -134
  19. app/code/community/Mks/Bannerslider/sql/bannerslider_setup/mysql4-install-1.1.2.php +0 -19
  20. app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/Bannerslider.php +0 -17
  21. app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/Bannerslider/Edit.php +0 -44
  22. app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/Bannerslider/Edit/Form.php +0 -17
  23. app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/Bannerslider/Edit/Tab/Form.php +0 -43
  24. app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/Bannerslider/Edit/Tabs.php +0 -21
  25. app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/Bannerslider/Grid.php +0 -86
  26. app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/{Responsivebannerslider.php → Responsivebanner.php} +3 -3
  27. app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/{Responsivebannerslider → Responsivebanner}/Edit.php +4 -4
  28. app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/{Responsivebannerslider → Responsivebanner}/Edit/Form.php +1 -1
  29. app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/{Responsivebannerslider → Responsivebanner}/Edit/Tab/Form.php +12 -12
  30. app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/{Responsivebannerslider → Responsivebanner}/Edit/Tabs.php +3 -3
  31. app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/{Responsivebannerslider → Responsivebanner}/Grid.php +11 -30
  32. app/code/community/Mks/Responsivebannerslider/Block/Index.php +12 -8
  33. app/code/community/Mks/Responsivebannerslider/Model/Bannerslider.php +0 -12
  34. app/code/community/Mks/Responsivebannerslider/Model/Mysql4/Bannerslider.php +0 -8
  35. app/code/community/Mks/Responsivebannerslider/Model/Mysql4/Bannerslider/Collection.php +0 -12
  36. app/code/community/Mks/Responsivebannerslider/Model/Mysql4/Responsivebanner.php +8 -0
  37. app/code/community/Mks/Responsivebannerslider/Model/Mysql4/Responsivebanner/Collection.php +12 -0
  38. app/code/community/Mks/Responsivebannerslider/Model/Mysql4/Responsivebannerslider.php +0 -8
  39. app/code/community/Mks/Responsivebannerslider/Model/Mysql4/Responsivebannerslider/Collection.php +0 -12
  40. app/code/community/Mks/Responsivebannerslider/Model/Responsivebanner.php +12 -0
  41. app/code/community/Mks/Responsivebannerslider/Model/Responsivebannerslider.php +0 -12
  42. app/code/community/Mks/Responsivebannerslider/controllers/Adminhtml/BannersliderController.php +0 -209
  43. app/code/community/Mks/Responsivebannerslider/controllers/Adminhtml/{ResponsivebannersliderController.php → ResponsivebannerController.php} +30 -30
  44. app/code/community/Mks/Responsivebannerslider/controllers/Adminhtml/Rss/RssController.php +37 -0
  45. app/code/community/Mks/Responsivebannerslider/controllers/IndexController.php +4 -4
  46. app/code/community/Mks/Responsivebannerslider/etc/adminhtml.xml +2 -2
  47. app/code/community/Mks/Responsivebannerslider/etc/config.xml +10 -10
  48. app/code/community/Mks/Responsivebannerslider/etc/system.xml +34 -33
  49. app/code/community/Mks/Responsivebannerslider/sql/responsivebannerslider_setup/{mysql4-install-1.1.1.php → mysql4-install-8.1.1.php} +3 -4
  50. app/code/community/Mks/Responsivebannerslider/sql/responsivebannerslider_setup/mysql4-upgrade-1.1.4-1.1.5.php +0 -16
  51. app/code/community/Mks/Storelocator/Block/Adminhtml/Storelocator.php +0 -17
  52. app/code/community/Mks/Storelocator/Block/Adminhtml/Storelocator/Edit.php +0 -44
  53. app/code/community/Mks/Storelocator/Block/Adminhtml/Storelocator/Edit/Form.php +0 -17
  54. app/code/community/Mks/Storelocator/Block/Adminhtml/Storelocator/Edit/Tab/Form.php +0 -93
  55. app/code/community/Mks/Storelocator/Block/Adminhtml/Storelocator/Edit/Tabs.php +0 -21
  56. app/code/community/Mks/Storelocator/Block/Adminhtml/Storelocator/Grid.php +0 -118
  57. app/code/community/Mks/Storelocator/Block/Adminhtml/Storelocatorbackend.php +0 -5
  58. app/code/community/Mks/Storelocator/Block/Index.php +0 -8
  59. app/code/community/Mks/Storelocator/Helper/Data.php +0 -5
  60. app/code/community/Mks/Storelocator/Model/Mysql4/Storelocator.php +0 -8
  61. app/code/community/Mks/Storelocator/Model/Mysql4/Storelocator/Collection.php +0 -12
  62. app/code/community/Mks/Storelocator/Model/Storelocator.php +0 -12
  63. app/code/community/Mks/Storelocator/controllers/Adminhtml/StorelocatorController.php +0 -253
  64. app/code/community/Mks/Storelocator/controllers/Adminhtml/StorelocatorbackendController.php +0 -10
  65. app/code/community/Mks/Storelocator/controllers/IndexController.php +0 -22
  66. app/code/community/Mks/Storelocator/etc/config.xml +0 -134
  67. app/code/community/Mks/Storelocator/sql/storelocator_setup/mysql4-install-1.1.1.php +0 -18
  68. app/design/adminhtml/default/default/layout/responsivebannerslider.xml +3 -3
  69. app/design/adminhtml/default/default/template/responsivebannerslider/responsivebannersliderbackend.phtml +1 -3
  70. app/design/frontend/base/default/layout/responsivebannerslider.xml +1 -1
  71. app/design/frontend/base/default/template/responsivebannerslider/index.phtml +14 -6
  72. app/etc/modules/Mks_Responsivebannerslider.xml +1 -1
  73. media/responsivebannerslider/responsivebannerslider/mukesh_saini.JPG +0 -0
  74. package.xml +4 -4
app/code/community/Mage/Adminhtml/Model/System/Config/Source/Diyoptions13946253323.php DELETED
@@ -1,19 +0,0 @@
1
- <?php
2
- class Mage_Adminhtml_Model_System_Config_Source_Diyoptions13946253323
3
- {
4
-
5
- /**
6
- * Options getter
7
- *
8
- * @return array
9
- */
10
- public function toOptionArray()
11
- {
12
- return array(
13
-
14
- array('value' => 1, 'label'=>Mage::helper('adminhtml')->__('Slide (Responsive)')),
15
- array('value' => 2, 'label'=>Mage::helper('adminhtml')->__('Fade (Responsive)')),
16
- );
17
- }
18
-
19
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mage/Adminhtml/Model/System/Config/Source/{Diyoptions13946249653.php → Diyoptions13952315961.php} RENAMED
@@ -1,5 +1,5 @@
1
  <?php
2
- class Mage_Adminhtml_Model_System_Config_Source_Diyoptions13946249653
3
  {
4
 
5
  /**
@@ -11,8 +11,8 @@ class Mage_Adminhtml_Model_System_Config_Source_Diyoptions13946249653
11
  {
12
  return array(
13
 
14
- array('value' => 1, 'label'=>Mage::helper('adminhtml')->__('Slide (Responsive)')),
15
- array('value' => 2, 'label'=>Mage::helper('adminhtml')->__('Fade (Responsive)')),
16
  );
17
  }
18
 
1
  <?php
2
+ class Mage_Adminhtml_Model_System_Config_Source_Diyoptions13952315961
3
  {
4
 
5
  /**
11
  {
12
  return array(
13
 
14
+ array('value' => 1, 'label'=>Mage::helper('adminhtml')->__('Fade (Responsive)')),
15
+ array('value' => 2, 'label'=>Mage::helper('adminhtml')->__('Slide (Responsive)')),
16
  );
17
  }
18
 
app/code/community/Mks/Bannerslider/Block/Adminhtml/Bannersliderbackend.php DELETED
@@ -1,5 +0,0 @@
1
- <?php
2
-
3
- class Mks_Bannerslider_Block_Adminhtml_Bannersliderbackend extends Mage_Adminhtml_Block_Template {
4
-
5
- }
 
 
 
 
 
app/code/community/Mks/Bannerslider/Block/Adminhtml/Lightboxslider.php DELETED
@@ -1,17 +0,0 @@
1
- <?php
2
-
3
-
4
- class Mks_Bannerslider_Block_Adminhtml_Lightboxslider extends Mage_Adminhtml_Block_Widget_Grid_Container{
5
-
6
- public function __construct()
7
- {
8
-
9
- $this->_controller = "adminhtml_lightboxslider";
10
- $this->_blockGroup = "bannerslider";
11
- $this->_headerText = Mage::helper("bannerslider")->__("Lightboxslider Manager");
12
- $this->_addButtonLabel = Mage::helper("bannerslider")->__("Add New Item");
13
- parent::__construct();
14
-
15
- }
16
-
17
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Bannerslider/Block/Adminhtml/Lightboxslider/Edit.php DELETED
@@ -1,44 +0,0 @@
1
- <?php
2
-
3
- class Mks_Bannerslider_Block_Adminhtml_Lightboxslider_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 = "bannerslider";
11
- $this->_controller = "adminhtml_lightboxslider";
12
- $this->_updateButton("save", "label", Mage::helper("bannerslider")->__("Save Item"));
13
- $this->_updateButton("delete", "label", Mage::helper("bannerslider")->__("Delete Item"));
14
-
15
- $this->_addButton("saveandcontinue", array(
16
- "label" => Mage::helper("bannerslider")->__("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("lightboxslider_data") && Mage::registry("lightboxslider_data")->getId() ){
34
-
35
- return Mage::helper("bannerslider")->__("Edit Item '%s'", $this->htmlEscape(Mage::registry("lightboxslider_data")->getId()));
36
-
37
- }
38
- else{
39
-
40
- return Mage::helper("bannerslider")->__("Add Item");
41
-
42
- }
43
- }
44
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Bannerslider/Block/Adminhtml/Lightboxslider/Edit/Form.php DELETED
@@ -1,17 +0,0 @@
1
- <?php
2
- class Mks_Bannerslider_Block_Adminhtml_Lightboxslider_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/community/Mks/Bannerslider/Block/Adminhtml/Lightboxslider/Edit/Tab/Form.php DELETED
@@ -1,48 +0,0 @@
1
- <?php
2
- class Mks_Bannerslider_Block_Adminhtml_Lightboxslider_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("bannerslider_form", array("legend"=>Mage::helper("bannerslider")->__("Item information")));
10
-
11
-
12
- $fieldset->addField("title", "text", array(
13
- "label" => Mage::helper("bannerslider")->__("Title"),
14
- "name" => "title",
15
- ));
16
-
17
- $fieldset->addField('image', 'image', array(
18
- 'label' => Mage::helper('bannerslider')->__('Image'),
19
- 'name' => 'image',
20
- 'note' => '(*.jpg, *.png, *.gif)',
21
- ));
22
- $fieldset->addField("url", "text", array(
23
- "label" => Mage::helper("bannerslider")->__("Url"),
24
- "name" => "url",
25
- ));
26
-
27
- $fieldset->addField("description", "text", array(
28
- "label" => Mage::helper("bannerslider")->__("Description"),
29
- "name" => "description",
30
- ));
31
-
32
- $fieldset->addField('status', 'select', array(
33
- 'label' => Mage::helper('bannerslider')->__('Status'),
34
- 'values' => Mks_Bannerslider_Block_Adminhtml_Lightboxslider_Grid::getValueArray4(),
35
- 'name' => 'status',
36
- ));
37
-
38
- if (Mage::getSingleton("adminhtml/session")->getLightboxsliderData())
39
- {
40
- $form->setValues(Mage::getSingleton("adminhtml/session")->getLightboxsliderData());
41
- Mage::getSingleton("adminhtml/session")->setLightboxsliderData(null);
42
- }
43
- elseif(Mage::registry("lightboxslider_data")) {
44
- $form->setValues(Mage::registry("lightboxslider_data")->getData());
45
- }
46
- return parent::_prepareForm();
47
- }
48
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Bannerslider/Block/Adminhtml/Lightboxslider/Edit/Tabs.php DELETED
@@ -1,21 +0,0 @@
1
- <?php
2
- class Mks_Bannerslider_Block_Adminhtml_Lightboxslider_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs
3
- {
4
- public function __construct()
5
- {
6
- parent::__construct();
7
- $this->setId("lightboxslider_tabs");
8
- $this->setDestElementId("edit_form");
9
- $this->setTitle(Mage::helper("bannerslider")->__("Item Information"));
10
- }
11
- protected function _beforeToHtml()
12
- {
13
- $this->addTab("form_section", array(
14
- "label" => Mage::helper("bannerslider")->__("Item Information"),
15
- "title" => Mage::helper("bannerslider")->__("Item Information"),
16
- "content" => $this->getLayout()->createBlock("bannerslider/adminhtml_lightboxslider_edit_tab_form")->toHtml(),
17
- ));
18
- return parent::_beforeToHtml();
19
- }
20
-
21
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Bannerslider/Block/Adminhtml/Lightboxslider/Grid.php DELETED
@@ -1,94 +0,0 @@
1
- <?php
2
-
3
- class Mks_Bannerslider_Block_Adminhtml_Lightboxslider_Grid extends Mage_Adminhtml_Block_Widget_Grid
4
- {
5
-
6
- public function __construct()
7
- {
8
- parent::__construct();
9
- $this->setId("lightboxsliderGrid");
10
- $this->setDefaultSort("id");
11
- $this->setDefaultDir("ASC");
12
- $this->setSaveParametersInSession(true);
13
- }
14
-
15
- protected function _prepareCollection()
16
- {
17
- $collection = Mage::getModel("bannerslider/lightboxslider")->getCollection();
18
- $this->setCollection($collection);
19
- return parent::_prepareCollection();
20
- }
21
- protected function _prepareColumns()
22
- {
23
- $this->addColumn("id", array(
24
- "header" => Mage::helper("bannerslider")->__("ID"),
25
- "align" =>"right",
26
- "width" => "50px",
27
- "type" => "number",
28
- "index" => "id",
29
- ));
30
-
31
- $this->addColumn("title", array(
32
- "header" => Mage::helper("bannerslider")->__("Title"),
33
- "index" => "title",
34
- ));
35
- $this->addColumn("url", array(
36
- "header" => Mage::helper("bannerslider")->__("Url"),
37
- "index" => "url",
38
- ));
39
- $this->addColumn("description", array(
40
- "header" => Mage::helper("bannerslider")->__("Description"),
41
- "index" => "description",
42
- ));
43
- $this->addColumn('status', array(
44
- 'header' => Mage::helper('bannerslider')->__('Status'),
45
- 'index' => 'status',
46
- 'type' => 'options',
47
- 'options'=>Mks_Bannerslider_Block_Adminhtml_Lightboxslider_Grid::getOptionArray4(),
48
- ));
49
-
50
- $this->addExportType('*/*/exportCsv', Mage::helper('sales')->__('CSV'));
51
- $this->addExportType('*/*/exportExcel', Mage::helper('sales')->__('Excel'));
52
-
53
- return parent::_prepareColumns();
54
- }
55
-
56
- public function getRowUrl($row)
57
- {
58
- return $this->getUrl("*/*/edit", array("id" => $row->getId()));
59
- }
60
-
61
-
62
-
63
- protected function _prepareMassaction()
64
- {
65
- $this->setMassactionIdField('id');
66
- $this->getMassactionBlock()->setFormFieldName('ids');
67
- $this->getMassactionBlock()->setUseSelectAll(true);
68
- $this->getMassactionBlock()->addItem('remove_lightboxslider', array(
69
- 'label'=> Mage::helper('bannerslider')->__('Remove Lightboxslider'),
70
- 'url' => $this->getUrl('*/adminhtml_lightboxslider/massRemove'),
71
- 'confirm' => Mage::helper('bannerslider')->__('Are you sure?')
72
- ));
73
- return $this;
74
- }
75
-
76
- static public function getOptionArray4()
77
- {
78
- $data_array=array();
79
- $data_array[0]='Yes';
80
- $data_array[1]='No';
81
- return($data_array);
82
- }
83
- static public function getValueArray4()
84
- {
85
- $data_array=array();
86
- foreach(Mks_Bannerslider_Block_Adminhtml_Lightboxslider_Grid::getOptionArray4() as $k=>$v){
87
- $data_array[]=array('value'=>$k,'label'=>$v);
88
- }
89
- return($data_array);
90
-
91
- }
92
-
93
-
94
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Bannerslider/Block/Index.php DELETED
@@ -1,8 +0,0 @@
1
- <?php
2
- class Mks_Bannerslider_Block_Index extends Mage_Core_Block_Template{
3
-
4
-
5
-
6
-
7
-
8
- }
 
 
 
 
 
 
 
 
app/code/community/Mks/Bannerslider/Helper/Data.php DELETED
@@ -1,5 +0,0 @@
1
- <?php
2
- class Mks_Bannerslider_Helper_Data extends Mage_Core_Helper_Abstract
3
- {
4
- }
5
-
 
 
 
 
 
app/code/community/Mks/Bannerslider/Model/Lightboxslider.php DELETED
@@ -1,12 +0,0 @@
1
- <?php
2
-
3
- class Mks_Bannerslider_Model_Lightboxslider extends Mage_Core_Model_Abstract
4
- {
5
- protected function _construct(){
6
-
7
- $this->_init("bannerslider/lightboxslider");
8
-
9
- }
10
-
11
- }
12
-
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Bannerslider/Model/Mysql4/Lightboxslider.php DELETED
@@ -1,8 +0,0 @@
1
- <?php
2
- class Mks_Bannerslider_Model_Mysql4_Lightboxslider extends Mage_Core_Model_Mysql4_Abstract
3
- {
4
- protected function _construct()
5
- {
6
- $this->_init("bannerslider/lightboxslider", "id");
7
- }
8
- }
 
 
 
 
 
 
 
 
app/code/community/Mks/Bannerslider/Model/Mysql4/Lightboxslider/Collection.php DELETED
@@ -1,12 +0,0 @@
1
- <?php
2
- class Mks_Bannerslider_Model_Mysql4_Lightboxslider_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
3
- {
4
-
5
- public function _construct(){
6
- $this->_init("bannerslider/lightboxslider");
7
- }
8
-
9
-
10
-
11
- }
12
-
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Bannerslider/controllers/Adminhtml/BannersliderbackendController.php DELETED
@@ -1,10 +0,0 @@
1
- <?php
2
- class Mks_Bannerslider_Adminhtml_BannersliderbackendController extends Mage_Adminhtml_Controller_Action
3
- {
4
- public function indexAction()
5
- {
6
- $this->loadLayout();
7
- $this->_title($this->__("Backend Page Title"));
8
- $this->renderLayout();
9
- }
10
- }
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Bannerslider/controllers/Adminhtml/LightboxsliderController.php DELETED
@@ -1,209 +0,0 @@
1
- <?php
2
-
3
- class Mks_Bannerslider_Adminhtml_LightboxsliderController extends Mage_Adminhtml_Controller_Action
4
- {
5
- protected function _initAction()
6
- {
7
- $this->loadLayout()->_setActiveMenu("bannerslider/lightboxslider")->_addBreadcrumb(Mage::helper("adminhtml")->__("Lightboxslider Manager"),Mage::helper("adminhtml")->__("Lightboxslider Manager"));
8
- return $this;
9
- }
10
- public function indexAction()
11
- {
12
- $this->_title($this->__("Bannerslider"));
13
- $this->_title($this->__("Manager Lightboxslider"));
14
-
15
- $this->_initAction();
16
- $this->renderLayout();
17
- }
18
- public function editAction()
19
- {
20
- $this->_title($this->__("Bannerslider"));
21
- $this->_title($this->__("Lightboxslider"));
22
- $this->_title($this->__("Edit Item"));
23
-
24
- $id = $this->getRequest()->getParam("id");
25
- $model = Mage::getModel("bannerslider/lightboxslider")->load($id);
26
- if ($model->getId()) {
27
- Mage::register("lightboxslider_data", $model);
28
- $this->loadLayout();
29
- $this->_setActiveMenu("bannerslider/lightboxslider");
30
- $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Lightboxslider Manager"), Mage::helper("adminhtml")->__("Lightboxslider Manager"));
31
- $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Lightboxslider Description"), Mage::helper("adminhtml")->__("Lightboxslider Description"));
32
- $this->getLayout()->getBlock("head")->setCanLoadExtJs(true);
33
- $this->_addContent($this->getLayout()->createBlock("bannerslider/adminhtml_lightboxslider_edit"))->_addLeft($this->getLayout()->createBlock("bannerslider/adminhtml_lightboxslider_edit_tabs"));
34
- $this->renderLayout();
35
- }
36
- else {
37
- Mage::getSingleton("adminhtml/session")->addError(Mage::helper("bannerslider")->__("Item does not exist."));
38
- $this->_redirect("*/*/");
39
- }
40
- }
41
-
42
- public function newAction()
43
- {
44
-
45
- $this->_title($this->__("Bannerslider"));
46
- $this->_title($this->__("Lightboxslider"));
47
- $this->_title($this->__("New Item"));
48
-
49
- $id = $this->getRequest()->getParam("id");
50
- $model = Mage::getModel("bannerslider/lightboxslider")->load($id);
51
-
52
- $data = Mage::getSingleton("adminhtml/session")->getFormData(true);
53
- if (!empty($data)) {
54
- $model->setData($data);
55
- }
56
-
57
- Mage::register("lightboxslider_data", $model);
58
-
59
- $this->loadLayout();
60
- $this->_setActiveMenu("bannerslider/lightboxslider");
61
-
62
- $this->getLayout()->getBlock("head")->setCanLoadExtJs(true);
63
-
64
- $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Lightboxslider Manager"), Mage::helper("adminhtml")->__("Lightboxslider Manager"));
65
- $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Lightboxslider Description"), Mage::helper("adminhtml")->__("Lightboxslider Description"));
66
-
67
-
68
- $this->_addContent($this->getLayout()->createBlock("bannerslider/adminhtml_lightboxslider_edit"))->_addLeft($this->getLayout()->createBlock("bannerslider/adminhtml_lightboxslider_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['image']['delete']==1) {
88
-
89
- $post_data['image']='';
90
-
91
- }
92
- else {
93
-
94
- unset($post_data['image']);
95
-
96
- if (isset($_FILES)){
97
-
98
- if ($_FILES['image']['name']) {
99
-
100
- if($this->getRequest()->getParam("id")){
101
- $model = Mage::getModel("bannerslider/lightboxslider")->load($this->getRequest()->getParam("id"));
102
- if($model->getData('image')){
103
- $io = new Varien_Io_File();
104
- $io->rm(Mage::getBaseDir('media').DS.implode(DS,explode('/',$model->getData('image'))));
105
- }
106
- }
107
- $path = Mage::getBaseDir('media') . DS . 'bannerslider' . DS .'lightboxslider'.DS;
108
- $uploader = new Varien_File_Uploader('image');
109
- $uploader->setAllowedExtensions(array('jpg','png','gif'));
110
- $uploader->setAllowRenameFiles(false);
111
- $uploader->setFilesDispersion(false);
112
- $destFile = $path.$_FILES['image']['name'];
113
- $filename = $uploader->getNewFileName($destFile);
114
- $uploader->save($path, $filename);
115
-
116
- $post_data['image']='bannerslider/lightboxslider/'.$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("bannerslider/lightboxslider")
130
- ->addData($post_data)
131
- ->setId($this->getRequest()->getParam("id"))
132
- ->save();
133
-
134
- Mage::getSingleton("adminhtml/session")->addSuccess(Mage::helper("adminhtml")->__("Lightboxslider was successfully saved"));
135
- Mage::getSingleton("adminhtml/session")->setLightboxsliderData(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")->setLightboxsliderData($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("bannerslider/lightboxslider");
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("bannerslider/lightboxslider");
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 = 'lightboxslider.csv';
197
- $grid = $this->getLayout()->createBlock('bannerslider/adminhtml_lightboxslider_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 = 'lightboxslider.xml';
206
- $grid = $this->getLayout()->createBlock('bannerslider/adminhtml_lightboxslider_grid');
207
- $this->_prepareDownloadResponse($fileName, $grid->getExcelFile($fileName));
208
- }
209
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Bannerslider/controllers/IndexController.php DELETED
@@ -1,22 +0,0 @@
1
- <?php
2
- class Mks_Bannerslider_IndexController extends Mage_Core_Controller_Front_Action{
3
- public function IndexAction() {
4
-
5
- $this->loadLayout();
6
- $this->getLayout()->getBlock("head")->setTitle($this->__("Titlename"));
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("titlename", array(
15
- "label" => $this->__("Titlename"),
16
- "title" => $this->__("Titlename")
17
- ));
18
-
19
- $this->renderLayout();
20
-
21
- }
22
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Bannerslider/etc/config.xml DELETED
@@ -1,134 +0,0 @@
1
- <?xml version="1.0"?>
2
- <config>
3
- <modules>
4
- <Mks_Bannerslider>
5
- <version>1.1.2</version>
6
- </Mks_Bannerslider>
7
- </modules>
8
- <frontend>
9
- <routers>
10
- <bannerslider>
11
- <use>standard</use>
12
- <args>
13
- <module>Mks_Bannerslider</module>
14
- <frontName>bannerslider</frontName>
15
- </args>
16
- </bannerslider>
17
- </routers>
18
- <layout>
19
- <updates>
20
- <bannerslider>
21
- <file>bannerslider.xml</file>
22
- </bannerslider>
23
- </updates>
24
- </layout>
25
- </frontend>
26
- <global>
27
- <helpers>
28
- <bannerslider>
29
- <class>Mks_Bannerslider_Helper</class>
30
- </bannerslider>
31
- </helpers>
32
- <blocks>
33
- <bannerslider>
34
- <class>Mks_Bannerslider_Block</class>
35
- </bannerslider>
36
- </blocks>
37
- <models>
38
- <bannerslider>
39
- <class>Mks_Bannerslider_Model</class>
40
- <resourceModel>bannerslider_mysql4</resourceModel>
41
- </bannerslider>
42
- <bannerslider_mysql4>
43
- <class>Mks_Bannerslider_Model_Mysql4</class>
44
- <entities>
45
- <lightboxslider>
46
- <table>mkslightboxslider</table>
47
- </lightboxslider>
48
- </entities>
49
- </bannerslider_mysql4>
50
- </models>
51
- <resources>
52
- <bannerslider_setup>
53
- <setup>
54
- <module>Mks_Bannerslider</module>
55
- </setup>
56
- <connection>
57
- <use>core_setup</use>
58
- </connection>
59
- </bannerslider_setup>
60
- <bannerslider_write>
61
- <connection>
62
- <use>core_write</use>
63
- </connection>
64
- </bannerslider_write>
65
- <bannerslider_read>
66
- <connection>
67
- <use>core_read</use>
68
- </connection>
69
- </bannerslider_read>
70
- </resources>
71
- </global>
72
- <admin>
73
- <routers>
74
- <bannerslider>
75
- <use>admin</use>
76
- <args>
77
- <module>Mks_Bannerslider</module>
78
- <frontName>bannerslider</frontName>
79
- </args>
80
- </bannerslider>
81
- </routers>
82
- </admin>
83
- <adminhtml>
84
- <menu>
85
- <bannerslider module="bannerslider">
86
- <title>Bannerslider</title>
87
- <sort_order>100</sort_order>
88
- <children>
89
- <bannersliderbackend module="bannerslider">
90
- <title>Backend Page Title</title>
91
- <sort_order>0</sort_order>
92
- <action>bannerslider/adminhtml_bannersliderbackend</action>
93
- </bannersliderbackend>
94
- <lightboxslider module="bannerslider">
95
- <title>Manage Lightboxslider</title>
96
- <sort_order>0</sort_order>
97
- <action>bannerslider/adminhtml_lightboxslider</action>
98
- </lightboxslider>
99
- </children>
100
- </bannerslider>
101
- </menu>
102
- <acl>
103
- <resources>
104
- <all>
105
- <title>Allow Everything</title>
106
- </all>
107
- <admin>
108
- <children>
109
- <bannerslider translate="title" module="bannerslider">
110
- <title>Bannerslider</title>
111
- <sort_order>1000</sort_order>
112
- <children>
113
- <bannersliderbackend translate="title">
114
- <title>Backend Page Title</title>
115
- </bannersliderbackend>
116
- <lightboxslider translate="title">
117
- <title>Manage Lightboxslider</title>
118
- <sort_order>0</sort_order>
119
- </lightboxslider>
120
- </children>
121
- </bannerslider>
122
- </children>
123
- </admin>
124
- </resources>
125
- </acl>
126
- <layout>
127
- <updates>
128
- <bannerslider>
129
- <file>bannerslider.xml</file>
130
- </bannerslider>
131
- </updates>
132
- </layout>
133
- </adminhtml>
134
- </config>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Bannerslider/sql/bannerslider_setup/mysql4-install-1.1.2.php DELETED
@@ -1,19 +0,0 @@
1
- <?php
2
- $installer = $this;
3
- $installer->startSetup();
4
- $sql=<<<SQLTEXT
5
- create table {$this->getTable('mkslightboxslider')}(id int not null auto_increment, title varchar(255), image varchar(255), url varchar(255), category varchar(100), description varchar(255),primary key(id));
6
-
7
- INSERT INTO {$this->getTable('mkslightboxslider')} (`title`,`image`,`url`,`description`,`status`) VALUES
8
- ('Slider 1','responsivebannerslider/bannerslider/1.jpg','http://www.magentocommerce.com/magento-connect/developer/mukeshsaini','Banner 1','0'),
9
- ('Slider 2','responsivebannerslider/bannerslider/2.jpg','http://www.magentocommerce.com/magento-connect/developer/mukeshsaini','Banner 2','0'),
10
- ('Slider 3','responsivebannerslider/bannerslider/3.jpg','http://www.magentocommerce.com/magento-connect/developer/mukeshsaini','Banner 3','0');
11
-
12
- SQLTEXT;
13
-
14
- $installer->run($sql);
15
- //demo
16
- Mage::getModel('core/url_rewrite')->setId(null);
17
- //demo
18
- $installer->endSetup();
19
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/Bannerslider.php DELETED
@@ -1,17 +0,0 @@
1
- <?php
2
-
3
-
4
- class Mks_Responsivebannerslider_Block_Adminhtml_Bannerslider extends Mage_Adminhtml_Block_Widget_Grid_Container{
5
-
6
- public function __construct()
7
- {
8
-
9
- $this->_controller = "adminhtml_bannerslider";
10
- $this->_blockGroup = "responsivebannerslider";
11
- $this->_headerText = Mage::helper("responsivebannerslider")->__("Bannerslider Manager");
12
- $this->_addButtonLabel = Mage::helper("responsivebannerslider")->__("Add New Item");
13
- parent::__construct();
14
-
15
- }
16
-
17
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/Bannerslider/Edit.php DELETED
@@ -1,44 +0,0 @@
1
- <?php
2
-
3
- class Mks_Responsivebannerslider_Block_Adminhtml_Bannerslider_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 = "responsivebannerslider";
11
- $this->_controller = "adminhtml_bannerslider";
12
- $this->_updateButton("save", "label", Mage::helper("responsivebannerslider")->__("Save Item"));
13
- $this->_updateButton("delete", "label", Mage::helper("responsivebannerslider")->__("Delete Item"));
14
-
15
- $this->_addButton("saveandcontinue", array(
16
- "label" => Mage::helper("responsivebannerslider")->__("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("bannerslider_data") && Mage::registry("bannerslider_data")->getId() ){
34
-
35
- return Mage::helper("responsivebannerslider")->__("Edit Item '%s'", $this->htmlEscape(Mage::registry("bannerslider_data")->getId()));
36
-
37
- }
38
- else{
39
-
40
- return Mage::helper("responsivebannerslider")->__("Add Item");
41
-
42
- }
43
- }
44
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/Bannerslider/Edit/Form.php DELETED
@@ -1,17 +0,0 @@
1
- <?php
2
- class Mks_Responsivebannerslider_Block_Adminhtml_Bannerslider_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/community/Mks/Responsivebannerslider/Block/Adminhtml/Bannerslider/Edit/Tab/Form.php DELETED
@@ -1,43 +0,0 @@
1
- <?php
2
- class Mks_Responsivebannerslider_Block_Adminhtml_Bannerslider_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("responsivebannerslider_form", array("legend"=>Mage::helper("responsivebannerslider")->__("Item information")));
10
-
11
-
12
- $fieldset->addField("title", "text", array(
13
- "label" => Mage::helper("responsivebannerslider")->__("Title"),
14
- "name" => "title",
15
- ));
16
-
17
- $fieldset->addField('image', 'image', array(
18
- 'label' => Mage::helper('responsivebannerslider')->__('Image'),
19
- 'name' => 'image',
20
- 'note' => '(*.jpg, *.png, *.gif)',
21
- ));
22
- $fieldset->addField("description", "textarea", array(
23
- "label" => Mage::helper("responsivebannerslider")->__("Description"),
24
- "name" => "description",
25
- ));
26
-
27
- $fieldset->addField('status', 'select', array(
28
- 'label' => Mage::helper('responsivebannerslider')->__('Status'),
29
- 'values' => Mks_Responsivebannerslider_Block_Adminhtml_Bannerslider_Grid::getValueArray5(),
30
- 'name' => 'status',
31
- ));
32
-
33
- if (Mage::getSingleton("adminhtml/session")->getBannersliderData())
34
- {
35
- $form->setValues(Mage::getSingleton("adminhtml/session")->getBannersliderData());
36
- Mage::getSingleton("adminhtml/session")->setBannersliderData(null);
37
- }
38
- elseif(Mage::registry("bannerslider_data")) {
39
- $form->setValues(Mage::registry("bannerslider_data")->getData());
40
- }
41
- return parent::_prepareForm();
42
- }
43
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/Bannerslider/Edit/Tabs.php DELETED
@@ -1,21 +0,0 @@
1
- <?php
2
- class Mks_Responsivebannerslider_Block_Adminhtml_Bannerslider_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs
3
- {
4
- public function __construct()
5
- {
6
- parent::__construct();
7
- $this->setId("bannerslider_tabs");
8
- $this->setDestElementId("edit_form");
9
- $this->setTitle(Mage::helper("responsivebannerslider")->__("Item Information"));
10
- }
11
- protected function _beforeToHtml()
12
- {
13
- $this->addTab("form_section", array(
14
- "label" => Mage::helper("responsivebannerslider")->__("Item Information"),
15
- "title" => Mage::helper("responsivebannerslider")->__("Item Information"),
16
- "content" => $this->getLayout()->createBlock("responsivebannerslider/adminhtml_bannerslider_edit_tab_form")->toHtml(),
17
- ));
18
- return parent::_beforeToHtml();
19
- }
20
-
21
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/Bannerslider/Grid.php DELETED
@@ -1,86 +0,0 @@
1
- <?php
2
-
3
- class Mks_Responsivebannerslider_Block_Adminhtml_Bannerslider_Grid extends Mage_Adminhtml_Block_Widget_Grid
4
- {
5
-
6
- public function __construct()
7
- {
8
- parent::__construct();
9
- $this->setId("bannersliderGrid");
10
- $this->setDefaultSort("id");
11
- $this->setDefaultDir("ASC");
12
- $this->setSaveParametersInSession(true);
13
- }
14
-
15
- protected function _prepareCollection()
16
- {
17
- $collection = Mage::getModel("responsivebannerslider/bannerslider")->getCollection();
18
- $this->setCollection($collection);
19
- return parent::_prepareCollection();
20
- }
21
- protected function _prepareColumns()
22
- {
23
- $this->addColumn("id", array(
24
- "header" => Mage::helper("responsivebannerslider")->__("ID"),
25
- "align" =>"right",
26
- "width" => "50px",
27
- "type" => "number",
28
- "index" => "id",
29
- ));
30
-
31
- $this->addColumn("title", array(
32
- "header" => Mage::helper("responsivebannerslider")->__("Title"),
33
- "index" => "title",
34
- ));
35
- $this->addColumn('status', array(
36
- 'header' => Mage::helper('responsivebannerslider')->__('Status'),
37
- 'index' => 'status',
38
- 'type' => 'options',
39
- 'options'=>Mks_Responsivebannerslider_Block_Adminhtml_Bannerslider_Grid::getOptionArray5(),
40
- ));
41
-
42
- $this->addExportType('*/*/exportCsv', Mage::helper('sales')->__('CSV'));
43
- $this->addExportType('*/*/exportExcel', Mage::helper('sales')->__('Excel'));
44
-
45
- return parent::_prepareColumns();
46
- }
47
-
48
- public function getRowUrl($row)
49
- {
50
- return $this->getUrl("*/*/edit", array("id" => $row->getId()));
51
- }
52
-
53
-
54
-
55
- protected function _prepareMassaction()
56
- {
57
- $this->setMassactionIdField('id');
58
- $this->getMassactionBlock()->setFormFieldName('ids');
59
- $this->getMassactionBlock()->setUseSelectAll(true);
60
- $this->getMassactionBlock()->addItem('remove_bannerslider', array(
61
- 'label'=> Mage::helper('responsivebannerslider')->__('Remove Bannerslider'),
62
- 'url' => $this->getUrl('*/adminhtml_bannerslider/massRemove'),
63
- 'confirm' => Mage::helper('responsivebannerslider')->__('Are you sure?')
64
- ));
65
- return $this;
66
- }
67
-
68
- static public function getOptionArray5()
69
- {
70
- $data_array=array();
71
- $data_array[0]='Yes';
72
- $data_array[1]='No';
73
- return($data_array);
74
- }
75
- static public function getValueArray5()
76
- {
77
- $data_array=array();
78
- foreach(Mks_Responsivebannerslider_Block_Adminhtml_Bannerslider_Grid::getOptionArray5() as $k=>$v){
79
- $data_array[]=array('value'=>$k,'label'=>$v);
80
- }
81
- return($data_array);
82
-
83
- }
84
-
85
-
86
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/{Responsivebannerslider.php → Responsivebanner.php} RENAMED
@@ -1,14 +1,14 @@
1
  <?php
2
 
3
 
4
- class Mks_Responsivebannerslider_Block_Adminhtml_Responsivebannerslider extends Mage_Adminhtml_Block_Widget_Grid_Container{
5
 
6
  public function __construct()
7
  {
8
 
9
- $this->_controller = "adminhtml_responsivebannerslider";
10
  $this->_blockGroup = "responsivebannerslider";
11
- $this->_headerText = Mage::helper("responsivebannerslider")->__("Responsivebannerslider Manager");
12
  $this->_addButtonLabel = Mage::helper("responsivebannerslider")->__("Add New Item");
13
  parent::__construct();
14
 
1
  <?php
2
 
3
 
4
+ class Mks_Responsivebannerslider_Block_Adminhtml_Responsivebanner extends Mage_Adminhtml_Block_Widget_Grid_Container{
5
 
6
  public function __construct()
7
  {
8
 
9
+ $this->_controller = "adminhtml_responsivebanner";
10
  $this->_blockGroup = "responsivebannerslider";
11
+ $this->_headerText = Mage::helper("responsivebannerslider")->__("Responsivebanner Manager");
12
  $this->_addButtonLabel = Mage::helper("responsivebannerslider")->__("Add New Item");
13
  parent::__construct();
14
 
app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/{Responsivebannerslider → Responsivebanner}/Edit.php RENAMED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- class Mks_Responsivebannerslider_Block_Adminhtml_Responsivebannerslider_Edit extends Mage_Adminhtml_Block_Widget_Form_Container
4
  {
5
  public function __construct()
6
  {
@@ -8,7 +8,7 @@ class Mks_Responsivebannerslider_Block_Adminhtml_Responsivebannerslider_Edit ext
8
  parent::__construct();
9
  $this->_objectId = "id";
10
  $this->_blockGroup = "responsivebannerslider";
11
- $this->_controller = "adminhtml_responsivebannerslider";
12
  $this->_updateButton("save", "label", Mage::helper("responsivebannerslider")->__("Save Item"));
13
  $this->_updateButton("delete", "label", Mage::helper("responsivebannerslider")->__("Delete Item"));
14
 
@@ -30,9 +30,9 @@ class Mks_Responsivebannerslider_Block_Adminhtml_Responsivebannerslider_Edit ext
30
 
31
  public function getHeaderText()
32
  {
33
- if( Mage::registry("responsivebannerslider_data") && Mage::registry("responsivebannerslider_data")->getId() ){
34
 
35
- return Mage::helper("responsivebannerslider")->__("Edit Item '%s'", $this->htmlEscape(Mage::registry("responsivebannerslider_data")->getId()));
36
 
37
  }
38
  else{
1
  <?php
2
 
3
+ class Mks_Responsivebannerslider_Block_Adminhtml_Responsivebanner_Edit extends Mage_Adminhtml_Block_Widget_Form_Container
4
  {
5
  public function __construct()
6
  {
8
  parent::__construct();
9
  $this->_objectId = "id";
10
  $this->_blockGroup = "responsivebannerslider";
11
+ $this->_controller = "adminhtml_responsivebanner";
12
  $this->_updateButton("save", "label", Mage::helper("responsivebannerslider")->__("Save Item"));
13
  $this->_updateButton("delete", "label", Mage::helper("responsivebannerslider")->__("Delete Item"));
14
 
30
 
31
  public function getHeaderText()
32
  {
33
+ if( Mage::registry("responsivebanner_data") && Mage::registry("responsivebanner_data")->getId() ){
34
 
35
+ return Mage::helper("responsivebannerslider")->__("Edit Item '%s'", $this->htmlEscape(Mage::registry("responsivebanner_data")->getId()));
36
 
37
  }
38
  else{
app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/{Responsivebannerslider → Responsivebanner}/Edit/Form.php RENAMED
@@ -1,5 +1,5 @@
1
  <?php
2
- class Mks_Responsivebannerslider_Block_Adminhtml_Responsivebannerslider_Edit_Form extends Mage_Adminhtml_Block_Widget_Form
3
  {
4
  protected function _prepareForm()
5
  {
1
  <?php
2
+ class Mks_Responsivebannerslider_Block_Adminhtml_Responsivebanner_Edit_Form extends Mage_Adminhtml_Block_Widget_Form
3
  {
4
  protected function _prepareForm()
5
  {
app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/{Responsivebannerslider → Responsivebanner}/Edit/Tab/Form.php RENAMED
@@ -1,5 +1,5 @@
1
  <?php
2
- class Mks_Responsivebannerslider_Block_Adminhtml_Responsivebannerslider_Edit_Tab_Form extends Mage_Adminhtml_Block_Widget_Form
3
  {
4
  protected function _prepareForm()
5
  {
@@ -15,7 +15,7 @@ class Mks_Responsivebannerslider_Block_Adminhtml_Responsivebannerslider_Edit_Tab
15
  ));
16
 
17
  $fieldset->addField('image', 'image', array(
18
- 'label' => Mage::helper('responsivebannerslider')->__('Image'),
19
  'name' => 'image',
20
  'note' => '(*.jpg, *.png, *.gif)',
21
  ));
@@ -28,20 +28,20 @@ class Mks_Responsivebannerslider_Block_Adminhtml_Responsivebannerslider_Edit_Tab
28
  "label" => Mage::helper("responsivebannerslider")->__("URL"),
29
  "name" => "url",
30
  ));
31
-
32
- $fieldset->addField('status', 'select', array(
33
- 'label' => Mage::helper('responsivebannerslider')->__('Status'),
34
- 'values' => Mks_Responsivebannerslider_Block_Adminhtml_Responsivebannerslider_Grid::getValueArray4(),
35
- 'name' => 'status',
36
  ));
 
37
 
38
- if (Mage::getSingleton("adminhtml/session")->getResponsivebannersliderData())
39
  {
40
- $form->setValues(Mage::getSingleton("adminhtml/session")->getResponsivebannersliderData());
41
- Mage::getSingleton("adminhtml/session")->setResponsivebannersliderData(null);
42
  }
43
- elseif(Mage::registry("responsivebannerslider_data")) {
44
- $form->setValues(Mage::registry("responsivebannerslider_data")->getData());
45
  }
46
  return parent::_prepareForm();
47
  }
1
  <?php
2
+ class Mks_Responsivebannerslider_Block_Adminhtml_Responsivebanner_Edit_Tab_Form extends Mage_Adminhtml_Block_Widget_Form
3
  {
4
  protected function _prepareForm()
5
  {
15
  ));
16
 
17
  $fieldset->addField('image', 'image', array(
18
+ 'label' => Mage::helper('responsivebannerslider')->__('Impage'),
19
  'name' => 'image',
20
  'note' => '(*.jpg, *.png, *.gif)',
21
  ));
28
  "label" => Mage::helper("responsivebannerslider")->__("URL"),
29
  "name" => "url",
30
  ));
31
+
32
+ $fieldset->addField("status", "text", array(
33
+ "label" => Mage::helper("responsivebannerslider")->__("Status"),
34
+ "name" => "status",
 
35
  ));
36
+
37
 
38
+ if (Mage::getSingleton("adminhtml/session")->getResponsivebannerData())
39
  {
40
+ $form->setValues(Mage::getSingleton("adminhtml/session")->getResponsivebannerData());
41
+ Mage::getSingleton("adminhtml/session")->setResponsivebannerData(null);
42
  }
43
+ elseif(Mage::registry("responsivebanner_data")) {
44
+ $form->setValues(Mage::registry("responsivebanner_data")->getData());
45
  }
46
  return parent::_prepareForm();
47
  }
app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/{Responsivebannerslider → Responsivebanner}/Edit/Tabs.php RENAMED
@@ -1,10 +1,10 @@
1
  <?php
2
- class Mks_Responsivebannerslider_Block_Adminhtml_Responsivebannerslider_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs
3
  {
4
  public function __construct()
5
  {
6
  parent::__construct();
7
- $this->setId("responsivebannerslider_tabs");
8
  $this->setDestElementId("edit_form");
9
  $this->setTitle(Mage::helper("responsivebannerslider")->__("Item Information"));
10
  }
@@ -13,7 +13,7 @@ class Mks_Responsivebannerslider_Block_Adminhtml_Responsivebannerslider_Edit_Tab
13
  $this->addTab("form_section", array(
14
  "label" => Mage::helper("responsivebannerslider")->__("Item Information"),
15
  "title" => Mage::helper("responsivebannerslider")->__("Item Information"),
16
- "content" => $this->getLayout()->createBlock("responsivebannerslider/adminhtml_responsivebannerslider_edit_tab_form")->toHtml(),
17
  ));
18
  return parent::_beforeToHtml();
19
  }
1
  <?php
2
+ class Mks_Responsivebannerslider_Block_Adminhtml_Responsivebanner_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs
3
  {
4
  public function __construct()
5
  {
6
  parent::__construct();
7
+ $this->setId("responsivebanner_tabs");
8
  $this->setDestElementId("edit_form");
9
  $this->setTitle(Mage::helper("responsivebannerslider")->__("Item Information"));
10
  }
13
  $this->addTab("form_section", array(
14
  "label" => Mage::helper("responsivebannerslider")->__("Item Information"),
15
  "title" => Mage::helper("responsivebannerslider")->__("Item Information"),
16
+ "content" => $this->getLayout()->createBlock("responsivebannerslider/adminhtml_responsivebanner_edit_tab_form")->toHtml(),
17
  ));
18
  return parent::_beforeToHtml();
19
  }
app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/{Responsivebannerslider → Responsivebanner}/Grid.php RENAMED
@@ -1,12 +1,12 @@
1
  <?php
2
 
3
- class Mks_Responsivebannerslider_Block_Adminhtml_Responsivebannerslider_Grid extends Mage_Adminhtml_Block_Widget_Grid
4
  {
5
 
6
  public function __construct()
7
  {
8
  parent::__construct();
9
- $this->setId("responsivebannersliderGrid");
10
  $this->setDefaultSort("id");
11
  $this->setDefaultDir("DESC");
12
  $this->setSaveParametersInSession(true);
@@ -14,7 +14,7 @@ class Mks_Responsivebannerslider_Block_Adminhtml_Responsivebannerslider_Grid ext
14
 
15
  protected function _prepareCollection()
16
  {
17
- $collection = Mage::getModel("responsivebannerslider/responsivebannerslider")->getCollection();
18
  $this->setCollection($collection);
19
  return parent::_prepareCollection();
20
  }
@@ -36,13 +36,11 @@ class Mks_Responsivebannerslider_Block_Adminhtml_Responsivebannerslider_Grid ext
36
  "header" => Mage::helper("responsivebannerslider")->__("URL"),
37
  "index" => "url",
38
  ));
39
- $this->addColumn('status', array(
40
- 'header' => Mage::helper('responsivebannerslider')->__('Status'),
41
- 'index' => 'status',
42
- 'type' => 'options',
43
- 'options'=>Mks_Responsivebannerslider_Block_Adminhtml_Responsivebannerslider_Grid::getOptionArray4(),
44
- ));
45
-
46
  $this->addExportType('*/*/exportCsv', Mage::helper('sales')->__('CSV'));
47
  $this->addExportType('*/*/exportExcel', Mage::helper('sales')->__('Excel'));
48
 
@@ -61,30 +59,13 @@ class Mks_Responsivebannerslider_Block_Adminhtml_Responsivebannerslider_Grid ext
61
  $this->setMassactionIdField('id');
62
  $this->getMassactionBlock()->setFormFieldName('ids');
63
  $this->getMassactionBlock()->setUseSelectAll(true);
64
- $this->getMassactionBlock()->addItem('remove_responsivebannerslider', array(
65
- 'label'=> Mage::helper('responsivebannerslider')->__('Remove Responsivebannerslider'),
66
- 'url' => $this->getUrl('*/adminhtml_responsivebannerslider/massRemove'),
67
  'confirm' => Mage::helper('responsivebannerslider')->__('Are you sure?')
68
  ));
69
  return $this;
70
  }
71
 
72
- static public function getOptionArray4()
73
- {
74
- $data_array=array();
75
- $data_array[0]='Enable';
76
- $data_array[1]='Disable';
77
- return($data_array);
78
- }
79
- static public function getValueArray4()
80
- {
81
- $data_array=array();
82
- foreach(Mks_Responsivebannerslider_Block_Adminhtml_Responsivebannerslider_Grid::getOptionArray4() as $k=>$v){
83
- $data_array[]=array('value'=>$k,'label'=>$v);
84
- }
85
- return($data_array);
86
-
87
- }
88
-
89
 
90
  }
1
  <?php
2
 
3
+ class Mks_Responsivebannerslider_Block_Adminhtml_Responsivebanner_Grid extends Mage_Adminhtml_Block_Widget_Grid
4
  {
5
 
6
  public function __construct()
7
  {
8
  parent::__construct();
9
+ $this->setId("responsivebannerGrid");
10
  $this->setDefaultSort("id");
11
  $this->setDefaultDir("DESC");
12
  $this->setSaveParametersInSession(true);
14
 
15
  protected function _prepareCollection()
16
  {
17
+ $collection = Mage::getModel("responsivebannerslider/responsivebanner")->getCollection();
18
  $this->setCollection($collection);
19
  return parent::_prepareCollection();
20
  }
36
  "header" => Mage::helper("responsivebannerslider")->__("URL"),
37
  "index" => "url",
38
  ));
39
+ $this->addColumn("status", array(
40
+ "header" => Mage::helper("responsivebannerslider")->__("Status"),
41
+ "index" => "status",
42
+ ));
43
+ $this->addRssList('responsivebannerslider/adminhtml_rss_rss/responsivebanner', Mage::helper('responsivebannerslider')->__('RSS'));
 
 
44
  $this->addExportType('*/*/exportCsv', Mage::helper('sales')->__('CSV'));
45
  $this->addExportType('*/*/exportExcel', Mage::helper('sales')->__('Excel'));
46
 
59
  $this->setMassactionIdField('id');
60
  $this->getMassactionBlock()->setFormFieldName('ids');
61
  $this->getMassactionBlock()->setUseSelectAll(true);
62
+ $this->getMassactionBlock()->addItem('remove_responsivebanner', array(
63
+ 'label'=> Mage::helper('responsivebannerslider')->__('Remove Responsivebanner'),
64
+ 'url' => $this->getUrl('*/adminhtml_responsivebanner/massRemove'),
65
  'confirm' => Mage::helper('responsivebannerslider')->__('Are you sure?')
66
  ));
67
  return $this;
68
  }
69
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
70
 
71
  }
app/code/community/Mks/Responsivebannerslider/Block/Index.php CHANGED
@@ -5,24 +5,28 @@ class Mks_Responsivebannerslider_Block_Index extends Mage_Core_Block_Template{
5
 
6
  public function getResponsivebannersliderEnabled()
7
  {
8
- return Mage::getStoreConfig('general_setting/banner_setting/baner_eanble',Mage::app()->getStore());
9
  }
 
10
  public function getResponsivebannersliderSpeed()
11
  {
12
- return Mage::getStoreConfig('general_setting/banner_setting/slide_speed',Mage::app()->getStore());
13
  }
14
- public function getResponsivebannerBannerLoop()
 
15
  {
16
- return Mage::getStoreConfig('general_setting/banner_setting/banner_loop',Mage::app()->getStore());
17
  }
18
- public function getResponsivebannerSlideType()
 
19
  {
20
- return Mage::getStoreConfig('general_setting/banner_setting/slide_type',Mage::app()->getStore());
21
  }
 
22
  public function getResponsivebannerPauseOnhover()
23
  {
24
- return Mage::getStoreConfig('general_setting/banner_setting/pauseonhover',Mage::app()->getStore());
25
  }
26
-
27
 
28
  }
5
 
6
  public function getResponsivebannersliderEnabled()
7
  {
8
+ return Mage::getStoreConfig('generalsetting/mksresponsivegroup/enable',Mage::app()->getStore());
9
  }
10
+
11
  public function getResponsivebannersliderSpeed()
12
  {
13
+ return Mage::getStoreConfig('generalsetting/mksresponsivegroup/slidespeed',Mage::app()->getStore());
14
  }
15
+
16
+ public function getResponsivebannerSlideType()
17
  {
18
+ return Mage::getStoreConfig('generalsetting/mksresponsivegroup/styletype',Mage::app()->getStore());
19
  }
20
+
21
+ public function getResponsivebannerBannerLoop()
22
  {
23
+ return Mage::getStoreConfig('generalsetting/mksresponsivegroup/bannerloop',Mage::app()->getStore());
24
  }
25
+
26
  public function getResponsivebannerPauseOnhover()
27
  {
28
+ return Mage::getStoreConfig('generalsetting/mksresponsivegroup/pauseonhover',Mage::app()->getStore());
29
  }
30
+
31
 
32
  }
app/code/community/Mks/Responsivebannerslider/Model/Bannerslider.php DELETED
@@ -1,12 +0,0 @@
1
- <?php
2
-
3
- class Mks_Responsivebannerslider_Model_Bannerslider extends Mage_Core_Model_Abstract
4
- {
5
- protected function _construct(){
6
-
7
- $this->_init("responsivebannerslider/bannerslider");
8
-
9
- }
10
-
11
- }
12
-
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Responsivebannerslider/Model/Mysql4/Bannerslider.php DELETED
@@ -1,8 +0,0 @@
1
- <?php
2
- class Mks_Responsivebannerslider_Model_Mysql4_Bannerslider extends Mage_Core_Model_Mysql4_Abstract
3
- {
4
- protected function _construct()
5
- {
6
- $this->_init("responsivebannerslider/bannerslider", "id");
7
- }
8
- }
 
 
 
 
 
 
 
 
app/code/community/Mks/Responsivebannerslider/Model/Mysql4/Bannerslider/Collection.php DELETED
@@ -1,12 +0,0 @@
1
- <?php
2
- class Mks_Responsivebannerslider_Model_Mysql4_Bannerslider_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
3
- {
4
-
5
- public function _construct(){
6
- $this->_init("responsivebannerslider/bannerslider");
7
- }
8
-
9
-
10
-
11
- }
12
-
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Responsivebannerslider/Model/Mysql4/Responsivebanner.php ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Mks_Responsivebannerslider_Model_Mysql4_Responsivebanner extends Mage_Core_Model_Mysql4_Abstract
3
+ {
4
+ protected function _construct()
5
+ {
6
+ $this->_init("responsivebannerslider/responsivebanner", "id");
7
+ }
8
+ }
app/code/community/Mks/Responsivebannerslider/Model/Mysql4/Responsivebanner/Collection.php ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Mks_Responsivebannerslider_Model_Mysql4_Responsivebanner_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
3
+ {
4
+
5
+ public function _construct(){
6
+ $this->_init("responsivebannerslider/responsivebanner");
7
+ }
8
+
9
+
10
+
11
+ }
12
+
app/code/community/Mks/Responsivebannerslider/Model/Mysql4/Responsivebannerslider.php DELETED
@@ -1,8 +0,0 @@
1
- <?php
2
- class Mks_Responsivebannerslider_Model_Mysql4_Responsivebannerslider extends Mage_Core_Model_Mysql4_Abstract
3
- {
4
- protected function _construct()
5
- {
6
- $this->_init("responsivebannerslider/responsivebannerslider", "id");
7
- }
8
- }
 
 
 
 
 
 
 
 
app/code/community/Mks/Responsivebannerslider/Model/Mysql4/Responsivebannerslider/Collection.php DELETED
@@ -1,12 +0,0 @@
1
- <?php
2
- class Mks_Responsivebannerslider_Model_Mysql4_Responsivebannerslider_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
3
- {
4
-
5
- public function _construct(){
6
- $this->_init("responsivebannerslider/responsivebannerslider");
7
- }
8
-
9
-
10
-
11
- }
12
-
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Responsivebannerslider/Model/Responsivebanner.php ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Mks_Responsivebannerslider_Model_Responsivebanner extends Mage_Core_Model_Abstract
4
+ {
5
+ protected function _construct(){
6
+
7
+ $this->_init("responsivebannerslider/responsivebanner");
8
+
9
+ }
10
+
11
+ }
12
+
app/code/community/Mks/Responsivebannerslider/Model/Responsivebannerslider.php DELETED
@@ -1,12 +0,0 @@
1
- <?php
2
-
3
- class Mks_Responsivebannerslider_Model_Responsivebannerslider extends Mage_Core_Model_Abstract
4
- {
5
- protected function _construct(){
6
-
7
- $this->_init("responsivebannerslider/responsivebannerslider");
8
-
9
- }
10
-
11
- }
12
-
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Responsivebannerslider/controllers/Adminhtml/BannersliderController.php DELETED
@@ -1,209 +0,0 @@
1
- <?php
2
-
3
- class Mks_Responsivebannerslider_Adminhtml_BannersliderController extends Mage_Adminhtml_Controller_Action
4
- {
5
- protected function _initAction()
6
- {
7
- $this->loadLayout()->_setActiveMenu("responsivebannerslider/bannerslider")->_addBreadcrumb(Mage::helper("adminhtml")->__("Bannerslider Manager"),Mage::helper("adminhtml")->__("Bannerslider Manager"));
8
- return $this;
9
- }
10
- public function indexAction()
11
- {
12
- $this->_title($this->__("Responsivebannerslider"));
13
- $this->_title($this->__("Manager Bannerslider"));
14
-
15
- $this->_initAction();
16
- $this->renderLayout();
17
- }
18
- public function editAction()
19
- {
20
- $this->_title($this->__("Responsivebannerslider"));
21
- $this->_title($this->__("Bannerslider"));
22
- $this->_title($this->__("Edit Item"));
23
-
24
- $id = $this->getRequest()->getParam("id");
25
- $model = Mage::getModel("responsivebannerslider/bannerslider")->load($id);
26
- if ($model->getId()) {
27
- Mage::register("bannerslider_data", $model);
28
- $this->loadLayout();
29
- $this->_setActiveMenu("responsivebannerslider/bannerslider");
30
- $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Bannerslider Manager"), Mage::helper("adminhtml")->__("Bannerslider Manager"));
31
- $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Bannerslider Description"), Mage::helper("adminhtml")->__("Bannerslider Description"));
32
- $this->getLayout()->getBlock("head")->setCanLoadExtJs(true);
33
- $this->_addContent($this->getLayout()->createBlock("responsivebannerslider/adminhtml_bannerslider_edit"))->_addLeft($this->getLayout()->createBlock("responsivebannerslider/adminhtml_bannerslider_edit_tabs"));
34
- $this->renderLayout();
35
- }
36
- else {
37
- Mage::getSingleton("adminhtml/session")->addError(Mage::helper("responsivebannerslider")->__("Item does not exist."));
38
- $this->_redirect("*/*/");
39
- }
40
- }
41
-
42
- public function newAction()
43
- {
44
-
45
- $this->_title($this->__("Responsivebannerslider"));
46
- $this->_title($this->__("Bannerslider"));
47
- $this->_title($this->__("New Item"));
48
-
49
- $id = $this->getRequest()->getParam("id");
50
- $model = Mage::getModel("responsivebannerslider/bannerslider")->load($id);
51
-
52
- $data = Mage::getSingleton("adminhtml/session")->getFormData(true);
53
- if (!empty($data)) {
54
- $model->setData($data);
55
- }
56
-
57
- Mage::register("bannerslider_data", $model);
58
-
59
- $this->loadLayout();
60
- $this->_setActiveMenu("responsivebannerslider/bannerslider");
61
-
62
- $this->getLayout()->getBlock("head")->setCanLoadExtJs(true);
63
-
64
- $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Bannerslider Manager"), Mage::helper("adminhtml")->__("Bannerslider Manager"));
65
- $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Bannerslider Description"), Mage::helper("adminhtml")->__("Bannerslider Description"));
66
-
67
-
68
- $this->_addContent($this->getLayout()->createBlock("responsivebannerslider/adminhtml_bannerslider_edit"))->_addLeft($this->getLayout()->createBlock("responsivebannerslider/adminhtml_bannerslider_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['image']['delete']==1) {
88
-
89
- $post_data['image']='';
90
-
91
- }
92
- else {
93
-
94
- unset($post_data['image']);
95
-
96
- if (isset($_FILES)){
97
-
98
- if ($_FILES['image']['name']) {
99
-
100
- if($this->getRequest()->getParam("id")){
101
- $model = Mage::getModel("responsivebannerslider/bannerslider")->load($this->getRequest()->getParam("id"));
102
- if($model->getData('image')){
103
- $io = new Varien_Io_File();
104
- $io->rm(Mage::getBaseDir('media').DS.implode(DS,explode('/',$model->getData('image'))));
105
- }
106
- }
107
- $path = Mage::getBaseDir('media') . DS . 'responsivebannerslider' . DS .'bannerslider'.DS;
108
- $uploader = new Varien_File_Uploader('image');
109
- $uploader->setAllowedExtensions(array('jpg','png','gif'));
110
- $uploader->setAllowRenameFiles(false);
111
- $uploader->setFilesDispersion(false);
112
- $destFile = $path.$_FILES['image']['name'];
113
- $filename = $uploader->getNewFileName($destFile);
114
- $uploader->save($path, $filename);
115
-
116
- $post_data['image']='responsivebannerslider/bannerslider/'.$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("responsivebannerslider/bannerslider")
130
- ->addData($post_data)
131
- ->setId($this->getRequest()->getParam("id"))
132
- ->save();
133
-
134
- Mage::getSingleton("adminhtml/session")->addSuccess(Mage::helper("adminhtml")->__("Bannerslider was successfully saved"));
135
- Mage::getSingleton("adminhtml/session")->setBannersliderData(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")->setBannersliderData($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("responsivebannerslider/bannerslider");
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("responsivebannerslider/bannerslider");
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 = 'bannerslider.csv';
197
- $grid = $this->getLayout()->createBlock('responsivebannerslider/adminhtml_bannerslider_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 = 'bannerslider.xml';
206
- $grid = $this->getLayout()->createBlock('responsivebannerslider/adminhtml_bannerslider_grid');
207
- $this->_prepareDownloadResponse($fileName, $grid->getExcelFile($fileName));
208
- }
209
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Responsivebannerslider/controllers/Adminhtml/{ResponsivebannersliderController.php → ResponsivebannerController.php} RENAMED
@@ -1,16 +1,16 @@
1
  <?php
2
 
3
- class Mks_Responsivebannerslider_Adminhtml_ResponsivebannersliderController extends Mage_Adminhtml_Controller_Action
4
  {
5
  protected function _initAction()
6
  {
7
- $this->loadLayout()->_setActiveMenu("responsivebannerslider/responsivebannerslider")->_addBreadcrumb(Mage::helper("adminhtml")->__("Responsivebannerslider Manager"),Mage::helper("adminhtml")->__("Responsivebannerslider Manager"));
8
  return $this;
9
  }
10
  public function indexAction()
11
  {
12
  $this->_title($this->__("Responsivebannerslider"));
13
- $this->_title($this->__("Manager Responsivebannerslider"));
14
 
15
  $this->_initAction();
16
  $this->renderLayout();
@@ -18,19 +18,19 @@ class Mks_Responsivebannerslider_Adminhtml_ResponsivebannersliderController exte
18
  public function editAction()
19
  {
20
  $this->_title($this->__("Responsivebannerslider"));
21
- $this->_title($this->__("Responsivebannerslider"));
22
  $this->_title($this->__("Edit Item"));
23
 
24
  $id = $this->getRequest()->getParam("id");
25
- $model = Mage::getModel("responsivebannerslider/responsivebannerslider")->load($id);
26
  if ($model->getId()) {
27
- Mage::register("responsivebannerslider_data", $model);
28
  $this->loadLayout();
29
- $this->_setActiveMenu("responsivebannerslider/responsivebannerslider");
30
- $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Responsivebannerslider Manager"), Mage::helper("adminhtml")->__("Responsivebannerslider Manager"));
31
- $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Responsivebannerslider Description"), Mage::helper("adminhtml")->__("Responsivebannerslider Description"));
32
  $this->getLayout()->getBlock("head")->setCanLoadExtJs(true);
33
- $this->_addContent($this->getLayout()->createBlock("responsivebannerslider/adminhtml_responsivebannerslider_edit"))->_addLeft($this->getLayout()->createBlock("responsivebannerslider/adminhtml_responsivebannerslider_edit_tabs"));
34
  $this->renderLayout();
35
  }
36
  else {
@@ -43,29 +43,29 @@ class Mks_Responsivebannerslider_Adminhtml_ResponsivebannersliderController exte
43
  {
44
 
45
  $this->_title($this->__("Responsivebannerslider"));
46
- $this->_title($this->__("Responsivebannerslider"));
47
  $this->_title($this->__("New Item"));
48
 
49
  $id = $this->getRequest()->getParam("id");
50
- $model = Mage::getModel("responsivebannerslider/responsivebannerslider")->load($id);
51
 
52
  $data = Mage::getSingleton("adminhtml/session")->getFormData(true);
53
  if (!empty($data)) {
54
  $model->setData($data);
55
  }
56
 
57
- Mage::register("responsivebannerslider_data", $model);
58
 
59
  $this->loadLayout();
60
- $this->_setActiveMenu("responsivebannerslider/responsivebannerslider");
61
 
62
  $this->getLayout()->getBlock("head")->setCanLoadExtJs(true);
63
 
64
- $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Responsivebannerslider Manager"), Mage::helper("adminhtml")->__("Responsivebannerslider Manager"));
65
- $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Responsivebannerslider Description"), Mage::helper("adminhtml")->__("Responsivebannerslider Description"));
66
 
67
 
68
- $this->_addContent($this->getLayout()->createBlock("responsivebannerslider/adminhtml_responsivebannerslider_edit"))->_addLeft($this->getLayout()->createBlock("responsivebannerslider/adminhtml_responsivebannerslider_edit_tabs"));
69
 
70
  $this->renderLayout();
71
 
@@ -98,13 +98,13 @@ else {
98
  if ($_FILES['image']['name']) {
99
 
100
  if($this->getRequest()->getParam("id")){
101
- $model = Mage::getModel("responsivebannerslider/responsivebannerslider")->load($this->getRequest()->getParam("id"));
102
  if($model->getData('image')){
103
  $io = new Varien_Io_File();
104
  $io->rm(Mage::getBaseDir('media').DS.implode(DS,explode('/',$model->getData('image'))));
105
  }
106
  }
107
- $path = Mage::getBaseDir('media') . DS . 'responsivebannerslider' . DS .'responsivebannerslider'.DS;
108
  $uploader = new Varien_File_Uploader('image');
109
  $uploader->setAllowedExtensions(array('jpg','png','gif'));
110
  $uploader->setAllowRenameFiles(false);
@@ -113,7 +113,7 @@ else {
113
  $filename = $uploader->getNewFileName($destFile);
114
  $uploader->save($path, $filename);
115
 
116
- $post_data['image']='responsivebannerslider/responsivebannerslider/'.$filename;
117
  }
118
  }
119
  }
@@ -126,13 +126,13 @@ else {
126
  //save image
127
 
128
 
129
- $model = Mage::getModel("responsivebannerslider/responsivebannerslider")
130
  ->addData($post_data)
131
  ->setId($this->getRequest()->getParam("id"))
132
  ->save();
133
 
134
- Mage::getSingleton("adminhtml/session")->addSuccess(Mage::helper("adminhtml")->__("Responsivebannerslider was successfully saved"));
135
- Mage::getSingleton("adminhtml/session")->setResponsivebannersliderData(false);
136
 
137
  if ($this->getRequest()->getParam("back")) {
138
  $this->_redirect("*/*/edit", array("id" => $model->getId()));
@@ -143,7 +143,7 @@ else {
143
  }
144
  catch (Exception $e) {
145
  Mage::getSingleton("adminhtml/session")->addError($e->getMessage());
146
- Mage::getSingleton("adminhtml/session")->setResponsivebannersliderData($this->getRequest()->getPost());
147
  $this->_redirect("*/*/edit", array("id" => $this->getRequest()->getParam("id")));
148
  return;
149
  }
@@ -158,7 +158,7 @@ else {
158
  {
159
  if( $this->getRequest()->getParam("id") > 0 ) {
160
  try {
161
- $model = Mage::getModel("responsivebannerslider/responsivebannerslider");
162
  $model->setId($this->getRequest()->getParam("id"))->delete();
163
  Mage::getSingleton("adminhtml/session")->addSuccess(Mage::helper("adminhtml")->__("Item was successfully deleted"));
164
  $this->_redirect("*/*/");
@@ -177,7 +177,7 @@ else {
177
  try {
178
  $ids = $this->getRequest()->getPost('ids', array());
179
  foreach ($ids as $id) {
180
- $model = Mage::getModel("responsivebannerslider/responsivebannerslider");
181
  $model->setId($id)->delete();
182
  }
183
  Mage::getSingleton("adminhtml/session")->addSuccess(Mage::helper("adminhtml")->__("Item(s) was successfully removed"));
@@ -193,8 +193,8 @@ else {
193
  */
194
  public function exportCsvAction()
195
  {
196
- $fileName = 'responsivebannerslider.csv';
197
- $grid = $this->getLayout()->createBlock('responsivebannerslider/adminhtml_responsivebannerslider_grid');
198
  $this->_prepareDownloadResponse($fileName, $grid->getCsvFile());
199
  }
200
  /**
@@ -202,8 +202,8 @@ else {
202
  */
203
  public function exportExcelAction()
204
  {
205
- $fileName = 'responsivebannerslider.xml';
206
- $grid = $this->getLayout()->createBlock('responsivebannerslider/adminhtml_responsivebannerslider_grid');
207
  $this->_prepareDownloadResponse($fileName, $grid->getExcelFile($fileName));
208
  }
209
  }
1
  <?php
2
 
3
+ class Mks_Responsivebannerslider_Adminhtml_ResponsivebannerController extends Mage_Adminhtml_Controller_Action
4
  {
5
  protected function _initAction()
6
  {
7
+ $this->loadLayout()->_setActiveMenu("responsivebannerslider/responsivebanner")->_addBreadcrumb(Mage::helper("adminhtml")->__("Responsivebanner Manager"),Mage::helper("adminhtml")->__("Responsivebanner Manager"));
8
  return $this;
9
  }
10
  public function indexAction()
11
  {
12
  $this->_title($this->__("Responsivebannerslider"));
13
+ $this->_title($this->__("Manager Responsivebanner"));
14
 
15
  $this->_initAction();
16
  $this->renderLayout();
18
  public function editAction()
19
  {
20
  $this->_title($this->__("Responsivebannerslider"));
21
+ $this->_title($this->__("Responsivebanner"));
22
  $this->_title($this->__("Edit Item"));
23
 
24
  $id = $this->getRequest()->getParam("id");
25
+ $model = Mage::getModel("responsivebannerslider/responsivebanner")->load($id);
26
  if ($model->getId()) {
27
+ Mage::register("responsivebanner_data", $model);
28
  $this->loadLayout();
29
+ $this->_setActiveMenu("responsivebannerslider/responsivebanner");
30
+ $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Responsivebanner Manager"), Mage::helper("adminhtml")->__("Responsivebanner Manager"));
31
+ $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Responsivebanner Description"), Mage::helper("adminhtml")->__("Responsivebanner Description"));
32
  $this->getLayout()->getBlock("head")->setCanLoadExtJs(true);
33
+ $this->_addContent($this->getLayout()->createBlock("responsivebannerslider/adminhtml_responsivebanner_edit"))->_addLeft($this->getLayout()->createBlock("responsivebannerslider/adminhtml_responsivebanner_edit_tabs"));
34
  $this->renderLayout();
35
  }
36
  else {
43
  {
44
 
45
  $this->_title($this->__("Responsivebannerslider"));
46
+ $this->_title($this->__("Responsivebanner"));
47
  $this->_title($this->__("New Item"));
48
 
49
  $id = $this->getRequest()->getParam("id");
50
+ $model = Mage::getModel("responsivebannerslider/responsivebanner")->load($id);
51
 
52
  $data = Mage::getSingleton("adminhtml/session")->getFormData(true);
53
  if (!empty($data)) {
54
  $model->setData($data);
55
  }
56
 
57
+ Mage::register("responsivebanner_data", $model);
58
 
59
  $this->loadLayout();
60
+ $this->_setActiveMenu("responsivebannerslider/responsivebanner");
61
 
62
  $this->getLayout()->getBlock("head")->setCanLoadExtJs(true);
63
 
64
+ $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Responsivebanner Manager"), Mage::helper("adminhtml")->__("Responsivebanner Manager"));
65
+ $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Responsivebanner Description"), Mage::helper("adminhtml")->__("Responsivebanner Description"));
66
 
67
 
68
+ $this->_addContent($this->getLayout()->createBlock("responsivebannerslider/adminhtml_responsivebanner_edit"))->_addLeft($this->getLayout()->createBlock("responsivebannerslider/adminhtml_responsivebanner_edit_tabs"));
69
 
70
  $this->renderLayout();
71
 
98
  if ($_FILES['image']['name']) {
99
 
100
  if($this->getRequest()->getParam("id")){
101
+ $model = Mage::getModel("responsivebannerslider/responsivebanner")->load($this->getRequest()->getParam("id"));
102
  if($model->getData('image')){
103
  $io = new Varien_Io_File();
104
  $io->rm(Mage::getBaseDir('media').DS.implode(DS,explode('/',$model->getData('image'))));
105
  }
106
  }
107
+ $path = Mage::getBaseDir('media') . DS . 'responsivebannerslider' . DS .'responsivebanner'.DS;
108
  $uploader = new Varien_File_Uploader('image');
109
  $uploader->setAllowedExtensions(array('jpg','png','gif'));
110
  $uploader->setAllowRenameFiles(false);
113
  $filename = $uploader->getNewFileName($destFile);
114
  $uploader->save($path, $filename);
115
 
116
+ $post_data['image']='responsivebannerslider/responsivebanner/'.$filename;
117
  }
118
  }
119
  }
126
  //save image
127
 
128
 
129
+ $model = Mage::getModel("responsivebannerslider/responsivebanner")
130
  ->addData($post_data)
131
  ->setId($this->getRequest()->getParam("id"))
132
  ->save();
133
 
134
+ Mage::getSingleton("adminhtml/session")->addSuccess(Mage::helper("adminhtml")->__("Responsivebanner was successfully saved"));
135
+ Mage::getSingleton("adminhtml/session")->setResponsivebannerData(false);
136
 
137
  if ($this->getRequest()->getParam("back")) {
138
  $this->_redirect("*/*/edit", array("id" => $model->getId()));
143
  }
144
  catch (Exception $e) {
145
  Mage::getSingleton("adminhtml/session")->addError($e->getMessage());
146
+ Mage::getSingleton("adminhtml/session")->setResponsivebannerData($this->getRequest()->getPost());
147
  $this->_redirect("*/*/edit", array("id" => $this->getRequest()->getParam("id")));
148
  return;
149
  }
158
  {
159
  if( $this->getRequest()->getParam("id") > 0 ) {
160
  try {
161
+ $model = Mage::getModel("responsivebannerslider/responsivebanner");
162
  $model->setId($this->getRequest()->getParam("id"))->delete();
163
  Mage::getSingleton("adminhtml/session")->addSuccess(Mage::helper("adminhtml")->__("Item was successfully deleted"));
164
  $this->_redirect("*/*/");
177
  try {
178
  $ids = $this->getRequest()->getPost('ids', array());
179
  foreach ($ids as $id) {
180
+ $model = Mage::getModel("responsivebannerslider/responsivebanner");
181
  $model->setId($id)->delete();
182
  }
183
  Mage::getSingleton("adminhtml/session")->addSuccess(Mage::helper("adminhtml")->__("Item(s) was successfully removed"));
193
  */
194
  public function exportCsvAction()
195
  {
196
+ $fileName = 'responsivebanner.csv';
197
+ $grid = $this->getLayout()->createBlock('responsivebannerslider/adminhtml_responsivebanner_grid');
198
  $this->_prepareDownloadResponse($fileName, $grid->getCsvFile());
199
  }
200
  /**
202
  */
203
  public function exportExcelAction()
204
  {
205
+ $fileName = 'responsivebanner.xml';
206
+ $grid = $this->getLayout()->createBlock('responsivebannerslider/adminhtml_responsivebanner_grid');
207
  $this->_prepareDownloadResponse($fileName, $grid->getExcelFile($fileName));
208
  }
209
  }
app/code/community/Mks/Responsivebannerslider/controllers/Adminhtml/Rss/RssController.php ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Mks_Responsivebannerslider_Adminhtml_Rss_RssController extends Mage_Core_Controller_Front_Action
4
+ {
5
+
6
+ public function responsivebannerAction()
7
+ {
8
+
9
+ //DEMO RSS CONTENT
10
+ //app\design\frontend\base\default\layout\rss.xml
11
+ /*
12
+ <rss_order_new>
13
+ <block type="rss/order_new" output="toHtml" name="rss.order.new"/>
14
+ </rss_order_new>
15
+ */
16
+ //app\code\core\Mage\Rss\Block\Order\New.php
17
+ //DEMO RSS CONTENT
18
+
19
+
20
+ $this->getResponse()->setHeader('Content-type', 'text/xml; charset=UTF-8');
21
+ $this->loadLayout(false);
22
+ $this->renderLayout();
23
+ }
24
+
25
+ public function preDispatch()
26
+ {
27
+
28
+ if ($this->getRequest()->getActionName() == 'responsivebanner') {
29
+ $this->_currentArea = 'adminhtml';
30
+ Mage::helper('rss')->authAdmin('mks/responsivebannerslider');
31
+ }
32
+
33
+ return parent::preDispatch();
34
+ }
35
+ }
36
+
37
+
app/code/community/Mks/Responsivebannerslider/controllers/IndexController.php CHANGED
@@ -3,7 +3,7 @@ class Mks_Responsivebannerslider_IndexController extends Mage_Core_Controller_Fr
3
  public function IndexAction() {
4
 
5
  $this->loadLayout();
6
- $this->getLayout()->getBlock("head")->setTitle($this->__("Responsive banner slider"));
7
  $breadcrumbs = $this->getLayout()->getBlock("breadcrumbs");
8
  $breadcrumbs->addCrumb("home", array(
9
  "label" => $this->__("Home Page"),
@@ -11,9 +11,9 @@ class Mks_Responsivebannerslider_IndexController extends Mage_Core_Controller_Fr
11
  "link" => Mage::getBaseUrl()
12
  ));
13
 
14
- $breadcrumbs->addCrumb("responsive banner slider", array(
15
- "label" => $this->__("Responsive banner slider"),
16
- "title" => $this->__("Responsive banner slider")
17
  ));
18
 
19
  $this->renderLayout();
3
  public function IndexAction() {
4
 
5
  $this->loadLayout();
6
+ $this->getLayout()->getBlock("head")->setTitle($this->__("Mks_Responsivebannerslider"));
7
  $breadcrumbs = $this->getLayout()->getBlock("breadcrumbs");
8
  $breadcrumbs->addCrumb("home", array(
9
  "label" => $this->__("Home Page"),
11
  "link" => Mage::getBaseUrl()
12
  ));
13
 
14
+ $breadcrumbs->addCrumb("mks_responsivebannerslider", array(
15
+ "label" => $this->__("Mks_Responsivebannerslider"),
16
+ "title" => $this->__("Mks_Responsivebannerslider")
17
  ));
18
 
19
  $this->renderLayout();
app/code/community/Mks/Responsivebannerslider/etc/adminhtml.xml CHANGED
@@ -8,10 +8,10 @@
8
  <children>
9
  <config>
10
  <children>
11
- <general_setting translate="title" module="responsivebannerslider">
12
  <title>General Setting Section</title>
13
  <sort_order>0</sort_order>
14
- </general_setting>
15
  </children>
16
  </config>
17
  </children>
8
  <children>
9
  <config>
10
  <children>
11
+ <generalsetting translate="title" module="responsivebannerslider">
12
  <title>General Setting Section</title>
13
  <sort_order>0</sort_order>
14
+ </generalsetting>
15
  </children>
16
  </config>
17
  </children>
app/code/community/Mks/Responsivebannerslider/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Mks_Responsivebannerslider>
5
- <version>1.1.4</version>
6
  </Mks_Responsivebannerslider>
7
  </modules>
8
  <frontend>
@@ -42,9 +42,9 @@
42
  <responsivebannerslider_mysql4>
43
  <class>Mks_Responsivebannerslider_Model_Mysql4</class>
44
  <entities>
45
- <responsivebannerslider>
46
  <table>mksresponsivebannerslider</table>
47
- </responsivebannerslider>
48
  </entities>
49
  </responsivebannerslider_mysql4>
50
  </models>
@@ -91,11 +91,11 @@
91
  <sort_order>0</sort_order>
92
  <action>responsivebannerslider/adminhtml_responsivebannersliderbackend</action>
93
  </responsivebannersliderbackend>
94
- <responsivebannerslider module="responsivebannerslider">
95
- <title>Manage Responsivebannerslider</title>
96
  <sort_order>0</sort_order>
97
- <action>responsivebannerslider/adminhtml_responsivebannerslider</action>
98
- </responsivebannerslider>
99
  </children>
100
  </responsivebannerslider>
101
  </menu>
@@ -113,10 +113,10 @@
113
  <responsivebannersliderbackend translate="title">
114
  <title>About Us</title>
115
  </responsivebannersliderbackend>
116
- <responsivebannerslider translate="title">
117
- <title>Manage Responsivebannerslider</title>
118
  <sort_order>0</sort_order>
119
- </responsivebannerslider>
120
  </children>
121
  </responsivebannerslider>
122
  </children>
2
  <config>
3
  <modules>
4
  <Mks_Responsivebannerslider>
5
+ <version>8.1.1</version>
6
  </Mks_Responsivebannerslider>
7
  </modules>
8
  <frontend>
42
  <responsivebannerslider_mysql4>
43
  <class>Mks_Responsivebannerslider_Model_Mysql4</class>
44
  <entities>
45
+ <responsivebanner>
46
  <table>mksresponsivebannerslider</table>
47
+ </responsivebanner>
48
  </entities>
49
  </responsivebannerslider_mysql4>
50
  </models>
91
  <sort_order>0</sort_order>
92
  <action>responsivebannerslider/adminhtml_responsivebannersliderbackend</action>
93
  </responsivebannersliderbackend>
94
+ <responsivebanner module="responsivebannerslider">
95
+ <title>Manage Responsivebanner</title>
96
  <sort_order>0</sort_order>
97
+ <action>responsivebannerslider/adminhtml_responsivebanner</action>
98
+ </responsivebanner>
99
  </children>
100
  </responsivebannerslider>
101
  </menu>
113
  <responsivebannersliderbackend translate="title">
114
  <title>About Us</title>
115
  </responsivebannersliderbackend>
116
+ <responsivebanner translate="title">
117
+ <title>Manage Responsivebanner</title>
118
  <sort_order>0</sort_order>
119
+ </responsivebanner>
120
  </children>
121
  </responsivebannerslider>
122
  </children>
app/code/community/Mks/Responsivebannerslider/etc/system.xml CHANGED
@@ -1,22 +1,22 @@
1
  <?xml version="1.0"?>
2
  <config>
3
  <tabs>
4
- <mks_responsivebannersetting translate="label" module="responsivebannerslider">
5
- <label>Mks_Responsive Baner</label>
6
  <sort_order>0</sort_order>
7
- </mks_responsivebannersetting>
8
  </tabs>
9
  <sections>
10
- <general_setting translate="label" module="responsivebannerslider">
11
  <label>General Setting</label>
12
- <tab>mks_responsivebannersetting</tab>
13
  <frontend_type>text</frontend_type>
14
  <sort_order>0</sort_order>
15
  <show_in_default>1</show_in_default>
16
  <show_in_website>1</show_in_website>
17
  <show_in_store>1</show_in_store>
18
  <groups>
19
- <banner_setting translate="label">
20
  <label>Banner Setting</label>
21
  <frontend_type>text</frontend_type>
22
  <sort_order>0</sort_order>
@@ -24,54 +24,55 @@
24
  <show_in_website>1</show_in_website>
25
  <show_in_store>1</show_in_store>
26
  <fields>
27
- <baner_eanble translate="label">
28
- <label>Enable </label>
29
  <frontend_type>select</frontend_type>
30
- <source_model>adminhtml/system_config_source_enabledisable</source_model>
31
- <sort_order>0</sort_order>
32
  <show_in_default>1</show_in_default>
33
  <show_in_website>1</show_in_website>
34
  <show_in_store>1</show_in_store>
35
- </baner_eanble>
36
- <slide_speed translate="label">
37
- <label>Slide Speed</label>
38
- <frontend_type>text</frontend_type>
39
- <sort_order>0</sort_order>
 
 
40
  <show_in_default>1</show_in_default>
41
  <show_in_website>1</show_in_website>
42
  <show_in_store>1</show_in_store>
43
- <comment>Example : 500</comment>
44
- </slide_speed>
45
- <banner_loop translate="label">
46
  <label>Banner Loop</label>
47
- <frontend_type>select</frontend_type>
48
- <source_model>adminhtml/system_config_source_yesno</source_model>
49
- <sort_order>0</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
- </banner_loop>
54
- <slide_type translate="label">
55
- <label>Style Type </label>
56
- <frontend_type>select</frontend_type>
57
- <source_model>adminhtml/system_config_source_Diyoptions13946253323</source_model>
58
- <sort_order>0</sort_order>
59
  <show_in_default>1</show_in_default>
60
  <show_in_website>1</show_in_website>
61
  <show_in_store>1</show_in_store>
62
- </slide_type>
63
- <pauseonhover translate="label">
64
- <label>Pause OnHover</label>
 
65
  <frontend_type>select</frontend_type>
66
  <source_model>adminhtml/system_config_source_yesno</source_model>
67
  <sort_order>0</sort_order>
68
  <show_in_default>1</show_in_default>
69
  <show_in_website>1</show_in_website>
70
  <show_in_store>1</show_in_store>
71
- </pauseonhover>
72
  </fields>
73
- </banner_setting>
74
  </groups>
75
- </general_setting>
76
  </sections>
77
  </config>
1
  <?xml version="1.0"?>
2
  <config>
3
  <tabs>
4
+ <mksresponsibetab translate="label" module="responsivebannerslider">
5
+ <label>MKS RESPONSIVE BANNER</label>
6
  <sort_order>0</sort_order>
7
+ </mksresponsibetab>
8
  </tabs>
9
  <sections>
10
+ <generalsetting translate="label" module="responsivebannerslider">
11
  <label>General Setting</label>
12
+ <tab>mksresponsibetab</tab>
13
  <frontend_type>text</frontend_type>
14
  <sort_order>0</sort_order>
15
  <show_in_default>1</show_in_default>
16
  <show_in_website>1</show_in_website>
17
  <show_in_store>1</show_in_store>
18
  <groups>
19
+ <mksresponsivegroup translate="label">
20
  <label>Banner Setting</label>
21
  <frontend_type>text</frontend_type>
22
  <sort_order>0</sort_order>
24
  <show_in_website>1</show_in_website>
25
  <show_in_store>1</show_in_store>
26
  <fields>
27
+ <pauseonhover translate="label">
28
+ <label>Pause OnHover</label>
29
  <frontend_type>select</frontend_type>
30
+ <source_model>adminhtml/system_config_source_yesno</source_model>
31
+ <sort_order>4</sort_order>
32
  <show_in_default>1</show_in_default>
33
  <show_in_website>1</show_in_website>
34
  <show_in_store>1</show_in_store>
35
+ <comment>Example :- On / Off</comment>
36
+ </pauseonhover>
37
+ <styletype translate="label">
38
+ <label>Style Type</label>
39
+ <frontend_type>select</frontend_type>
40
+ <source_model>adminhtml/system_config_source_Diyoptions13952315961</source_model>
41
+ <sort_order>1</sort_order>
42
  <show_in_default>1</show_in_default>
43
  <show_in_website>1</show_in_website>
44
  <show_in_store>1</show_in_store>
45
+ </styletype>
46
+ <bannerloop translate="label">
 
47
  <label>Banner Loop</label>
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
+ <comment>Example :- On = 1 , off = 0</comment>
54
+ </bannerloop>
55
+ <slidespeed translate="label">
56
+ <label>Slide Speed</label>
57
+ <frontend_type>text</frontend_type>
58
+ <sort_order>2</sort_order>
59
  <show_in_default>1</show_in_default>
60
  <show_in_website>1</show_in_website>
61
  <show_in_store>1</show_in_store>
62
+ <comment>Example :- 1000</comment>
63
+ </slidespeed>
64
+ <enable translate="label">
65
+ <label>Enable</label>
66
  <frontend_type>select</frontend_type>
67
  <source_model>adminhtml/system_config_source_yesno</source_model>
68
  <sort_order>0</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
+ </enable>
73
  </fields>
74
+ </mksresponsivegroup>
75
  </groups>
76
+ </generalsetting>
77
  </sections>
78
  </config>
app/code/community/Mks/Responsivebannerslider/sql/responsivebannerslider_setup/{mysql4-install-1.1.1.php → mysql4-install-8.1.1.php} RENAMED
@@ -2,8 +2,7 @@
2
  $installer = $this;
3
  $installer->startSetup();
4
  $sql=<<<SQLTEXT
5
-
6
- create table {$this->getTable('mksresponsivebannerslider')} (id int not null auto_increment, title varchar(255),image varchar(255),description varchar(255),status varchar(255), primary key(id));
7
 
8
  INSERT INTO {$this->getTable('mksresponsivebannerslider')} (`title`,`image`,`description`,`status`) VALUES ('Responsive Banner Slider 1','responsivebannerslider/bannerslider/banner-1.jpg','Responsive Banner Slider 1','0'),('Responsive Banner Slider 2','responsivebannerslider/bannerslider/banner-2.jpg','Responsive Banner Slider 2','0'),
9
  ('Responsive Banner Slider 3','responsivebannerslider/bannerslider/banner-3.jpg','Responsive Banner Slider 3','0');
@@ -12,7 +11,7 @@ SQLTEXT;
12
 
13
  $installer->run($sql);
14
  //demo
15
- Mage::getModel('core/url_rewrite')->setId(null);
16
  //demo
17
  $installer->endSetup();
18
-
2
  $installer = $this;
3
  $installer->startSetup();
4
  $sql=<<<SQLTEXT
5
+ create table {$this->getTable('mksresponsivebannerslider')} (id int not null auto_increment, title varchar(255),image varchar(255),description varchar(255),url varchar(255),status varchar(255), primary key(id));
 
6
 
7
  INSERT INTO {$this->getTable('mksresponsivebannerslider')} (`title`,`image`,`description`,`status`) VALUES ('Responsive Banner Slider 1','responsivebannerslider/bannerslider/banner-1.jpg','Responsive Banner Slider 1','0'),('Responsive Banner Slider 2','responsivebannerslider/bannerslider/banner-2.jpg','Responsive Banner Slider 2','0'),
8
  ('Responsive Banner Slider 3','responsivebannerslider/bannerslider/banner-3.jpg','Responsive Banner Slider 3','0');
11
 
12
  $installer->run($sql);
13
  //demo
14
+ //Mage::getModel('core/url_rewrite')->setId(null);
15
  //demo
16
  $installer->endSetup();
17
+
app/code/community/Mks/Responsivebannerslider/sql/responsivebannerslider_setup/mysql4-upgrade-1.1.4-1.1.5.php DELETED
@@ -1,16 +0,0 @@
1
- <?php
2
- $installer = $this;
3
- $installer->startSetup();
4
- $sql=<<<SQLTEXT
5
- create table {$this->getTable('mksresponsivebannerslider')} (id int not null auto_increment, title varchar(255),image varchar(255),description varchar(255),status varchar(255), primary key(id));
6
-
7
- INSERT INTO {$this->getTable('mksresponsivebannerslider')} (`title`,`image`,`description`,`status`) VALUES ('Responsive Banner Slider 1','responsivebannerslider/bannerslider/banner-1.jpg','Responsive Banner Slider 1','0'),('Responsive Banner Slider 2','responsivebannerslider/bannerslider/banner-2.jpg','Responsive Banner Slider 2','0'),
8
- ('Responsive Banner Slider 3','responsivebannerslider/bannerslider/banner-3.jpg','Responsive Banner Slider 3','0');
9
- SQLTEXT;
10
-
11
- $installer->run($sql);
12
- //demo
13
- Mage::getModel('core/url_rewrite')->setId(null);
14
- //demo
15
- $installer->endSetup();
16
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Storelocator/Block/Adminhtml/Storelocator.php DELETED
@@ -1,17 +0,0 @@
1
- <?php
2
-
3
-
4
- class Mks_Storelocator_Block_Adminhtml_Storelocator extends Mage_Adminhtml_Block_Widget_Grid_Container{
5
-
6
- public function __construct()
7
- {
8
-
9
- $this->_controller = "adminhtml_storelocator";
10
- $this->_blockGroup = "storelocator";
11
- $this->_headerText = Mage::helper("storelocator")->__("Storelocator Manager");
12
- $this->_addButtonLabel = Mage::helper("storelocator")->__("Add New Item");
13
- parent::__construct();
14
-
15
- }
16
-
17
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Storelocator/Block/Adminhtml/Storelocator/Edit.php DELETED
@@ -1,44 +0,0 @@
1
- <?php
2
-
3
- class Mks_Storelocator_Block_Adminhtml_Storelocator_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 = "storelocator";
11
- $this->_controller = "adminhtml_storelocator";
12
- $this->_updateButton("save", "label", Mage::helper("storelocator")->__("Save Item"));
13
- $this->_updateButton("delete", "label", Mage::helper("storelocator")->__("Delete Item"));
14
-
15
- $this->_addButton("saveandcontinue", array(
16
- "label" => Mage::helper("storelocator")->__("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("storelocator_data") && Mage::registry("storelocator_data")->getId() ){
34
-
35
- return Mage::helper("storelocator")->__("Edit Item '%s'", $this->htmlEscape(Mage::registry("storelocator_data")->getId()));
36
-
37
- }
38
- else{
39
-
40
- return Mage::helper("storelocator")->__("Add Item");
41
-
42
- }
43
- }
44
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Storelocator/Block/Adminhtml/Storelocator/Edit/Form.php DELETED
@@ -1,17 +0,0 @@
1
- <?php
2
- class Mks_Storelocator_Block_Adminhtml_Storelocator_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/community/Mks/Storelocator/Block/Adminhtml/Storelocator/Edit/Tab/Form.php DELETED
@@ -1,93 +0,0 @@
1
- <?php
2
- class Mks_Storelocator_Block_Adminhtml_Storelocator_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("storelocator_form", array("legend"=>Mage::helper("storelocator")->__("Item information")));
10
-
11
-
12
- $fieldset->addField("name", "text", array(
13
- "label" => Mage::helper("storelocator")->__("Name"),
14
- "name" => "name",
15
- ));
16
-
17
- $fieldset->addField("address", "textarea", array(
18
- "label" => Mage::helper("storelocator")->__("Address"),
19
- "name" => "address",
20
- ));
21
-
22
- $fieldset->addField("zipcode", "text", array(
23
- "label" => Mage::helper("storelocator")->__("Zipcode"),
24
- "name" => "zipcode",
25
- ));
26
-
27
- $fieldset->addField("city", "text", array(
28
- "label" => Mage::helper("storelocator")->__("City"),
29
- "name" => "city",
30
- ));
31
-
32
- $fieldset->addField("country_id", "text", array(
33
- "label" => Mage::helper("storelocator")->__("Country Name"),
34
- "name" => "country_id",
35
- ));
36
-
37
- $fieldset->addField("phone", "text", array(
38
- "label" => Mage::helper("storelocator")->__("Phone"),
39
- "name" => "phone",
40
- ));
41
-
42
- $fieldset->addField("fax", "text", array(
43
- "label" => Mage::helper("storelocator")->__("Fax"),
44
- "name" => "fax",
45
- ));
46
-
47
- $fieldset->addField("description", "textarea", array(
48
- "label" => Mage::helper("storelocator")->__("Description"),
49
- "name" => "description",
50
- ));
51
-
52
- $fieldset->addField("store_url", "text", array(
53
- "label" => Mage::helper("storelocator")->__("Store Url"),
54
- "name" => "store_url",
55
- ));
56
-
57
- $fieldset->addField('image', 'image', array(
58
- 'label' => Mage::helper('storelocator')->__('Image'),
59
- 'name' => 'image',
60
- 'note' => '(*.jpg, *.png, *.gif)',
61
- ));
62
- $fieldset->addField('marker', 'image', array(
63
- 'label' => Mage::helper('storelocator')->__('Marker Image'),
64
- 'name' => 'marker',
65
- 'note' => '(*.jpg, *.png, *.gif)',
66
- ));
67
- $fieldset->addField("lat", "text", array(
68
- "label" => Mage::helper("storelocator")->__("Latitude"),
69
- "name" => "lat",
70
- ));
71
-
72
- $fieldset->addField("longt", "text", array(
73
- "label" => Mage::helper("storelocator")->__("Longitude"),
74
- "name" => "longt",
75
- ));
76
-
77
- $fieldset->addField('status', 'select', array(
78
- 'label' => Mage::helper('storelocator')->__('Status'),
79
- 'values' => Mks_Storelocator_Block_Adminhtml_Storelocator_Grid::getValueArray13(),
80
- 'name' => 'status',
81
- ));
82
-
83
- if (Mage::getSingleton("adminhtml/session")->getStorelocatorData())
84
- {
85
- $form->setValues(Mage::getSingleton("adminhtml/session")->getStorelocatorData());
86
- Mage::getSingleton("adminhtml/session")->setStorelocatorData(null);
87
- }
88
- elseif(Mage::registry("storelocator_data")) {
89
- $form->setValues(Mage::registry("storelocator_data")->getData());
90
- }
91
- return parent::_prepareForm();
92
- }
93
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Storelocator/Block/Adminhtml/Storelocator/Edit/Tabs.php DELETED
@@ -1,21 +0,0 @@
1
- <?php
2
- class Mks_Storelocator_Block_Adminhtml_Storelocator_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs
3
- {
4
- public function __construct()
5
- {
6
- parent::__construct();
7
- $this->setId("storelocator_tabs");
8
- $this->setDestElementId("edit_form");
9
- $this->setTitle(Mage::helper("storelocator")->__("Item Information"));
10
- }
11
- protected function _beforeToHtml()
12
- {
13
- $this->addTab("form_section", array(
14
- "label" => Mage::helper("storelocator")->__("Item Information"),
15
- "title" => Mage::helper("storelocator")->__("Item Information"),
16
- "content" => $this->getLayout()->createBlock("storelocator/adminhtml_storelocator_edit_tab_form")->toHtml(),
17
- ));
18
- return parent::_beforeToHtml();
19
- }
20
-
21
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Storelocator/Block/Adminhtml/Storelocator/Grid.php DELETED
@@ -1,118 +0,0 @@
1
- <?php
2
-
3
- class Mks_Storelocator_Block_Adminhtml_Storelocator_Grid extends Mage_Adminhtml_Block_Widget_Grid
4
- {
5
-
6
- public function __construct()
7
- {
8
- parent::__construct();
9
- $this->setId("storelocatorGrid");
10
- $this->setDefaultSort("id");
11
- $this->setDefaultDir("ASC");
12
- $this->setSaveParametersInSession(true);
13
- }
14
-
15
- protected function _prepareCollection()
16
- {
17
- $collection = Mage::getModel("storelocator/storelocator")->getCollection();
18
- $this->setCollection($collection);
19
- return parent::_prepareCollection();
20
- }
21
- protected function _prepareColumns()
22
- {
23
- $this->addColumn("id", array(
24
- "header" => Mage::helper("storelocator")->__("ID"),
25
- "align" =>"right",
26
- "width" => "50px",
27
- "type" => "number",
28
- "index" => "id",
29
- ));
30
-
31
- $this->addColumn("name", array(
32
- "header" => Mage::helper("storelocator")->__("Name"),
33
- "index" => "name",
34
- ));
35
- $this->addColumn("zipcode", array(
36
- "header" => Mage::helper("storelocator")->__("Zipcode"),
37
- "index" => "zipcode",
38
- ));
39
- $this->addColumn("city", array(
40
- "header" => Mage::helper("storelocator")->__("City"),
41
- "index" => "city",
42
- ));
43
- $this->addColumn("country_id", array(
44
- "header" => Mage::helper("storelocator")->__("Country Name"),
45
- "index" => "country_id",
46
- ));
47
- $this->addColumn("phone", array(
48
- "header" => Mage::helper("storelocator")->__("Phone"),
49
- "index" => "phone",
50
- ));
51
- $this->addColumn("fax", array(
52
- "header" => Mage::helper("storelocator")->__("Fax"),
53
- "index" => "fax",
54
- ));
55
- $this->addColumn("store_url", array(
56
- "header" => Mage::helper("storelocator")->__("Store Url"),
57
- "index" => "store_url",
58
- ));
59
- $this->addColumn("lat", array(
60
- "header" => Mage::helper("storelocator")->__("Latitude"),
61
- "index" => "lat",
62
- ));
63
- $this->addColumn("longt", array(
64
- "header" => Mage::helper("storelocator")->__("Longitude"),
65
- "index" => "longt",
66
- ));
67
- $this->addColumn('status', array(
68
- 'header' => Mage::helper('storelocator')->__('Status'),
69
- 'index' => 'status',
70
- 'type' => 'options',
71
- 'options'=>Mks_Storelocator_Block_Adminhtml_Storelocator_Grid::getOptionArray13(),
72
- ));
73
-
74
- $this->addExportType('*/*/exportCsv', Mage::helper('sales')->__('CSV'));
75
- $this->addExportType('*/*/exportExcel', Mage::helper('sales')->__('Excel'));
76
-
77
- return parent::_prepareColumns();
78
- }
79
-
80
- public function getRowUrl($row)
81
- {
82
- return $this->getUrl("*/*/edit", array("id" => $row->getId()));
83
- }
84
-
85
-
86
-
87
- protected function _prepareMassaction()
88
- {
89
- $this->setMassactionIdField('id');
90
- $this->getMassactionBlock()->setFormFieldName('ids');
91
- $this->getMassactionBlock()->setUseSelectAll(true);
92
- $this->getMassactionBlock()->addItem('remove_storelocator', array(
93
- 'label'=> Mage::helper('storelocator')->__('Remove Storelocator'),
94
- 'url' => $this->getUrl('*/adminhtml_storelocator/massRemove'),
95
- 'confirm' => Mage::helper('storelocator')->__('Are you sure?')
96
- ));
97
- return $this;
98
- }
99
-
100
- static public function getOptionArray13()
101
- {
102
- $data_array=array();
103
- $data_array[0]='Yes';
104
- $data_array[1]='No';
105
- return($data_array);
106
- }
107
- static public function getValueArray13()
108
- {
109
- $data_array=array();
110
- foreach(Mks_Storelocator_Block_Adminhtml_Storelocator_Grid::getOptionArray13() as $k=>$v){
111
- $data_array[]=array('value'=>$k,'label'=>$v);
112
- }
113
- return($data_array);
114
-
115
- }
116
-
117
-
118
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Storelocator/Block/Adminhtml/Storelocatorbackend.php DELETED
@@ -1,5 +0,0 @@
1
- <?php
2
-
3
- class Mks_Storelocator_Block_Adminhtml_Storelocatorbackend extends Mage_Adminhtml_Block_Template {
4
-
5
- }
 
 
 
 
 
app/code/community/Mks/Storelocator/Block/Index.php DELETED
@@ -1,8 +0,0 @@
1
- <?php
2
- class Mks_Storelocator_Block_Index extends Mage_Core_Block_Template{
3
-
4
-
5
-
6
-
7
-
8
- }
 
 
 
 
 
 
 
 
app/code/community/Mks/Storelocator/Helper/Data.php DELETED
@@ -1,5 +0,0 @@
1
- <?php
2
- class Mks_Storelocator_Helper_Data extends Mage_Core_Helper_Abstract
3
- {
4
- }
5
-
 
 
 
 
 
app/code/community/Mks/Storelocator/Model/Mysql4/Storelocator.php DELETED
@@ -1,8 +0,0 @@
1
- <?php
2
- class Mks_Storelocator_Model_Mysql4_Storelocator extends Mage_Core_Model_Mysql4_Abstract
3
- {
4
- protected function _construct()
5
- {
6
- $this->_init("storelocator/storelocator", "id");
7
- }
8
- }
 
 
 
 
 
 
 
 
app/code/community/Mks/Storelocator/Model/Mysql4/Storelocator/Collection.php DELETED
@@ -1,12 +0,0 @@
1
- <?php
2
- class Mks_Storelocator_Model_Mysql4_Storelocator_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
3
- {
4
-
5
- public function _construct(){
6
- $this->_init("storelocator/storelocator");
7
- }
8
-
9
-
10
-
11
- }
12
-
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Storelocator/Model/Storelocator.php DELETED
@@ -1,12 +0,0 @@
1
- <?php
2
-
3
- class Mks_Storelocator_Model_Storelocator extends Mage_Core_Model_Abstract
4
- {
5
- protected function _construct(){
6
-
7
- $this->_init("storelocator/storelocator");
8
-
9
- }
10
-
11
- }
12
-
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Storelocator/controllers/Adminhtml/StorelocatorController.php DELETED
@@ -1,253 +0,0 @@
1
- <?php
2
-
3
- class Mks_Storelocator_Adminhtml_StorelocatorController extends Mage_Adminhtml_Controller_Action
4
- {
5
- protected function _initAction()
6
- {
7
- $this->loadLayout()->_setActiveMenu("storelocator/storelocator")->_addBreadcrumb(Mage::helper("adminhtml")->__("Storelocator Manager"),Mage::helper("adminhtml")->__("Storelocator Manager"));
8
- return $this;
9
- }
10
- public function indexAction()
11
- {
12
- $this->_title($this->__("Storelocator"));
13
- $this->_title($this->__("Manager Storelocator"));
14
-
15
- $this->_initAction();
16
- $this->renderLayout();
17
- }
18
- public function editAction()
19
- {
20
- $this->_title($this->__("Storelocator"));
21
- $this->_title($this->__("Storelocator"));
22
- $this->_title($this->__("Edit Item"));
23
-
24
- $id = $this->getRequest()->getParam("id");
25
- $model = Mage::getModel("storelocator/storelocator")->load($id);
26
- if ($model->getId()) {
27
- Mage::register("storelocator_data", $model);
28
- $this->loadLayout();
29
- $this->_setActiveMenu("storelocator/storelocator");
30
- $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Storelocator Manager"), Mage::helper("adminhtml")->__("Storelocator Manager"));
31
- $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Storelocator Description"), Mage::helper("adminhtml")->__("Storelocator Description"));
32
- $this->getLayout()->getBlock("head")->setCanLoadExtJs(true);
33
- $this->_addContent($this->getLayout()->createBlock("storelocator/adminhtml_storelocator_edit"))->_addLeft($this->getLayout()->createBlock("storelocator/adminhtml_storelocator_edit_tabs"));
34
- $this->renderLayout();
35
- }
36
- else {
37
- Mage::getSingleton("adminhtml/session")->addError(Mage::helper("storelocator")->__("Item does not exist."));
38
- $this->_redirect("*/*/");
39
- }
40
- }
41
-
42
- public function newAction()
43
- {
44
-
45
- $this->_title($this->__("Storelocator"));
46
- $this->_title($this->__("Storelocator"));
47
- $this->_title($this->__("New Item"));
48
-
49
- $id = $this->getRequest()->getParam("id");
50
- $model = Mage::getModel("storelocator/storelocator")->load($id);
51
-
52
- $data = Mage::getSingleton("adminhtml/session")->getFormData(true);
53
- if (!empty($data)) {
54
- $model->setData($data);
55
- }
56
-
57
- Mage::register("storelocator_data", $model);
58
-
59
- $this->loadLayout();
60
- $this->_setActiveMenu("storelocator/storelocator");
61
-
62
- $this->getLayout()->getBlock("head")->setCanLoadExtJs(true);
63
-
64
- $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Storelocator Manager"), Mage::helper("adminhtml")->__("Storelocator Manager"));
65
- $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Storelocator Description"), Mage::helper("adminhtml")->__("Storelocator Description"));
66
-
67
-
68
- $this->_addContent($this->getLayout()->createBlock("storelocator/adminhtml_storelocator_edit"))->_addLeft($this->getLayout()->createBlock("storelocator/adminhtml_storelocator_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['image']['delete']==1) {
88
-
89
- $post_data['image']='';
90
-
91
- }
92
- else {
93
-
94
- unset($post_data['image']);
95
-
96
- if (isset($_FILES)){
97
-
98
- if ($_FILES['image']['name']) {
99
-
100
- if($this->getRequest()->getParam("id")){
101
- $model = Mage::getModel("storelocator/storelocator")->load($this->getRequest()->getParam("id"));
102
- if($model->getData('image')){
103
- $io = new Varien_Io_File();
104
- $io->rm(Mage::getBaseDir('media').DS.implode(DS,explode('/',$model->getData('image'))));
105
- }
106
- }
107
- $path = Mage::getBaseDir('media') . DS . 'storelocator' . DS .'storelocator'.DS;
108
- $uploader = new Varien_File_Uploader('image');
109
- $uploader->setAllowedExtensions(array('jpg','png','gif'));
110
- $uploader->setAllowRenameFiles(false);
111
- $uploader->setFilesDispersion(false);
112
- $destFile = $path.$_FILES['image']['name'];
113
- $filename = $uploader->getNewFileName($destFile);
114
- $uploader->save($path, $filename);
115
-
116
- $post_data['image']='storelocator/storelocator/'.$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
- //save image
129
- try{
130
-
131
- if((bool)$post_data['marker']['delete']==1) {
132
-
133
- $post_data['marker']='';
134
-
135
- }
136
- else {
137
-
138
- unset($post_data['marker']);
139
-
140
- if (isset($_FILES)){
141
-
142
- if ($_FILES['marker']['name']) {
143
-
144
- if($this->getRequest()->getParam("id")){
145
- $model = Mage::getModel("storelocator/storelocator")->load($this->getRequest()->getParam("id"));
146
- if($model->getData('marker')){
147
- $io = new Varien_Io_File();
148
- $io->rm(Mage::getBaseDir('media').DS.implode(DS,explode('/',$model->getData('marker'))));
149
- }
150
- }
151
- $path = Mage::getBaseDir('media') . DS . 'storelocator' . DS .'storelocator'.DS;
152
- $uploader = new Varien_File_Uploader('marker');
153
- $uploader->setAllowedExtensions(array('jpg','png','gif'));
154
- $uploader->setAllowRenameFiles(false);
155
- $uploader->setFilesDispersion(false);
156
- $destFile = $path.$_FILES['marker']['name'];
157
- $filename = $uploader->getNewFileName($destFile);
158
- $uploader->save($path, $filename);
159
-
160
- $post_data['marker']='storelocator/storelocator/'.$filename;
161
- }
162
- }
163
- }
164
-
165
- } catch (Exception $e) {
166
- Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
167
- $this->_redirect('*/*/edit', array('id' => $this->getRequest()->getParam('id')));
168
- return;
169
- }
170
- //save image
171
-
172
-
173
- $model = Mage::getModel("storelocator/storelocator")
174
- ->addData($post_data)
175
- ->setId($this->getRequest()->getParam("id"))
176
- ->save();
177
-
178
- Mage::getSingleton("adminhtml/session")->addSuccess(Mage::helper("adminhtml")->__("Storelocator was successfully saved"));
179
- Mage::getSingleton("adminhtml/session")->setStorelocatorData(false);
180
-
181
- if ($this->getRequest()->getParam("back")) {
182
- $this->_redirect("*/*/edit", array("id" => $model->getId()));
183
- return;
184
- }
185
- $this->_redirect("*/*/");
186
- return;
187
- }
188
- catch (Exception $e) {
189
- Mage::getSingleton("adminhtml/session")->addError($e->getMessage());
190
- Mage::getSingleton("adminhtml/session")->setStorelocatorData($this->getRequest()->getPost());
191
- $this->_redirect("*/*/edit", array("id" => $this->getRequest()->getParam("id")));
192
- return;
193
- }
194
-
195
- }
196
- $this->_redirect("*/*/");
197
- }
198
-
199
-
200
-
201
- public function deleteAction()
202
- {
203
- if( $this->getRequest()->getParam("id") > 0 ) {
204
- try {
205
- $model = Mage::getModel("storelocator/storelocator");
206
- $model->setId($this->getRequest()->getParam("id"))->delete();
207
- Mage::getSingleton("adminhtml/session")->addSuccess(Mage::helper("adminhtml")->__("Item was successfully deleted"));
208
- $this->_redirect("*/*/");
209
- }
210
- catch (Exception $e) {
211
- Mage::getSingleton("adminhtml/session")->addError($e->getMessage());
212
- $this->_redirect("*/*/edit", array("id" => $this->getRequest()->getParam("id")));
213
- }
214
- }
215
- $this->_redirect("*/*/");
216
- }
217
-
218
-
219
- public function massRemoveAction()
220
- {
221
- try {
222
- $ids = $this->getRequest()->getPost('ids', array());
223
- foreach ($ids as $id) {
224
- $model = Mage::getModel("storelocator/storelocator");
225
- $model->setId($id)->delete();
226
- }
227
- Mage::getSingleton("adminhtml/session")->addSuccess(Mage::helper("adminhtml")->__("Item(s) was successfully removed"));
228
- }
229
- catch (Exception $e) {
230
- Mage::getSingleton("adminhtml/session")->addError($e->getMessage());
231
- }
232
- $this->_redirect('*/*/');
233
- }
234
-
235
- /**
236
- * Export order grid to CSV format
237
- */
238
- public function exportCsvAction()
239
- {
240
- $fileName = 'storelocator.csv';
241
- $grid = $this->getLayout()->createBlock('storelocator/adminhtml_storelocator_grid');
242
- $this->_prepareDownloadResponse($fileName, $grid->getCsvFile());
243
- }
244
- /**
245
- * Export order grid to Excel XML format
246
- */
247
- public function exportExcelAction()
248
- {
249
- $fileName = 'storelocator.xml';
250
- $grid = $this->getLayout()->createBlock('storelocator/adminhtml_storelocator_grid');
251
- $this->_prepareDownloadResponse($fileName, $grid->getExcelFile($fileName));
252
- }
253
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Storelocator/controllers/Adminhtml/StorelocatorbackendController.php DELETED
@@ -1,10 +0,0 @@
1
- <?php
2
- class Mks_Storelocator_Adminhtml_StorelocatorbackendController extends Mage_Adminhtml_Controller_Action
3
- {
4
- public function indexAction()
5
- {
6
- $this->loadLayout();
7
- $this->_title($this->__("About us"));
8
- $this->renderLayout();
9
- }
10
- }
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Storelocator/controllers/IndexController.php DELETED
@@ -1,22 +0,0 @@
1
- <?php
2
- class Mks_Storelocator_IndexController extends Mage_Core_Controller_Front_Action{
3
- public function IndexAction() {
4
-
5
- $this->loadLayout();
6
- $this->getLayout()->getBlock("head")->setTitle($this->__("Storelocator"));
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("storelocator", array(
15
- "label" => $this->__("Storelocator"),
16
- "title" => $this->__("Storelocator")
17
- ));
18
-
19
- $this->renderLayout();
20
-
21
- }
22
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Storelocator/etc/config.xml DELETED
@@ -1,134 +0,0 @@
1
- <?xml version="1.0"?>
2
- <config>
3
- <modules>
4
- <Mks_Storelocator>
5
- <version>1.1.1</version>
6
- </Mks_Storelocator>
7
- </modules>
8
- <frontend>
9
- <routers>
10
- <storelocator>
11
- <use>standard</use>
12
- <args>
13
- <module>Mks_Storelocator</module>
14
- <frontName>storelocator</frontName>
15
- </args>
16
- </storelocator>
17
- </routers>
18
- <layout>
19
- <updates>
20
- <storelocator>
21
- <file>storelocator.xml</file>
22
- </storelocator>
23
- </updates>
24
- </layout>
25
- </frontend>
26
- <global>
27
- <helpers>
28
- <storelocator>
29
- <class>Mks_Storelocator_Helper</class>
30
- </storelocator>
31
- </helpers>
32
- <blocks>
33
- <storelocator>
34
- <class>Mks_Storelocator_Block</class>
35
- </storelocator>
36
- </blocks>
37
- <models>
38
- <storelocator>
39
- <class>Mks_Storelocator_Model</class>
40
- <resourceModel>storelocator_mysql4</resourceModel>
41
- </storelocator>
42
- <storelocator_mysql4>
43
- <class>Mks_Storelocator_Model_Mysql4</class>
44
- <entities>
45
- <storelocator>
46
- <table>mksstorelocator</table>
47
- </storelocator>
48
- </entities>
49
- </storelocator_mysql4>
50
- </models>
51
- <resources>
52
- <storelocator_setup>
53
- <setup>
54
- <module>Mks_Storelocator</module>
55
- </setup>
56
- <connection>
57
- <use>core_setup</use>
58
- </connection>
59
- </storelocator_setup>
60
- <storelocator_write>
61
- <connection>
62
- <use>core_write</use>
63
- </connection>
64
- </storelocator_write>
65
- <storelocator_read>
66
- <connection>
67
- <use>core_read</use>
68
- </connection>
69
- </storelocator_read>
70
- </resources>
71
- </global>
72
- <admin>
73
- <routers>
74
- <storelocator>
75
- <use>admin</use>
76
- <args>
77
- <module>Mks_Storelocator</module>
78
- <frontName>storelocator</frontName>
79
- </args>
80
- </storelocator>
81
- </routers>
82
- </admin>
83
- <adminhtml>
84
- <menu>
85
- <storelocator module="storelocator">
86
- <title>Storelocator</title>
87
- <sort_order>100</sort_order>
88
- <children>
89
- <storelocatorbackend module="storelocator">
90
- <title>About us</title>
91
- <sort_order>0</sort_order>
92
- <action>storelocator/adminhtml_storelocatorbackend</action>
93
- </storelocatorbackend>
94
- <storelocator module="storelocator">
95
- <title>Manage Storelocator</title>
96
- <sort_order>0</sort_order>
97
- <action>storelocator/adminhtml_storelocator</action>
98
- </storelocator>
99
- </children>
100
- </storelocator>
101
- </menu>
102
- <acl>
103
- <resources>
104
- <all>
105
- <title>Allow Everything</title>
106
- </all>
107
- <admin>
108
- <children>
109
- <storelocator translate="title" module="storelocator">
110
- <title>Storelocator</title>
111
- <sort_order>1000</sort_order>
112
- <children>
113
- <storelocatorbackend translate="title">
114
- <title>About us</title>
115
- </storelocatorbackend>
116
- <storelocator translate="title">
117
- <title>Manage Storelocator</title>
118
- <sort_order>0</sort_order>
119
- </storelocator>
120
- </children>
121
- </storelocator>
122
- </children>
123
- </admin>
124
- </resources>
125
- </acl>
126
- <layout>
127
- <updates>
128
- <storelocator>
129
- <file>storelocator.xml</file>
130
- </storelocator>
131
- </updates>
132
- </layout>
133
- </adminhtml>
134
- </config>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Storelocator/sql/storelocator_setup/mysql4-install-1.1.1.php DELETED
@@ -1,18 +0,0 @@
1
- <?php
2
- $installer = $this;
3
- $installer->startSetup();
4
- $sql=<<<SQLTEXT
5
- create table {$this->getTable('mksstorelocator')} (id int not null auto_increment, name varchar(100), address varchar(255),zipcode varchar(100),city varchar(100),country_id varchar(100),phone varchar(100),fax varchar(100),description varchar(255),store_url varchar(100),image varchar(100),marker varchar(100),lat varchar(100),longt varchar(100),status varchar(100),primary key(id));
6
-
7
- INSERT INTO {$this->getTable('mksstorelocator')} (`name`, `address`, `zipcode`, `city`, `country_id`, `phone`, `fax`, `description`, `store_url`, `image`, `lat`, `longt`, `status`) VALUES ('Malviya Nagar','Malviya Nagar Rajasthan (India)','302018','jaipur','india','8764226568','xxxxx','Malviya Nagar Rajasthan (India) ','http://www.magentocommerce.com/magento-connect/developer/mukeshsaini','storelocator/storelocator/map1.jpg','26.857126400000000000','75.812719900000050000','0'),
8
- ('Karachi Sindh','Karachi Sindh Pakistan','302018','Karachi','Pakistan','8764226568','xxxxx','Karachi Sindh Pakistan ','http://www.magentocommerce.com/magento-connect/developer/mukeshsaini','storelocator/storelocator/map2.jpg','24.893379000000000000','67.028060900000010000','0'),
9
- ('New York NY','New York NY United States','302018','New York','United States','8764226568','xxxxx','New York NY United States ','http://www.magentocommerce.com/magento-connect/developer/mukeshsaini','storelocator/storelocator/map3.jpg','40.714352800000000000','-74.005973100000000000','0');
10
-
11
- SQLTEXT;
12
-
13
- $installer->run($sql);
14
- //demo
15
- Mage::getModel('core/url_rewrite')->setId(null);
16
- //demo
17
- $installer->endSetup();
18
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/adminhtml/default/default/layout/responsivebannerslider.xml CHANGED
@@ -5,9 +5,9 @@
5
  <block type="responsivebannerslider/adminhtml_responsivebannersliderbackend" name="responsivebannersliderbackend" template="responsivebannerslider/responsivebannersliderbackend.phtml"/>
6
  </reference>
7
  </responsivebannerslider_adminhtml_responsivebannersliderbackend_index>
8
- <responsivebannerslider_adminhtml_responsivebannerslider_index>
9
  <reference name="content">
10
- <block type="responsivebannerslider/adminhtml_responsivebannerslider" name="responsivebannerslider" />
11
  </reference>
12
- </responsivebannerslider_adminhtml_responsivebannerslider_index>
13
  </layout>
5
  <block type="responsivebannerslider/adminhtml_responsivebannersliderbackend" name="responsivebannersliderbackend" template="responsivebannerslider/responsivebannersliderbackend.phtml"/>
6
  </reference>
7
  </responsivebannerslider_adminhtml_responsivebannersliderbackend_index>
8
+ <responsivebannerslider_adminhtml_responsivebanner_index>
9
  <reference name="content">
10
+ <block type="responsivebannerslider/adminhtml_responsivebanner" name="responsivebanner" />
11
  </reference>
12
+ </responsivebannerslider_adminhtml_responsivebanner_index>
13
  </layout>
app/design/adminhtml/default/default/template/responsivebannerslider/responsivebannersliderbackend.phtml CHANGED
@@ -1,3 +1 @@
1
-
2
- <iframe src="http://www.magentocommerce.com/magento-connect/developer/mukeshsaini" width="100%" height="1000"></iframe>
3
-
1
+ <iframe src="http://www.magentocommerce.com/magento-connect/developer/mukeshsaini" width="100%" height="1000"></iframe>
 
 
app/design/frontend/base/default/layout/responsivebannerslider.xml CHANGED
@@ -1,5 +1,5 @@
1
  <?xml version="1.0"?>
2
- <layout version="1.1.4">
3
  <responsivebannerslider_index_index>
4
  <reference name="root">
5
  <action method="setTemplate"><template>page/1column.phtml</template></action>
1
  <?xml version="1.0"?>
2
+ <layout version="8.1.1">
3
  <responsivebannerslider_index_index>
4
  <reference name="root">
5
  <action method="setTemplate"><template>page/1column.phtml</template></action>
app/design/frontend/base/default/template/responsivebannerslider/index.phtml CHANGED
@@ -7,13 +7,13 @@
7
 
8
  <?php
9
  // Module Enable/Dsable Function.......................................
10
- if($slide_status==1): ?>
11
 
12
 
13
 
14
  <?php
15
  // Module type Function.......................................
16
- if($slide_type=='2'){ ?>
17
 
18
 
19
 
@@ -47,9 +47,10 @@ $description = $row1["description"];
47
  $urlx = $row1["image"];
48
  $media_url = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA);
49
  $imgurl=$media_url.$urlx;
 
50
  ?>
51
  <li style="width: 100%; float: left; margin-right: -100%; position: relative; display: none;" class="slide">
52
- <a href="#">
53
  <img src="<?php echo $imgurl; ?>" alt="<?php echo $title; ?>" title="<?php echo $title; ?>">
54
  <div class="caption dark3">
55
  <h2><?php echo $description; ?></h2>
@@ -94,7 +95,7 @@ pauseOnHover:<?php echo $slide_PauseOnhover; ?>
94
 
95
  <?php
96
  // Module type 1 Function.......................................Start
97
- if($slide_type=='1'){ ?>
98
 
99
 
100
 
@@ -125,9 +126,10 @@ $description = $row1["description"];
125
  $urlx = $row1["image"];
126
  $media_url = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA);
127
  $imgurl=$media_url.$urlx;
 
128
  ?>
129
  <li class="slide">
130
- <a href="#">
131
  <img src="<?php echo $imgurl; ?>" alt="<?php echo $title; ?>" title="<?php echo $title; ?>">
132
  <div class="caption dark3">
133
  <h2><?php echo $description; ?></h2>
@@ -168,5 +170,11 @@ pauseOnHover:<?php echo $slide_PauseOnhover; ?>
168
  } ?>
169
 
170
 
171
- <?php endif; ?>
 
 
 
 
 
 
172
 
7
 
8
  <?php
9
  // Module Enable/Dsable Function.......................................
10
+ if($slide_status==1){ ?>
11
 
12
 
13
 
14
  <?php
15
  // Module type Function.......................................
16
+ if($slide_type=='1'){ ?>
17
 
18
 
19
 
47
  $urlx = $row1["image"];
48
  $media_url = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA);
49
  $imgurl=$media_url.$urlx;
50
+ $url = $row1["url"];
51
  ?>
52
  <li style="width: 100%; float: left; margin-right: -100%; position: relative; display: none;" class="slide">
53
+ <a href="<?php echo $url; ?>">
54
  <img src="<?php echo $imgurl; ?>" alt="<?php echo $title; ?>" title="<?php echo $title; ?>">
55
  <div class="caption dark3">
56
  <h2><?php echo $description; ?></h2>
95
 
96
  <?php
97
  // Module type 1 Function.......................................Start
98
+ if($slide_type=='2'){ ?>
99
 
100
 
101
 
126
  $urlx = $row1["image"];
127
  $media_url = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA);
128
  $imgurl=$media_url.$urlx;
129
+ $url = $row1["url"];
130
  ?>
131
  <li class="slide">
132
+ <a href="<?php echo $url; ?>">
133
  <img src="<?php echo $imgurl; ?>" alt="<?php echo $title; ?>" title="<?php echo $title; ?>">
134
  <div class="caption dark3">
135
  <h2><?php echo $description; ?></h2>
170
  } ?>
171
 
172
 
173
+
174
+
175
+ <?php } else { ?>
176
+
177
+ <h1 style="color:red;">Enable ( Responsive banner) Module via Admin = System -> Configuration-> General Setting </h1>
178
+
179
+ <?php } ?>
180
 
app/etc/modules/Mks_Responsivebannerslider.xml CHANGED
@@ -4,7 +4,7 @@
4
  <Mks_Responsivebannerslider>
5
  <active>true</active>
6
  <codePool>community</codePool>
7
- <version>1.1.4</version>
8
  </Mks_Responsivebannerslider>
9
  </modules>
10
  </config>
4
  <Mks_Responsivebannerslider>
5
  <active>true</active>
6
  <codePool>community</codePool>
7
+ <version>8.1.1</version>
8
  </Mks_Responsivebannerslider>
9
  </modules>
10
  </config>
media/responsivebannerslider/responsivebannerslider/mukesh_saini.JPG ADDED
Binary file
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Mks_Responsivebannerslider</name>
4
- <version>1.1.5</version>
5
  <stability>stable</stability>
6
  <license>OSL</license>
7
  <channel>community</channel>
@@ -13,9 +13,9 @@
13
  2. Add Banner Effect (slide , fade)&#xD;
14
  3. User-friendly admin</notes>
15
  <authors><author><name>Mukesh Kumar saini</name><user>mukeshbagri</user><email>in.mukeshsaini@gmail.com</email></author></authors>
16
- <date>2014-03-19</date>
17
- <time>06:30:20</time>
18
- <contents><target name="mageetc"><dir name="modules"><file name="Mks_Responsivebannerslider.xml" hash="0929c21b0f69755e4a9d97bfcfc1cf2c"/></dir></target><target name="magecommunity"><dir name="Mks"><dir name="Bannerslider"><dir name="Block"><dir name="Adminhtml"><file name="Bannersliderbackend.php" hash="c4c6fb4b655fea0bd41834cbc0b380d3"/><dir name="Lightboxslider"><dir name="Edit"><file name="Form.php" hash="c55bf7a8aa522025c651b233b9690935"/><dir name="Tab"><file name="Form.php" hash="cc96e2f71bdbf557f8f80d8b149513b8"/></dir><file name="Tabs.php" hash="76e2ef69fe1e7c80c1a6535561e8ed84"/></dir><file name="Edit.php" hash="8b9324fec5be5fcf2354b571ca33dede"/><file name="Grid.php" hash="8f6c7c1bcc4daba934361e1216e13251"/></dir><file name="Lightboxslider.php" hash="c937a9d8c91fd463abf260ca9ae664d6"/></dir><file name="Index.php" hash="f3b2c62cab06bd80016b5eb867ac6c01"/></dir><dir name="Helper"><file name="Data.php" hash="78ef976446429483b21fafd68f74989b"/></dir><dir name="Model"><file name="Lightboxslider.php" hash="0eaded3aa1491c1ea3a986bdf08d4685"/><dir name="Mysql4"><dir name="Lightboxslider"><file name="Collection.php" hash="c8f8b720ab7d51551cdfc7cba5cd1eed"/></dir><file name="Lightboxslider.php" hash="0e5458515f31d113868b35e2909e5cd0"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="BannersliderbackendController.php" hash="cff9a6d55a0a1bccd130fc5534d193da"/><file name="LightboxsliderController.php" hash="357b23353df00a7df0843dfd1fd3cfd5"/></dir><file name="IndexController.php" hash="1ab95f552c6422197e56472f4b2e5163"/></dir><dir name="etc"><file name="config.xml" hash="5c31dc5913686be1bc462cf6c756fd7c"/></dir><dir name="sql"><dir name="bannerslider_setup"><file name="mysql4-install-1.1.2.php" hash="b2f92c4cbda833c5b1a756f69a27e93f"/></dir></dir></dir><dir name="Responsivebannerslider"><dir name="Block"><dir name="Adminhtml"><dir name="Bannerslider"><dir name="Edit"><file name="Form.php" hash="1f10dccbc5e4edcc90ea3ac5366f57be"/><dir name="Tab"><file name="Form.php" hash="b876cf8d67286b29ddd2c50708eb5c4d"/></dir><file name="Tabs.php" hash="9bc44dafb937cbba749b524774d60db9"/></dir><file name="Edit.php" hash="43d560427c5c71cef9941147cebaa993"/><file name="Grid.php" hash="08b5c4cb74f39a625d6f33d0ad63d84a"/></dir><file name="Bannerslider.php" hash="f34ef00e533391b3bea2b46b19306f24"/><dir name="Responsivebannerslider"><dir name="Edit"><file name="Form.php" hash="f86a6a2daf3c39135661ea316a0969f7"/><dir name="Tab"><file name="Form.php" hash="621d8558e6c902c762e10d7e535477a4"/></dir><file name="Tabs.php" hash="55c68b32ebe6b620cc9d7ab289091446"/></dir><file name="Edit.php" hash="87125aacdde51dc58afc9fb6e15a4a01"/><file name="Grid.php" hash="4d5db0711cb68df3d53c96bf25fdc2a0"/></dir><file name="Responsivebannerslider.php" hash="c3c6f601bf67d26eafc34855a434a0d2"/><file name="Responsivebannersliderbackend.php" hash="492c6c1c9897c51b987a1acadcc42a5c"/></dir><file name="Index.php" hash="eb410f3d880788cedcbdc466c7f457a5"/></dir><dir name="Helper"><file name="Data.php" hash="54fb6015b45224292e5e47f0004633b6"/></dir><dir name="Model"><file name="Bannerslider.php" hash="9a90f66e05379c7a2ff04dbd95626e8d"/><dir name="Mysql4"><dir name="Bannerslider"><file name="Collection.php" hash="e67814d8806485a9fae33cd3ba88212f"/></dir><file name="Bannerslider.php" hash="39ec20c65650737b829f646fc02df11b"/><dir name="Responsivebannerslider"><file name="Collection.php" hash="b7f9c0fc62387f56d5a0e92d8f2edeea"/></dir><file name="Responsivebannerslider.php" hash="2bd8f1e89f06901432db94ba05db5212"/></dir><file name="Responsivebannerslider.php" hash="6285174778e09dc34f0450c3e3bb9ad1"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="BannersliderController.php" hash="d54d8c12a9deab4dd6cecbe17db76ad4"/><file name="ResponsivebannersliderController.php" hash="6ae1a578835731ab1f480dc77855096b"/><file name="ResponsivebannersliderbackendController.php" hash="f095780b42f66f229d8bb76b69bb8f08"/></dir><file name="IndexController.php" hash="85cb621ada20da5041cabd3d56d62167"/></dir><dir name="etc"><file name="adminhtml.xml" hash="31b2944b4a2eda48a8cecce0f1f5d0af"/><file name="config.xml" hash="b04d8bea59dddccbff36d8070d28e9fa"/><file name="system.xml" hash="43efea5fd8d8c67f8a27c600dfd281fb"/></dir><dir name="sql"><dir name="responsivebannerslider_setup"><file name="mysql4-install-1.1.1.php" hash="13ebc2f67330bee2a19714beebf4907b"/><file name="mysql4-upgrade-1.1.4-1.1.5.php" hash="461a6cccdf98bfe7c6b22f583ac3d650"/></dir></dir></dir><dir name="Storelocator"><dir name="Block"><dir name="Adminhtml"><dir name="Storelocator"><dir name="Edit"><file name="Form.php" hash="00fed13f02e804d93bac7258689769ad"/><dir name="Tab"><file name="Form.php" hash="4620d9bad225fc9dc88b808fccae3b2f"/></dir><file name="Tabs.php" hash="8819f35cd4af4b61d14bf377c58432b6"/></dir><file name="Edit.php" hash="9be35d036a69cfb545d2f1c1649cb6ba"/><file name="Grid.php" hash="c1901ceac4aec85340a9d4f2d5e9df9f"/></dir><file name="Storelocator.php" hash="81770ec5e092a177c22e188b8db38d7e"/><file name="Storelocatorbackend.php" hash="d600cb8ff797f008c7c652a299305c8d"/></dir><file name="Index.php" hash="85128403f14502fe6642a23231079532"/></dir><dir name="Helper"><file name="Data.php" hash="083521dd42bf734a864e06dceb37b5a0"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Storelocator"><file name="Collection.php" hash="183c5eeeb2ef6b444bfc08a829b93cde"/></dir><file name="Storelocator.php" hash="29d65325bd746be070275726e309afdb"/></dir><file name="Storelocator.php" hash="e91d32a733f49d62d54c1335a57e2ee5"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="StorelocatorController.php" hash="0c853bc509d0069930481f4d09e426c6"/><file name="StorelocatorbackendController.php" hash="ea616e919ef3a6492ebbfb55daf57ea1"/></dir><file name="IndexController.php" hash="2da311b739d05591f0f4355c740cb5bc"/></dir><dir name="etc"><file name="config.xml" hash="1aed48b7351a7e3dcd8924c146ac4af0"/></dir><dir name="sql"><dir name="storelocator_setup"><file name="mysql4-install-1.1.1.php" hash="6e216933bbef70d59742516037479dff"/></dir></dir></dir></dir><dir name="Mage"><dir name="Adminhtml"><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><file name="Diyoptions13946249653.php" hash="f3d19500445f6e8191bceb08eaad9c91"/><file name="Diyoptions13946253323.php" hash="8b09868d3d62ee2e492e4fd3d58ce4ce"/></dir></dir></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="responsivebannerslider"><file name="responsivebannersliderbackend.phtml" hash="c78b53b275cfeff357c7720666f77295"/></dir></dir><dir name="layout"><file name="responsivebannerslider.xml" hash="5dadd1a980f89bc61af23d8c4718ddb5"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="responsivebannerslider"><file name="index.phtml" hash="260bd783243f7571cd0841d25f8f590a"/></dir></dir><dir name="layout"><file name="responsivebannerslider.xml" hash="1b72c0e31b3868e8b080374973c04d41"/></dir></dir></dir></dir></target><target name="magemedia"><dir name="responsivebannerslider"><dir name="bannerslider"><file name="banner-1.jpg" hash="973491deb872911a69f7bb1f6138036b"/><file name="banner-2.jpg" hash="92372dc0f2a9454851bed073a3d164a4"/><file name="banner-3.jpg" hash="f0b4946e792dc573b8b76b5aa8935d3d"/></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="responsiveslider"><dir name="css"><file name="generic-nav.css" hash="f0ea48a8ce441ad10e5c631da5b0ae46"/><file name="grid12.css" hash="4cf760c5e87d6ff6e85f653928cbed07"/><file name="styles-banner.css" hash="5f54dc753c338cd41b1a4df180884a4f"/><file name="styles.css" hash="8e45917ed2dd5d388e76b9147ae6a2eb"/><file name="ultra-slideshow.css" hash="d63a04686f1a3b9652053841dcd7ac9a"/></dir><dir name="img"><file name="01.jpg" hash="49dcb5cee2b86a14b80b6ef59e467bc3"/><file name="01_002.jpg" hash="edc7eff6b3c0b38a429c44c656398358"/><file name="02.jpg" hash="0ec3768570d3774c1805a90d615172b2"/><file name="1.jpg" hash="cb627e40504b966d04a1ab52e0ab749e"/><file name="2.jpg" hash="cb627e40504b966d04a1ab52e0ab749e"/><file name="3.jpg" hash="cb627e40504b966d04a1ab52e0ab749e"/><file name="info.png" hash="43d666757fb907b2ee8f44352d80e9ff"/><file name="logo.png" hash="ec59af60870fe42a62debe4721fdf529"/><file name="pager.png" hash="58b23f4350365ca08912ac608f6d2d9e"/><file name="payment.gif" hash="a8daa18fcb3e3845c56ffbca6d140276"/><file name="slider-arrows.png" hash="4f71b34c53eedc49a534566557dddbef"/></dir><dir name="js"><file name="jquery-1.7.2.min.js" hash="a13f7f208ba534681deadb1ec7a2e54a"/><file name="jquery-1.js" hash="a13f7f208ba534681deadb1ec7a2e54a"/><file name="jquery-noconflict.js" hash="3179f2255b046d5f2e9a71e365287bef"/><file name="jquery.easing.min.js" hash="a6f75e0c043a2a087837e5c113cc6f7a"/><file name="jquery.flexslider.min.js" hash="af24b4669a06656c13457625030ec2b8"/><file name="jquery.slides.min.js" hash="832349b4646a92830507b060a3905aba"/><file name="jquery_003.js" hash="235b4112e5ce03c47395746e677b37ea"/><file name="jquery_004.js" hash="a6f75e0c043a2a087837e5c113cc6f7a"/></dir></dir></dir></dir></dir></target></contents>
19
  <compatible/>
20
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
21
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Mks_Responsivebannerslider</name>
4
+ <version>8.1.1</version>
5
  <stability>stable</stability>
6
  <license>OSL</license>
7
  <channel>community</channel>
13
  2. Add Banner Effect (slide , fade)&#xD;
14
  3. User-friendly admin</notes>
15
  <authors><author><name>Mukesh Kumar saini</name><user>mukeshbagri</user><email>in.mukeshsaini@gmail.com</email></author></authors>
16
+ <date>2014-03-20</date>
17
+ <time>09:58:40</time>
18
+ <contents><target name="mageetc"><dir name="modules"><file name="Mks_Responsivebannerslider.xml" hash="7934db607862763725fa014027f697a3"/></dir></target><target name="magecommunity"><dir name="Mks"><dir name="Responsivebannerslider"><dir name="Block"><dir name="Adminhtml"><dir name="Responsivebanner"><dir name="Edit"><file name="Form.php" hash="c36517d5197a80c1399baab97e8ed4b0"/><dir name="Tab"><file name="Form.php" hash="7f316ecdce6f39efb44e02544aef5691"/></dir><file name="Tabs.php" hash="e5ba328e7f140e0d3dfe7ef49dc0d150"/></dir><file name="Edit.php" hash="6b7baf576089d1342863c52f0e36cb3f"/><file name="Grid.php" hash="ca5863ccd3369c37faa0d07fc7e47710"/></dir><file name="Responsivebanner.php" hash="29896ed5c7e1b8fd852cb2d9cbe674a5"/><file name="Responsivebannersliderbackend.php" hash="492c6c1c9897c51b987a1acadcc42a5c"/></dir><file name="Index.php" hash="6e09dc15f07c2d1e67e8e392c99bcf99"/></dir><dir name="Helper"><file name="Data.php" hash="54fb6015b45224292e5e47f0004633b6"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Responsivebanner"><file name="Collection.php" hash="56fc94a43c440a6288b5af96677c2378"/></dir><file name="Responsivebanner.php" hash="a957dbcb9c5b5da89edf852408d7337b"/></dir><file name="Responsivebanner.php" hash="2ad733a5835ead201a3ea4de2b4fd323"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="ResponsivebannerController.php" hash="e69a844949bb59be3dddffb5ac9064e4"/><file name="ResponsivebannersliderbackendController.php" hash="f095780b42f66f229d8bb76b69bb8f08"/><dir name="Rss"><file name="RssController.php" hash="fd0ab6a5a32d695d99717dda4e17a8cd"/></dir></dir><file name="IndexController.php" hash="2e6b22c241781739abdddefb77df2f6c"/></dir><dir name="etc"><file name="adminhtml.xml" hash="c44d2173a50ace0dd8b6e8dc6788d5e6"/><file name="config.xml" hash="736654b55517ac27ea7b14e578080aed"/><file name="system.xml" hash="db2c6269ebfc2daa7f8e025d2f71fcbb"/></dir><dir name="sql"><dir name="responsivebannerslider_setup"><file name="mysql4-install-8.1.1.php" hash="1b2373663fd4f14bc95306d3b1c946d5"/></dir></dir></dir></dir><dir name="Mage"><dir name="Adminhtml"><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><file name="Diyoptions13952315961.php" hash="0334b0ac856f7daf0be12112ab9fa828"/></dir></dir></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="responsivebannerslider"><file name="responsivebannersliderbackend.phtml" hash="6c2fb1e215cc27abe96e1d5a2b006a04"/></dir></dir><dir name="layout"><file name="responsivebannerslider.xml" hash="1b43a794981409d62750bb583ce52a58"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="responsivebannerslider"><file name="index.phtml" hash="74310b5e4a746f531caacb1ff8867826"/></dir></dir><dir name="layout"><file name="responsivebannerslider.xml" hash="0c38a2da33a0b42e71b614be4fc1ec2a"/></dir></dir></dir></dir></target><target name="magemedia"><dir name="responsivebannerslider"><dir name="bannerslider"><file name="banner-1.jpg" hash="973491deb872911a69f7bb1f6138036b"/><file name="banner-2.jpg" hash="92372dc0f2a9454851bed073a3d164a4"/><file name="banner-3.jpg" hash="f0b4946e792dc573b8b76b5aa8935d3d"/></dir><dir name="responsivebannerslider"><file name="mukesh_saini.JPG" hash="8e9ebfdf91ad4b977d07ff2bdda56b67"/></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="responsiveslider"><dir name="css"><file name="generic-nav.css" hash="f0ea48a8ce441ad10e5c631da5b0ae46"/><file name="grid12.css" hash="4cf760c5e87d6ff6e85f653928cbed07"/><file name="styles-banner.css" hash="5f54dc753c338cd41b1a4df180884a4f"/><file name="styles.css" hash="8e45917ed2dd5d388e76b9147ae6a2eb"/><file name="ultra-slideshow.css" hash="d63a04686f1a3b9652053841dcd7ac9a"/></dir><dir name="img"><file name="01.jpg" hash="49dcb5cee2b86a14b80b6ef59e467bc3"/><file name="01_002.jpg" hash="edc7eff6b3c0b38a429c44c656398358"/><file name="02.jpg" hash="0ec3768570d3774c1805a90d615172b2"/><file name="1.jpg" hash="cb627e40504b966d04a1ab52e0ab749e"/><file name="2.jpg" hash="cb627e40504b966d04a1ab52e0ab749e"/><file name="3.jpg" hash="cb627e40504b966d04a1ab52e0ab749e"/><file name="info.png" hash="43d666757fb907b2ee8f44352d80e9ff"/><file name="logo.png" hash="ec59af60870fe42a62debe4721fdf529"/><file name="pager.png" hash="58b23f4350365ca08912ac608f6d2d9e"/><file name="payment.gif" hash="a8daa18fcb3e3845c56ffbca6d140276"/><file name="slider-arrows.png" hash="4f71b34c53eedc49a534566557dddbef"/></dir><dir name="js"><file name="jquery-1.7.2.min.js" hash="a13f7f208ba534681deadb1ec7a2e54a"/><file name="jquery-1.js" hash="a13f7f208ba534681deadb1ec7a2e54a"/><file name="jquery-noconflict.js" hash="3179f2255b046d5f2e9a71e365287bef"/><file name="jquery.easing.min.js" hash="a6f75e0c043a2a087837e5c113cc6f7a"/><file name="jquery.flexslider.min.js" hash="af24b4669a06656c13457625030ec2b8"/><file name="jquery.slides.min.js" hash="832349b4646a92830507b060a3905aba"/><file name="jquery_003.js" hash="235b4112e5ce03c47395746e677b37ea"/><file name="jquery_004.js" hash="a6f75e0c043a2a087837e5c113cc6f7a"/></dir></dir></dir></dir></dir></target></contents>
19
  <compatible/>
20
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
21
  </package>