Mks_Responsivebannerslider - Version 1.9.1

Version Notes

Add Banner Sort Order feature in admin panel.

Download this release

Release Info

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


Code changes from version 8.1.2 to 1.9.1

Files changed (99) hide show
  1. app/code/community/Mage/Adminhtml/Model/System/Config/Source/{Diyoptions13952315961.php → Diyoptions14091220731.php} +3 -3
  2. app/code/community/Mks/Allreviews/Block/Index.php +0 -57
  3. app/code/community/Mks/Allreviews/Helper/Data.php +0 -5
  4. app/code/community/Mks/Allreviews/controllers/IndexController.php +0 -22
  5. app/code/community/Mks/Allreviews/etc/adminhtml.xml +0 -23
  6. app/code/community/Mks/Allreviews/etc/config.xml +0 -38
  7. app/code/community/Mks/Allreviews/etc/system.xml +0 -152
  8. app/code/community/Mks/Bannerslider/Block/Adminhtml/Bannersliderbackend.php +0 -5
  9. app/code/community/Mks/Bannerslider/Block/Adminhtml/Imagegallery.php +0 -17
  10. app/code/community/Mks/Bannerslider/Block/Adminhtml/Imagegallery/Edit.php +0 -44
  11. app/code/community/Mks/Bannerslider/Block/Adminhtml/Imagegallery/Edit/Form.php +0 -17
  12. app/code/community/Mks/Bannerslider/Block/Adminhtml/Imagegallery/Edit/Tab/Form.php +0 -48
  13. app/code/community/Mks/Bannerslider/Block/Adminhtml/Imagegallery/Edit/Tabs.php +0 -21
  14. app/code/community/Mks/Bannerslider/Block/Adminhtml/Imagegallery/Grid.php +0 -90
  15. app/code/community/Mks/Bannerslider/Block/Index.php +0 -22
  16. app/code/community/Mks/Bannerslider/Helper/Data.php +0 -5
  17. app/code/community/Mks/Bannerslider/Model/Imagegallery.php +0 -12
  18. app/code/community/Mks/Bannerslider/Model/Mysql4/Imagegallery.php +0 -8
  19. app/code/community/Mks/Bannerslider/Model/Mysql4/Imagegallery/Collection.php +0 -12
  20. app/code/community/Mks/Bannerslider/controllers/Adminhtml/BannersliderbackendController.php +0 -10
  21. app/code/community/Mks/Bannerslider/controllers/Adminhtml/ImagegalleryController.php +0 -209
  22. app/code/community/Mks/Bannerslider/controllers/IndexController.php +0 -22
  23. app/code/community/Mks/Bannerslider/etc/adminhtml.xml +0 -23
  24. app/code/community/Mks/Bannerslider/etc/config.xml +0 -134
  25. app/code/community/Mks/Bannerslider/etc/system.xml +0 -59
  26. app/code/community/Mks/Bannerslider/sql/bannerslider_setup/mysql4-install-8.1.1.php +0 -37
  27. app/code/community/Mks/OrderCancel/Block/Order/History.php +0 -34
  28. app/code/community/Mks/OrderCancel/Block/Order/History.php~ +0 -34
  29. app/code/community/Mks/OrderCancel/Data.php +0 -20
  30. app/code/community/Mks/OrderCancel/Data/Data.php +0 -20
  31. app/code/community/Mks/OrderCancel/Data/Data.php~ +0 -20
  32. app/code/community/Mks/OrderCancel/controllers/OrderController.php +0 -40
  33. app/code/community/Mks/OrderCancel/controllers/OrderController.php~ +0 -40
  34. app/code/community/Mks/OrderCancel/etc/config.xml +0 -61
  35. app/code/community/Mks/OrderCancel/etc/config.xml~ +0 -61
  36. app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/{Responsivebanner.php → Responsivebannerslider.php} +3 -3
  37. app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/{Responsivebanner → Responsivebannerslider}/Edit.php +4 -4
  38. app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/{Responsivebanner → Responsivebannerslider}/Edit/Form.php +1 -1
  39. app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/{Responsivebanner → Responsivebannerslider}/Edit/Tab/Form.php +21 -12
  40. app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/{Responsivebanner → Responsivebannerslider}/Edit/Tabs.php +3 -3
  41. app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/{Responsivebanner → Responsivebannerslider}/Grid.php +34 -11
  42. app/code/community/Mks/Responsivebannerslider/Block/Index.php +2 -1
  43. app/code/community/Mks/Responsivebannerslider/Model/Mysql4/Responsivebanner.php +0 -8
  44. app/code/community/Mks/Responsivebannerslider/Model/Mysql4/Responsivebanner/Collection.php +0 -12
  45. app/code/community/Mks/Responsivebannerslider/Model/Mysql4/Responsivebannerslider.php +8 -0
  46. app/code/community/Mks/Responsivebannerslider/Model/Mysql4/Responsivebannerslider/Collection.php +12 -0
  47. app/code/community/Mks/Responsivebannerslider/Model/Responsivebanner.php +0 -12
  48. app/code/community/Mks/Responsivebannerslider/Model/Responsivebannerslider.php +12 -0
  49. app/code/community/Mks/Responsivebannerslider/controllers/Adminhtml/{ResponsivebannerController.php → ResponsivebannersliderController.php} +30 -30
  50. app/code/community/Mks/Responsivebannerslider/controllers/Adminhtml/Rss/RssController.php +0 -37
  51. app/code/community/Mks/Responsivebannerslider/controllers/IndexController.php +4 -4
  52. app/code/community/Mks/Responsivebannerslider/etc/config.xml +10 -10
  53. app/code/community/Mks/Responsivebannerslider/etc/system.xml +8 -9
  54. app/code/community/Mks/Responsivebannerslider/sql/responsivebannerslider_setup/mysql4-install-1.9.1.php +18 -0
  55. app/code/community/Mks/Responsivebannerslider/sql/responsivebannerslider_setup/mysql4-install-1.9.1.php~ +18 -0
  56. app/code/community/Mks/Responsivebannerslider/sql/responsivebannerslider_setup/mysql4-install-8.1.1.php +0 -17
  57. app/code/community/Mks/Rotateproduct/Block/Adminhtml/Rotateproduct.php +0 -17
  58. app/code/community/Mks/Rotateproduct/Block/Adminhtml/Rotateproduct/Edit.php +0 -44
  59. app/code/community/Mks/Rotateproduct/Block/Adminhtml/Rotateproduct/Edit/Form.php +0 -17
  60. app/code/community/Mks/Rotateproduct/Block/Adminhtml/Rotateproduct/Edit/Tab/Form.php +0 -56
  61. app/code/community/Mks/Rotateproduct/Block/Adminhtml/Rotateproduct/Edit/Tabs.php +0 -21
  62. app/code/community/Mks/Rotateproduct/Block/Adminhtml/Rotateproduct/Grid.php +0 -94
  63. app/code/community/Mks/Rotateproduct/Block/Adminhtml/Rotateproductbackend.php +0 -5
  64. app/code/community/Mks/Rotateproduct/Helper/Data.php +0 -5
  65. app/code/community/Mks/Rotateproduct/Model/Mysql4/Rotateproduct.php +0 -8
  66. app/code/community/Mks/Rotateproduct/Model/Mysql4/Rotateproduct/Collection.php +0 -12
  67. app/code/community/Mks/Rotateproduct/Model/Rotateproduct.php +0 -12
  68. app/code/community/Mks/Rotateproduct/controllers/Adminhtml/RotateproductController.php +0 -209
  69. app/code/community/Mks/Rotateproduct/controllers/Adminhtml/RotateproductbackendController.php +0 -10
  70. app/code/community/Mks/Rotateproduct/etc/adminhtml.xml +0 -23
  71. app/code/community/Mks/Rotateproduct/etc/config.xml +0 -116
  72. app/code/community/Mks/Rotateproduct/etc/system.xml +0 -78
  73. app/code/community/Mks/Rotateproduct/sql/rotateproduct_setup/mysql4-install-8.1.1.php +0 -14
  74. app/code/community/Mks/Storelocator/Block/Adminhtml/Storelocator.php +0 -17
  75. app/code/community/Mks/Storelocator/Block/Adminhtml/Storelocator/Edit.php +0 -44
  76. app/code/community/Mks/Storelocator/Block/Adminhtml/Storelocator/Edit/Form.php +0 -17
  77. app/code/community/Mks/Storelocator/Block/Adminhtml/Storelocator/Edit/Tab/Form.php +0 -111
  78. app/code/community/Mks/Storelocator/Block/Adminhtml/Storelocator/Edit/Tabs.php +0 -21
  79. app/code/community/Mks/Storelocator/Block/Adminhtml/Storelocator/Grid.php +0 -130
  80. app/code/community/Mks/Storelocator/Block/Adminhtml/Storelocatorbackend.php +0 -5
  81. app/code/community/Mks/Storelocator/Block/Index.php +0 -60
  82. app/code/community/Mks/Storelocator/Helper/Data.php +0 -5
  83. app/code/community/Mks/Storelocator/Model/Mysql4/Storelocator.php +0 -8
  84. app/code/community/Mks/Storelocator/Model/Mysql4/Storelocator/Collection.php +0 -12
  85. app/code/community/Mks/Storelocator/Model/Storelocator.php +0 -12
  86. app/code/community/Mks/Storelocator/controllers/Adminhtml/StorelocatorController.php +0 -209
  87. app/code/community/Mks/Storelocator/controllers/Adminhtml/StorelocatorbackendController.php +0 -10
  88. app/code/community/Mks/Storelocator/controllers/IndexController.php +0 -22
  89. app/code/community/Mks/Storelocator/etc/adminhtml.xml +0 -23
  90. app/code/community/Mks/Storelocator/etc/config.xml +0 -134
  91. app/code/community/Mks/Storelocator/etc/system.xml +0 -159
  92. app/code/community/Mks/Storelocator/sql/storelocator_setup/mysql4-install-8.1.1.php +0 -21
  93. app/design/adminhtml/default/default/layout/responsivebannerslider.xml +3 -3
  94. app/design/adminhtml/default/default/template/responsivebannerslider/responsivebannersliderbackend.phtml +1 -1
  95. app/design/frontend/base/default/layout/responsivebannerslider.xml +1 -1
  96. app/design/frontend/base/default/template/responsivebannerslider/index.phtml +1 -1
  97. app/etc/modules/Mks_Responsivebannerslider.xml +1 -1
  98. package.xml +6 -6
  99. skin/frontend/base/default/responsiveslider/css/grid12.css +3 -2
app/code/community/Mage/Adminhtml/Model/System/Config/Source/{Diyoptions13952315961.php → Diyoptions14091220731.php} RENAMED
@@ -1,5 +1,5 @@
1
  <?php
2
- class Mage_Adminhtml_Model_System_Config_Source_Diyoptions13952315961
3
  {
4
 
5
  /**
@@ -11,8 +11,8 @@ class Mage_Adminhtml_Model_System_Config_Source_Diyoptions13952315961
11
  {
12
  return array(
13
 
14
- array('value' => 1, 'label'=>Mage::helper('adminhtml')->__('Fade (Responsive)')),
15
- array('value' => 2, 'label'=>Mage::helper('adminhtml')->__('Slide (Responsive)')),
16
  );
17
  }
18
 
1
  <?php
2
+ class Mage_Adminhtml_Model_System_Config_Source_Diyoptions14091220731
3
  {
4
 
5
  /**
11
  {
12
  return array(
13
 
14
+ array('value' => 1, 'label'=>Mage::helper('adminhtml')->__('Slide (Responsive)')),
15
+ array('value' => 2, 'label'=>Mage::helper('adminhtml')->__('Fade (Responsive)')),
16
  );
17
  }
18
 
app/code/community/Mks/Allreviews/Block/Index.php DELETED
@@ -1,57 +0,0 @@
1
- <?php
2
- class Mks_Allreviews_Block_Index extends Mage_Core_Block_Template{
3
-
4
-
5
- public function getAllreviewsStatus()
6
- {
7
- return Mage::getStoreConfig('reviewssection/reviewsgroup/status',Mage::app()->getStore());
8
- }
9
-
10
- public function getAllreviewsNumberofreviews()
11
- {
12
- return Mage::getStoreConfig('reviewssection/reviewsgroupsetting/numberofreviews',Mage::app()->getStore());
13
- }
14
- public function getAllreviewsNumberofcolumns()
15
- {
16
- return Mage::getStoreConfig('reviewssection/reviewsgroupsetting/numberofcolumns',Mage::app()->getStore());
17
- }
18
- public function getAllreviewsDisplayproductimages()
19
- {
20
- return Mage::getStoreConfig('reviewssection/reviewsgroupsetting/displayproductimages',Mage::app()->getStore());
21
- }
22
- public function getAllreviewsEnableproducturl()
23
- {
24
- return Mage::getStoreConfig('reviewssection/reviewsgroupsetting/enableproducturl',Mage::app()->getStore());
25
- }
26
- public function getAllreviewsDisplayreviewstitle()
27
- {
28
- return Mage::getStoreConfig('reviewssection/reviewsgroupsetting/displayreviewstitle',Mage::app()->getStore());
29
- }
30
- public function getAllreviewsDisplayreviewsdate()
31
- {
32
- return Mage::getStoreConfig('reviewssection/reviewsgroupsetting/displayreviewsdate',Mage::app()->getStore());
33
- }
34
- public function getAllreviewsDisplayreviewsstars()
35
- {
36
- return Mage::getStoreConfig('reviewssection/reviewsgroupsetting/displayreviewsstars',Mage::app()->getStore());
37
- }
38
- public function getAllreviewsDisplayreviewscomments()
39
- {
40
- return Mage::getStoreConfig('reviewssection/reviewsgroupsetting/displayreviewscomments',Mage::app()->getStore());
41
- }
42
- public function getAllreviewsFilteringtab()
43
- {
44
- return Mage::getStoreConfig('reviewssection/reviewsgroupsetting/filteringtab',Mage::app()->getStore());
45
- }
46
-
47
- public function getAllreviewsshowreview()
48
- {
49
- return Mage::getStoreConfig('reviewssection/reviewsgroupsetting/showreview',Mage::app()->getStore());
50
- }
51
- public function getAllreviewsdisplaynickname()
52
- {
53
- return Mage::getStoreConfig('reviewssection/reviewsgroupsetting/displaynickname',Mage::app()->getStore());
54
- }
55
-
56
-
57
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Allreviews/Helper/Data.php DELETED
@@ -1,5 +0,0 @@
1
- <?php
2
- class Mks_Allreviews_Helper_Data extends Mage_Core_Helper_Abstract
3
- {
4
- }
5
-
 
 
 
 
 
app/code/community/Mks/Allreviews/controllers/IndexController.php DELETED
@@ -1,22 +0,0 @@
1
- <?php
2
- class Mks_Allreviews_IndexController extends Mage_Core_Controller_Front_Action{
3
- public function IndexAction() {
4
-
5
- $this->loadLayout();
6
- $this->getLayout()->getBlock("head")->setTitle($this->__("Reviews"));
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("reviews", array(
15
- "label" => $this->__("Reviews"),
16
- "title" => $this->__("Reviews")
17
- ));
18
-
19
- $this->renderLayout();
20
-
21
- }
22
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Allreviews/etc/adminhtml.xml DELETED
@@ -1,23 +0,0 @@
1
- <?xml version="1.0"?>
2
- <config>
3
- <acl>
4
- <resources>
5
- <admin>
6
- <children>
7
- <system>
8
- <children>
9
- <config>
10
- <children>
11
- <reviewssection translate="title" module="allreviews">
12
- <title>General Setting Section</title>
13
- <sort_order>0</sort_order>
14
- </reviewssection>
15
- </children>
16
- </config>
17
- </children>
18
- </system>
19
- </children>
20
- </admin>
21
- </resources>
22
- </acl>
23
- </config>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Allreviews/etc/config.xml DELETED
@@ -1,38 +0,0 @@
1
- <?xml version="1.0"?>
2
- <config>
3
- <modules>
4
- <Mks_Allreviews>
5
- <version>8.1.1</version>
6
- </Mks_Allreviews>
7
- </modules>
8
- <frontend>
9
- <routers>
10
- <allreviews>
11
- <use>standard</use>
12
- <args>
13
- <module>Mks_Allreviews</module>
14
- <frontName>allreviews</frontName>
15
- </args>
16
- </allreviews>
17
- </routers>
18
- <layout>
19
- <updates>
20
- <allreviews>
21
- <file>allreviews.xml</file>
22
- </allreviews>
23
- </updates>
24
- </layout>
25
- </frontend>
26
- <global>
27
- <helpers>
28
- <allreviews>
29
- <class>Mks_Allreviews_Helper</class>
30
- </allreviews>
31
- </helpers>
32
- <blocks>
33
- <allreviews>
34
- <class>Mks_Allreviews_Block</class>
35
- </allreviews>
36
- </blocks>
37
- </global>
38
- </config>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Allreviews/etc/system.xml DELETED
@@ -1,152 +0,0 @@
1
- <?xml version="1.0"?>
2
- <config>
3
- <tabs>
4
- <reviewstab translate="label" module="allreviews">
5
- <label>Mks All Reviews </label>
6
- <sort_order>0</sort_order>
7
- </reviewstab>
8
- </tabs>
9
- <sections>
10
- <reviewssection translate="label" module="allreviews">
11
- <label>General Setting</label>
12
- <tab>reviewstab</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
- <reviewsgroup translate="label">
20
- <label>Status 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
- <status translate="label">
28
- <label>Status</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
- </status>
36
- </fields>
37
- </reviewsgroup>
38
- <reviewsgroupsetting translate="label">
39
- <label>Configuration Setting</label>
40
- <frontend_type>text</frontend_type>
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
- <fields>
46
- <numberofreviews translate="label">
47
- <label>Number of reviews</label>
48
- <frontend_type>text</frontend_type>
49
- <sort_order>0</sort_order>
50
- <show_in_default>1</show_in_default>
51
- <show_in_website>1</show_in_website>
52
- <show_in_store>1</show_in_store>
53
- <comment>Example :- 12,15,18,21,24.....</comment>
54
- </numberofreviews>
55
- <numberofcolumns translate="label">
56
- <label>Number of columns</label>
57
- <frontend_type>text</frontend_type>
58
- <sort_order>1</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 :- 3,4,5,6.......</comment>
63
- </numberofcolumns>
64
- <displayproductimages translate="label">
65
- <label>Display Product Images</label>
66
- <frontend_type>select</frontend_type>
67
- <source_model>adminhtml/system_config_source_yesno</source_model>
68
- <sort_order>2</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
- </displayproductimages>
73
- <enableproducturl translate="label">
74
- <label>Enable Product URL</label>
75
- <frontend_type>select</frontend_type>
76
- <source_model>adminhtml/system_config_source_yesno</source_model>
77
- <sort_order>3</sort_order>
78
- <show_in_default>1</show_in_default>
79
- <show_in_website>1</show_in_website>
80
- <show_in_store>1</show_in_store>
81
- </enableproducturl>
82
- <displayreviewstitle translate="label">
83
- <label>Display Reviews Title</label>
84
- <frontend_type>select</frontend_type>
85
- <source_model>adminhtml/system_config_source_yesno</source_model>
86
- <sort_order>4</sort_order>
87
- <show_in_default>1</show_in_default>
88
- <show_in_website>1</show_in_website>
89
- <show_in_store>1</show_in_store>
90
- </displayreviewstitle>
91
- <displayreviewsdate translate="label">
92
- <label>Display Reviews Date</label>
93
- <frontend_type>select</frontend_type>
94
- <source_model>adminhtml/system_config_source_yesno</source_model>
95
- <sort_order>5</sort_order>
96
- <show_in_default>1</show_in_default>
97
- <show_in_website>1</show_in_website>
98
- <show_in_store>1</show_in_store>
99
- </displayreviewsdate>
100
- <displayreviewsstars translate="label">
101
- <label>Display Reviews Stars</label>
102
- <frontend_type>select</frontend_type>
103
- <source_model>adminhtml/system_config_source_yesno</source_model>
104
- <sort_order>6</sort_order>
105
- <show_in_default>1</show_in_default>
106
- <show_in_website>1</show_in_website>
107
- <show_in_store>1</show_in_store>
108
- </displayreviewsstars>
109
- <displayreviewscomments translate="label">
110
- <label>Display Reviews Comment's</label>
111
- <frontend_type>select</frontend_type>
112
- <source_model>adminhtml/system_config_source_yesno</source_model>
113
- <sort_order>7</sort_order>
114
- <show_in_default>1</show_in_default>
115
- <show_in_website>1</show_in_website>
116
- <show_in_store>1</show_in_store>
117
- </displayreviewscomments>
118
- <displaynickname translate="label">
119
- <label>Display Reviews Nickname</label>
120
- <frontend_type>select</frontend_type>
121
- <source_model>adminhtml/system_config_source_yesno</source_model>
122
- <sort_order>8</sort_order>
123
- <show_in_default>1</show_in_default>
124
- <show_in_website>1</show_in_website>
125
- <show_in_store>1</show_in_store>
126
- </displaynickname>
127
- <filteringtab translate="label">
128
- <label>Filtering Tab</label>
129
- <frontend_type>select</frontend_type>
130
- <source_model>adminhtml/system_config_source_yesno</source_model>
131
- <sort_order>9</sort_order>
132
- <show_in_default>1</show_in_default>
133
- <show_in_website>1</show_in_website>
134
- <show_in_store>1</show_in_store>
135
- </filteringtab>
136
-
137
-
138
- <showreview translate="label">
139
- <label>Show Review </label>
140
- <frontend_type>text</frontend_type>
141
- <sort_order>10</sort_order>
142
- <show_in_default>1</show_in_default>
143
- <show_in_website>1</show_in_website>
144
- <show_in_store>1</show_in_store>
145
- <comment>Example :- Average,Individual</comment>
146
- </showreview>
147
- </fields>
148
- </reviewsgroupsetting>
149
- </groups>
150
- </reviewssection>
151
- </sections>
152
- </config>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Bannerslider/Block/Adminhtml/Bannersliderbackend.php DELETED
@@ -1,5 +0,0 @@
1
- <?php
2
-
3
- class Mks_Bannerslider_Block_Adminhtml_Bannersliderbackend extends Mage_Adminhtml_Block_Template {
4
-
5
- }
 
 
 
 
 
app/code/community/Mks/Bannerslider/Block/Adminhtml/Imagegallery.php DELETED
@@ -1,17 +0,0 @@
1
- <?php
2
-
3
-
4
- class Mks_Bannerslider_Block_Adminhtml_Imagegallery extends Mage_Adminhtml_Block_Widget_Grid_Container{
5
-
6
- public function __construct()
7
- {
8
-
9
- $this->_controller = "adminhtml_imagegallery";
10
- $this->_blockGroup = "bannerslider";
11
- $this->_headerText = Mage::helper("bannerslider")->__("Imagegallery Manager");
12
- $this->_addButtonLabel = Mage::helper("bannerslider")->__("Add New Item");
13
- parent::__construct();
14
-
15
- }
16
-
17
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Bannerslider/Block/Adminhtml/Imagegallery/Edit.php DELETED
@@ -1,44 +0,0 @@
1
- <?php
2
-
3
- class Mks_Bannerslider_Block_Adminhtml_Imagegallery_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_imagegallery";
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("imagegallery_data") && Mage::registry("imagegallery_data")->getId() ){
34
-
35
- return Mage::helper("bannerslider")->__("Edit Item '%s'", $this->htmlEscape(Mage::registry("imagegallery_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/Imagegallery/Edit/Form.php DELETED
@@ -1,17 +0,0 @@
1
- <?php
2
- class Mks_Bannerslider_Block_Adminhtml_Imagegallery_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/Imagegallery/Edit/Tab/Form.php DELETED
@@ -1,48 +0,0 @@
1
- <?php
2
- class Mks_Bannerslider_Block_Adminhtml_Imagegallery_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", "textarea", 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_Imagegallery_Grid::getValueArray4(),
35
- 'name' => 'status',
36
- ));
37
-
38
- if (Mage::getSingleton("adminhtml/session")->getImagegalleryData())
39
- {
40
- $form->setValues(Mage::getSingleton("adminhtml/session")->getImagegalleryData());
41
- Mage::getSingleton("adminhtml/session")->setImagegalleryData(null);
42
- }
43
- elseif(Mage::registry("imagegallery_data")) {
44
- $form->setValues(Mage::registry("imagegallery_data")->getData());
45
- }
46
- return parent::_prepareForm();
47
- }
48
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Bannerslider/Block/Adminhtml/Imagegallery/Edit/Tabs.php DELETED
@@ -1,21 +0,0 @@
1
- <?php
2
- class Mks_Bannerslider_Block_Adminhtml_Imagegallery_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs
3
- {
4
- public function __construct()
5
- {
6
- parent::__construct();
7
- $this->setId("imagegallery_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_imagegallery_edit_tab_form")->toHtml(),
17
- ));
18
- return parent::_beforeToHtml();
19
- }
20
-
21
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Bannerslider/Block/Adminhtml/Imagegallery/Grid.php DELETED
@@ -1,90 +0,0 @@
1
- <?php
2
-
3
- class Mks_Bannerslider_Block_Adminhtml_Imagegallery_Grid extends Mage_Adminhtml_Block_Widget_Grid
4
- {
5
-
6
- public function __construct()
7
- {
8
- parent::__construct();
9
- $this->setId("imagegalleryGrid");
10
- $this->setDefaultSort("id");
11
- $this->setDefaultDir("DESC");
12
- $this->setSaveParametersInSession(true);
13
- }
14
-
15
- protected function _prepareCollection()
16
- {
17
- $collection = Mage::getModel("bannerslider/imagegallery")->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('status', array(
40
- 'header' => Mage::helper('bannerslider')->__('Status'),
41
- 'index' => 'status',
42
- 'type' => 'options',
43
- 'options'=>Mks_Bannerslider_Block_Adminhtml_Imagegallery_Grid::getOptionArray4(),
44
- ));
45
-
46
- $this->addExportType('*/*/exportCsv', Mage::helper('sales')->__('CSV'));
47
- $this->addExportType('*/*/exportExcel', Mage::helper('sales')->__('Excel'));
48
-
49
- return parent::_prepareColumns();
50
- }
51
-
52
- public function getRowUrl($row)
53
- {
54
- return $this->getUrl("*/*/edit", array("id" => $row->getId()));
55
- }
56
-
57
-
58
-
59
- protected function _prepareMassaction()
60
- {
61
- $this->setMassactionIdField('id');
62
- $this->getMassactionBlock()->setFormFieldName('ids');
63
- $this->getMassactionBlock()->setUseSelectAll(true);
64
- $this->getMassactionBlock()->addItem('remove_imagegallery', array(
65
- 'label'=> Mage::helper('bannerslider')->__('Remove Imagegallery'),
66
- 'url' => $this->getUrl('*/adminhtml_imagegallery/massRemove'),
67
- 'confirm' => Mage::helper('bannerslider')->__('Are you sure?')
68
- ));
69
- return $this;
70
- }
71
-
72
- static public function getOptionArray4()
73
- {
74
- $data_array=array();
75
- $data_array[0]='Yes';
76
- $data_array[1]='No';
77
- return($data_array);
78
- }
79
- static public function getValueArray4()
80
- {
81
- $data_array=array();
82
- foreach(Mks_Bannerslider_Block_Adminhtml_Imagegallery_Grid::getOptionArray4() as $k=>$v){
83
- $data_array[]=array('value'=>$k,'label'=>$v);
84
- }
85
- return($data_array);
86
-
87
- }
88
-
89
-
90
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Bannerslider/Block/Index.php DELETED
@@ -1,22 +0,0 @@
1
- <?php
2
- class Mks_Bannerslider_Block_Index extends Mage_Core_Block_Template{
3
-
4
-
5
- public function getImagegalleryEnabled()
6
- {
7
- return Mage::getStoreConfig('imagegallerysection/imagegallerygroup/enable',Mage::app()->getStore());
8
- }
9
-
10
- public function getImagegalleryPaggingstart()
11
- {
12
- return Mage::getStoreConfig('imagegallerysection/imagegallerygroup/paggingstart',Mage::app()->getStore());
13
- }
14
-
15
- public function getImagegalleryRowitem()
16
- {
17
- return Mage::getStoreConfig('imagegallerysection/imagegallerygroup/rowitem',Mage::app()->getStore());
18
- }
19
-
20
-
21
-
22
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Bannerslider/Helper/Data.php DELETED
@@ -1,5 +0,0 @@
1
- <?php
2
- class Mks_Bannerslider_Helper_Data extends Mage_Core_Helper_Abstract
3
- {
4
- }
5
-
 
 
 
 
 
app/code/community/Mks/Bannerslider/Model/Imagegallery.php DELETED
@@ -1,12 +0,0 @@
1
- <?php
2
-
3
- class Mks_Bannerslider_Model_Imagegallery extends Mage_Core_Model_Abstract
4
- {
5
- protected function _construct(){
6
-
7
- $this->_init("bannerslider/imagegallery");
8
-
9
- }
10
-
11
- }
12
-
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Bannerslider/Model/Mysql4/Imagegallery.php DELETED
@@ -1,8 +0,0 @@
1
- <?php
2
- class Mks_Bannerslider_Model_Mysql4_Imagegallery extends Mage_Core_Model_Mysql4_Abstract
3
- {
4
- protected function _construct()
5
- {
6
- $this->_init("bannerslider/imagegallery", "id");
7
- }
8
- }
 
 
 
 
 
 
 
 
app/code/community/Mks/Bannerslider/Model/Mysql4/Imagegallery/Collection.php DELETED
@@ -1,12 +0,0 @@
1
- <?php
2
- class Mks_Bannerslider_Model_Mysql4_Imagegallery_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
3
- {
4
-
5
- public function _construct(){
6
- $this->_init("bannerslider/imagegallery");
7
- }
8
-
9
-
10
-
11
- }
12
-
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Bannerslider/controllers/Adminhtml/BannersliderbackendController.php DELETED
@@ -1,10 +0,0 @@
1
- <?php
2
- class Mks_Bannerslider_Adminhtml_BannersliderbackendController extends Mage_Adminhtml_Controller_Action
3
- {
4
- public function indexAction()
5
- {
6
- $this->loadLayout();
7
- $this->_title($this->__("About us"));
8
- $this->renderLayout();
9
- }
10
- }
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Bannerslider/controllers/Adminhtml/ImagegalleryController.php DELETED
@@ -1,209 +0,0 @@
1
- <?php
2
-
3
- class Mks_Bannerslider_Adminhtml_ImagegalleryController extends Mage_Adminhtml_Controller_Action
4
- {
5
- protected function _initAction()
6
- {
7
- $this->loadLayout()->_setActiveMenu("bannerslider/imagegallery")->_addBreadcrumb(Mage::helper("adminhtml")->__("Imagegallery Manager"),Mage::helper("adminhtml")->__("Imagegallery Manager"));
8
- return $this;
9
- }
10
- public function indexAction()
11
- {
12
- $this->_title($this->__("Bannerslider"));
13
- $this->_title($this->__("Manager Imagegallery"));
14
-
15
- $this->_initAction();
16
- $this->renderLayout();
17
- }
18
- public function editAction()
19
- {
20
- $this->_title($this->__("Bannerslider"));
21
- $this->_title($this->__("Imagegallery"));
22
- $this->_title($this->__("Edit Item"));
23
-
24
- $id = $this->getRequest()->getParam("id");
25
- $model = Mage::getModel("bannerslider/imagegallery")->load($id);
26
- if ($model->getId()) {
27
- Mage::register("imagegallery_data", $model);
28
- $this->loadLayout();
29
- $this->_setActiveMenu("bannerslider/imagegallery");
30
- $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Imagegallery Manager"), Mage::helper("adminhtml")->__("Imagegallery Manager"));
31
- $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Imagegallery Description"), Mage::helper("adminhtml")->__("Imagegallery Description"));
32
- $this->getLayout()->getBlock("head")->setCanLoadExtJs(true);
33
- $this->_addContent($this->getLayout()->createBlock("bannerslider/adminhtml_imagegallery_edit"))->_addLeft($this->getLayout()->createBlock("bannerslider/adminhtml_imagegallery_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->__("Imagegallery"));
47
- $this->_title($this->__("New Item"));
48
-
49
- $id = $this->getRequest()->getParam("id");
50
- $model = Mage::getModel("bannerslider/imagegallery")->load($id);
51
-
52
- $data = Mage::getSingleton("adminhtml/session")->getFormData(true);
53
- if (!empty($data)) {
54
- $model->setData($data);
55
- }
56
-
57
- Mage::register("imagegallery_data", $model);
58
-
59
- $this->loadLayout();
60
- $this->_setActiveMenu("bannerslider/imagegallery");
61
-
62
- $this->getLayout()->getBlock("head")->setCanLoadExtJs(true);
63
-
64
- $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Imagegallery Manager"), Mage::helper("adminhtml")->__("Imagegallery Manager"));
65
- $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Imagegallery Description"), Mage::helper("adminhtml")->__("Imagegallery Description"));
66
-
67
-
68
- $this->_addContent($this->getLayout()->createBlock("bannerslider/adminhtml_imagegallery_edit"))->_addLeft($this->getLayout()->createBlock("bannerslider/adminhtml_imagegallery_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/imagegallery")->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 .'imagegallery'.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/imagegallery/'.$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/imagegallery")
130
- ->addData($post_data)
131
- ->setId($this->getRequest()->getParam("id"))
132
- ->save();
133
-
134
- Mage::getSingleton("adminhtml/session")->addSuccess(Mage::helper("adminhtml")->__("Imagegallery was successfully saved"));
135
- Mage::getSingleton("adminhtml/session")->setImagegalleryData(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")->setImagegalleryData($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/imagegallery");
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/imagegallery");
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 = 'imagegallery.csv';
197
- $grid = $this->getLayout()->createBlock('bannerslider/adminhtml_imagegallery_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 = 'imagegallery.xml';
206
- $grid = $this->getLayout()->createBlock('bannerslider/adminhtml_imagegallery_grid');
207
- $this->_prepareDownloadResponse($fileName, $grid->getExcelFile($fileName));
208
- }
209
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Bannerslider/controllers/IndexController.php DELETED
@@ -1,22 +0,0 @@
1
- <?php
2
- class Mks_Bannerslider_IndexController extends Mage_Core_Controller_Front_Action{
3
- public function IndexAction() {
4
-
5
- $this->loadLayout();
6
- $this->getLayout()->getBlock("head")->setTitle($this->__("Bannerslider"));
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("bannerslider", array(
15
- "label" => $this->__("Bannerslider"),
16
- "title" => $this->__("Bannerslider")
17
- ));
18
-
19
- $this->renderLayout();
20
-
21
- }
22
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Bannerslider/etc/adminhtml.xml DELETED
@@ -1,23 +0,0 @@
1
- <?xml version="1.0"?>
2
- <config>
3
- <acl>
4
- <resources>
5
- <admin>
6
- <children>
7
- <system>
8
- <children>
9
- <config>
10
- <children>
11
- <imagegallerysection translate="title" module="bannerslider">
12
- <title>General Setting Section</title>
13
- <sort_order>0</sort_order>
14
- </imagegallerysection>
15
- </children>
16
- </config>
17
- </children>
18
- </system>
19
- </children>
20
- </admin>
21
- </resources>
22
- </acl>
23
- </config>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Bannerslider/etc/config.xml DELETED
@@ -1,134 +0,0 @@
1
- <?xml version="1.0"?>
2
- <config>
3
- <modules>
4
- <Mks_Bannerslider>
5
- <version>8.1.1</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
- <imagegallery>
46
- <table>popupgalleryslider</table>
47
- </imagegallery>
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>About us</title>
91
- <sort_order>0</sort_order>
92
- <action>bannerslider/adminhtml_bannersliderbackend</action>
93
- </bannersliderbackend>
94
- <imagegallery module="bannerslider">
95
- <title>Manage Imagegallery</title>
96
- <sort_order>0</sort_order>
97
- <action>bannerslider/adminhtml_imagegallery</action>
98
- </imagegallery>
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>About us</title>
115
- </bannersliderbackend>
116
- <imagegallery translate="title">
117
- <title>Manage Imagegallery</title>
118
- <sort_order>0</sort_order>
119
- </imagegallery>
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/etc/system.xml DELETED
@@ -1,59 +0,0 @@
1
- <?xml version="1.0"?>
2
- <config>
3
- <tabs>
4
- <imagegallerytab translate="label" module="bannerslider">
5
- <label>Mks Image gallery (Pop Up)</label>
6
- <sort_order>0</sort_order>
7
- </imagegallerytab>
8
- </tabs>
9
- <sections>
10
- <imagegallerysection translate="label" module="bannerslider">
11
- <label>General Setting</label>
12
- <tab>imagegallerytab</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
- <imagegallerygroup translate="label">
20
- <label>Gallery 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
- <enable translate="label">
28
- <label>Enable</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
- </enable>
36
- <paggingstart translate="label">
37
- <label>After Pagging Start</label>
38
- <frontend_type>text</frontend_type>
39
- <sort_order>0</sort_order>
40
- <show_in_default>1</show_in_default>
41
- <show_in_website>1</show_in_website>
42
- <show_in_store>1</show_in_store>
43
- <comment>5,10,15,20,25,30.....Default (12)</comment>
44
- </paggingstart>
45
- <rowitem translate="label">
46
- <label>Number Of Row item</label>
47
- <frontend_type>text</frontend_type>
48
- <sort_order>0</sort_order>
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>
56
- </groups>
57
- </imagegallerysection>
58
- </sections>
59
- </config>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Bannerslider/sql/bannerslider_setup/mysql4-install-8.1.1.php DELETED
@@ -1,37 +0,0 @@
1
- <?php
2
- $installer = $this;
3
- $installer->startSetup();
4
- $sql=<<<SQLTEXT
5
- create table {$this->getTable('popupgalleryslider')}(id int not null auto_increment, title varchar(255), image varchar(255), url varchar(255), description varchar(255), status varchar(100), primary key(id));
6
-
7
-
8
- insert into {$this->getTable('popupgalleryslider')} (`title`,`image`,`description`,`url`,`status`) VALUES
9
- ('Image gallery 1','bannerslider/imagegallery/3.jpg','Image gallery 1','www.google.com','0'),
10
- ('Image gallery 2','bannerslider/imagegallery/4.jpg','Image gallery 2','www.google.com','0'),
11
- ('Image gallery 3','bannerslider/imagegallery/5.jpg','Image gallery 3','www.google.com','0'),
12
- ('Image gallery 4','bannerslider/imagegallery/6.jpg','Image gallery 4','www.google.com','0'),
13
- ('Image gallery 5','bannerslider/imagegallery/7.jpg','Image gallery 5','www.google.com','0'),
14
- ('Image gallery 6','bannerslider/imagegallery/8.jpg','Image gallery 6','www.google.com','0'),
15
- ('Image gallery 7','bannerslider/imagegallery/9.jpg','Image gallery 7','www.google.com','0'),
16
- ('Image gallery 8','bannerslider/imagegallery/10.jpg','Image gallery 8','www.google.com','0'),
17
- ('Image gallery 9','bannerslider/imagegallery/11.jpg','Image gallery 9','www.google.com','0'),
18
- ('Image gallery 10','bannerslider/imagegallery/2.jpg','Image gallery 10','www.google.com','0'),
19
- ('Image gallery 11','bannerslider/imagegallery/3.jpg','Image gallery 11','www.google.com','0'),
20
- ('Image gallery 12','bannerslider/imagegallery/4.jpg','Image gallery 12','www.google.com','0'),
21
- ('Image gallery 13','bannerslider/imagegallery/5.jpg','Image gallery 13','www.google.com','0'),
22
- ('Image gallery 14','bannerslider/imagegallery/6.jpg','Image gallery 14','www.google.com','0'),
23
- ('Image gallery 15','bannerslider/imagegallery/7.jpg','Image gallery 15','www.google.com','0'),
24
- ('Image gallery 16','bannerslider/imagegallery/8.jpg','Image gallery 16','www.google.com','0'),
25
- ('Image gallery 17','bannerslider/imagegallery/9.jpg','Image gallery 17','www.google.com','0'),
26
- ('Image gallery 18','bannerslider/imagegallery/10.jpg','Image gallery 18','www.google.com','0'),
27
- ('Image gallery 19','bannerslider/imagegallery/11.jpg','Image gallery 19','www.google.com','0'),
28
- ('Image gallery 20','bannerslider/imagegallery/2.jpg','Image gallery 20','www.google.com','0');
29
-
30
- SQLTEXT;
31
-
32
- $installer->run($sql);
33
- //demo
34
- //Mage::getModel('core/url_rewrite')->setId(null);
35
- //demo
36
- $installer->endSetup();
37
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/OrderCancel/Block/Order/History.php DELETED
@@ -1,34 +0,0 @@
1
- <?php
2
-
3
- /**
4
- * Mks Soft
5
- *
6
- * NOTICE OF LICENSE
7
- *
8
- * This source file is subject to the Open Software License (OSL 3.0)
9
- * It is available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- *
12
- * @category Mks
13
- * @package Mks_OrderCancel
14
- * @copyright Copyright (c) 2011 Mks Soft (Mks.soft@gmail.com)
15
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
16
- */
17
-
18
- /**
19
- * Orders history block
20
- *
21
- * @author Mks Soft <Mks.soft@gmail.com>
22
- * @see Mage_Sales_Block_Order_History
23
- */
24
- class Mks_OrderCancel_Block_Order_History extends Mage_Sales_Block_Order_History
25
- {
26
- public function __construct()
27
- {
28
- parent::__construct();
29
-
30
- // Replace default template
31
- $this->setTemplate('ordercancel/sales/order/history.phtml');
32
- }
33
-
34
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/OrderCancel/Block/Order/History.php~ DELETED
@@ -1,34 +0,0 @@
1
- <?php
2
-
3
- /**
4
- * Mks Soft
5
- *
6
- * NOTICE OF LICENSE
7
- *
8
- * This source file is subject to the Open Software License (OSL 3.0)
9
- * It is available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- *
12
- * @category Mks
13
- * @package Mks_OrderCancel
14
- * @copyright Copyright (c) 2011 Mks Soft (Mks.soft@gmail.com)
15
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
16
- */
17
-
18
- /**
19
- * Orders history block
20
- *
21
- * @author Mks Soft <Mks.soft@gmail.com>
22
- * @see Mage_Sales_Block_Order_History
23
- */
24
- class Mks_OrderCancel_Block_Order_History extends Mage_Sales_Block_Order_History
25
- {
26
- public function __construct()
27
- {
28
- parent::__construct();
29
-
30
- // Replace default template
31
- $this->setTemplate('ordercancel/sales/order/history.phtml');
32
- }
33
-
34
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/OrderCancel/Data.php DELETED
@@ -1,20 +0,0 @@
1
- <?php
2
- /**
3
- * Mks Soft
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * It is available through the world-wide-web at this URL:
9
- * http://opensource.org/licenses/osl-3.0.php
10
- *
11
- * @category Mks
12
- * @package Mks_OrderCancel
13
- * @copyright Copyright (c) 2011 Mks Soft (mks.soft@gmail.com)
14
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
15
- */
16
-
17
- class Mks_OrderCanecl_Helper_Data extends Mage_Core_Helper_Abstract
18
- {
19
- // Do nothing
20
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/OrderCancel/Data/Data.php DELETED
@@ -1,20 +0,0 @@
1
- <?php
2
- /**
3
- * Mks Soft
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * It is available through the world-wide-web at this URL:
9
- * http://opensource.org/licenses/osl-3.0.php
10
- *
11
- * @category Mks
12
- * @package Mks_OrderCancel
13
- * @copyright Copyright (c) 2011 Mks Soft (mks.soft@gmail.com)
14
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
15
- */
16
-
17
- class Mks_OrderCanecl_Helper_Data extends Mage_Core_Helper_Abstract
18
- {
19
- // Do nothing
20
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/OrderCancel/Data/Data.php~ DELETED
@@ -1,20 +0,0 @@
1
- <?php
2
- /**
3
- * Mks Soft
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * It is available through the world-wide-web at this URL:
9
- * http://opensource.org/licenses/osl-3.0.php
10
- *
11
- * @category Mks
12
- * @package Mks_OrderCancel
13
- * @copyright Copyright (c) 2011 Mks Soft (mks.soft@gmail.com)
14
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
15
- */
16
-
17
- class Mks_OrderCanecl_Helper_Data extends Mage_Core_Helper_Abstract
18
- {
19
- // Do nothing
20
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/OrderCancel/controllers/OrderController.php DELETED
@@ -1,40 +0,0 @@
1
- <?php
2
- /**
3
- * Mks Soft
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * It is available through the world-wide-web at this URL:
9
- * http://opensource.org/licenses/osl-3.0.php
10
- *
11
- * @category Mks
12
- * @package Mks_OrderCancel
13
- * @copyright Copyright (c) 2011 Mks Soft (mks.soft@gmail.com)
14
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
15
- */
16
-
17
- /**
18
- * OrderCancel controller class
19
- */
20
- class Mks_OrderCancel_OrderController extends Mage_Core_Controller_Front_Action
21
- {
22
- /**
23
- * Handles cancel order action
24
- */
25
- public function cancelAction()
26
- {
27
- $orderId = $this->getRequest()->get('order_id');
28
-
29
- // Load order
30
- if(!empty($orderId)) {
31
- $order = Mage::getModel('sales/order')->load($orderId);
32
- $order->cancel();
33
- $order->save();
34
- Mage::getSingleton('core/session')->addSuccess($this->__("Order was successfully cancelled."));
35
- }
36
-
37
- // Redirect back to orders list
38
- $this->_redirect('sales/order/history/');
39
- }
40
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/OrderCancel/controllers/OrderController.php~ DELETED
@@ -1,40 +0,0 @@
1
- <?php
2
- /**
3
- * Mks Soft
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * It is available through the world-wide-web at this URL:
9
- * http://opensource.org/licenses/osl-3.0.php
10
- *
11
- * @category Mks
12
- * @package Mks_OrderCancel
13
- * @copyright Copyright (c) 2011 Mks Soft (mks.soft@gmail.com)
14
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
15
- */
16
-
17
- /**
18
- * OrderCancel controller class
19
- */
20
- class Mks_OrderCancel_OrderController extends Mage_Core_Controller_Front_Action
21
- {
22
- /**
23
- * Handles cancel order action
24
- */
25
- public function cancelAction()
26
- {
27
- $orderId = $this->getRequest()->get('order_id');
28
-
29
- // Load order
30
- if(!empty($orderId)) {
31
- $order = Mage::getModel('sales/order')->load($orderId);
32
- $order->cancel();
33
- $order->save();
34
- Mage::getSingleton('core/session')->addSuccess($this->__("Order was successfully cancelled."));
35
- }
36
-
37
- // Redirect back to orders list
38
- $this->_redirect('sales/order/history/');
39
- }
40
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/OrderCancel/etc/config.xml DELETED
@@ -1,61 +0,0 @@
1
- <?xml version="1.0"?>
2
- <!--
3
- /**
4
- * Mks Soft
5
- *
6
- * NOTICE OF LICENSE
7
- *
8
- * This source file is subject to the Open Software License (OSL 3.0)
9
- * It is available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- *
12
- * @category Mks
13
- * @package Mks_OrderCancel
14
- * @copyright Copyright (c) 2011 Mks Soft (mks.soft@gmail.com)
15
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
16
- */
17
- -->
18
- <config>
19
- <modules>
20
- <Mks_OrderCancel>
21
- <version>0.1.0</version>
22
- </Mks_OrderCancel>
23
- </modules>
24
- <frontend>
25
- <routers>
26
- <ordercancel>
27
- <use>standard</use>
28
- <args>
29
- <module>Mks_OrderCancel</module>
30
- <frontName>ordercancel</frontName>
31
- </args>
32
- </ordercancel>
33
- </routers>
34
- <layout>
35
- <updates>
36
- <ordercancel>
37
- <file>ordercancel.xml</file>
38
- </ordercancel>
39
- </updates>
40
- </layout>
41
- </frontend>
42
- <global>
43
- <blocks>
44
- <ordercancel>
45
- <class>Mks_OrderCancel_Block</class>
46
- </ordercancel>
47
- <sales>
48
- <rewrite>
49
- <order_history>Mks_OrderCancel_Block_Order_History</order_history>
50
- </rewrite>
51
- </sales>
52
- </blocks>
53
- <rewrite>
54
- <mks_ordercancel>
55
- <!-- be sure to have only # at the end or the source -->
56
- <from><![CDATA[#^/sales/order/cancel/(.*)#]]></from>
57
- <to><![CDATA[/ordercancel/order/cancel/$1]]></to>
58
- </mks_ordercancel>
59
- </rewrite>
60
- </global>
61
- </config>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/OrderCancel/etc/config.xml~ DELETED
@@ -1,61 +0,0 @@
1
- <?xml version="1.0"?>
2
- <!--
3
- /**
4
- * Mks Soft
5
- *
6
- * NOTICE OF LICENSE
7
- *
8
- * This source file is subject to the Open Software License (OSL 3.0)
9
- * It is available through the world-wide-web at this URL:
10
- * http://opensource.org/licenses/osl-3.0.php
11
- *
12
- * @category Mks
13
- * @package Mks_OrderCancel
14
- * @copyright Copyright (c) 2011 Mks Soft (mks.soft@gmail.com)
15
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
16
- */
17
- -->
18
- <config>
19
- <modules>
20
- <Mks_OrderCancel>
21
- <version>0.1.0</version>
22
- </Mks_OrderCancel>
23
- </modules>
24
- <frontend>
25
- <routers>
26
- <ordercancel>
27
- <use>standard</use>
28
- <args>
29
- <module>Mks_OrderCancel</module>
30
- <frontName>ordercancel</frontName>
31
- </args>
32
- </ordercancel>
33
- </routers>
34
- <layout>
35
- <updates>
36
- <ordercancel>
37
- <file>ordercancel.xml</file>
38
- </ordercancel>
39
- </updates>
40
- </layout>
41
- </frontend>
42
- <global>
43
- <blocks>
44
- <ordercancel>
45
- <class>Mks_OrderCancel_Block</class>
46
- </ordercancel>
47
- <sales>
48
- <rewrite>
49
- <order_history>Mks_OrderCancel_Block_Order_History</order_history>
50
- </rewrite>
51
- </sales>
52
- </blocks>
53
- <rewrite>
54
- <mks_ordercancel>
55
- <!-- be sure to have only # at the end or the source -->
56
- <from><![CDATA[#^/sales/order/cancel/(.*)#]]></from>
57
- <to><![CDATA[/ordercancel/order/cancel/$1]]></to>
58
- </mks_ordercancel>
59
- </rewrite>
60
- </global>
61
- </config>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/{Responsivebanner.php → Responsivebannerslider.php} RENAMED
@@ -1,14 +1,14 @@
1
  <?php
2
 
3
 
4
- class Mks_Responsivebannerslider_Block_Adminhtml_Responsivebanner extends Mage_Adminhtml_Block_Widget_Grid_Container{
5
 
6
  public function __construct()
7
  {
8
 
9
- $this->_controller = "adminhtml_responsivebanner";
10
  $this->_blockGroup = "responsivebannerslider";
11
- $this->_headerText = Mage::helper("responsivebannerslider")->__("Responsivebanner Manager");
12
  $this->_addButtonLabel = Mage::helper("responsivebannerslider")->__("Add New Item");
13
  parent::__construct();
14
 
1
  <?php
2
 
3
 
4
+ class Mks_Responsivebannerslider_Block_Adminhtml_Responsivebannerslider extends Mage_Adminhtml_Block_Widget_Grid_Container{
5
 
6
  public function __construct()
7
  {
8
 
9
+ $this->_controller = "adminhtml_responsivebannerslider";
10
  $this->_blockGroup = "responsivebannerslider";
11
+ $this->_headerText = Mage::helper("responsivebannerslider")->__("Responsivebannerslider Manager");
12
  $this->_addButtonLabel = Mage::helper("responsivebannerslider")->__("Add New Item");
13
  parent::__construct();
14
 
app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/{Responsivebanner → Responsivebannerslider}/Edit.php RENAMED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- class Mks_Responsivebannerslider_Block_Adminhtml_Responsivebanner_Edit extends Mage_Adminhtml_Block_Widget_Form_Container
4
  {
5
  public function __construct()
6
  {
@@ -8,7 +8,7 @@ class Mks_Responsivebannerslider_Block_Adminhtml_Responsivebanner_Edit extends M
8
  parent::__construct();
9
  $this->_objectId = "id";
10
  $this->_blockGroup = "responsivebannerslider";
11
- $this->_controller = "adminhtml_responsivebanner";
12
  $this->_updateButton("save", "label", Mage::helper("responsivebannerslider")->__("Save Item"));
13
  $this->_updateButton("delete", "label", Mage::helper("responsivebannerslider")->__("Delete Item"));
14
 
@@ -30,9 +30,9 @@ class Mks_Responsivebannerslider_Block_Adminhtml_Responsivebanner_Edit extends M
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{
1
  <?php
2
 
3
+ class Mks_Responsivebannerslider_Block_Adminhtml_Responsivebannerslider_Edit extends Mage_Adminhtml_Block_Widget_Form_Container
4
  {
5
  public function __construct()
6
  {
8
  parent::__construct();
9
  $this->_objectId = "id";
10
  $this->_blockGroup = "responsivebannerslider";
11
+ $this->_controller = "adminhtml_responsivebannerslider";
12
  $this->_updateButton("save", "label", Mage::helper("responsivebannerslider")->__("Save Item"));
13
  $this->_updateButton("delete", "label", Mage::helper("responsivebannerslider")->__("Delete Item"));
14
 
30
 
31
  public function getHeaderText()
32
  {
33
+ if( Mage::registry("responsivebannerslider_data") && Mage::registry("responsivebannerslider_data")->getId() ){
34
 
35
+ return Mage::helper("responsivebannerslider")->__("Edit Item '%s'", $this->htmlEscape(Mage::registry("responsivebannerslider_data")->getId()));
36
 
37
  }
38
  else{
app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/{Responsivebanner → Responsivebannerslider}/Edit/Form.php RENAMED
@@ -1,5 +1,5 @@
1
  <?php
2
- class Mks_Responsivebannerslider_Block_Adminhtml_Responsivebanner_Edit_Form extends Mage_Adminhtml_Block_Widget_Form
3
  {
4
  protected function _prepareForm()
5
  {
1
  <?php
2
+ class Mks_Responsivebannerslider_Block_Adminhtml_Responsivebannerslider_Edit_Form extends Mage_Adminhtml_Block_Widget_Form
3
  {
4
  protected function _prepareForm()
5
  {
app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/{Responsivebanner → Responsivebannerslider}/Edit/Tab/Form.php RENAMED
@@ -1,5 +1,5 @@
1
  <?php
2
- class Mks_Responsivebannerslider_Block_Adminhtml_Responsivebanner_Edit_Tab_Form extends Mage_Adminhtml_Block_Widget_Form
3
  {
4
  protected function _prepareForm()
5
  {
@@ -10,12 +10,14 @@ class Mks_Responsivebannerslider_Block_Adminhtml_Responsivebanner_Edit_Tab_Form
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
  ));
@@ -29,19 +31,26 @@ class Mks_Responsivebannerslider_Block_Adminhtml_Responsivebanner_Edit_Tab_Form
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
  }
1
  <?php
2
+ class Mks_Responsivebannerslider_Block_Adminhtml_Responsivebannerslider_Edit_Tab_Form extends Mage_Adminhtml_Block_Widget_Form
3
  {
4
  protected function _prepareForm()
5
  {
10
 
11
 
12
  $fieldset->addField("title", "text", array(
13
+ "label" => Mage::helper("responsivebannerslider")->__("Title"),
14
+ "class" => "required-entry",
15
+ "required" => true,
16
  "name" => "title",
17
  ));
18
 
19
  $fieldset->addField('image', 'image', array(
20
+ 'label' => Mage::helper('responsivebannerslider')->__('Images'),
21
  'name' => 'image',
22
  'note' => '(*.jpg, *.png, *.gif)',
23
  ));
31
  "name" => "url",
32
  ));
33
 
34
+ $fieldset->addField("imageorder", "text", array(
35
+ "label" => Mage::helper("responsivebannerslider")->__("Images Order"),
36
+ "name" => "imageorder",
37
+ ));
38
+
39
+ $fieldset->addField('status', 'select', array(
40
+ 'label' => Mage::helper('responsivebannerslider')->__('Status'),
41
+ 'values' => Mks_Responsivebannerslider_Block_Adminhtml_Responsivebannerslider_Grid::getValueArray5(),
42
+ 'name' => 'status',
43
+ "class" => "required-entry",
44
+ "required" => true,
45
  ));
 
46
 
47
+ if (Mage::getSingleton("adminhtml/session")->getResponsivebannersliderData())
48
  {
49
+ $form->setValues(Mage::getSingleton("adminhtml/session")->getResponsivebannersliderData());
50
+ Mage::getSingleton("adminhtml/session")->setResponsivebannersliderData(null);
51
  }
52
+ elseif(Mage::registry("responsivebannerslider_data")) {
53
+ $form->setValues(Mage::registry("responsivebannerslider_data")->getData());
54
  }
55
  return parent::_prepareForm();
56
  }
app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/{Responsivebanner → Responsivebannerslider}/Edit/Tabs.php RENAMED
@@ -1,10 +1,10 @@
1
  <?php
2
- class Mks_Responsivebannerslider_Block_Adminhtml_Responsivebanner_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs
3
  {
4
  public function __construct()
5
  {
6
  parent::__construct();
7
- $this->setId("responsivebanner_tabs");
8
  $this->setDestElementId("edit_form");
9
  $this->setTitle(Mage::helper("responsivebannerslider")->__("Item Information"));
10
  }
@@ -13,7 +13,7 @@ class Mks_Responsivebannerslider_Block_Adminhtml_Responsivebanner_Edit_Tabs exte
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
  }
1
  <?php
2
+ class Mks_Responsivebannerslider_Block_Adminhtml_Responsivebannerslider_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs
3
  {
4
  public function __construct()
5
  {
6
  parent::__construct();
7
+ $this->setId("responsivebannerslider_tabs");
8
  $this->setDestElementId("edit_form");
9
  $this->setTitle(Mage::helper("responsivebannerslider")->__("Item Information"));
10
  }
13
  $this->addTab("form_section", array(
14
  "label" => Mage::helper("responsivebannerslider")->__("Item Information"),
15
  "title" => Mage::helper("responsivebannerslider")->__("Item Information"),
16
+ "content" => $this->getLayout()->createBlock("responsivebannerslider/adminhtml_responsivebannerslider_edit_tab_form")->toHtml(),
17
  ));
18
  return parent::_beforeToHtml();
19
  }
app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/{Responsivebanner → Responsivebannerslider}/Grid.php RENAMED
@@ -1,12 +1,12 @@
1
  <?php
2
 
3
- class Mks_Responsivebannerslider_Block_Adminhtml_Responsivebanner_Grid extends Mage_Adminhtml_Block_Widget_Grid
4
  {
5
 
6
  public function __construct()
7
  {
8
  parent::__construct();
9
- $this->setId("responsivebannerGrid");
10
  $this->setDefaultSort("id");
11
  $this->setDefaultDir("DESC");
12
  $this->setSaveParametersInSession(true);
@@ -14,7 +14,7 @@ class Mks_Responsivebannerslider_Block_Adminhtml_Responsivebanner_Grid extends M
14
 
15
  protected function _prepareCollection()
16
  {
17
- $collection = Mage::getModel("responsivebannerslider/responsivebanner")->getCollection();
18
  $this->setCollection($collection);
19
  return parent::_prepareCollection();
20
  }
@@ -36,11 +36,17 @@ class Mks_Responsivebannerslider_Block_Adminhtml_Responsivebanner_Grid extends M
36
  "header" => Mage::helper("responsivebannerslider")->__("URL"),
37
  "index" => "url",
38
  ));
39
- $this->addColumn("status", array(
40
- "header" => Mage::helper("responsivebannerslider")->__("Status"),
41
- "index" => "status",
42
- ));
43
- $this->addRssList('responsivebannerslider/adminhtml_rss_rss/responsivebanner', Mage::helper('responsivebannerslider')->__('RSS'));
 
 
 
 
 
 
44
  $this->addExportType('*/*/exportCsv', Mage::helper('sales')->__('CSV'));
45
  $this->addExportType('*/*/exportExcel', Mage::helper('sales')->__('Excel'));
46
 
@@ -59,13 +65,30 @@ class Mks_Responsivebannerslider_Block_Adminhtml_Responsivebanner_Grid extends M
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
  }
1
  <?php
2
 
3
+ class Mks_Responsivebannerslider_Block_Adminhtml_Responsivebannerslider_Grid extends Mage_Adminhtml_Block_Widget_Grid
4
  {
5
 
6
  public function __construct()
7
  {
8
  parent::__construct();
9
+ $this->setId("responsivebannersliderGrid");
10
  $this->setDefaultSort("id");
11
  $this->setDefaultDir("DESC");
12
  $this->setSaveParametersInSession(true);
14
 
15
  protected function _prepareCollection()
16
  {
17
+ $collection = Mage::getModel("responsivebannerslider/responsivebannerslider")->getCollection();
18
  $this->setCollection($collection);
19
  return parent::_prepareCollection();
20
  }
36
  "header" => Mage::helper("responsivebannerslider")->__("URL"),
37
  "index" => "url",
38
  ));
39
+ $this->addColumn("imageorder", array(
40
+ "header" => Mage::helper("responsivebannerslider")->__("Images Order"),
41
+ "index" => "imageorder",
42
+ ));
43
+ $this->addColumn('status', array(
44
+ 'header' => Mage::helper('responsivebannerslider')->__('Status'),
45
+ 'index' => 'status',
46
+ 'type' => 'options',
47
+ 'options'=>Mks_Responsivebannerslider_Block_Adminhtml_Responsivebannerslider_Grid::getOptionArray5(),
48
+ ));
49
+
50
  $this->addExportType('*/*/exportCsv', Mage::helper('sales')->__('CSV'));
51
  $this->addExportType('*/*/exportExcel', Mage::helper('sales')->__('Excel'));
52
 
65
  $this->setMassactionIdField('id');
66
  $this->getMassactionBlock()->setFormFieldName('ids');
67
  $this->getMassactionBlock()->setUseSelectAll(true);
68
+ $this->getMassactionBlock()->addItem('remove_responsivebannerslider', array(
69
+ 'label'=> Mage::helper('responsivebannerslider')->__('Remove Responsivebannerslider'),
70
+ 'url' => $this->getUrl('*/adminhtml_responsivebannerslider/massRemove'),
71
  'confirm' => Mage::helper('responsivebannerslider')->__('Are you sure?')
72
  ));
73
  return $this;
74
  }
75
 
76
+ static public function getOptionArray5()
77
+ {
78
+ $data_array=array();
79
+ $data_array[0]='Enable';
80
+ $data_array[1]='Disable';
81
+ return($data_array);
82
+ }
83
+ static public function getValueArray5()
84
+ {
85
+ $data_array=array();
86
+ foreach(Mks_Responsivebannerslider_Block_Adminhtml_Responsivebannerslider_Grid::getOptionArray5() 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/Responsivebannerslider/Block/Index.php CHANGED
@@ -3,6 +3,7 @@ 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());
@@ -27,6 +28,6 @@ public function getResponsivebannerPauseOnhover()
27
  {
28
  return Mage::getStoreConfig('generalsetting/mksresponsivegroup/pauseonhover',Mage::app()->getStore());
29
  }
30
-
31
 
32
  }
3
 
4
 
5
 
6
+
7
  public function getResponsivebannersliderEnabled()
8
  {
9
  return Mage::getStoreConfig('generalsetting/mksresponsivegroup/enable',Mage::app()->getStore());
28
  {
29
  return Mage::getStoreConfig('generalsetting/mksresponsivegroup/pauseonhover',Mage::app()->getStore());
30
  }
31
+
32
 
33
  }
app/code/community/Mks/Responsivebannerslider/Model/Mysql4/Responsivebanner.php DELETED
@@ -1,8 +0,0 @@
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 DELETED
@@ -1,12 +0,0 @@
1
- <?php
2
- class Mks_Responsivebannerslider_Model_Mysql4_Responsivebanner_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
3
- {
4
-
5
- public function _construct(){
6
- $this->_init("responsivebannerslider/responsivebanner");
7
- }
8
-
9
-
10
-
11
- }
12
-
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Responsivebannerslider/Model/Mysql4/Responsivebannerslider.php ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Mks_Responsivebannerslider_Model_Mysql4_Responsivebannerslider extends Mage_Core_Model_Mysql4_Abstract
3
+ {
4
+ protected function _construct()
5
+ {
6
+ $this->_init("responsivebannerslider/responsivebannerslider", "id");
7
+ }
8
+ }
app/code/community/Mks/Responsivebannerslider/Model/Mysql4/Responsivebannerslider/Collection.php ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Mks_Responsivebannerslider_Model_Mysql4_Responsivebannerslider_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
3
+ {
4
+
5
+ public function _construct(){
6
+ $this->_init("responsivebannerslider/responsivebannerslider");
7
+ }
8
+
9
+
10
+
11
+ }
12
+
app/code/community/Mks/Responsivebannerslider/Model/Responsivebanner.php DELETED
@@ -1,12 +0,0 @@
1
- <?php
2
-
3
- class Mks_Responsivebannerslider_Model_Responsivebanner extends Mage_Core_Model_Abstract
4
- {
5
- protected function _construct(){
6
-
7
- $this->_init("responsivebannerslider/responsivebanner");
8
-
9
- }
10
-
11
- }
12
-
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Responsivebannerslider/Model/Responsivebannerslider.php ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Mks_Responsivebannerslider_Model_Responsivebannerslider extends Mage_Core_Model_Abstract
4
+ {
5
+ protected function _construct(){
6
+
7
+ $this->_init("responsivebannerslider/responsivebannerslider");
8
+
9
+ }
10
+
11
+ }
12
+
app/code/community/Mks/Responsivebannerslider/controllers/Adminhtml/{ResponsivebannerController.php → ResponsivebannersliderController.php} RENAMED
@@ -1,16 +1,16 @@
1
  <?php
2
 
3
- class Mks_Responsivebannerslider_Adminhtml_ResponsivebannerController extends Mage_Adminhtml_Controller_Action
4
  {
5
  protected function _initAction()
6
  {
7
- $this->loadLayout()->_setActiveMenu("responsivebannerslider/responsivebanner")->_addBreadcrumb(Mage::helper("adminhtml")->__("Responsivebanner Manager"),Mage::helper("adminhtml")->__("Responsivebanner Manager"));
8
  return $this;
9
  }
10
  public function indexAction()
11
  {
12
  $this->_title($this->__("Responsivebannerslider"));
13
- $this->_title($this->__("Manager Responsivebanner"));
14
 
15
  $this->_initAction();
16
  $this->renderLayout();
@@ -18,19 +18,19 @@ class Mks_Responsivebannerslider_Adminhtml_ResponsivebannerController extends Ma
18
  public function editAction()
19
  {
20
  $this->_title($this->__("Responsivebannerslider"));
21
- $this->_title($this->__("Responsivebanner"));
22
  $this->_title($this->__("Edit Item"));
23
 
24
  $id = $this->getRequest()->getParam("id");
25
- $model = Mage::getModel("responsivebannerslider/responsivebanner")->load($id);
26
  if ($model->getId()) {
27
- Mage::register("responsivebanner_data", $model);
28
  $this->loadLayout();
29
- $this->_setActiveMenu("responsivebannerslider/responsivebanner");
30
- $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Responsivebanner Manager"), Mage::helper("adminhtml")->__("Responsivebanner Manager"));
31
- $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Responsivebanner Description"), Mage::helper("adminhtml")->__("Responsivebanner Description"));
32
  $this->getLayout()->getBlock("head")->setCanLoadExtJs(true);
33
- $this->_addContent($this->getLayout()->createBlock("responsivebannerslider/adminhtml_responsivebanner_edit"))->_addLeft($this->getLayout()->createBlock("responsivebannerslider/adminhtml_responsivebanner_edit_tabs"));
34
  $this->renderLayout();
35
  }
36
  else {
@@ -43,29 +43,29 @@ class Mks_Responsivebannerslider_Adminhtml_ResponsivebannerController extends Ma
43
  {
44
 
45
  $this->_title($this->__("Responsivebannerslider"));
46
- $this->_title($this->__("Responsivebanner"));
47
  $this->_title($this->__("New Item"));
48
 
49
  $id = $this->getRequest()->getParam("id");
50
- $model = Mage::getModel("responsivebannerslider/responsivebanner")->load($id);
51
 
52
  $data = Mage::getSingleton("adminhtml/session")->getFormData(true);
53
  if (!empty($data)) {
54
  $model->setData($data);
55
  }
56
 
57
- Mage::register("responsivebanner_data", $model);
58
 
59
  $this->loadLayout();
60
- $this->_setActiveMenu("responsivebannerslider/responsivebanner");
61
 
62
  $this->getLayout()->getBlock("head")->setCanLoadExtJs(true);
63
 
64
- $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Responsivebanner Manager"), Mage::helper("adminhtml")->__("Responsivebanner Manager"));
65
- $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Responsivebanner Description"), Mage::helper("adminhtml")->__("Responsivebanner Description"));
66
 
67
 
68
- $this->_addContent($this->getLayout()->createBlock("responsivebannerslider/adminhtml_responsivebanner_edit"))->_addLeft($this->getLayout()->createBlock("responsivebannerslider/adminhtml_responsivebanner_edit_tabs"));
69
 
70
  $this->renderLayout();
71
 
@@ -98,13 +98,13 @@ else {
98
  if ($_FILES['image']['name']) {
99
 
100
  if($this->getRequest()->getParam("id")){
101
- $model = Mage::getModel("responsivebannerslider/responsivebanner")->load($this->getRequest()->getParam("id"));
102
  if($model->getData('image')){
103
  $io = new Varien_Io_File();
104
  $io->rm(Mage::getBaseDir('media').DS.implode(DS,explode('/',$model->getData('image'))));
105
  }
106
  }
107
- $path = Mage::getBaseDir('media') . DS . 'responsivebannerslider' . DS .'responsivebanner'.DS;
108
  $uploader = new Varien_File_Uploader('image');
109
  $uploader->setAllowedExtensions(array('jpg','png','gif'));
110
  $uploader->setAllowRenameFiles(false);
@@ -113,7 +113,7 @@ else {
113
  $filename = $uploader->getNewFileName($destFile);
114
  $uploader->save($path, $filename);
115
 
116
- $post_data['image']='responsivebannerslider/responsivebanner/'.$filename;
117
  }
118
  }
119
  }
@@ -126,13 +126,13 @@ else {
126
  //save image
127
 
128
 
129
- $model = Mage::getModel("responsivebannerslider/responsivebanner")
130
  ->addData($post_data)
131
  ->setId($this->getRequest()->getParam("id"))
132
  ->save();
133
 
134
- Mage::getSingleton("adminhtml/session")->addSuccess(Mage::helper("adminhtml")->__("Responsivebanner was successfully saved"));
135
- Mage::getSingleton("adminhtml/session")->setResponsivebannerData(false);
136
 
137
  if ($this->getRequest()->getParam("back")) {
138
  $this->_redirect("*/*/edit", array("id" => $model->getId()));
@@ -143,7 +143,7 @@ else {
143
  }
144
  catch (Exception $e) {
145
  Mage::getSingleton("adminhtml/session")->addError($e->getMessage());
146
- Mage::getSingleton("adminhtml/session")->setResponsivebannerData($this->getRequest()->getPost());
147
  $this->_redirect("*/*/edit", array("id" => $this->getRequest()->getParam("id")));
148
  return;
149
  }
@@ -158,7 +158,7 @@ else {
158
  {
159
  if( $this->getRequest()->getParam("id") > 0 ) {
160
  try {
161
- $model = Mage::getModel("responsivebannerslider/responsivebanner");
162
  $model->setId($this->getRequest()->getParam("id"))->delete();
163
  Mage::getSingleton("adminhtml/session")->addSuccess(Mage::helper("adminhtml")->__("Item was successfully deleted"));
164
  $this->_redirect("*/*/");
@@ -177,7 +177,7 @@ else {
177
  try {
178
  $ids = $this->getRequest()->getPost('ids', array());
179
  foreach ($ids as $id) {
180
- $model = Mage::getModel("responsivebannerslider/responsivebanner");
181
  $model->setId($id)->delete();
182
  }
183
  Mage::getSingleton("adminhtml/session")->addSuccess(Mage::helper("adminhtml")->__("Item(s) was successfully removed"));
@@ -193,8 +193,8 @@ else {
193
  */
194
  public function exportCsvAction()
195
  {
196
- $fileName = 'responsivebanner.csv';
197
- $grid = $this->getLayout()->createBlock('responsivebannerslider/adminhtml_responsivebanner_grid');
198
  $this->_prepareDownloadResponse($fileName, $grid->getCsvFile());
199
  }
200
  /**
@@ -202,8 +202,8 @@ else {
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
  }
1
  <?php
2
 
3
+ class Mks_Responsivebannerslider_Adminhtml_ResponsivebannersliderController extends Mage_Adminhtml_Controller_Action
4
  {
5
  protected function _initAction()
6
  {
7
+ $this->loadLayout()->_setActiveMenu("responsivebannerslider/responsivebannerslider")->_addBreadcrumb(Mage::helper("adminhtml")->__("Responsivebannerslider Manager"),Mage::helper("adminhtml")->__("Responsivebannerslider Manager"));
8
  return $this;
9
  }
10
  public function indexAction()
11
  {
12
  $this->_title($this->__("Responsivebannerslider"));
13
+ $this->_title($this->__("Manager Responsivebannerslider"));
14
 
15
  $this->_initAction();
16
  $this->renderLayout();
18
  public function editAction()
19
  {
20
  $this->_title($this->__("Responsivebannerslider"));
21
+ $this->_title($this->__("Responsivebannerslider"));
22
  $this->_title($this->__("Edit Item"));
23
 
24
  $id = $this->getRequest()->getParam("id");
25
+ $model = Mage::getModel("responsivebannerslider/responsivebannerslider")->load($id);
26
  if ($model->getId()) {
27
+ Mage::register("responsivebannerslider_data", $model);
28
  $this->loadLayout();
29
+ $this->_setActiveMenu("responsivebannerslider/responsivebannerslider");
30
+ $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Responsivebannerslider Manager"), Mage::helper("adminhtml")->__("Responsivebannerslider Manager"));
31
+ $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Responsivebannerslider Description"), Mage::helper("adminhtml")->__("Responsivebannerslider Description"));
32
  $this->getLayout()->getBlock("head")->setCanLoadExtJs(true);
33
+ $this->_addContent($this->getLayout()->createBlock("responsivebannerslider/adminhtml_responsivebannerslider_edit"))->_addLeft($this->getLayout()->createBlock("responsivebannerslider/adminhtml_responsivebannerslider_edit_tabs"));
34
  $this->renderLayout();
35
  }
36
  else {
43
  {
44
 
45
  $this->_title($this->__("Responsivebannerslider"));
46
+ $this->_title($this->__("Responsivebannerslider"));
47
  $this->_title($this->__("New Item"));
48
 
49
  $id = $this->getRequest()->getParam("id");
50
+ $model = Mage::getModel("responsivebannerslider/responsivebannerslider")->load($id);
51
 
52
  $data = Mage::getSingleton("adminhtml/session")->getFormData(true);
53
  if (!empty($data)) {
54
  $model->setData($data);
55
  }
56
 
57
+ Mage::register("responsivebannerslider_data", $model);
58
 
59
  $this->loadLayout();
60
+ $this->_setActiveMenu("responsivebannerslider/responsivebannerslider");
61
 
62
  $this->getLayout()->getBlock("head")->setCanLoadExtJs(true);
63
 
64
+ $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Responsivebannerslider Manager"), Mage::helper("adminhtml")->__("Responsivebannerslider Manager"));
65
+ $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Responsivebannerslider Description"), Mage::helper("adminhtml")->__("Responsivebannerslider Description"));
66
 
67
 
68
+ $this->_addContent($this->getLayout()->createBlock("responsivebannerslider/adminhtml_responsivebannerslider_edit"))->_addLeft($this->getLayout()->createBlock("responsivebannerslider/adminhtml_responsivebannerslider_edit_tabs"));
69
 
70
  $this->renderLayout();
71
 
98
  if ($_FILES['image']['name']) {
99
 
100
  if($this->getRequest()->getParam("id")){
101
+ $model = Mage::getModel("responsivebannerslider/responsivebannerslider")->load($this->getRequest()->getParam("id"));
102
  if($model->getData('image')){
103
  $io = new Varien_Io_File();
104
  $io->rm(Mage::getBaseDir('media').DS.implode(DS,explode('/',$model->getData('image'))));
105
  }
106
  }
107
+ $path = Mage::getBaseDir('media') . DS . 'responsivebannerslider' . DS .'responsivebannerslider'.DS;
108
  $uploader = new Varien_File_Uploader('image');
109
  $uploader->setAllowedExtensions(array('jpg','png','gif'));
110
  $uploader->setAllowRenameFiles(false);
113
  $filename = $uploader->getNewFileName($destFile);
114
  $uploader->save($path, $filename);
115
 
116
+ $post_data['image']='responsivebannerslider/responsivebannerslider/'.$filename;
117
  }
118
  }
119
  }
126
  //save image
127
 
128
 
129
+ $model = Mage::getModel("responsivebannerslider/responsivebannerslider")
130
  ->addData($post_data)
131
  ->setId($this->getRequest()->getParam("id"))
132
  ->save();
133
 
134
+ Mage::getSingleton("adminhtml/session")->addSuccess(Mage::helper("adminhtml")->__("Responsivebannerslider was successfully saved"));
135
+ Mage::getSingleton("adminhtml/session")->setResponsivebannersliderData(false);
136
 
137
  if ($this->getRequest()->getParam("back")) {
138
  $this->_redirect("*/*/edit", array("id" => $model->getId()));
143
  }
144
  catch (Exception $e) {
145
  Mage::getSingleton("adminhtml/session")->addError($e->getMessage());
146
+ Mage::getSingleton("adminhtml/session")->setResponsivebannersliderData($this->getRequest()->getPost());
147
  $this->_redirect("*/*/edit", array("id" => $this->getRequest()->getParam("id")));
148
  return;
149
  }
158
  {
159
  if( $this->getRequest()->getParam("id") > 0 ) {
160
  try {
161
+ $model = Mage::getModel("responsivebannerslider/responsivebannerslider");
162
  $model->setId($this->getRequest()->getParam("id"))->delete();
163
  Mage::getSingleton("adminhtml/session")->addSuccess(Mage::helper("adminhtml")->__("Item was successfully deleted"));
164
  $this->_redirect("*/*/");
177
  try {
178
  $ids = $this->getRequest()->getPost('ids', array());
179
  foreach ($ids as $id) {
180
+ $model = Mage::getModel("responsivebannerslider/responsivebannerslider");
181
  $model->setId($id)->delete();
182
  }
183
  Mage::getSingleton("adminhtml/session")->addSuccess(Mage::helper("adminhtml")->__("Item(s) was successfully removed"));
193
  */
194
  public function exportCsvAction()
195
  {
196
+ $fileName = 'responsivebannerslider.csv';
197
+ $grid = $this->getLayout()->createBlock('responsivebannerslider/adminhtml_responsivebannerslider_grid');
198
  $this->_prepareDownloadResponse($fileName, $grid->getCsvFile());
199
  }
200
  /**
202
  */
203
  public function exportExcelAction()
204
  {
205
+ $fileName = 'responsivebannerslider.xml';
206
+ $grid = $this->getLayout()->createBlock('responsivebannerslider/adminhtml_responsivebannerslider_grid');
207
  $this->_prepareDownloadResponse($fileName, $grid->getExcelFile($fileName));
208
  }
209
  }
app/code/community/Mks/Responsivebannerslider/controllers/Adminhtml/Rss/RssController.php DELETED
@@ -1,37 +0,0 @@
1
- <?php
2
-
3
- class Mks_Responsivebannerslider_Adminhtml_Rss_RssController extends Mage_Core_Controller_Front_Action
4
- {
5
-
6
- public function responsivebannerAction()
7
- {
8
-
9
- //DEMO RSS CONTENT
10
- //app\design\frontend\base\default\layout\rss.xml
11
- /*
12
- <rss_order_new>
13
- <block type="rss/order_new" output="toHtml" name="rss.order.new"/>
14
- </rss_order_new>
15
- */
16
- //app\code\core\Mage\Rss\Block\Order\New.php
17
- //DEMO RSS CONTENT
18
-
19
-
20
- $this->getResponse()->setHeader('Content-type', 'text/xml; charset=UTF-8');
21
- $this->loadLayout(false);
22
- $this->renderLayout();
23
- }
24
-
25
- public function preDispatch()
26
- {
27
-
28
- if ($this->getRequest()->getActionName() == 'responsivebanner') {
29
- $this->_currentArea = 'adminhtml';
30
- Mage::helper('rss')->authAdmin('mks/responsivebannerslider');
31
- }
32
-
33
- return parent::preDispatch();
34
- }
35
- }
36
-
37
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Responsivebannerslider/controllers/IndexController.php CHANGED
@@ -3,7 +3,7 @@ class Mks_Responsivebannerslider_IndexController extends Mage_Core_Controller_Fr
3
  public function IndexAction() {
4
 
5
  $this->loadLayout();
6
- $this->getLayout()->getBlock("head")->setTitle($this->__("Mks_Responsivebannerslider"));
7
  $breadcrumbs = $this->getLayout()->getBlock("breadcrumbs");
8
  $breadcrumbs->addCrumb("home", array(
9
  "label" => $this->__("Home Page"),
@@ -11,9 +11,9 @@ class Mks_Responsivebannerslider_IndexController extends Mage_Core_Controller_Fr
11
  "link" => Mage::getBaseUrl()
12
  ));
13
 
14
- $breadcrumbs->addCrumb("mks_responsivebannerslider", array(
15
- "label" => $this->__("Mks_Responsivebannerslider"),
16
- "title" => $this->__("Mks_Responsivebannerslider")
17
  ));
18
 
19
  $this->renderLayout();
3
  public function IndexAction() {
4
 
5
  $this->loadLayout();
6
+ $this->getLayout()->getBlock("head")->setTitle($this->__("Responsivebannerslider"));
7
  $breadcrumbs = $this->getLayout()->getBlock("breadcrumbs");
8
  $breadcrumbs->addCrumb("home", array(
9
  "label" => $this->__("Home Page"),
11
  "link" => Mage::getBaseUrl()
12
  ));
13
 
14
+ $breadcrumbs->addCrumb("responsivebannerslider", array(
15
+ "label" => $this->__("Responsivebannerslider"),
16
+ "title" => $this->__("Responsivebannerslider")
17
  ));
18
 
19
  $this->renderLayout();
app/code/community/Mks/Responsivebannerslider/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Mks_Responsivebannerslider>
5
- <version>8.1.1</version>
6
  </Mks_Responsivebannerslider>
7
  </modules>
8
  <frontend>
@@ -42,9 +42,9 @@
42
  <responsivebannerslider_mysql4>
43
  <class>Mks_Responsivebannerslider_Model_Mysql4</class>
44
  <entities>
45
- <responsivebanner>
46
  <table>mksresponsivebannerslider</table>
47
- </responsivebanner>
48
  </entities>
49
  </responsivebannerslider_mysql4>
50
  </models>
@@ -91,11 +91,11 @@
91
  <sort_order>0</sort_order>
92
  <action>responsivebannerslider/adminhtml_responsivebannersliderbackend</action>
93
  </responsivebannersliderbackend>
94
- <responsivebanner module="responsivebannerslider">
95
- <title>Manage Responsivebanner</title>
96
  <sort_order>0</sort_order>
97
- <action>responsivebannerslider/adminhtml_responsivebanner</action>
98
- </responsivebanner>
99
  </children>
100
  </responsivebannerslider>
101
  </menu>
@@ -113,10 +113,10 @@
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>
2
  <config>
3
  <modules>
4
  <Mks_Responsivebannerslider>
5
+ <version>1.9.1</version>
6
  </Mks_Responsivebannerslider>
7
  </modules>
8
  <frontend>
42
  <responsivebannerslider_mysql4>
43
  <class>Mks_Responsivebannerslider_Model_Mysql4</class>
44
  <entities>
45
+ <responsivebannerslider>
46
  <table>mksresponsivebannerslider</table>
47
+ </responsivebannerslider>
48
  </entities>
49
  </responsivebannerslider_mysql4>
50
  </models>
91
  <sort_order>0</sort_order>
92
  <action>responsivebannerslider/adminhtml_responsivebannersliderbackend</action>
93
  </responsivebannersliderbackend>
94
+ <responsivebannerslider module="responsivebannerslider">
95
+ <title>Manage Responsivebannerslider</title>
96
  <sort_order>0</sort_order>
97
+ <action>responsivebannerslider/adminhtml_responsivebannerslider</action>
98
+ </responsivebannerslider>
99
  </children>
100
  </responsivebannerslider>
101
  </menu>
113
  <responsivebannersliderbackend translate="title">
114
  <title>About Us</title>
115
  </responsivebannersliderbackend>
116
+ <responsivebannerslider translate="title">
117
+ <title>Manage Responsivebannerslider</title>
118
  <sort_order>0</sort_order>
119
+ </responsivebannerslider>
120
  </children>
121
  </responsivebannerslider>
122
  </children>
app/code/community/Mks/Responsivebannerslider/etc/system.xml CHANGED
@@ -28,38 +28,37 @@
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>
28
  <label>Pause OnHover</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
  </pauseonhover>
36
  <styletype translate="label">
37
  <label>Style Type</label>
38
  <frontend_type>select</frontend_type>
39
+ <source_model>adminhtml/system_config_source_Diyoptions14091220731</source_model>
40
+ <sort_order>0</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
  </styletype>
45
  <bannerloop translate="label">
46
  <label>Banner Loop</label>
47
+ <frontend_type>select</frontend_type>
48
+ <source_model>adminhtml/system_config_source_yesno</source_model>
49
+ <sort_order>0</sort_order>
50
  <show_in_default>1</show_in_default>
51
  <show_in_website>1</show_in_website>
52
  <show_in_store>1</show_in_store>
 
53
  </bannerloop>
54
  <slidespeed translate="label">
55
  <label>Slide Speed</label>
56
  <frontend_type>text</frontend_type>
57
+ <sort_order>0</sort_order>
58
  <show_in_default>1</show_in_default>
59
  <show_in_website>1</show_in_website>
60
  <show_in_store>1</show_in_store>
61
+ <comment>Example :- 1000 , 1500 ,2000</comment>
62
  </slidespeed>
63
  <enable translate="label">
64
  <label>Enable</label>
app/code/community/Mks/Responsivebannerslider/sql/responsivebannerslider_setup/mysql4-install-1.9.1.php ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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),imageorder varchar(255),status varchar(255), primary key(id));
6
+
7
+ INSERT INTO {$this->getTable('mksresponsivebannerslider')} (`title`,`image`,`description`,`imageorder`,`status`) VALUES ('Responsive Banner Slider 1','responsivebannerslider/bannerslider/banner-1.jpg','Responsive Banner Slider 1','0','0'),('Responsive Banner Slider 2','responsivebannerslider/bannerslider/banner-2.jpg','Responsive Banner Slider 2','1','0'),
8
+ ('Responsive Banner Slider 3','responsivebannerslider/bannerslider/banner-3.jpg','Responsive Banner Slider 3','2','0');
9
+
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/code/community/Mks/Responsivebannerslider/sql/responsivebannerslider_setup/mysql4-install-1.9.1.php~ ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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),imageorder varchar(255),status varchar(255), primary key(id));
6
+
7
+ INSERT INTO {$this->getTable('mksresponsivebannerslider')} (`title`,`image`,`description`,`imageorder`,`status`) VALUES ('Responsive Banner Slider 1','responsivebannerslider/bannerslider/banner-1.jpg','Responsive Banner Slider 1','0','0'),('Responsive Banner Slider 2','responsivebannerslider/bannerslider/banner-2.jpg','Responsive Banner Slider 2','1','0'),
8
+ ('Responsive Banner Slider 3','responsivebannerslider/bannerslider/banner-3.jpg','Responsive Banner Slider 3','2','0');
9
+
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/code/community/Mks/Responsivebannerslider/sql/responsivebannerslider_setup/mysql4-install-8.1.1.php DELETED
@@ -1,17 +0,0 @@
1
- <?php
2
- $installer = $this;
3
- $installer->startSetup();
4
- $sql=<<<SQLTEXT
5
- create table {$this->getTable('mksresponsivebannerslider')} (id int not null auto_increment, title varchar(255),image varchar(255),description varchar(255),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/Rotateproduct/Block/Adminhtml/Rotateproduct.php DELETED
@@ -1,17 +0,0 @@
1
- <?php
2
-
3
-
4
- class Mks_Rotateproduct_Block_Adminhtml_Rotateproduct extends Mage_Adminhtml_Block_Widget_Grid_Container{
5
-
6
- public function __construct()
7
- {
8
-
9
- $this->_controller = "adminhtml_rotateproduct";
10
- $this->_blockGroup = "rotateproduct";
11
- $this->_headerText = Mage::helper("rotateproduct")->__("Rotateproduct Manager");
12
- $this->_addButtonLabel = Mage::helper("rotateproduct")->__("Add New Item");
13
- parent::__construct();
14
-
15
- }
16
-
17
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Rotateproduct/Block/Adminhtml/Rotateproduct/Edit.php DELETED
@@ -1,44 +0,0 @@
1
- <?php
2
-
3
- class Mks_Rotateproduct_Block_Adminhtml_Rotateproduct_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 = "rotateproduct";
11
- $this->_controller = "adminhtml_rotateproduct";
12
- $this->_updateButton("save", "label", Mage::helper("rotateproduct")->__("Save Item"));
13
- $this->_updateButton("delete", "label", Mage::helper("rotateproduct")->__("Delete Item"));
14
-
15
- $this->_addButton("saveandcontinue", array(
16
- "label" => Mage::helper("rotateproduct")->__("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("rotateproduct_data") && Mage::registry("rotateproduct_data")->getId() ){
34
-
35
- return Mage::helper("rotateproduct")->__("Edit Item '%s'", $this->htmlEscape(Mage::registry("rotateproduct_data")->getId()));
36
-
37
- }
38
- else{
39
-
40
- return Mage::helper("rotateproduct")->__("Add Item");
41
-
42
- }
43
- }
44
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Rotateproduct/Block/Adminhtml/Rotateproduct/Edit/Form.php DELETED
@@ -1,17 +0,0 @@
1
- <?php
2
- class Mks_Rotateproduct_Block_Adminhtml_Rotateproduct_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/Rotateproduct/Block/Adminhtml/Rotateproduct/Edit/Tab/Form.php DELETED
@@ -1,56 +0,0 @@
1
- <?php
2
- class Mks_Rotateproduct_Block_Adminhtml_Rotateproduct_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("rotateproduct_form", array("legend"=>Mage::helper("rotateproduct")->__("Item information")));
10
-
11
-
12
- $fieldset->addField("productid", "text", array(
13
- "label" => Mage::helper("rotateproduct")->__("Product Id"),
14
- "class" => "required-entry",
15
- "required" => true,
16
- "name" => "productid",
17
- ));
18
-
19
- $fieldset->addField("imagename", "text", array(
20
- "label" => Mage::helper("rotateproduct")->__("Image Name"),
21
- "class" => "required-entry",
22
- "required" => true,
23
- "name" => "imagename",
24
- ));
25
-
26
- $fieldset->addField('productimage', 'image', array(
27
- 'label' => Mage::helper('rotateproduct')->__('Product Image'),
28
- 'name' => 'productimage',
29
- 'note' => '(*.jpg, *.png, *.gif)',
30
- ));
31
- $fieldset->addField("imageorder", "text", array(
32
- "label" => Mage::helper("rotateproduct")->__("Image Order"),
33
- "class" => "required-entry",
34
- "required" => true,
35
- "name" => "imageorder",
36
- ));
37
-
38
- $fieldset->addField('status', 'select', array(
39
- 'label' => Mage::helper('rotateproduct')->__('Status'),
40
- 'values' => Mks_Rotateproduct_Block_Adminhtml_Rotateproduct_Grid::getValueArray4(),
41
- 'name' => 'status',
42
- "class" => "required-entry",
43
- "required" => true,
44
- ));
45
-
46
- if (Mage::getSingleton("adminhtml/session")->getRotateproductData())
47
- {
48
- $form->setValues(Mage::getSingleton("adminhtml/session")->getRotateproductData());
49
- Mage::getSingleton("adminhtml/session")->setRotateproductData(null);
50
- }
51
- elseif(Mage::registry("rotateproduct_data")) {
52
- $form->setValues(Mage::registry("rotateproduct_data")->getData());
53
- }
54
- return parent::_prepareForm();
55
- }
56
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Rotateproduct/Block/Adminhtml/Rotateproduct/Edit/Tabs.php DELETED
@@ -1,21 +0,0 @@
1
- <?php
2
- class Mks_Rotateproduct_Block_Adminhtml_Rotateproduct_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs
3
- {
4
- public function __construct()
5
- {
6
- parent::__construct();
7
- $this->setId("rotateproduct_tabs");
8
- $this->setDestElementId("edit_form");
9
- $this->setTitle(Mage::helper("rotateproduct")->__("Item Information"));
10
- }
11
- protected function _beforeToHtml()
12
- {
13
- $this->addTab("form_section", array(
14
- "label" => Mage::helper("rotateproduct")->__("Item Information"),
15
- "title" => Mage::helper("rotateproduct")->__("Item Information"),
16
- "content" => $this->getLayout()->createBlock("rotateproduct/adminhtml_rotateproduct_edit_tab_form")->toHtml(),
17
- ));
18
- return parent::_beforeToHtml();
19
- }
20
-
21
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Rotateproduct/Block/Adminhtml/Rotateproduct/Grid.php DELETED
@@ -1,94 +0,0 @@
1
- <?php
2
-
3
- class Mks_Rotateproduct_Block_Adminhtml_Rotateproduct_Grid extends Mage_Adminhtml_Block_Widget_Grid
4
- {
5
-
6
- public function __construct()
7
- {
8
- parent::__construct();
9
- $this->setId("rotateproductGrid");
10
- $this->setDefaultSort("id");
11
- $this->setDefaultDir("DESC");
12
- $this->setSaveParametersInSession(true);
13
- }
14
-
15
- protected function _prepareCollection()
16
- {
17
- $collection = Mage::getModel("rotateproduct/rotateproduct")->getCollection();
18
- $this->setCollection($collection);
19
- return parent::_prepareCollection();
20
- }
21
- protected function _prepareColumns()
22
- {
23
- $this->addColumn("id", array(
24
- "header" => Mage::helper("rotateproduct")->__("ID"),
25
- "align" =>"right",
26
- "width" => "50px",
27
- "type" => "number",
28
- "index" => "id",
29
- ));
30
-
31
- $this->addColumn("productid", array(
32
- "header" => Mage::helper("rotateproduct")->__("Product Id"),
33
- "index" => "productid",
34
- ));
35
- $this->addColumn("imagename", array(
36
- "header" => Mage::helper("rotateproduct")->__("Image Name"),
37
- "index" => "imagename",
38
- ));
39
- $this->addColumn("imageorder", array(
40
- "header" => Mage::helper("rotateproduct")->__("Image Order"),
41
- "index" => "imageorder",
42
- ));
43
- $this->addColumn('status', array(
44
- 'header' => Mage::helper('rotateproduct')->__('Status'),
45
- 'index' => 'status',
46
- 'type' => 'options',
47
- 'options'=>Mks_Rotateproduct_Block_Adminhtml_Rotateproduct_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_rotateproduct', array(
69
- 'label'=> Mage::helper('rotateproduct')->__('Remove Rotateproduct'),
70
- 'url' => $this->getUrl('*/adminhtml_rotateproduct/massRemove'),
71
- 'confirm' => Mage::helper('rotateproduct')->__('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_Rotateproduct_Block_Adminhtml_Rotateproduct_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/Rotateproduct/Block/Adminhtml/Rotateproductbackend.php DELETED
@@ -1,5 +0,0 @@
1
- <?php
2
-
3
- class Mks_Rotateproduct_Block_Adminhtml_Rotateproductbackend extends Mage_Adminhtml_Block_Template {
4
-
5
- }
 
 
 
 
 
app/code/community/Mks/Rotateproduct/Helper/Data.php DELETED
@@ -1,5 +0,0 @@
1
- <?php
2
- class Mks_Rotateproduct_Helper_Data extends Mage_Core_Helper_Abstract
3
- {
4
- }
5
-
 
 
 
 
 
app/code/community/Mks/Rotateproduct/Model/Mysql4/Rotateproduct.php DELETED
@@ -1,8 +0,0 @@
1
- <?php
2
- class Mks_Rotateproduct_Model_Mysql4_Rotateproduct extends Mage_Core_Model_Mysql4_Abstract
3
- {
4
- protected function _construct()
5
- {
6
- $this->_init("rotateproduct/rotateproduct", "id");
7
- }
8
- }
 
 
 
 
 
 
 
 
app/code/community/Mks/Rotateproduct/Model/Mysql4/Rotateproduct/Collection.php DELETED
@@ -1,12 +0,0 @@
1
- <?php
2
- class Mks_Rotateproduct_Model_Mysql4_Rotateproduct_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
3
- {
4
-
5
- public function _construct(){
6
- $this->_init("rotateproduct/rotateproduct");
7
- }
8
-
9
-
10
-
11
- }
12
-
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Rotateproduct/Model/Rotateproduct.php DELETED
@@ -1,12 +0,0 @@
1
- <?php
2
-
3
- class Mks_Rotateproduct_Model_Rotateproduct extends Mage_Core_Model_Abstract
4
- {
5
- protected function _construct(){
6
-
7
- $this->_init("rotateproduct/rotateproduct");
8
-
9
- }
10
-
11
- }
12
-
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Rotateproduct/controllers/Adminhtml/RotateproductController.php DELETED
@@ -1,209 +0,0 @@
1
- <?php
2
-
3
- class Mks_Rotateproduct_Adminhtml_RotateproductController extends Mage_Adminhtml_Controller_Action
4
- {
5
- protected function _initAction()
6
- {
7
- $this->loadLayout()->_setActiveMenu("rotateproduct/rotateproduct")->_addBreadcrumb(Mage::helper("adminhtml")->__("Rotateproduct Manager"),Mage::helper("adminhtml")->__("Rotateproduct Manager"));
8
- return $this;
9
- }
10
- public function indexAction()
11
- {
12
- $this->_title($this->__("Rotateproduct"));
13
- $this->_title($this->__("Manager Rotateproduct"));
14
-
15
- $this->_initAction();
16
- $this->renderLayout();
17
- }
18
- public function editAction()
19
- {
20
- $this->_title($this->__("Rotateproduct"));
21
- $this->_title($this->__("Rotateproduct"));
22
- $this->_title($this->__("Edit Item"));
23
-
24
- $id = $this->getRequest()->getParam("id");
25
- $model = Mage::getModel("rotateproduct/rotateproduct")->load($id);
26
- if ($model->getId()) {
27
- Mage::register("rotateproduct_data", $model);
28
- $this->loadLayout();
29
- $this->_setActiveMenu("rotateproduct/rotateproduct");
30
- $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Rotateproduct Manager"), Mage::helper("adminhtml")->__("Rotateproduct Manager"));
31
- $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Rotateproduct Description"), Mage::helper("adminhtml")->__("Rotateproduct Description"));
32
- $this->getLayout()->getBlock("head")->setCanLoadExtJs(true);
33
- $this->_addContent($this->getLayout()->createBlock("rotateproduct/adminhtml_rotateproduct_edit"))->_addLeft($this->getLayout()->createBlock("rotateproduct/adminhtml_rotateproduct_edit_tabs"));
34
- $this->renderLayout();
35
- }
36
- else {
37
- Mage::getSingleton("adminhtml/session")->addError(Mage::helper("rotateproduct")->__("Item does not exist."));
38
- $this->_redirect("*/*/");
39
- }
40
- }
41
-
42
- public function newAction()
43
- {
44
-
45
- $this->_title($this->__("Rotateproduct"));
46
- $this->_title($this->__("Rotateproduct"));
47
- $this->_title($this->__("New Item"));
48
-
49
- $id = $this->getRequest()->getParam("id");
50
- $model = Mage::getModel("rotateproduct/rotateproduct")->load($id);
51
-
52
- $data = Mage::getSingleton("adminhtml/session")->getFormData(true);
53
- if (!empty($data)) {
54
- $model->setData($data);
55
- }
56
-
57
- Mage::register("rotateproduct_data", $model);
58
-
59
- $this->loadLayout();
60
- $this->_setActiveMenu("rotateproduct/rotateproduct");
61
-
62
- $this->getLayout()->getBlock("head")->setCanLoadExtJs(true);
63
-
64
- $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Rotateproduct Manager"), Mage::helper("adminhtml")->__("Rotateproduct Manager"));
65
- $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Rotateproduct Description"), Mage::helper("adminhtml")->__("Rotateproduct Description"));
66
-
67
-
68
- $this->_addContent($this->getLayout()->createBlock("rotateproduct/adminhtml_rotateproduct_edit"))->_addLeft($this->getLayout()->createBlock("rotateproduct/adminhtml_rotateproduct_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['productimage']['delete']==1) {
88
-
89
- $post_data['productimage']='';
90
-
91
- }
92
- else {
93
-
94
- unset($post_data['productimage']);
95
-
96
- if (isset($_FILES)){
97
-
98
- if ($_FILES['productimage']['name']) {
99
-
100
- if($this->getRequest()->getParam("id")){
101
- $model = Mage::getModel("rotateproduct/rotateproduct")->load($this->getRequest()->getParam("id"));
102
- if($model->getData('productimage')){
103
- $io = new Varien_Io_File();
104
- $io->rm(Mage::getBaseDir('media').DS.implode(DS,explode('/',$model->getData('productimage'))));
105
- }
106
- }
107
- $path = Mage::getBaseDir('media') . DS . 'rotateproduct' . DS .'rotateproduct'.DS;
108
- $uploader = new Varien_File_Uploader('productimage');
109
- $uploader->setAllowedExtensions(array('jpg','png','gif'));
110
- $uploader->setAllowRenameFiles(false);
111
- $uploader->setFilesDispersion(false);
112
- $destFile = $path.$_FILES['productimage']['name'];
113
- $filename = $uploader->getNewFileName($destFile);
114
- $uploader->save($path, $filename);
115
-
116
- $post_data['productimage']='rotateproduct/rotateproduct/'.$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("rotateproduct/rotateproduct")
130
- ->addData($post_data)
131
- ->setId($this->getRequest()->getParam("id"))
132
- ->save();
133
-
134
- Mage::getSingleton("adminhtml/session")->addSuccess(Mage::helper("adminhtml")->__("Rotateproduct was successfully saved"));
135
- Mage::getSingleton("adminhtml/session")->setRotateproductData(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")->setRotateproductData($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("rotateproduct/rotateproduct");
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("rotateproduct/rotateproduct");
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 = 'rotateproduct.csv';
197
- $grid = $this->getLayout()->createBlock('rotateproduct/adminhtml_rotateproduct_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 = 'rotateproduct.xml';
206
- $grid = $this->getLayout()->createBlock('rotateproduct/adminhtml_rotateproduct_grid');
207
- $this->_prepareDownloadResponse($fileName, $grid->getExcelFile($fileName));
208
- }
209
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Rotateproduct/controllers/Adminhtml/RotateproductbackendController.php DELETED
@@ -1,10 +0,0 @@
1
- <?php
2
- class Mks_Rotateproduct_Adminhtml_RotateproductbackendController 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/Rotateproduct/etc/adminhtml.xml DELETED
@@ -1,23 +0,0 @@
1
- <?xml version="1.0"?>
2
- <config>
3
- <acl>
4
- <resources>
5
- <admin>
6
- <children>
7
- <system>
8
- <children>
9
- <config>
10
- <children>
11
- <rotateproductsection translate="title" module="rotateproduct">
12
- <title>Genaral Setting Section</title>
13
- <sort_order>0</sort_order>
14
- </rotateproductsection>
15
- </children>
16
- </config>
17
- </children>
18
- </system>
19
- </children>
20
- </admin>
21
- </resources>
22
- </acl>
23
- </config>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Rotateproduct/etc/config.xml DELETED
@@ -1,116 +0,0 @@
1
- <?xml version="1.0"?>
2
- <config>
3
- <modules>
4
- <Mks_Rotateproduct>
5
- <version>8.1.1</version>
6
- </Mks_Rotateproduct>
7
- </modules>
8
- <global>
9
- <helpers>
10
- <rotateproduct>
11
- <class>Mks_Rotateproduct_Helper</class>
12
- </rotateproduct>
13
- </helpers>
14
- <blocks>
15
- <rotateproduct>
16
- <class>Mks_Rotateproduct_Block</class>
17
- </rotateproduct>
18
- </blocks>
19
- <models>
20
- <rotateproduct>
21
- <class>Mks_Rotateproduct_Model</class>
22
- <resourceModel>rotateproduct_mysql4</resourceModel>
23
- </rotateproduct>
24
- <rotateproduct_mysql4>
25
- <class>Mks_Rotateproduct_Model_Mysql4</class>
26
- <entities>
27
- <rotateproduct>
28
- <table>mksrotatedegree</table>
29
- </rotateproduct>
30
- </entities>
31
- </rotateproduct_mysql4>
32
- </models>
33
- <resources>
34
- <rotateproduct_setup>
35
- <setup>
36
- <module>Mks_Rotateproduct</module>
37
- </setup>
38
- <connection>
39
- <use>core_setup</use>
40
- </connection>
41
- </rotateproduct_setup>
42
- <rotateproduct_write>
43
- <connection>
44
- <use>core_write</use>
45
- </connection>
46
- </rotateproduct_write>
47
- <rotateproduct_read>
48
- <connection>
49
- <use>core_read</use>
50
- </connection>
51
- </rotateproduct_read>
52
- </resources>
53
- </global>
54
- <admin>
55
- <routers>
56
- <rotateproduct>
57
- <use>admin</use>
58
- <args>
59
- <module>Mks_Rotateproduct</module>
60
- <frontName>rotateproduct</frontName>
61
- </args>
62
- </rotateproduct>
63
- </routers>
64
- </admin>
65
- <adminhtml>
66
- <menu>
67
- <rotateproduct module="rotateproduct">
68
- <title>Rotateproduct</title>
69
- <sort_order>100</sort_order>
70
- <children>
71
- <rotateproductbackend module="rotateproduct">
72
- <title>About Us</title>
73
- <sort_order>0</sort_order>
74
- <action>rotateproduct/adminhtml_rotateproductbackend</action>
75
- </rotateproductbackend>
76
- <rotateproduct module="rotateproduct">
77
- <title>Manage Rotateproduct</title>
78
- <sort_order>0</sort_order>
79
- <action>rotateproduct/adminhtml_rotateproduct</action>
80
- </rotateproduct>
81
- </children>
82
- </rotateproduct>
83
- </menu>
84
- <acl>
85
- <resources>
86
- <all>
87
- <title>Allow Everything</title>
88
- </all>
89
- <admin>
90
- <children>
91
- <rotateproduct translate="title" module="rotateproduct">
92
- <title>Rotateproduct</title>
93
- <sort_order>1000</sort_order>
94
- <children>
95
- <rotateproductbackend translate="title">
96
- <title>About Us</title>
97
- </rotateproductbackend>
98
- <rotateproduct translate="title">
99
- <title>Manage Rotateproduct</title>
100
- <sort_order>0</sort_order>
101
- </rotateproduct>
102
- </children>
103
- </rotateproduct>
104
- </children>
105
- </admin>
106
- </resources>
107
- </acl>
108
- <layout>
109
- <updates>
110
- <rotateproduct>
111
- <file>rotateproduct.xml</file>
112
- </rotateproduct>
113
- </updates>
114
- </layout>
115
- </adminhtml>
116
- </config>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Rotateproduct/etc/system.xml DELETED
@@ -1,78 +0,0 @@
1
- <?xml version="1.0"?>
2
- <config>
3
- <tabs>
4
- <rotateproducttab translate="label" module="rotateproduct">
5
- <label>MKS 360 Degree Rotate</label>
6
- <sort_order>0</sort_order>
7
- </rotateproducttab>
8
- </tabs>
9
- <sections>
10
- <rotateproductsection translate="label" module="rotateproduct">
11
- <label>Genaral Setting</label>
12
- <tab>rotateproducttab</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
- <rotateproductgroup translate="label">
20
- <label>Configuration 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
- <viewerwidth translate="label">
28
- <label>Viewer Width (px)</label>
29
- <frontend_type>text</frontend_type>
30
- <sort_order>0</sort_order>
31
- <show_in_default>1</show_in_default>
32
- <show_in_website>1</show_in_website>
33
- <show_in_store>1</show_in_store>
34
- <comment>Example :- 280</comment>
35
- </viewerwidth>
36
- <viewerheight translate="label">
37
- <label>Viewer Height (px)</label>
38
- <frontend_type>text</frontend_type>
39
- <sort_order>0</sort_order>
40
- <show_in_default>1</show_in_default>
41
- <show_in_website>1</show_in_website>
42
- <show_in_store>1</show_in_store>
43
- <comment>Example :- 280</comment>
44
- </viewerheight>
45
- <licensekey translate="label">
46
- <label>License key</label>
47
- <frontend_type>text</frontend_type>
48
- <sort_order>0</sort_order>
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>mks16464df44%445664*4444%4445#566+58</comment>
53
- </licensekey>
54
- </fields>
55
- </rotateproductgroup>
56
- <rotateproductgroupstatus translate="label">
57
- <label>Configuration Status</label>
58
- <frontend_type>text</frontend_type>
59
- <sort_order>0</sort_order>
60
- <show_in_default>1</show_in_default>
61
- <show_in_website>1</show_in_website>
62
- <show_in_store>1</show_in_store>
63
- <fields>
64
- <status translate="label">
65
- <label>Status</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
- </status>
73
- </fields>
74
- </rotateproductgroupstatus>
75
- </groups>
76
- </rotateproductsection>
77
- </sections>
78
- </config>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Rotateproduct/sql/rotateproduct_setup/mysql4-install-8.1.1.php DELETED
@@ -1,14 +0,0 @@
1
- <?php
2
- $installer = $this;
3
- $installer->startSetup();
4
- $sql=<<<SQLTEXT
5
- create table mksrotatedegree(id int not null auto_increment, productid varchar(255), productimage varchar(255), imagename varchar(255), imageorder varchar(255), status varchar(100), primary key(id));
6
-
7
- SQLTEXT;
8
-
9
- $installer->run($sql);
10
- //demo
11
- //Mage::getModel('core/url_rewrite')->setId(null);
12
- //demo
13
- $installer->endSetup();
14
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Storelocator/Block/Adminhtml/Storelocator.php DELETED
@@ -1,17 +0,0 @@
1
- <?php
2
-
3
-
4
- class Mks_Storelocator_Block_Adminhtml_Storelocator extends Mage_Adminhtml_Block_Widget_Grid_Container{
5
-
6
- public function __construct()
7
- {
8
-
9
- $this->_controller = "adminhtml_storelocator";
10
- $this->_blockGroup = "storelocator";
11
- $this->_headerText = Mage::helper("storelocator")->__("Storelocator Manager");
12
- $this->_addButtonLabel = Mage::helper("storelocator")->__("Add New Item");
13
- parent::__construct();
14
-
15
- }
16
-
17
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Storelocator/Block/Adminhtml/Storelocator/Edit.php DELETED
@@ -1,44 +0,0 @@
1
- <?php
2
-
3
- class Mks_Storelocator_Block_Adminhtml_Storelocator_Edit extends Mage_Adminhtml_Block_Widget_Form_Container
4
- {
5
- public function __construct()
6
- {
7
-
8
- parent::__construct();
9
- $this->_objectId = "id";
10
- $this->_blockGroup = "storelocator";
11
- $this->_controller = "adminhtml_storelocator";
12
- $this->_updateButton("save", "label", Mage::helper("storelocator")->__("Save Item"));
13
- $this->_updateButton("delete", "label", Mage::helper("storelocator")->__("Delete Item"));
14
-
15
- $this->_addButton("saveandcontinue", array(
16
- "label" => Mage::helper("storelocator")->__("Save And Continue Edit"),
17
- "onclick" => "saveAndContinueEdit()",
18
- "class" => "save",
19
- ), -100);
20
-
21
-
22
-
23
- $this->_formScripts[] = "
24
-
25
- function saveAndContinueEdit(){
26
- editForm.submit($('edit_form').action+'back/edit/');
27
- }
28
- ";
29
- }
30
-
31
- public function getHeaderText()
32
- {
33
- if( Mage::registry("storelocator_data") && Mage::registry("storelocator_data")->getId() ){
34
-
35
- return Mage::helper("storelocator")->__("Edit Item '%s'", $this->htmlEscape(Mage::registry("storelocator_data")->getId()));
36
-
37
- }
38
- else{
39
-
40
- return Mage::helper("storelocator")->__("Add Item");
41
-
42
- }
43
- }
44
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Storelocator/Block/Adminhtml/Storelocator/Edit/Form.php DELETED
@@ -1,17 +0,0 @@
1
- <?php
2
- class Mks_Storelocator_Block_Adminhtml_Storelocator_Edit_Form extends Mage_Adminhtml_Block_Widget_Form
3
- {
4
- protected function _prepareForm()
5
- {
6
- $form = new Varien_Data_Form(array(
7
- "id" => "edit_form",
8
- "action" => $this->getUrl("*/*/save", array("id" => $this->getRequest()->getParam("id"))),
9
- "method" => "post",
10
- "enctype" =>"multipart/form-data",
11
- )
12
- );
13
- $form->setUseContainer(true);
14
- $this->setForm($form);
15
- return parent::_prepareForm();
16
- }
17
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Storelocator/Block/Adminhtml/Storelocator/Edit/Tab/Form.php DELETED
@@ -1,111 +0,0 @@
1
- <?php
2
- class Mks_Storelocator_Block_Adminhtml_Storelocator_Edit_Tab_Form extends Mage_Adminhtml_Block_Widget_Form
3
- {
4
- protected function _prepareForm()
5
- {
6
-
7
- $form = new Varien_Data_Form();
8
- $this->setForm($form);
9
- $fieldset = $form->addFieldset("storelocator_form", array("legend"=>Mage::helper("storelocator")->__("Item information")));
10
-
11
-
12
- $fieldset->addField("name", "text", array(
13
- "label" => Mage::helper("storelocator")->__("Name"),
14
- "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 DELETED
@@ -1,21 +0,0 @@
1
- <?php
2
- class Mks_Storelocator_Block_Adminhtml_Storelocator_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs
3
- {
4
- public function __construct()
5
- {
6
- parent::__construct();
7
- $this->setId("storelocator_tabs");
8
- $this->setDestElementId("edit_form");
9
- $this->setTitle(Mage::helper("storelocator")->__("Item Information"));
10
- }
11
- protected function _beforeToHtml()
12
- {
13
- $this->addTab("form_section", array(
14
- "label" => Mage::helper("storelocator")->__("Item Information"),
15
- "title" => Mage::helper("storelocator")->__("Item Information"),
16
- "content" => $this->getLayout()->createBlock("storelocator/adminhtml_storelocator_edit_tab_form")->toHtml(),
17
- ));
18
- return parent::_beforeToHtml();
19
- }
20
-
21
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Storelocator/Block/Adminhtml/Storelocator/Grid.php DELETED
@@ -1,130 +0,0 @@
1
- <?php
2
-
3
- class Mks_Storelocator_Block_Adminhtml_Storelocator_Grid extends Mage_Adminhtml_Block_Widget_Grid
4
- {
5
-
6
- public function __construct()
7
- {
8
- parent::__construct();
9
- $this->setId("storelocatorGrid");
10
- $this->setDefaultSort("id");
11
- $this->setDefaultDir("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 DELETED
@@ -1,5 +0,0 @@
1
- <?php
2
-
3
- class Mks_Storelocator_Block_Adminhtml_Storelocatorbackend extends Mage_Adminhtml_Block_Template {
4
-
5
- }
 
 
 
 
 
app/code/community/Mks/Storelocator/Block/Index.php DELETED
@@ -1,60 +0,0 @@
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 DELETED
@@ -1,5 +0,0 @@
1
- <?php
2
- class Mks_Storelocator_Helper_Data extends Mage_Core_Helper_Abstract
3
- {
4
- }
5
-
 
 
 
 
 
app/code/community/Mks/Storelocator/Model/Mysql4/Storelocator.php DELETED
@@ -1,8 +0,0 @@
1
- <?php
2
- class Mks_Storelocator_Model_Mysql4_Storelocator extends Mage_Core_Model_Mysql4_Abstract
3
- {
4
- protected function _construct()
5
- {
6
- $this->_init("storelocator/storelocator", "id");
7
- }
8
- }
 
 
 
 
 
 
 
 
app/code/community/Mks/Storelocator/Model/Mysql4/Storelocator/Collection.php DELETED
@@ -1,12 +0,0 @@
1
- <?php
2
- class Mks_Storelocator_Model_Mysql4_Storelocator_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
3
- {
4
-
5
- public function _construct(){
6
- $this->_init("storelocator/storelocator");
7
- }
8
-
9
-
10
-
11
- }
12
-
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Storelocator/Model/Storelocator.php DELETED
@@ -1,12 +0,0 @@
1
- <?php
2
-
3
- class Mks_Storelocator_Model_Storelocator extends Mage_Core_Model_Abstract
4
- {
5
- protected function _construct(){
6
-
7
- $this->_init("storelocator/storelocator");
8
-
9
- }
10
-
11
- }
12
-
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Storelocator/controllers/Adminhtml/StorelocatorController.php DELETED
@@ -1,209 +0,0 @@
1
- <?php
2
-
3
- class Mks_Storelocator_Adminhtml_StorelocatorController extends Mage_Adminhtml_Controller_Action
4
- {
5
- protected function _initAction()
6
- {
7
- $this->loadLayout()->_setActiveMenu("storelocator/storelocator")->_addBreadcrumb(Mage::helper("adminhtml")->__("Storelocator Manager"),Mage::helper("adminhtml")->__("Storelocator Manager"));
8
- return $this;
9
- }
10
- public function indexAction()
11
- {
12
- $this->_title($this->__("Storelocator"));
13
- $this->_title($this->__("Manager Storelocator"));
14
-
15
- $this->_initAction();
16
- $this->renderLayout();
17
- }
18
- public function editAction()
19
- {
20
- $this->_title($this->__("Storelocator"));
21
- $this->_title($this->__("Storelocator"));
22
- $this->_title($this->__("Edit Item"));
23
-
24
- $id = $this->getRequest()->getParam("id");
25
- $model = Mage::getModel("storelocator/storelocator")->load($id);
26
- if ($model->getId()) {
27
- Mage::register("storelocator_data", $model);
28
- $this->loadLayout();
29
- $this->_setActiveMenu("storelocator/storelocator");
30
- $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Storelocator Manager"), Mage::helper("adminhtml")->__("Storelocator Manager"));
31
- $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Storelocator Description"), Mage::helper("adminhtml")->__("Storelocator Description"));
32
- $this->getLayout()->getBlock("head")->setCanLoadExtJs(true);
33
- $this->_addContent($this->getLayout()->createBlock("storelocator/adminhtml_storelocator_edit"))->_addLeft($this->getLayout()->createBlock("storelocator/adminhtml_storelocator_edit_tabs"));
34
- $this->renderLayout();
35
- }
36
- else {
37
- Mage::getSingleton("adminhtml/session")->addError(Mage::helper("storelocator")->__("Item does not exist."));
38
- $this->_redirect("*/*/");
39
- }
40
- }
41
-
42
- public function newAction()
43
- {
44
-
45
- $this->_title($this->__("Storelocator"));
46
- $this->_title($this->__("Storelocator"));
47
- $this->_title($this->__("New Item"));
48
-
49
- $id = $this->getRequest()->getParam("id");
50
- $model = Mage::getModel("storelocator/storelocator")->load($id);
51
-
52
- $data = Mage::getSingleton("adminhtml/session")->getFormData(true);
53
- if (!empty($data)) {
54
- $model->setData($data);
55
- }
56
-
57
- Mage::register("storelocator_data", $model);
58
-
59
- $this->loadLayout();
60
- $this->_setActiveMenu("storelocator/storelocator");
61
-
62
- $this->getLayout()->getBlock("head")->setCanLoadExtJs(true);
63
-
64
- $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Storelocator Manager"), Mage::helper("adminhtml")->__("Storelocator Manager"));
65
- $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Storelocator Description"), Mage::helper("adminhtml")->__("Storelocator Description"));
66
-
67
-
68
- $this->_addContent($this->getLayout()->createBlock("storelocator/adminhtml_storelocator_edit"))->_addLeft($this->getLayout()->createBlock("storelocator/adminhtml_storelocator_edit_tabs"));
69
-
70
- $this->renderLayout();
71
-
72
- }
73
- public function saveAction()
74
- {
75
-
76
- $post_data=$this->getRequest()->getPost();
77
-
78
-
79
- if ($post_data) {
80
-
81
- try {
82
-
83
-
84
- //save image
85
- try{
86
-
87
- if((bool)$post_data['image']['delete']==1) {
88
-
89
- $post_data['image']='';
90
-
91
- }
92
- else {
93
-
94
- unset($post_data['image']);
95
-
96
- if (isset($_FILES)){
97
-
98
- if ($_FILES['image']['name']) {
99
-
100
- if($this->getRequest()->getParam("id")){
101
- $model = Mage::getModel("storelocator/storelocator")->load($this->getRequest()->getParam("id"));
102
- if($model->getData('image')){
103
- $io = new Varien_Io_File();
104
- $io->rm(Mage::getBaseDir('media').DS.implode(DS,explode('/',$model->getData('image'))));
105
- }
106
- }
107
- $path = Mage::getBaseDir('media') . DS . 'storelocator' . DS .'storelocator'.DS;
108
- $uploader = new Varien_File_Uploader('image');
109
- $uploader->setAllowedExtensions(array('jpg','png','gif'));
110
- $uploader->setAllowRenameFiles(false);
111
- $uploader->setFilesDispersion(false);
112
- $destFile = $path.$_FILES['image']['name'];
113
- $filename = $uploader->getNewFileName($destFile);
114
- $uploader->save($path, $filename);
115
-
116
- $post_data['image']='storelocator/storelocator/'.$filename;
117
- }
118
- }
119
- }
120
-
121
- } catch (Exception $e) {
122
- Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
123
- $this->_redirect('*/*/edit', array('id' => $this->getRequest()->getParam('id')));
124
- return;
125
- }
126
- //save image
127
-
128
-
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 DELETED
@@ -1,10 +0,0 @@
1
- <?php
2
- class Mks_Storelocator_Adminhtml_StorelocatorbackendController extends Mage_Adminhtml_Controller_Action
3
- {
4
- public function indexAction()
5
- {
6
- $this->loadLayout();
7
- $this->_title($this->__("About Us"));
8
- $this->renderLayout();
9
- }
10
- }
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Storelocator/controllers/IndexController.php DELETED
@@ -1,22 +0,0 @@
1
- <?php
2
- class Mks_Storelocator_IndexController extends Mage_Core_Controller_Front_Action{
3
- public function IndexAction() {
4
-
5
- $this->loadLayout();
6
- $this->getLayout()->getBlock("head")->setTitle($this->__("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 DELETED
@@ -1,23 +0,0 @@
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 DELETED
@@ -1,134 +0,0 @@
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> CSV Import / Export </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 DELETED
@@ -1,159 +0,0 @@
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 DELETED
@@ -1,21 +0,0 @@
1
- <?php
2
- $installer = $this;
3
- $installer->startSetup();
4
- $sql=<<<SQLTEXT
5
- create table {$this->getTable('mksstorelocator')} (id int not null auto_increment, name varchar(100), address varchar(255),zipcode varchar(100),city varchar(100),country_id varchar(100),phone varchar(100),fax varchar(100),description varchar(255),store_url varchar(100),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
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/adminhtml/default/default/layout/responsivebannerslider.xml CHANGED
@@ -5,9 +5,9 @@
5
  <block type="responsivebannerslider/adminhtml_responsivebannersliderbackend" name="responsivebannersliderbackend" template="responsivebannerslider/responsivebannersliderbackend.phtml"/>
6
  </reference>
7
  </responsivebannerslider_adminhtml_responsivebannersliderbackend_index>
8
- <responsivebannerslider_adminhtml_responsivebanner_index>
9
  <reference name="content">
10
- <block type="responsivebannerslider/adminhtml_responsivebanner" name="responsivebanner" />
11
  </reference>
12
- </responsivebannerslider_adminhtml_responsivebanner_index>
13
  </layout>
5
  <block type="responsivebannerslider/adminhtml_responsivebannersliderbackend" name="responsivebannersliderbackend" template="responsivebannerslider/responsivebannersliderbackend.phtml"/>
6
  </reference>
7
  </responsivebannerslider_adminhtml_responsivebannersliderbackend_index>
8
+ <responsivebannerslider_adminhtml_responsivebannerslider_index>
9
  <reference name="content">
10
+ <block type="responsivebannerslider/adminhtml_responsivebannerslider" name="responsivebannerslider" />
11
  </reference>
12
+ </responsivebannerslider_adminhtml_responsivebannerslider_index>
13
  </layout>
app/design/adminhtml/default/default/template/responsivebannerslider/responsivebannersliderbackend.phtml CHANGED
@@ -1 +1 @@
1
- <iframe src="http://www.magentocommerce.com/magento-connect/developer/mukeshsaini" width="100%" height="1000"></iframe>
1
+ <iframe src="http://www.magentocommerce.com/magento-connect/developer/mukeshsaini" width="100%" height="1000"></iframe>
app/design/frontend/base/default/layout/responsivebannerslider.xml CHANGED
@@ -1,5 +1,5 @@
1
  <?xml version="1.0"?>
2
- <layout version="8.1.1">
3
  <responsivebannerslider_index_index>
4
  <reference name="root">
5
  <action method="setTemplate"><template>page/1column.phtml</template></action>
1
  <?xml version="1.0"?>
2
+ <layout version="1.9.1">
3
  <responsivebannerslider_index_index>
4
  <reference name="root">
5
  <action method="setTemplate"><template>page/1column.phtml</template></action>
app/design/frontend/base/default/template/responsivebannerslider/index.phtml CHANGED
@@ -37,7 +37,7 @@ if($slide_type=='1'){ ?>
37
  $connection = Mage::getSingleton('core/resource')->getConnection('core_write');
38
  $prefix = Mage::getConfig()->getTablePrefix();
39
  $tblname=$prefix.'mksresponsivebannerslider';
40
- $sql = $connection->query("select * from $tblname where status='0'");
41
  while($row1 = $sql->fetch())
42
  {
43
  $title = $row1["title"];
37
  $connection = Mage::getSingleton('core/resource')->getConnection('core_write');
38
  $prefix = Mage::getConfig()->getTablePrefix();
39
  $tblname=$prefix.'mksresponsivebannerslider';
40
+ $sql = $connection->query("select * from $tblname where status='0' ORDER BY imageorder ASC ");
41
  while($row1 = $sql->fetch())
42
  {
43
  $title = $row1["title"];
app/etc/modules/Mks_Responsivebannerslider.xml CHANGED
@@ -4,7 +4,7 @@
4
  <Mks_Responsivebannerslider>
5
  <active>true</active>
6
  <codePool>community</codePool>
7
- <version>8.1.1</version>
8
  </Mks_Responsivebannerslider>
9
  </modules>
10
  </config>
4
  <Mks_Responsivebannerslider>
5
  <active>true</active>
6
  <codePool>community</codePool>
7
+ <version>1.9.1</version>
8
  </Mks_Responsivebannerslider>
9
  </modules>
10
  </config>
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Mks_Responsivebannerslider</name>
4
- <version>8.1.2</version>
5
  <stability>stable</stability>
6
  <license>OSL</license>
7
  <channel>community</channel>
8
  <extends/>
9
- <summary>Responsive Banner slider without any jQuery conflict issue Responsive Banner slider . Always use Responsive Banner slider.</summary>
10
  <description>Responsive Banner slider without any jQuery conflict issue Responsive Banner slider . Always use Responsive Banner slider.</description>
11
- <notes>Solved jQuery conflict issue.</notes>
12
  <authors><author><name>Mukesh Kumar saini</name><user>mukeshbagri</user><email>in.mukeshsaini@gmail.com</email></author></authors>
13
- <date>2014-05-13</date>
14
- <time>08:59:31</time>
15
- <contents><target name="mageetc"><dir name="modules"><file name="Mks_Responsivebannerslider.xml" hash="7934db607862763725fa014027f697a3"/></dir></target><target name="magecommunity"><dir name="Mks"><dir name="Allreviews"><dir name="Block"><file name="Index.php" hash="4beb07db3338261a47c0a5eaa15a3f1d"/></dir><dir name="Helper"><file name="Data.php" hash="c522198e77598afdc5c41f3b60fd6194"/></dir><dir name="controllers"><file name="IndexController.php" hash="c2e4099d0e96fddf6d7c3b0cb003ae11"/></dir><dir name="etc"><file name="adminhtml.xml" hash="082d6d717bd13918898ecc5c05367cac"/><file name="config.xml" hash="ce13d78b6f23b36bfc13071590ff83fb"/><file name="system.xml" hash="b77453a2d65d142fe3c5735925f90acc"/></dir></dir><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="OrderCancel"><dir name="Block"><dir name="Order"><file name="History.php" hash="94171d62d920d332b166b9aa65f97a6d"/><file name="History.php~" hash="94171d62d920d332b166b9aa65f97a6d"/></dir></dir><dir name="Data"><file name="Data.php" hash="10732979a1d68b3b690c6286d05ac653"/><file name="Data.php~" hash="10732979a1d68b3b690c6286d05ac653"/></dir><file name="Data.php" hash="10732979a1d68b3b690c6286d05ac653"/><dir name="controllers"><file name="OrderController.php" hash="87aac2aa58b60dc710eff76a148ced2d"/><file name="OrderController.php~" hash="87aac2aa58b60dc710eff76a148ced2d"/></dir><dir name="etc"><file name="config.xml" hash="fd469896ba95684f4e663da364f2cc1a"/><file name="config.xml~" hash="fd469896ba95684f4e663da364f2cc1a"/></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="Rotateproduct"><dir name="Block"><dir name="Adminhtml"><dir name="Rotateproduct"><dir name="Edit"><file name="Form.php" hash="66c40167a1b570053e9caea2261922b7"/><dir name="Tab"><file name="Form.php" hash="45146cf4aa1f8f5e9e80c8c3403b51f6"/></dir><file name="Tabs.php" hash="5ab376e42c204d3992ccbb9c88d8ee1a"/></dir><file name="Edit.php" hash="1faf816c89d068271647c18305cdf95d"/><file name="Grid.php" hash="a096d532e3467c1da9b24c6eb1402d9f"/></dir><file name="Rotateproduct.php" hash="6e9c62fabe5d19dc987491beab3e368d"/><file name="Rotateproductbackend.php" hash="53ed55fece6c27d7bc1588cd921a1138"/></dir></dir><dir name="Helper"><file name="Data.php" hash="5954429ca75652294b2851f84bfc6ffb"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Rotateproduct"><file name="Collection.php" hash="d3c51f572210a74bc258fe0b3eb90b26"/></dir><file name="Rotateproduct.php" hash="753e87486cd4c751028c4f4970d76e80"/></dir><file name="Rotateproduct.php" hash="de0caf728e292c40cf80b224c4f3cd45"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="RotateproductController.php" hash="d60f52c4404eaa123cc2d1f4424aeaac"/><file name="RotateproductbackendController.php" hash="5131061ff7d34384543e034ffb4bc830"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="53e8de58de7101706a5a66bc5e497792"/><file name="config.xml" hash="7f3cd8e3f6aa1794ca63b17d67a09f01"/><file name="system.xml" hash="f6b732653681627f6acc9e3a4031cfc7"/></dir><dir name="sql"><dir name="rotateproduct_setup"><file name="mysql4-install-8.1.1.php" hash="a35aa787e63c2d1dfb6a8631e5e6818b"/></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="85ea167b380cf3a07d35955e7f23caf2"/><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><dir name="Mage"><dir name="Adminhtml"><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><file name="Diyoptions13952315961.php" hash="0334b0ac856f7daf0be12112ab9fa828"/></dir></dir></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="responsivebannerslider"><file name="responsivebannersliderbackend.phtml" hash="6c2fb1e215cc27abe96e1d5a2b006a04"/></dir></dir><dir name="layout"><file name="responsivebannerslider.xml" hash="1b43a794981409d62750bb583ce52a58"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="responsivebannerslider"><file name="index.phtml" hash="e7b886e37b6f554a2903653c92a8dc8b"/></dir></dir><dir name="layout"><file name="responsivebannerslider.xml" hash="0c38a2da33a0b42e71b614be4fc1ec2a"/></dir></dir></dir></dir></target><target name="magemedia"><dir name="responsivebannerslider"><dir name="bannerslider"><file name="banner-1.jpg" hash="973491deb872911a69f7bb1f6138036b"/><file name="banner-2.jpg" hash="92372dc0f2a9454851bed073a3d164a4"/><file name="banner-3.jpg" hash="f0b4946e792dc573b8b76b5aa8935d3d"/></dir><dir name="responsivebannerslider"><file name="mukesh_saini.JPG" hash="8e9ebfdf91ad4b977d07ff2bdda56b67"/></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="responsiveslider"><dir name="css"><file name="generic-nav.css" hash="f0ea48a8ce441ad10e5c631da5b0ae46"/><file name="grid12.css" hash="4cf760c5e87d6ff6e85f653928cbed07"/><file name="styles-banner.css" hash="5f54dc753c338cd41b1a4df180884a4f"/><file name="styles.css" hash="8e45917ed2dd5d388e76b9147ae6a2eb"/><file name="ultra-slideshow.css" hash="d63a04686f1a3b9652053841dcd7ac9a"/></dir><dir name="img"><file name="01.jpg" hash="49dcb5cee2b86a14b80b6ef59e467bc3"/><file name="01_002.jpg" hash="edc7eff6b3c0b38a429c44c656398358"/><file name="02.jpg" hash="0ec3768570d3774c1805a90d615172b2"/><file name="1.jpg" hash="cb627e40504b966d04a1ab52e0ab749e"/><file name="2.jpg" hash="cb627e40504b966d04a1ab52e0ab749e"/><file name="3.jpg" hash="cb627e40504b966d04a1ab52e0ab749e"/><file name="info.png" hash="43d666757fb907b2ee8f44352d80e9ff"/><file name="logo.png" hash="ec59af60870fe42a62debe4721fdf529"/><file name="pager.png" hash="58b23f4350365ca08912ac608f6d2d9e"/><file name="payment.gif" hash="a8daa18fcb3e3845c56ffbca6d140276"/><file name="slider-arrows.png" hash="4f71b34c53eedc49a534566557dddbef"/></dir><dir name="js"><file name="jquery-1.7.2.min.js" hash="a13f7f208ba534681deadb1ec7a2e54a"/><file name="jquery-1.js" hash="a13f7f208ba534681deadb1ec7a2e54a"/><file name="jquery-noconflict.js" hash="3179f2255b046d5f2e9a71e365287bef"/><file name="jquery.easing.min.js" hash="a6f75e0c043a2a087837e5c113cc6f7a"/><file name="jquery.flexslider.min.js" hash="af24b4669a06656c13457625030ec2b8"/><file name="jquery.slides.min.js" hash="832349b4646a92830507b060a3905aba"/><file name="jquery_003.js" hash="235b4112e5ce03c47395746e677b37ea"/><file name="jquery_004.js" hash="a6f75e0c043a2a087837e5c113cc6f7a"/></dir></dir></dir></dir></dir></target></contents>
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_Responsivebannerslider</name>
4
+ <version>1.9.1</version>
5
  <stability>stable</stability>
6
  <license>OSL</license>
7
  <channel>community</channel>
8
  <extends/>
9
+ <summary>Responsive Banner slider no jQuery conflict Banner slider.Responsive Banner slider increase banner look.</summary>
10
  <description>Responsive Banner slider without any jQuery conflict issue Responsive Banner slider . Always use Responsive Banner slider.</description>
11
+ <notes>Add Banner Sort Order feature in admin panel.</notes>
12
  <authors><author><name>Mukesh Kumar saini</name><user>mukeshbagri</user><email>in.mukeshsaini@gmail.com</email></author></authors>
13
+ <date>2014-08-27</date>
14
+ <time>08:43:02</time>
15
+ <contents><target name="mageetc"><dir name="modules"><file name="Mks_Responsivebannerslider.xml" hash="6a272e222fdb28528b91507fa92e3c72"/></dir></target><target name="magecommunity"><dir name="Mks"><dir name="Responsivebannerslider"><dir name="Block"><dir name="Adminhtml"><dir name="Responsivebannerslider"><dir name="Edit"><file name="Form.php" hash="f86a6a2daf3c39135661ea316a0969f7"/><dir name="Tab"><file name="Form.php" hash="b1891cbb14ac058cf1fd010ad19f94f0"/></dir><file name="Tabs.php" hash="55c68b32ebe6b620cc9d7ab289091446"/></dir><file name="Edit.php" hash="87125aacdde51dc58afc9fb6e15a4a01"/><file name="Grid.php" hash="66d1b1528bc332be3965d0fbb337a3e4"/></dir><file name="Responsivebannerslider.php" hash="c3c6f601bf67d26eafc34855a434a0d2"/><file name="Responsivebannersliderbackend.php" hash="492c6c1c9897c51b987a1acadcc42a5c"/></dir><file name="Index.php" hash="d4468a26e915ee5f4c9942023f17e3b2"/></dir><dir name="Helper"><file name="Data.php" hash="54fb6015b45224292e5e47f0004633b6"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Responsivebannerslider"><file name="Collection.php" hash="b7f9c0fc62387f56d5a0e92d8f2edeea"/></dir><file name="Responsivebannerslider.php" hash="2bd8f1e89f06901432db94ba05db5212"/></dir><file name="Responsivebannerslider.php" hash="6285174778e09dc34f0450c3e3bb9ad1"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="ResponsivebannersliderController.php" hash="6ae1a578835731ab1f480dc77855096b"/><file name="ResponsivebannersliderbackendController.php" hash="f095780b42f66f229d8bb76b69bb8f08"/></dir><file name="IndexController.php" hash="c6080d43c394b700e801011603b81a4b"/></dir><dir name="etc"><file name="adminhtml.xml" hash="c44d2173a50ace0dd8b6e8dc6788d5e6"/><file name="config.xml" hash="aabe5379b30122471c7ca1296ba11885"/><file name="system.xml" hash="76bac3da27918114d450f8c4ad7489e8"/></dir><dir name="sql"><dir name="responsivebannerslider_setup"><file name="mysql4-install-1.9.1.php" hash="90cce62c75f7feba686d5d6747f3eb08"/><file name="mysql4-install-1.9.1.php~" hash="409e2316453c4cba8bbdf09ed20e33d6"/></dir></dir></dir></dir><dir name="Mage"><dir name="Adminhtml"><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><file name="Diyoptions14091220731.php" hash="c3f890ae8845be64879e40d2260bc8c6"/></dir></dir></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="responsivebannerslider"><file name="responsivebannersliderbackend.phtml" hash="df18a76ac5d10cd61c8cd0b9fa2ee247"/></dir></dir><dir name="layout"><file name="responsivebannerslider.xml" hash="5dadd1a980f89bc61af23d8c4718ddb5"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="responsivebannerslider"><file name="index.phtml" hash="ef1b451f322350bd61d273e93ec761ec"/></dir></dir><dir name="layout"><file name="responsivebannerslider.xml" hash="f51049f3758f53154fe4b702549f6b43"/></dir></dir></dir></dir></target><target name="magemedia"><dir name="responsivebannerslider"><dir name="bannerslider"><file name="banner-1.jpg" hash="973491deb872911a69f7bb1f6138036b"/><file name="banner-2.jpg" hash="92372dc0f2a9454851bed073a3d164a4"/><file name="banner-3.jpg" hash="f0b4946e792dc573b8b76b5aa8935d3d"/></dir><dir name="responsivebannerslider"><file name="mukesh_saini.JPG" hash="8e9ebfdf91ad4b977d07ff2bdda56b67"/></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="responsiveslider"><dir name="css"><file name="generic-nav.css" hash="f0ea48a8ce441ad10e5c631da5b0ae46"/><file name="grid12.css" hash="c0319ecd032725ff5cd02c4fd6e29fa7"/><file name="styles-banner.css" hash="5f54dc753c338cd41b1a4df180884a4f"/><file name="styles.css" hash="8e45917ed2dd5d388e76b9147ae6a2eb"/><file name="ultra-slideshow.css" hash="d63a04686f1a3b9652053841dcd7ac9a"/></dir><dir name="img"><file name="01.jpg" hash="49dcb5cee2b86a14b80b6ef59e467bc3"/><file name="01_002.jpg" hash="edc7eff6b3c0b38a429c44c656398358"/><file name="02.jpg" hash="0ec3768570d3774c1805a90d615172b2"/><file name="1.jpg" hash="cb627e40504b966d04a1ab52e0ab749e"/><file name="2.jpg" hash="cb627e40504b966d04a1ab52e0ab749e"/><file name="3.jpg" hash="cb627e40504b966d04a1ab52e0ab749e"/><file name="info.png" hash="43d666757fb907b2ee8f44352d80e9ff"/><file name="logo.png" hash="ec59af60870fe42a62debe4721fdf529"/><file name="pager.png" hash="58b23f4350365ca08912ac608f6d2d9e"/><file name="payment.gif" hash="a8daa18fcb3e3845c56ffbca6d140276"/><file name="slider-arrows.png" hash="4f71b34c53eedc49a534566557dddbef"/></dir><dir name="js"><file name="jquery-1.7.2.min.js" hash="a13f7f208ba534681deadb1ec7a2e54a"/><file name="jquery-1.js" hash="a13f7f208ba534681deadb1ec7a2e54a"/><file name="jquery-noconflict.js" hash="3179f2255b046d5f2e9a71e365287bef"/><file name="jquery.easing.min.js" hash="a6f75e0c043a2a087837e5c113cc6f7a"/><file name="jquery.flexslider.min.js" hash="af24b4669a06656c13457625030ec2b8"/><file name="jquery.slides.min.js" hash="832349b4646a92830507b060a3905aba"/><file name="jquery_003.js" hash="235b4112e5ce03c47395746e677b37ea"/><file name="jquery_004.js" hash="a6f75e0c043a2a087837e5c113cc6f7a"/></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
skin/frontend/base/default/responsiveslider/css/grid12.css CHANGED
@@ -1,16 +1,17 @@
1
- /*
2
  * 12-column grid
3
  */
4
 
5
 
6
 
7
  /* Grid container */
 
8
  .container {
9
  margin-left:auto;
10
  margin-right:auto;
11
  }
12
  .nested-container {
13
- width:102%;
14
  margin-left:-1%;
15
  }
16
 
1
+ /*.slides li{margin:0px !important; }
2
  * 12-column grid
3
  */
4
 
5
 
6
 
7
  /* Grid container */
8
+ .slides li{margin:0px !important; }
9
  .container {
10
  margin-left:auto;
11
  margin-right:auto;
12
  }
13
  .nested-container {
14
+ width:100%;
15
  margin-left:-1%;
16
  }
17