Mks_Storelocator - Version 1.1.3

Version Notes

Fix Issue :- Add Table prefix. Auto default Store information load. easy to install.

Download this release

Release Info

Developer mukesh kumar saini
Extension Mks_Storelocator
Version 1.1.3
Comparing to
See all releases


Code changes from version 1.1.2 to 1.1.3

Files changed (36) hide show
  1. app/code/community/Mks/Bannerslider/Block/Adminhtml/Bannersliderbackend.php +5 -0
  2. app/code/community/Mks/Bannerslider/Block/Adminhtml/Lightboxslider.php +17 -0
  3. app/code/community/Mks/Bannerslider/Block/Adminhtml/Lightboxslider/Edit.php +44 -0
  4. app/code/community/Mks/Bannerslider/Block/Adminhtml/Lightboxslider/Edit/Form.php +17 -0
  5. app/code/community/Mks/Bannerslider/Block/Adminhtml/Lightboxslider/Edit/Tab/Form.php +48 -0
  6. app/code/community/Mks/Bannerslider/Block/Adminhtml/Lightboxslider/Edit/Tabs.php +21 -0
  7. app/code/community/Mks/Bannerslider/Block/Adminhtml/Lightboxslider/Grid.php +94 -0
  8. app/code/community/Mks/Bannerslider/Block/Index.php +8 -0
  9. app/code/community/Mks/Bannerslider/Helper/Data.php +5 -0
  10. app/code/community/Mks/Bannerslider/Model/Lightboxslider.php +12 -0
  11. app/code/community/Mks/Bannerslider/Model/Mysql4/Lightboxslider.php +8 -0
  12. app/code/community/Mks/Bannerslider/Model/Mysql4/Lightboxslider/Collection.php +12 -0
  13. app/code/community/Mks/Bannerslider/controllers/Adminhtml/BannersliderbackendController.php +10 -0
  14. app/code/community/Mks/Bannerslider/controllers/Adminhtml/LightboxsliderController.php +209 -0
  15. app/code/community/Mks/Bannerslider/controllers/IndexController.php +22 -0
  16. app/code/community/Mks/Bannerslider/etc/config.xml +134 -0
  17. app/code/community/Mks/Bannerslider/sql/bannerslider_setup/mysql4-install-1.1.2.php +19 -0
  18. app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/Bannerslider.php +17 -0
  19. app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/Bannerslider/Edit.php +44 -0
  20. app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/Bannerslider/Edit/Form.php +17 -0
  21. app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/Bannerslider/Edit/Tab/Form.php +43 -0
  22. app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/Bannerslider/Edit/Tabs.php +21 -0
  23. app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/Bannerslider/Grid.php +86 -0
  24. app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/Responsivebannersliderbackend.php +5 -0
  25. app/code/community/Mks/Responsivebannerslider/Block/Index.php +8 -0
  26. app/code/community/Mks/Responsivebannerslider/Helper/Data.php +5 -0
  27. app/code/community/Mks/Responsivebannerslider/Model/Bannerslider.php +12 -0
  28. app/code/community/Mks/Responsivebannerslider/Model/Mysql4/Bannerslider.php +8 -0
  29. app/code/community/Mks/Responsivebannerslider/Model/Mysql4/Bannerslider/Collection.php +12 -0
  30. app/code/community/Mks/Responsivebannerslider/controllers/Adminhtml/BannersliderController.php +209 -0
  31. app/code/community/Mks/Responsivebannerslider/controllers/Adminhtml/ResponsivebannersliderbackendController.php +10 -0
  32. app/code/community/Mks/Responsivebannerslider/controllers/IndexController.php +22 -0
  33. app/code/community/Mks/Responsivebannerslider/etc/config.xml +134 -0
  34. app/code/community/Mks/Responsivebannerslider/sql/responsivebannerslider_setup/mysql4-install-1.1.1.php +18 -0
  35. app/design/frontend/base/default/template/storelocator/config.phtml +21 -18
  36. package.xml +4 -4
app/code/community/Mks/Bannerslider/Block/Adminhtml/Bannersliderbackend.php ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
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 ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
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 ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ <?php
2
+ class Mks_Bannerslider_Helper_Data extends Mage_Core_Helper_Abstract
3
+ {
4
+ }
5
+
app/code/community/Mks/Bannerslider/Model/Lightboxslider.php ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
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 ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
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 ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
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 ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
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 ADDED
@@ -0,0 +1,209 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 ADDED
@@ -0,0 +1,134 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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/Responsivebannersliderbackend.php ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ <?php
2
+
3
+ class Mks_Responsivebannerslider_Block_Adminhtml_Responsivebannersliderbackend extends Mage_Adminhtml_Block_Template {
4
+
5
+ }
app/code/community/Mks/Responsivebannerslider/Block/Index.php ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Mks_Responsivebannerslider_Block_Index extends Mage_Core_Block_Template{
3
+
4
+
5
+
6
+
7
+
8
+ }
app/code/community/Mks/Responsivebannerslider/Helper/Data.php ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ <?php
2
+ class Mks_Responsivebannerslider_Helper_Data extends Mage_Core_Helper_Abstract
3
+ {
4
+ }
5
+
app/code/community/Mks/Responsivebannerslider/Model/Bannerslider.php ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
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 ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
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 ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
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/controllers/Adminhtml/BannersliderController.php ADDED
@@ -0,0 +1,209 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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/ResponsivebannersliderbackendController.php ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Mks_Responsivebannerslider_Adminhtml_ResponsivebannersliderbackendController 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/Responsivebannerslider/controllers/IndexController.php ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Mks_Responsivebannerslider_IndexController extends Mage_Core_Controller_Front_Action{
3
+ public function IndexAction() {
4
+
5
+ $this->loadLayout();
6
+ $this->getLayout()->getBlock("head")->setTitle($this->__("banner slider"));
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("banner slider", array(
15
+ "label" => $this->__("banner slider"),
16
+ "title" => $this->__("banner slider")
17
+ ));
18
+
19
+ $this->renderLayout();
20
+
21
+ }
22
+ }
app/code/community/Mks/Responsivebannerslider/etc/config.xml ADDED
@@ -0,0 +1,134 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Mks_Responsivebannerslider>
5
+ <version>1.1.1</version>
6
+ </Mks_Responsivebannerslider>
7
+ </modules>
8
+ <frontend>
9
+ <routers>
10
+ <responsivebannerslider>
11
+ <use>standard</use>
12
+ <args>
13
+ <module>Mks_Responsivebannerslider</module>
14
+ <frontName>responsivebannerslider</frontName>
15
+ </args>
16
+ </responsivebannerslider>
17
+ </routers>
18
+ <layout>
19
+ <updates>
20
+ <responsivebannerslider>
21
+ <file>responsivebannerslider.xml</file>
22
+ </responsivebannerslider>
23
+ </updates>
24
+ </layout>
25
+ </frontend>
26
+ <global>
27
+ <helpers>
28
+ <responsivebannerslider>
29
+ <class>Mks_Responsivebannerslider_Helper</class>
30
+ </responsivebannerslider>
31
+ </helpers>
32
+ <blocks>
33
+ <responsivebannerslider>
34
+ <class>Mks_Responsivebannerslider_Block</class>
35
+ </responsivebannerslider>
36
+ </blocks>
37
+ <models>
38
+ <responsivebannerslider>
39
+ <class>Mks_Responsivebannerslider_Model</class>
40
+ <resourceModel>responsivebannerslider_mysql4</resourceModel>
41
+ </responsivebannerslider>
42
+ <responsivebannerslider_mysql4>
43
+ <class>Mks_Responsivebannerslider_Model_Mysql4</class>
44
+ <entities>
45
+ <bannerslider>
46
+ <table>mksresponsivebannerslider</table>
47
+ </bannerslider>
48
+ </entities>
49
+ </responsivebannerslider_mysql4>
50
+ </models>
51
+ <resources>
52
+ <responsivebannerslider_setup>
53
+ <setup>
54
+ <module>Mks_Responsivebannerslider</module>
55
+ </setup>
56
+ <connection>
57
+ <use>core_setup</use>
58
+ </connection>
59
+ </responsivebannerslider_setup>
60
+ <responsivebannerslider_write>
61
+ <connection>
62
+ <use>core_write</use>
63
+ </connection>
64
+ </responsivebannerslider_write>
65
+ <responsivebannerslider_read>
66
+ <connection>
67
+ <use>core_read</use>
68
+ </connection>
69
+ </responsivebannerslider_read>
70
+ </resources>
71
+ </global>
72
+ <admin>
73
+ <routers>
74
+ <responsivebannerslider>
75
+ <use>admin</use>
76
+ <args>
77
+ <module>Mks_Responsivebannerslider</module>
78
+ <frontName>responsivebannerslider</frontName>
79
+ </args>
80
+ </responsivebannerslider>
81
+ </routers>
82
+ </admin>
83
+ <adminhtml>
84
+ <menu>
85
+ <responsivebannerslider module="responsivebannerslider">
86
+ <title>Responsivebannerslider</title>
87
+ <sort_order>100</sort_order>
88
+ <children>
89
+ <responsivebannersliderbackend module="responsivebannerslider">
90
+ <title>About Us</title>
91
+ <sort_order>0</sort_order>
92
+ <action>responsivebannerslider/adminhtml_responsivebannersliderbackend</action>
93
+ </responsivebannersliderbackend>
94
+ <bannerslider module="responsivebannerslider">
95
+ <title>Manage Bannerslider</title>
96
+ <sort_order>0</sort_order>
97
+ <action>responsivebannerslider/adminhtml_bannerslider</action>
98
+ </bannerslider>
99
+ </children>
100
+ </responsivebannerslider>
101
+ </menu>
102
+ <acl>
103
+ <resources>
104
+ <all>
105
+ <title>Allow Everything</title>
106
+ </all>
107
+ <admin>
108
+ <children>
109
+ <responsivebannerslider translate="title" module="responsivebannerslider">
110
+ <title>Responsivebannerslider</title>
111
+ <sort_order>1000</sort_order>
112
+ <children>
113
+ <responsivebannersliderbackend translate="title">
114
+ <title>About Us</title>
115
+ </responsivebannersliderbackend>
116
+ <bannerslider translate="title">
117
+ <title>Manage Bannerslider</title>
118
+ <sort_order>0</sort_order>
119
+ </bannerslider>
120
+ </children>
121
+ </responsivebannerslider>
122
+ </children>
123
+ </admin>
124
+ </resources>
125
+ </acl>
126
+ <layout>
127
+ <updates>
128
+ <responsivebannerslider>
129
+ <file>responsivebannerslider.xml</file>
130
+ </responsivebannerslider>
131
+ </updates>
132
+ </layout>
133
+ </adminhtml>
134
+ </config>
app/code/community/Mks/Responsivebannerslider/sql/responsivebannerslider_setup/mysql4-install-1.1.1.php ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
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');
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/frontend/base/default/template/storelocator/config.phtml CHANGED
@@ -16,32 +16,35 @@ $addressx = $row1['address'];
16
 
17
  function map_xxx(x,y,z)
18
  {
 
 
19
  var latitude = x; // parseFloat("26.850883100000000000");
20
  var longitude = y; // parseFloat("75.824783600000040000");
21
  var address = z; // "Rohini, New Delhi, Delhi, India";
 
 
22
  var latlngPos = new google.maps.LatLng(latitude,longitude);
23
 
24
  // Set up options for the Google map
25
- var myOptions = {
26
- zoom: 10,
 
 
 
 
 
 
 
27
  center: latlngPos,
28
- mapTypeId: google.maps.MapTypeId.ROADMAP,
29
- zoomControlOptions: true,
30
- zoomControlOptions: {
31
- style: google.maps.ZoomControlStyle.LARGE
32
- }
33
- };
34
- // Define the map
35
- map = new google.maps.Map(document.getElementById("map"), myOptions);
36
- // Add the marker
37
- var marker = new google.maps.Marker({
38
- position: latlngPos,
39
- map: map,
40
- draggable: false,
41
- title: address
42
- });
43
 
44
- };
45
  </script>
46
 
47
  <body onload="map_xxx('<?php echo $latitudex ?>','<?php echo $longitudex; ?>','<?php echo $addressx; ?>');">
16
 
17
  function map_xxx(x,y,z)
18
  {
19
+
20
+ var miles = 3;
21
  var latitude = x; // parseFloat("26.850883100000000000");
22
  var longitude = y; // parseFloat("75.824783600000040000");
23
  var address = z; // "Rohini, New Delhi, Delhi, India";
24
+ var radius = 200; // "Rohini, New Delhi, Delhi, India";
25
+
26
  var latlngPos = new google.maps.LatLng(latitude,longitude);
27
 
28
  // Set up options for the Google map
29
+ var map = new google.maps.Map(document.getElementById("map"), {
30
+ zoom: 14,
31
+
32
+ center: latlngPos,
33
+ mapTypeId: google.maps.MapTypeId.ROADMAP
34
+ });
35
+ // draw circle
36
+
37
+ var circle = new google.maps.Circle({
38
  center: latlngPos,
39
+ radius: miles *radius,
40
+ fillColor: "#ff69b4",
41
+ fillOpacity: 0.2,
42
+ strokeOpacity: 0.0,
43
+ strokeWeight: 0,
44
+ map: map
45
+ });
 
 
 
 
 
 
 
 
46
 
47
+ } google.maps.event.addDomListener(window, 'load', initialize);
48
  </script>
49
 
50
  <body onload="map_xxx('<?php echo $latitudex ?>','<?php echo $longitudex; ?>','<?php echo $addressx; ?>');">
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Mks_Storelocator</name>
4
- <version>1.1.2</version>
5
  <stability>stable</stability>
6
  <license>OSL</license>
7
  <channel>community</channel>
@@ -10,9 +10,9 @@
10
  <description>Store Locator show multi store. store locator increase your store sell. famous store with store locator.</description>
11
  <notes>Fix Issue :- Add Table prefix. Auto default Store information load. easy to install.</notes>
12
  <authors><author><name>mukesh kumar saini</name><user>mukeshbagri</user><email>in.mukeshsaini@gmail.com</email></author></authors>
13
- <date>2014-02-21</date>
14
- <time>11:19:14</time>
15
- <contents><target name="mageetc"><dir name="modules"><file name="Mks_Storelocator.xml" hash="a6f6119398e1ac1d5d007d16f0b1a9c9"/></dir></target><target name="magecommunity"><dir name="Mks"><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></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="storelocator.xml" hash="c5ce52ab3f3f3d71dbb902134642e2dc"/></dir><dir name="template"><dir name="storelocator"><file name="storelocatorbackend.phtml" hash="c78b53b275cfeff357c7720666f77295"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="storelocator.xml" hash="db01f1e299e94c6a4d633a1d2458f343"/></dir><dir name="template"><dir name="storelocator"><file name="config.phtml" hash="0ce7cd1303320ca4f2f9d8007b0d3a6a"/><file name="index.phtml" hash="22b7f355417788b5468d99200f6dda13"/></dir></dir></dir></dir></dir></target><target name="magemedia"><dir name="storelocator"><dir name="storelocator"><file name="map1.jpg" hash="a27ada4df9c7106527e4db655c7d15ed"/><file name="map2.jpg" hash="d632084de7a0e99a8eeb4a3720be3066"/><file name="map3.jpg" hash="bd06793b455379880266505f5ea49b81"/></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Mks_Storelocator</name>
4
+ <version>1.1.3</version>
5
  <stability>stable</stability>
6
  <license>OSL</license>
7
  <channel>community</channel>
10
  <description>Store Locator show multi store. store locator increase your store sell. famous store with store locator.</description>
11
  <notes>Fix Issue :- Add Table prefix. Auto default Store information load. easy to install.</notes>
12
  <authors><author><name>mukesh kumar saini</name><user>mukeshbagri</user><email>in.mukeshsaini@gmail.com</email></author></authors>
13
+ <date>2014-03-11</date>
14
+ <time>10:36:37</time>
15
+ <contents><target name="mageetc"><dir name="modules"><file name="Mks_Storelocator.xml" hash="a6f6119398e1ac1d5d007d16f0b1a9c9"/></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"/><file name="Responsivebannersliderbackend.php" hash="492c6c1c9897c51b987a1acadcc42a5c"/></dir><file name="Index.php" hash="c5f0965e5010398c0f65cf1362f3b136"/></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></dir><dir name="controllers"><dir name="Adminhtml"><file name="BannersliderController.php" hash="d54d8c12a9deab4dd6cecbe17db76ad4"/><file name="ResponsivebannersliderbackendController.php" hash="f095780b42f66f229d8bb76b69bb8f08"/></dir><file name="IndexController.php" hash="617399f39b6bdb8a88cd939405f4a455"/></dir><dir name="etc"><file name="config.xml" hash="1cd622d64348032aefde23aa6e871184"/></dir><dir name="sql"><dir name="responsivebannerslider_setup"><file name="mysql4-install-1.1.1.php" hash="13ebc2f67330bee2a19714beebf4907b"/></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></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="storelocator.xml" hash="c5ce52ab3f3f3d71dbb902134642e2dc"/></dir><dir name="template"><dir name="storelocator"><file name="storelocatorbackend.phtml" hash="c78b53b275cfeff357c7720666f77295"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="storelocator.xml" hash="db01f1e299e94c6a4d633a1d2458f343"/></dir><dir name="template"><dir name="storelocator"><file name="config.phtml" hash="a3779bc0ab89278d943c3f17f0beeaaf"/><file name="index.phtml" hash="22b7f355417788b5468d99200f6dda13"/></dir></dir></dir></dir></dir></target><target name="magemedia"><dir name="storelocator"><dir name="storelocator"><file name="map1.jpg" hash="a27ada4df9c7106527e4db655c7d15ed"/><file name="map2.jpg" hash="d632084de7a0e99a8eeb4a3720be3066"/><file name="map3.jpg" hash="bd06793b455379880266505f5ea49b81"/></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>