Mks_Bannerslider - Version 8.1.2

Version Notes

New Freature :-
1. new configuration setting.
2. Auto load data.
3. One click installation.
4. user friendly.

Download this release

Release Info

Developer mukesh kumar saini
Extension Mks_Bannerslider
Version 8.1.2
Comparing to
See all releases


Code changes from version 8.1.1 to 8.1.2

Files changed (41) hide show
  1. app/code/community/Mks/Bannerslider/etc/system.xml +2 -2
  2. app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/Responsivebanner.php +17 -0
  3. app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/Responsivebanner/Edit.php +44 -0
  4. app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/Responsivebanner/Edit/Form.php +17 -0
  5. app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/Responsivebanner/Edit/Tab/Form.php +48 -0
  6. app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/Responsivebanner/Edit/Tabs.php +21 -0
  7. app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/Responsivebanner/Grid.php +71 -0
  8. app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/Responsivebannersliderbackend.php +5 -0
  9. app/code/community/Mks/Responsivebannerslider/Block/Index.php +32 -0
  10. app/code/community/Mks/Responsivebannerslider/Helper/Data.php +5 -0
  11. app/code/community/Mks/Responsivebannerslider/Model/Mysql4/Responsivebanner.php +8 -0
  12. app/code/community/Mks/Responsivebannerslider/Model/Mysql4/Responsivebanner/Collection.php +12 -0
  13. app/code/community/Mks/Responsivebannerslider/Model/Responsivebanner.php +12 -0
  14. app/code/community/Mks/Responsivebannerslider/controllers/Adminhtml/ResponsivebannerController.php +209 -0
  15. app/code/community/Mks/Responsivebannerslider/controllers/Adminhtml/ResponsivebannersliderbackendController.php +10 -0
  16. app/code/community/Mks/Responsivebannerslider/controllers/Adminhtml/Rss/RssController.php +37 -0
  17. app/code/community/Mks/Responsivebannerslider/controllers/IndexController.php +22 -0
  18. app/code/community/Mks/Responsivebannerslider/etc/adminhtml.xml +23 -0
  19. app/code/community/Mks/Responsivebannerslider/etc/config.xml +134 -0
  20. app/code/community/Mks/Responsivebannerslider/etc/system.xml +78 -0
  21. app/code/community/Mks/Responsivebannerslider/sql/responsivebannerslider_setup/mysql4-install-8.1.1.php +17 -0
  22. app/code/community/Mks/Storelocator/Block/Adminhtml/Storelocator.php +17 -0
  23. app/code/community/Mks/Storelocator/Block/Adminhtml/Storelocator/Edit.php +44 -0
  24. app/code/community/Mks/Storelocator/Block/Adminhtml/Storelocator/Edit/Form.php +17 -0
  25. app/code/community/Mks/Storelocator/Block/Adminhtml/Storelocator/Edit/Tab/Form.php +111 -0
  26. app/code/community/Mks/Storelocator/Block/Adminhtml/Storelocator/Edit/Tabs.php +21 -0
  27. app/code/community/Mks/Storelocator/Block/Adminhtml/Storelocator/Grid.php +130 -0
  28. app/code/community/Mks/Storelocator/Block/Adminhtml/Storelocatorbackend.php +5 -0
  29. app/code/community/Mks/Storelocator/Block/Index.php +60 -0
  30. app/code/community/Mks/Storelocator/Helper/Data.php +5 -0
  31. app/code/community/Mks/Storelocator/Model/Mysql4/Storelocator.php +8 -0
  32. app/code/community/Mks/Storelocator/Model/Mysql4/Storelocator/Collection.php +12 -0
  33. app/code/community/Mks/Storelocator/Model/Storelocator.php +12 -0
  34. app/code/community/Mks/Storelocator/controllers/Adminhtml/StorelocatorController.php +209 -0
  35. app/code/community/Mks/Storelocator/controllers/Adminhtml/StorelocatorbackendController.php +10 -0
  36. app/code/community/Mks/Storelocator/controllers/IndexController.php +22 -0
  37. app/code/community/Mks/Storelocator/etc/adminhtml.xml +23 -0
  38. app/code/community/Mks/Storelocator/etc/config.xml +134 -0
  39. app/code/community/Mks/Storelocator/etc/system.xml +159 -0
  40. app/code/community/Mks/Storelocator/sql/storelocator_setup/mysql4-install-8.1.1.php +21 -0
  41. package.xml +9 -5
app/code/community/Mks/Bannerslider/etc/system.xml CHANGED
@@ -40,7 +40,7 @@
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>5,10,15,20,25,30.....Default (15)</comment>
44
  </paggingstart>
45
  <rowitem translate="label">
46
  <label>Number Of Row item</label>
@@ -49,7 +49,7 @@
49
  <show_in_default>1</show_in_default>
50
  <show_in_website>1</show_in_website>
51
  <show_in_store>1</show_in_store>
52
- <comment>3,4,5,6,7.......Default (5)</comment>
53
  </rowitem>
54
  </fields>
55
  </imagegallerygroup>
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>5,10,15,20,25,30.....Default (12)</comment>
44
  </paggingstart>
45
  <rowitem translate="label">
46
  <label>Number Of Row item</label>
49
  <show_in_default>1</show_in_default>
50
  <show_in_website>1</show_in_website>
51
  <show_in_store>1</show_in_store>
52
+ <comment>3,4,5,6,7.......Default (4)</comment>
53
  </rowitem>
54
  </fields>
55
  </imagegallerygroup>
app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/Responsivebanner.php ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+
15
+ }
16
+
17
+ }
app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/Responsivebanner/Edit.php ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Mks_Responsivebannerslider_Block_Adminhtml_Responsivebanner_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_responsivebanner";
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("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{
39
+
40
+ return Mage::helper("responsivebannerslider")->__("Add Item");
41
+
42
+ }
43
+ }
44
+ }
app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/Responsivebanner/Edit/Form.php ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Mks_Responsivebannerslider_Block_Adminhtml_Responsivebanner_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/Responsivebanner/Edit/Tab/Form.php ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Mks_Responsivebannerslider_Block_Adminhtml_Responsivebanner_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')->__('Impage'),
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("url", "text", array(
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
+ }
48
+ }
app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/Responsivebanner/Edit/Tabs.php ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ }
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_responsivebanner_edit_tab_form")->toHtml(),
17
+ ));
18
+ return parent::_beforeToHtml();
19
+ }
20
+
21
+ }
app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/Responsivebanner/Grid.php ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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);
13
+ }
14
+
15
+ protected function _prepareCollection()
16
+ {
17
+ $collection = Mage::getModel("responsivebannerslider/responsivebanner")->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("url", array(
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
+
47
+ return parent::_prepareColumns();
48
+ }
49
+
50
+ public function getRowUrl($row)
51
+ {
52
+ return $this->getUrl("*/*/edit", array("id" => $row->getId()));
53
+ }
54
+
55
+
56
+
57
+ protected function _prepareMassaction()
58
+ {
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/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,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Mks_Responsivebannerslider_Block_Index extends Mage_Core_Block_Template{
3
+
4
+
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/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/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/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/controllers/Adminhtml/ResponsivebannerController.php ADDED
@@ -0,0 +1,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();
17
+ }
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 {
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->__("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
+
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/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);
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/responsivebanner/'.$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/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()));
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")->setResponsivebannerData($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/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("*/*/");
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/responsivebanner");
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 = 'responsivebanner.csv';
197
+ $grid = $this->getLayout()->createBlock('responsivebannerslider/adminhtml_responsivebanner_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 = '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/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/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 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->__("Mks_Responsivebannerslider"));
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("mks_responsivebannerslider", array(
15
+ "label" => $this->__("Mks_Responsivebannerslider"),
16
+ "title" => $this->__("Mks_Responsivebannerslider")
17
+ ));
18
+
19
+ $this->renderLayout();
20
+
21
+ }
22
+ }
app/code/community/Mks/Responsivebannerslider/etc/adminhtml.xml ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <acl>
4
+ <resources>
5
+ <admin>
6
+ <children>
7
+ <system>
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>
18
+ </system>
19
+ </children>
20
+ </admin>
21
+ </resources>
22
+ </acl>
23
+ </config>
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>8.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
+ <responsivebanner>
46
+ <table>mksresponsivebannerslider</table>
47
+ </responsivebanner>
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
+ <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>
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
+ <responsivebanner translate="title">
117
+ <title>Manage Responsivebanner</title>
118
+ <sort_order>0</sort_order>
119
+ </responsivebanner>
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/etc/system.xml ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>
23
+ <show_in_default>1</show_in_default>
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-8.1.1.php ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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),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');
9
+
10
+ SQLTEXT;
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/Storelocator/Block/Adminhtml/Storelocator.php ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 ADDED
@@ -0,0 +1,111 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "class" => "required-entry",
15
+ "required" => true,
16
+ "name" => "name",
17
+ ));
18
+
19
+ $fieldset->addField("address", "textarea", array(
20
+ "label" => Mage::helper("storelocator")->__("Address"),
21
+ "name" => "address",
22
+ ));
23
+
24
+ $fieldset->addField("zipcode", "text", array(
25
+ "label" => Mage::helper("storelocator")->__("Zipcode"),
26
+ "name" => "zipcode",
27
+ ));
28
+
29
+ $fieldset->addField("city", "text", array(
30
+ "label" => Mage::helper("storelocator")->__("City"),
31
+ "name" => "city",
32
+ ));
33
+
34
+ $fieldset->addField("country_id", "text", array(
35
+ "label" => Mage::helper("storelocator")->__("Country"),
36
+ "name" => "country_id",
37
+ ));
38
+
39
+ $fieldset->addField("phone", "text", array(
40
+ "label" => Mage::helper("storelocator")->__("Phone"),
41
+ "name" => "phone",
42
+ ));
43
+
44
+ $fieldset->addField("fax", "text", array(
45
+ "label" => Mage::helper("storelocator")->__("Fax"),
46
+ "name" => "fax",
47
+ ));
48
+
49
+ $fieldset->addField("description", "textarea", array(
50
+ "label" => Mage::helper("storelocator")->__("Description"),
51
+ "name" => "description",
52
+ ));
53
+
54
+ $fieldset->addField("store_url", "text", array(
55
+ "label" => Mage::helper("storelocator")->__("Store Url"),
56
+ "name" => "store_url",
57
+ ));
58
+
59
+ $fieldset->addField("email", "text", array(
60
+ "label" => Mage::helper("storelocator")->__("Email"),
61
+ "name" => "email",
62
+ ));
63
+
64
+ $fieldset->addField("tradinghours", "text", array(
65
+ "label" => Mage::helper("storelocator")->__("Trading Hours"),
66
+ "name" => "tradinghours",
67
+ ));
68
+
69
+ $fieldset->addField("radius", "text", array(
70
+ "label" => Mage::helper("storelocator")->__("Radius"),
71
+ "class" => "required-entry",
72
+ "required" => true,
73
+ "name" => "radius",
74
+ ));
75
+
76
+ $fieldset->addField('image', 'image', array(
77
+ 'label' => Mage::helper('storelocator')->__('Store Image'),
78
+ 'name' => 'image',
79
+ 'note' => '(*.jpg, *.png, *.gif)',
80
+ ));
81
+ $fieldset->addField("lat", "text", array(
82
+ "label" => Mage::helper("storelocator")->__("Latitude"),
83
+ "class" => "required-entry",
84
+ "required" => true,
85
+ "name" => "lat",
86
+ ));
87
+
88
+ $fieldset->addField("longt", "text", array(
89
+ "label" => Mage::helper("storelocator")->__("Longitude"),
90
+ "class" => "required-entry",
91
+ "required" => true,
92
+ "name" => "longt",
93
+ ));
94
+
95
+ $fieldset->addField('status', 'select', array(
96
+ 'label' => Mage::helper('storelocator')->__('Status'),
97
+ 'values' => Mks_Storelocator_Block_Adminhtml_Storelocator_Grid::getValueArray15(),
98
+ 'name' => 'status',
99
+ ));
100
+
101
+ if (Mage::getSingleton("adminhtml/session")->getStorelocatorData())
102
+ {
103
+ $form->setValues(Mage::getSingleton("adminhtml/session")->getStorelocatorData());
104
+ Mage::getSingleton("adminhtml/session")->setStorelocatorData(null);
105
+ }
106
+ elseif(Mage::registry("storelocator_data")) {
107
+ $form->setValues(Mage::registry("storelocator_data")->getData());
108
+ }
109
+ return parent::_prepareForm();
110
+ }
111
+ }
app/code/community/Mks/Storelocator/Block/Adminhtml/Storelocator/Edit/Tabs.php ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 ADDED
@@ -0,0 +1,130 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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("DESC");
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"),
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("email", array(
60
+ "header" => Mage::helper("storelocator")->__("Email"),
61
+ "index" => "email",
62
+ ));
63
+ $this->addColumn("tradinghours", array(
64
+ "header" => Mage::helper("storelocator")->__("Trading Hours"),
65
+ "index" => "tradinghours",
66
+ ));
67
+ $this->addColumn("radius", array(
68
+ "header" => Mage::helper("storelocator")->__("Radius"),
69
+ "index" => "radius",
70
+ ));
71
+ $this->addColumn("lat", array(
72
+ "header" => Mage::helper("storelocator")->__("Latitude"),
73
+ "index" => "lat",
74
+ ));
75
+ $this->addColumn("longt", array(
76
+ "header" => Mage::helper("storelocator")->__("Longitude"),
77
+ "index" => "longt",
78
+ ));
79
+ $this->addColumn('status', array(
80
+ 'header' => Mage::helper('storelocator')->__('Status'),
81
+ 'index' => 'status',
82
+ 'type' => 'options',
83
+ 'options'=>Mks_Storelocator_Block_Adminhtml_Storelocator_Grid::getOptionArray15(),
84
+ ));
85
+
86
+ $this->addExportType('*/*/exportCsv', Mage::helper('sales')->__('CSV'));
87
+ $this->addExportType('*/*/exportExcel', Mage::helper('sales')->__('Excel'));
88
+
89
+ return parent::_prepareColumns();
90
+ }
91
+
92
+ public function getRowUrl($row)
93
+ {
94
+ return $this->getUrl("*/*/edit", array("id" => $row->getId()));
95
+ }
96
+
97
+
98
+
99
+ protected function _prepareMassaction()
100
+ {
101
+ $this->setMassactionIdField('id');
102
+ $this->getMassactionBlock()->setFormFieldName('ids');
103
+ $this->getMassactionBlock()->setUseSelectAll(true);
104
+ $this->getMassactionBlock()->addItem('remove_storelocator', array(
105
+ 'label'=> Mage::helper('storelocator')->__('Remove Storelocator'),
106
+ 'url' => $this->getUrl('*/adminhtml_storelocator/massRemove'),
107
+ 'confirm' => Mage::helper('storelocator')->__('Are you sure?')
108
+ ));
109
+ return $this;
110
+ }
111
+
112
+ static public function getOptionArray15()
113
+ {
114
+ $data_array=array();
115
+ $data_array[0]='Enable';
116
+ $data_array[1]='Disasble';
117
+ return($data_array);
118
+ }
119
+ static public function getValueArray15()
120
+ {
121
+ $data_array=array();
122
+ foreach(Mks_Storelocator_Block_Adminhtml_Storelocator_Grid::getOptionArray15() as $k=>$v){
123
+ $data_array[]=array('value'=>$k,'label'=>$v);
124
+ }
125
+ return($data_array);
126
+
127
+ }
128
+
129
+
130
+ }
app/code/community/Mks/Storelocator/Block/Adminhtml/Storelocatorbackend.php ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
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 ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Mks_Storelocator_Block_Index extends Mage_Core_Block_Template{
3
+
4
+
5
+
6
+ public function getStorelocatorEnabled()
7
+ {
8
+ return Mage::getStoreConfig('storelocatorcode/storeloactorsetting/enable',Mage::app()->getStore());
9
+ }
10
+ public function getStorelocatorName()
11
+ {
12
+ return Mage::getStoreConfig('storelocatorcode/storeloactorfields/name',Mage::app()->getStore());
13
+ }
14
+ public function getStorelocatorAddress()
15
+ {
16
+ return Mage::getStoreConfig('storelocatorcode/storeloactorfields/address',Mage::app()->getStore());
17
+ }
18
+ public function getStorelocatorZipcode()
19
+ {
20
+ return Mage::getStoreConfig('storelocatorcode/storeloactorfields/zipcode',Mage::app()->getStore());
21
+ }
22
+ public function getStorelocatorCity()
23
+ {
24
+ return Mage::getStoreConfig('storelocatorcode/storeloactorfields/city',Mage::app()->getStore());
25
+ }
26
+ public function getStorelocatorCountry()
27
+ {
28
+ return Mage::getStoreConfig('storelocatorcode/storeloactorfields/Country',Mage::app()->getStore());
29
+ }
30
+ public function getStorelocatorPhone()
31
+ {
32
+ return Mage::getStoreConfig('storelocatorcode/storeloactorfields/phone',Mage::app()->getStore());
33
+ }
34
+ public function getStorelocatorFax()
35
+ {
36
+ return Mage::getStoreConfig('storelocatorcode/storeloactorfields/fax',Mage::app()->getStore());
37
+ }
38
+ public function getStorelocatorDescription()
39
+ {
40
+ return Mage::getStoreConfig('storelocatorcode/storeloactorfields/description',Mage::app()->getStore());
41
+ }
42
+ public function getStorelocatorStoreurl()
43
+ {
44
+ return Mage::getStoreConfig('storelocatorcode/storeloactorfields/storeurl',Mage::app()->getStore());
45
+ }
46
+ public function getStorelocatorEmail()
47
+ {
48
+ return Mage::getStoreConfig('storelocatorcode/storeloactorfields/email',Mage::app()->getStore());
49
+ }
50
+ public function getStorelocatorTradinghours()
51
+ {
52
+ return Mage::getStoreConfig('storelocatorcode/storeloactorfields/tradinghours',Mage::app()->getStore());
53
+ }
54
+ public function getStorelocatorImage()
55
+ {
56
+ return Mage::getStoreConfig('storelocatorcode/storeloactorfields/image',Mage::app()->getStore());
57
+ }
58
+
59
+
60
+ }
app/code/community/Mks/Storelocator/Helper/Data.php ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
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 ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
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 ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
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 ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
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 ADDED
@@ -0,0 +1,209 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+
129
+ $model = Mage::getModel("storelocator/storelocator")
130
+ ->addData($post_data)
131
+ ->setId($this->getRequest()->getParam("id"))
132
+ ->save();
133
+
134
+ Mage::getSingleton("adminhtml/session")->addSuccess(Mage::helper("adminhtml")->__("Storelocator was successfully saved"));
135
+ Mage::getSingleton("adminhtml/session")->setStorelocatorData(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")->setStorelocatorData($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("storelocator/storelocator");
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("storelocator/storelocator");
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 = 'storelocator.csv';
197
+ $grid = $this->getLayout()->createBlock('storelocator/adminhtml_storelocator_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 = 'storelocator.xml';
206
+ $grid = $this->getLayout()->createBlock('storelocator/adminhtml_storelocator_grid');
207
+ $this->_prepareDownloadResponse($fileName, $grid->getExcelFile($fileName));
208
+ }
209
+ }
app/code/community/Mks/Storelocator/controllers/Adminhtml/StorelocatorbackendController.php ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
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 ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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->__("Store locator"));
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("store locator", array(
15
+ "label" => $this->__("Store locator"),
16
+ "title" => $this->__("Store locator")
17
+ ));
18
+
19
+ $this->renderLayout();
20
+
21
+ }
22
+ }
app/code/community/Mks/Storelocator/etc/adminhtml.xml ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <acl>
4
+ <resources>
5
+ <admin>
6
+ <children>
7
+ <system>
8
+ <children>
9
+ <config>
10
+ <children>
11
+ <storelocatorcode translate="title" module="storelocator">
12
+ <title>General Setting Section</title>
13
+ <sort_order>0</sort_order>
14
+ </storelocatorcode>
15
+ </children>
16
+ </config>
17
+ </children>
18
+ </system>
19
+ </children>
20
+ </admin>
21
+ </resources>
22
+ </acl>
23
+ </config>
app/code/community/Mks/Storelocator/etc/config.xml ADDED
@@ -0,0 +1,134 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Mks_Storelocator>
5
+ <version>8.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/etc/system.xml ADDED
@@ -0,0 +1,159 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <tabs>
4
+ <storeloactortab translate="label" module="storelocator">
5
+ <label>Mks Store Locator</label>
6
+ <sort_order>0</sort_order>
7
+ </storeloactortab>
8
+ </tabs>
9
+ <sections>
10
+ <storelocatorcode translate="label" module="storelocator">
11
+ <label>General Setting</label>
12
+ <tab>storeloactortab</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
+ <storeloactorfields translate="label">
20
+ <label>Frontend end Fileds to show</label>
21
+ <frontend_type>text</frontend_type>
22
+ <sort_order>1</sort_order>
23
+ <show_in_default>1</show_in_default>
24
+ <show_in_website>1</show_in_website>
25
+ <show_in_store>1</show_in_store>
26
+ <fields>
27
+ <name translate="label">
28
+ <label>Name</label>
29
+ <frontend_type>select</frontend_type>
30
+ <source_model>adminhtml/system_config_source_yesno</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
+ </name>
36
+ <address translate="label">
37
+ <label>Address</label>
38
+ <frontend_type>select</frontend_type>
39
+ <source_model>adminhtml/system_config_source_yesno</source_model>
40
+ <sort_order>1</sort_order>
41
+ <show_in_default>1</show_in_default>
42
+ <show_in_website>1</show_in_website>
43
+ <show_in_store>1</show_in_store>
44
+ </address>
45
+ <zipcode translate="label">
46
+ <label>Zipcode</label>
47
+ <frontend_type>select</frontend_type>
48
+ <source_model>adminhtml/system_config_source_yesno</source_model>
49
+ <sort_order>2</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
+ </zipcode>
54
+ <city translate="label">
55
+ <label>City</label>
56
+ <frontend_type>select</frontend_type>
57
+ <source_model>adminhtml/system_config_source_yesno</source_model>
58
+ <sort_order>3</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
+ </city>
63
+ <country translate="label">
64
+ <label>Country</label>
65
+ <frontend_type>select</frontend_type>
66
+ <source_model>adminhtml/system_config_source_yesno</source_model>
67
+ <sort_order>4</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
+ </country>
72
+ <phone translate="label">
73
+ <label>Phone</label>
74
+ <frontend_type>select</frontend_type>
75
+ <source_model>adminhtml/system_config_source_yesno</source_model>
76
+ <sort_order>5</sort_order>
77
+ <show_in_default>1</show_in_default>
78
+ <show_in_website>1</show_in_website>
79
+ <show_in_store>1</show_in_store>
80
+ </phone>
81
+ <fax translate="label">
82
+ <label>Fax</label>
83
+ <frontend_type>select</frontend_type>
84
+ <source_model>adminhtml/system_config_source_yesno</source_model>
85
+ <sort_order>6</sort_order>
86
+ <show_in_default>1</show_in_default>
87
+ <show_in_website>1</show_in_website>
88
+ <show_in_store>1</show_in_store>
89
+ </fax>
90
+ <description translate="label">
91
+ <label>Description</label>
92
+ <frontend_type>select</frontend_type>
93
+ <source_model>adminhtml/system_config_source_yesno</source_model>
94
+ <sort_order>7</sort_order>
95
+ <show_in_default>1</show_in_default>
96
+ <show_in_website>1</show_in_website>
97
+ <show_in_store>1</show_in_store>
98
+ </description>
99
+ <storeurl translate="label">
100
+ <label>Store URL</label>
101
+ <frontend_type>select</frontend_type>
102
+ <source_model>adminhtml/system_config_source_yesno</source_model>
103
+ <sort_order>8</sort_order>
104
+ <show_in_default>1</show_in_default>
105
+ <show_in_website>1</show_in_website>
106
+ <show_in_store>1</show_in_store>
107
+ </storeurl>
108
+ <email translate="label">
109
+ <label>Email</label>
110
+ <frontend_type>select</frontend_type>
111
+ <source_model>adminhtml/system_config_source_yesno</source_model>
112
+ <sort_order>9</sort_order>
113
+ <show_in_default>1</show_in_default>
114
+ <show_in_website>1</show_in_website>
115
+ <show_in_store>1</show_in_store>
116
+ </email>
117
+ <tradinghours translate="label">
118
+ <label>Trading Hours</label>
119
+ <frontend_type>select</frontend_type>
120
+ <source_model>adminhtml/system_config_source_yesno</source_model>
121
+ <sort_order>10</sort_order>
122
+ <show_in_default>1</show_in_default>
123
+ <show_in_website>1</show_in_website>
124
+ <show_in_store>1</show_in_store>
125
+ </tradinghours>
126
+ <image translate="label">
127
+ <label>Image</label>
128
+ <frontend_type>select</frontend_type>
129
+ <source_model>adminhtml/system_config_source_yesno</source_model>
130
+ <sort_order>11</sort_order>
131
+ <show_in_default>1</show_in_default>
132
+ <show_in_website>1</show_in_website>
133
+ <show_in_store>1</show_in_store>
134
+ </image>
135
+ </fields>
136
+ </storeloactorfields>
137
+ <storeloactorsetting translate="label">
138
+ <label>Setting </label>
139
+ <frontend_type>text</frontend_type>
140
+ <sort_order>0</sort_order>
141
+ <show_in_default>1</show_in_default>
142
+ <show_in_website>1</show_in_website>
143
+ <show_in_store>1</show_in_store>
144
+ <fields>
145
+ <enable translate="label">
146
+ <label>Staus</label>
147
+ <frontend_type>select</frontend_type>
148
+ <source_model>adminhtml/system_config_source_enabledisable</source_model>
149
+ <sort_order>0</sort_order>
150
+ <show_in_default>1</show_in_default>
151
+ <show_in_website>1</show_in_website>
152
+ <show_in_store>1</show_in_store>
153
+ </enable>
154
+ </fields>
155
+ </storeloactorsetting>
156
+ </groups>
157
+ </storelocatorcode>
158
+ </sections>
159
+ </config>
app/code/community/Mks/Storelocator/sql/storelocator_setup/mysql4-install-8.1.1.php ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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),email varchar(100),tradinghours varchar(100),radius varchar(100),image varchar(100),lat varchar(100),longt varchar(100),status varchar(100),primary key(id));
6
+
7
+
8
+ INSERT INTO {$this->getTable('mksstorelocator')} (`name`, `address`, `zipcode`, `city`, `country_id`, `phone`, `fax`, `description`, `store_url`, `image`, `tradinghours`, `radius`, `lat`, `longt`, `status`) VALUES
9
+ ('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','7:00 To 8:00PM', '200','26.857126400000000000','75.812719900000050000','0'),
10
+ ('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','7:00 To 8:00PM', '200','24.893379000000000000','67.028060900000010000','0'),
11
+ ('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','7:00 To 8:00PM', '250','40.714352800000000000','-74.005973100000000000','0'),
12
+ ('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','7:00 To 8:00PM', '200','26.857126400000000000','75.812719900000050000','0');
13
+
14
+ SQLTEXT;
15
+
16
+ $installer->run($sql);
17
+ //demo
18
+ //Mage::getModel('core/url_rewrite')->setId(null);
19
+ //demo
20
+ $installer->endSetup();
21
+
package.xml CHANGED
@@ -1,18 +1,22 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Mks_Bannerslider</name>
4
- <version>8.1.1</version>
5
  <stability>stable</stability>
6
  <license>OSL</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Banner Slider Fully Dynamic (Pop-up image gallery on cms page). always use Banner Slider</summary>
10
  <description>Banner Slider Fully Dynamic (Pop-up image gallery on cms page). always use Banner Slider</description>
11
- <notes>Add configuration setting</notes>
 
 
 
 
12
  <authors><author><name>Mukesh Kumar saini</name><user>mukeshbagri</user><email>in.mukeshsaini@gmail.com</email></author></authors>
13
- <date>2014-03-21</date>
14
- <time>08:37:07</time>
15
- <contents><target name="mageetc"><dir name="modules"><file name="Mks_Bannerslider.xml" hash="67606578b66a115849bde7920bb73c3c"/></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="Imagegallery"><dir name="Edit"><file name="Form.php" hash="6bf611a29b6f43553b324cea6f299996"/><dir name="Tab"><file name="Form.php" hash="2a897f9391cef5a81faf0cee77dc4b51"/></dir><file name="Tabs.php" hash="947d52b2cf774dc10eb0249b51d03d6d"/></dir><file name="Edit.php" hash="4a0489c69b7830287e18edad35348ceb"/><file name="Grid.php" hash="7bbd1bae121f43a80faa3cbe4dae990b"/></dir><file name="Imagegallery.php" hash="5d7f22716646a9156b70a14c9e3cac35"/></dir><file name="Index.php" hash="51e40e2e1b2e593a40a4616bf14b5721"/></dir><dir name="Helper"><file name="Data.php" hash="78ef976446429483b21fafd68f74989b"/></dir><dir name="Model"><file name="Imagegallery.php" hash="7754ac88ef14e47ed6ae20bd6e5b3dee"/><dir name="Mysql4"><dir name="Imagegallery"><file name="Collection.php" hash="05ad344c19853775cc2defb6c02f43d5"/></dir><file name="Imagegallery.php" hash="f4a3ccb42c61c75d54ce07e1526e297a"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="BannersliderbackendController.php" hash="2a19bc5dad2edb6de017c394d5616b00"/><file name="ImagegalleryController.php" hash="47103603a51c27efcf3072089ee9388b"/></dir><file name="IndexController.php" hash="a16f142d2046e4d5b21db1a3f58b1fbe"/></dir><dir name="etc"><file name="adminhtml.xml" hash="29856211718c298818eca603185065c5"/><file name="config.xml" hash="19f1dda334456dea239e9310bfad0ab7"/><file name="system.xml" hash="290dbeec94c2862d711cf8daf9849e12"/></dir><dir name="sql"><dir name="bannerslider_setup"><file name="mysql4-install-8.1.1.php" hash="acdf1e7b910770e8816604216b5d2399"/></dir></dir></dir></dir></target><target name="magemedia"><dir name="bannerslider"><dir name="imagegallery"><file name="10.jpg" hash="e319bda7e5c57ec44604f57e4e432568"/><file name="11.jpg" hash="e319bda7e5c57ec44604f57e4e432568"/><file name="2.jpg" hash="50e1b25352e7a5438cfbea4c879a21bd"/><file name="3.jpg" hash="128aad6c96e9e1fbff279cd31ecc333d"/><file name="4.jpg" hash="7db4b1d19e73e8ce8f3d11de293d6b27"/><file name="5.jpg" hash="4c82a02693447cad4b9182defd8d0c5a"/><file name="6.jpg" hash="cb4985bf42b8848830b510ac8fa73232"/><file name="7.jpg" hash="b50f64182ba7094e72724b42b56c703b"/><file name="8.jpg" hash="3ed6b46a09a1faf5be74b70671944c66"/><file name="9.jpg" hash="17116b2c61f8e9b7d4f84a68da7eacc0"/></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="bannerslider.xml" hash="86a5f0476c92402b9bb69f90fa33eb20"/></dir><dir name="template"><dir name="bannerslider"><file name="bannersliderbackend.phtml" hash="df18a76ac5d10cd61c8cd0b9fa2ee247"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="bannerslider.xml" hash="e1f2b2ebd80564049e52fc0b50d8008f"/></dir><dir name="template"><dir name="bannerslider"><file name="index.phtml" hash="00e4349bd96e170b598beba8da725d43"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="bannerslider"><dir name="css"><file name="imagegallery.css" hash="325242c5f63dd8788f01adfbbc7df495"/></dir><dir name="images"><file name="close.png" hash="7e1e4fe9697be548050b612c84df15d7"/><file name="left_1.png" hash="70604f05151344b82eb8727bf917d992"/><file name="right_1.png" hash="8d90f2d7ba1b5ff56e093c5c48950cfd"/></dir><dir name="js"><file name="jquery-1.2.6.noConflict.min.js" hash="34c0f327c9bd8215df7206bf57c2868f"/></dir></dir></dir></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_Bannerslider</name>
4
+ <version>8.1.2</version>
5
  <stability>stable</stability>
6
  <license>OSL</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Banner Slider Fully Dynamic (Pop-up image gallery on cms page). always use Banner Slider</summary>
10
  <description>Banner Slider Fully Dynamic (Pop-up image gallery on cms page). always use Banner Slider</description>
11
+ <notes>New Freature :-&#xD;
12
+ 1. new configuration setting.&#xD;
13
+ 2. Auto load data.&#xD;
14
+ 3. One click installation.&#xD;
15
+ 4. user friendly.</notes>
16
  <authors><author><name>Mukesh Kumar saini</name><user>mukeshbagri</user><email>in.mukeshsaini@gmail.com</email></author></authors>
17
+ <date>2014-03-25</date>
18
+ <time>05:15:08</time>
19
+ <contents><target name="mageetc"><dir name="modules"><file name="Mks_Bannerslider.xml" hash="67606578b66a115849bde7920bb73c3c"/></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="Imagegallery"><dir name="Edit"><file name="Form.php" hash="6bf611a29b6f43553b324cea6f299996"/><dir name="Tab"><file name="Form.php" hash="2a897f9391cef5a81faf0cee77dc4b51"/></dir><file name="Tabs.php" hash="947d52b2cf774dc10eb0249b51d03d6d"/></dir><file name="Edit.php" hash="4a0489c69b7830287e18edad35348ceb"/><file name="Grid.php" hash="7bbd1bae121f43a80faa3cbe4dae990b"/></dir><file name="Imagegallery.php" hash="5d7f22716646a9156b70a14c9e3cac35"/></dir><file name="Index.php" hash="51e40e2e1b2e593a40a4616bf14b5721"/></dir><dir name="Helper"><file name="Data.php" hash="78ef976446429483b21fafd68f74989b"/></dir><dir name="Model"><file name="Imagegallery.php" hash="7754ac88ef14e47ed6ae20bd6e5b3dee"/><dir name="Mysql4"><dir name="Imagegallery"><file name="Collection.php" hash="05ad344c19853775cc2defb6c02f43d5"/></dir><file name="Imagegallery.php" hash="f4a3ccb42c61c75d54ce07e1526e297a"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="BannersliderbackendController.php" hash="2a19bc5dad2edb6de017c394d5616b00"/><file name="ImagegalleryController.php" hash="47103603a51c27efcf3072089ee9388b"/></dir><file name="IndexController.php" hash="a16f142d2046e4d5b21db1a3f58b1fbe"/></dir><dir name="etc"><file name="adminhtml.xml" hash="29856211718c298818eca603185065c5"/><file name="config.xml" hash="19f1dda334456dea239e9310bfad0ab7"/><file name="system.xml" hash="8df05a66e5258bfd736a8f5c9eaa4876"/></dir><dir name="sql"><dir name="bannerslider_setup"><file name="mysql4-install-8.1.1.php" hash="acdf1e7b910770e8816604216b5d2399"/></dir></dir></dir><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 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="da3f13dd930a591372ad0c14796c1e54"/></dir><file name="Tabs.php" hash="8819f35cd4af4b61d14bf377c58432b6"/></dir><file name="Edit.php" hash="9be35d036a69cfb545d2f1c1649cb6ba"/><file name="Grid.php" hash="da9a9f1d7359078f7f388440020b2c3e"/></dir><file name="Storelocator.php" hash="81770ec5e092a177c22e188b8db38d7e"/><file name="Storelocatorbackend.php" hash="d600cb8ff797f008c7c652a299305c8d"/></dir><file name="Index.php" hash="4a9374eced7efc8e0dc9aafb9ff3cef4"/></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="1c8564c74994999c3e5177450b64241b"/><file name="StorelocatorbackendController.php" hash="342691ea69bd91fed7db67032fa69e32"/></dir><file name="IndexController.php" hash="852566fcfe7bf18f80926d04af88821e"/></dir><dir name="etc"><file name="adminhtml.xml" hash="49f58436b0c5e5d0ff6ed5b2f7eb0b8a"/><file name="config.xml" hash="aa5b1df1e9cbf67ea541db01f5ccc23b"/><file name="system.xml" hash="e903fefb54e74e5db482baee62d46185"/></dir><dir name="sql"><dir name="storelocator_setup"><file name="mysql4-install-8.1.1.php" hash="a6c9e74024278161f3ed0653dfbc9eb0"/></dir></dir></dir></dir></target><target name="magemedia"><dir name="bannerslider"><dir name="imagegallery"><file name="10.jpg" hash="e319bda7e5c57ec44604f57e4e432568"/><file name="11.jpg" hash="e319bda7e5c57ec44604f57e4e432568"/><file name="2.jpg" hash="50e1b25352e7a5438cfbea4c879a21bd"/><file name="3.jpg" hash="128aad6c96e9e1fbff279cd31ecc333d"/><file name="4.jpg" hash="7db4b1d19e73e8ce8f3d11de293d6b27"/><file name="5.jpg" hash="4c82a02693447cad4b9182defd8d0c5a"/><file name="6.jpg" hash="cb4985bf42b8848830b510ac8fa73232"/><file name="7.jpg" hash="b50f64182ba7094e72724b42b56c703b"/><file name="8.jpg" hash="3ed6b46a09a1faf5be74b70671944c66"/><file name="9.jpg" hash="17116b2c61f8e9b7d4f84a68da7eacc0"/></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="bannerslider.xml" hash="86a5f0476c92402b9bb69f90fa33eb20"/></dir><dir name="template"><dir name="bannerslider"><file name="bannersliderbackend.phtml" hash="df18a76ac5d10cd61c8cd0b9fa2ee247"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="bannerslider.xml" hash="e1f2b2ebd80564049e52fc0b50d8008f"/></dir><dir name="template"><dir name="bannerslider"><file name="index.phtml" hash="00e4349bd96e170b598beba8da725d43"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="bannerslider"><dir name="css"><file name="imagegallery.css" hash="325242c5f63dd8788f01adfbbc7df495"/></dir><dir name="images"><file name="close.png" hash="7e1e4fe9697be548050b612c84df15d7"/><file name="left_1.png" hash="70604f05151344b82eb8727bf917d992"/><file name="right_1.png" hash="8d90f2d7ba1b5ff56e093c5c48950cfd"/></dir><dir name="js"><file name="jquery-1.2.6.noConflict.min.js" hash="34c0f327c9bd8215df7206bf57c2868f"/></dir></dir></dir></dir></dir></target></contents>
20
  <compatible/>
21
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
22
  </package>