Mks_Bannerslider - Version 9.1.1

Version Notes

New Freature :-
Add 3 type new gallery style
1,2,3

Download this release

Release Info

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


Code changes from version 8.1.3 to 9.1.1

Files changed (56) hide show
  1. app/code/community/Mks/Bannerslider/Block/Index.php +49 -0
  2. app/code/community/Mks/Bannerslider/etc/system.xml +78 -3
  3. app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/Responsivebanner.php +0 -17
  4. app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/Responsivebanner/Edit.php +0 -44
  5. app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/Responsivebanner/Edit/Form.php +0 -17
  6. app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/Responsivebanner/Edit/Tab/Form.php +0 -48
  7. app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/Responsivebanner/Edit/Tabs.php +0 -21
  8. app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/Responsivebanner/Grid.php +0 -71
  9. app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/Responsivebannersliderbackend.php +0 -5
  10. app/code/community/Mks/Responsivebannerslider/Block/Index.php +0 -32
  11. app/code/community/Mks/Responsivebannerslider/Helper/Data.php +0 -5
  12. app/code/community/Mks/Responsivebannerslider/Model/Mysql4/Responsivebanner.php +0 -8
  13. app/code/community/Mks/Responsivebannerslider/Model/Mysql4/Responsivebanner/Collection.php +0 -12
  14. app/code/community/Mks/Responsivebannerslider/Model/Responsivebanner.php +0 -12
  15. app/code/community/Mks/Responsivebannerslider/controllers/Adminhtml/ResponsivebannerController.php +0 -209
  16. app/code/community/Mks/Responsivebannerslider/controllers/Adminhtml/ResponsivebannersliderbackendController.php +0 -10
  17. app/code/community/Mks/Responsivebannerslider/controllers/Adminhtml/Rss/RssController.php +0 -37
  18. app/code/community/Mks/Responsivebannerslider/controllers/IndexController.php +0 -22
  19. app/code/community/Mks/Responsivebannerslider/etc/adminhtml.xml +0 -23
  20. app/code/community/Mks/Responsivebannerslider/etc/config.xml +0 -134
  21. app/code/community/Mks/Responsivebannerslider/etc/system.xml +0 -78
  22. app/code/community/Mks/Responsivebannerslider/sql/responsivebannerslider_setup/mysql4-install-8.1.1.php +0 -17
  23. app/code/community/Mks/Storelocator/Block/Adminhtml/Storelocator.php +0 -17
  24. app/code/community/Mks/Storelocator/Block/Adminhtml/Storelocator/Edit.php +0 -44
  25. app/code/community/Mks/Storelocator/Block/Adminhtml/Storelocator/Edit/Form.php +0 -17
  26. app/code/community/Mks/Storelocator/Block/Adminhtml/Storelocator/Edit/Tab/Form.php +0 -111
  27. app/code/community/Mks/Storelocator/Block/Adminhtml/Storelocator/Edit/Tabs.php +0 -21
  28. app/code/community/Mks/Storelocator/Block/Adminhtml/Storelocator/Grid.php +0 -130
  29. app/code/community/Mks/Storelocator/Block/Adminhtml/Storelocatorbackend.php +0 -5
  30. app/code/community/Mks/Storelocator/Block/Index.php +0 -60
  31. app/code/community/Mks/Storelocator/Helper/Data.php +0 -5
  32. app/code/community/Mks/Storelocator/Model/Mysql4/Storelocator.php +0 -8
  33. app/code/community/Mks/Storelocator/Model/Mysql4/Storelocator/Collection.php +0 -12
  34. app/code/community/Mks/Storelocator/Model/Storelocator.php +0 -12
  35. app/code/community/Mks/Storelocator/controllers/Adminhtml/StorelocatorController.php +0 -209
  36. app/code/community/Mks/Storelocator/controllers/Adminhtml/StorelocatorbackendController.php +0 -10
  37. app/code/community/Mks/Storelocator/controllers/IndexController.php +0 -22
  38. app/code/community/Mks/Storelocator/etc/adminhtml.xml +0 -23
  39. app/code/community/Mks/Storelocator/etc/config.xml +0 -134
  40. app/code/community/Mks/Storelocator/etc/system.xml +0 -159
  41. app/code/community/Mks/Storelocator/sql/storelocator_setup/mysql4-install-8.1.1.php +0 -21
  42. app/design/frontend/base/default/template/bannerslider/index.phtml +191 -16
  43. package.xml +6 -8
  44. skin/frontend/base/default/bannerslider/css/imagegallery.css +3 -10
  45. skin/frontend/base/default/bannerslider/cssjs/credits.txt +1 -0
  46. skin/frontend/base/default/bannerslider/cssjs/jquery.jcarousel.min.js +16 -0
  47. skin/frontend/base/default/bannerslider/cssjs/loading-small.gif +0 -0
  48. skin/frontend/base/default/bannerslider/cssjs/loading.gif +0 -0
  49. skin/frontend/base/default/bannerslider/cssjs/loading_small.gif +0 -0
  50. skin/frontend/base/default/bannerslider/cssjs/next-horizontal.gif +0 -0
  51. skin/frontend/base/default/bannerslider/cssjs/next-horizontal.png +0 -0
  52. skin/frontend/base/default/bannerslider/cssjs/next-vertical.png +0 -0
  53. skin/frontend/base/default/bannerslider/cssjs/prev-horizontal.gif +0 -0
  54. skin/frontend/base/default/bannerslider/cssjs/prev-horizontal.png +0 -0
  55. skin/frontend/base/default/bannerslider/cssjs/prev-vertical.png +0 -0
  56. skin/frontend/base/default/bannerslider/cssjs/skin.css +188 -0
app/code/community/Mks/Bannerslider/Block/Index.php CHANGED
@@ -17,6 +17,55 @@ public function getImagegalleryRowitem()
17
  return Mage::getStoreConfig('imagegallerysection/imagegallerygroup/rowitem',Mage::app()->getStore());
18
  }
19
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
 
21
 
22
  }
17
  return Mage::getStoreConfig('imagegallerysection/imagegallerygroup/rowitem',Mage::app()->getStore());
18
  }
19
 
20
+ public function getImagegalleryimageheight()
21
+ {
22
+ return Mage::getStoreConfig('imagegallerysection/imagegallerygroup/imageheight',Mage::app()->getStore());
23
+ }
24
+
25
+
26
+ public function getImagegalleryimagewidth()
27
+ {
28
+ return Mage::getStoreConfig('imagegallerysection/imagegallerygroup/imagewidth',Mage::app()->getStore());
29
+ }
30
+
31
+
32
+
33
+ public function getImagegalleryvideohight()
34
+ {
35
+ return Mage::getStoreConfig('imagegallerysection/imagegallerygroup/videohight',Mage::app()->getStore());
36
+ }
37
+
38
+
39
+ public function getImagegalleryvideowidth()
40
+ {
41
+ return Mage::getStoreConfig('imagegallerysection/imagegallerygroup/videowidth',Mage::app()->getStore());
42
+ }
43
+
44
+
45
+
46
+ public function getImagegallerypopupspeed()
47
+ {
48
+ return Mage::getStoreConfig('imagegallerysection/imagegallerygroup/popupspeed',Mage::app()->getStore());
49
+ }
50
+
51
+
52
+ public function getImagegallerytype()
53
+ {
54
+ return Mage::getStoreConfig('imagegallerysection/imagegallerygroup/type',Mage::app()->getStore());
55
+ }
56
+
57
+ public function getImagegallerysql()
58
+ {
59
+ $connection = Mage::getSingleton('core/resource')->getConnection('core_write');
60
+ $prefix = Mage::getConfig()->getTablePrefix();
61
+ $tblname=$prefix.'popupgalleryslider';
62
+ $sql = $connection->query("select * from $tblname");
63
+ return $sql;
64
+ }
65
+
66
+
67
+
68
+
69
 
70
 
71
  }
app/code/community/Mks/Bannerslider/etc/system.xml CHANGED
@@ -2,7 +2,7 @@
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>
@@ -33,10 +33,66 @@
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>
@@ -45,12 +101,31 @@
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>
2
  <config>
3
  <tabs>
4
  <imagegallerytab translate="label" module="bannerslider">
5
+ <label>Mks Image Gallery</label>
6
  <sort_order>0</sort_order>
7
  </imagegallerytab>
8
  </tabs>
33
  <show_in_website>1</show_in_website>
34
  <show_in_store>1</show_in_store>
35
  </enable>
36
+
37
+ <imageheight translate="label">
38
+ <label>Image Height</label>
39
+ <frontend_type>text</frontend_type>
40
+ <sort_order>1</sort_order>
41
+ <show_in_default>1</show_in_default>
42
+ <show_in_website>1</show_in_website>
43
+ <show_in_store>1</show_in_store>
44
+ <comment>Example :- 100,150,200</comment>
45
+ </imageheight>
46
+
47
+ <imagewidth translate="label">
48
+ <label>Image Width</label>
49
+ <frontend_type>text</frontend_type>
50
+ <sort_order>2</sort_order>
51
+ <show_in_default>1</show_in_default>
52
+ <show_in_website>1</show_in_website>
53
+ <show_in_store>1</show_in_store>
54
+ <comment>Example :- 100,150,200</comment>
55
+ </imagewidth>
56
+
57
+ <videohight translate="label">
58
+ <label>Popup Height</label>
59
+ <frontend_type>text</frontend_type>
60
+ <sort_order>3</sort_order>
61
+ <show_in_default>1</show_in_default>
62
+ <show_in_website>1</show_in_website>
63
+ <show_in_store>1</show_in_store>
64
+ <comment>Example :- 500,550,600</comment>
65
+ </videohight>
66
+
67
+ <videowidth translate="label">
68
+ <label>Popup Width</label>
69
+ <frontend_type>text</frontend_type>
70
+ <sort_order>4</sort_order>
71
+ <show_in_default>1</show_in_default>
72
+ <show_in_website>1</show_in_website>
73
+ <show_in_store>1</show_in_store>
74
+ <comment>Example :- 500,550,600</comment>
75
+ </videowidth>
76
+
77
+ <type translate="label">
78
+ <label>Gallery Type </label>
79
+ <frontend_type>text</frontend_type>
80
+ <sort_order>5</sort_order>
81
+ <show_in_default>1</show_in_default>
82
+ <show_in_website>1</show_in_website>
83
+ <show_in_store>1</show_in_store>
84
+ <comment>Example :- 1,2,3</comment>
85
+ </type>
86
+
87
+
88
+
89
+
90
+
91
+
92
  <paggingstart translate="label">
93
  <label>After Pagging Start</label>
94
  <frontend_type>text</frontend_type>
95
+ <sort_order>6</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>
101
  <rowitem translate="label">
102
  <label>Number Of Row item</label>
103
  <frontend_type>text</frontend_type>
104
+ <sort_order>7</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
  <comment>3,4,5,6,7.......Default (4)</comment>
109
  </rowitem>
110
+
111
+
112
+
113
+
114
+ <popupspeed translate="label">
115
+ <label>Popup speed </label>
116
+ <frontend_type>text</frontend_type>
117
+ <sort_order>8</sort_order>
118
+ <show_in_default>1</show_in_default>
119
+ <show_in_website>1</show_in_website>
120
+ <show_in_store>1</show_in_store>
121
+ <comment>Example :- 1000,1500,2000</comment>
122
+ </popupspeed>
123
+
124
+
125
+
126
+
127
+
128
+
129
  </fields>
130
  </imagegallerygroup>
131
  </groups>
app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/Responsivebanner.php DELETED
@@ -1,17 +0,0 @@
1
- <?php
2
-
3
-
4
- class Mks_Responsivebannerslider_Block_Adminhtml_Responsivebanner extends Mage_Adminhtml_Block_Widget_Grid_Container{
5
-
6
- public function __construct()
7
- {
8
-
9
- $this->_controller = "adminhtml_responsivebanner";
10
- $this->_blockGroup = "responsivebannerslider";
11
- $this->_headerText = Mage::helper("responsivebannerslider")->__("Responsivebanner Manager");
12
- $this->_addButtonLabel = Mage::helper("responsivebannerslider")->__("Add New Item");
13
- parent::__construct();
14
-
15
- }
16
-
17
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/Responsivebanner/Edit.php DELETED
@@ -1,44 +0,0 @@
1
- <?php
2
-
3
- class Mks_Responsivebannerslider_Block_Adminhtml_Responsivebanner_Edit extends Mage_Adminhtml_Block_Widget_Form_Container
4
- {
5
- public function __construct()
6
- {
7
-
8
- parent::__construct();
9
- $this->_objectId = "id";
10
- $this->_blockGroup = "responsivebannerslider";
11
- $this->_controller = "adminhtml_responsivebanner";
12
- $this->_updateButton("save", "label", Mage::helper("responsivebannerslider")->__("Save Item"));
13
- $this->_updateButton("delete", "label", Mage::helper("responsivebannerslider")->__("Delete Item"));
14
-
15
- $this->_addButton("saveandcontinue", array(
16
- "label" => Mage::helper("responsivebannerslider")->__("Save And Continue Edit"),
17
- "onclick" => "saveAndContinueEdit()",
18
- "class" => "save",
19
- ), -100);
20
-
21
-
22
-
23
- $this->_formScripts[] = "
24
-
25
- function saveAndContinueEdit(){
26
- editForm.submit($('edit_form').action+'back/edit/');
27
- }
28
- ";
29
- }
30
-
31
- public function getHeaderText()
32
- {
33
- if( Mage::registry("responsivebanner_data") && Mage::registry("responsivebanner_data")->getId() ){
34
-
35
- return Mage::helper("responsivebannerslider")->__("Edit Item '%s'", $this->htmlEscape(Mage::registry("responsivebanner_data")->getId()));
36
-
37
- }
38
- else{
39
-
40
- return Mage::helper("responsivebannerslider")->__("Add Item");
41
-
42
- }
43
- }
44
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/Responsivebanner/Edit/Form.php DELETED
@@ -1,17 +0,0 @@
1
- <?php
2
- class Mks_Responsivebannerslider_Block_Adminhtml_Responsivebanner_Edit_Form extends Mage_Adminhtml_Block_Widget_Form
3
- {
4
- protected function _prepareForm()
5
- {
6
- $form = new Varien_Data_Form(array(
7
- "id" => "edit_form",
8
- "action" => $this->getUrl("*/*/save", array("id" => $this->getRequest()->getParam("id"))),
9
- "method" => "post",
10
- "enctype" =>"multipart/form-data",
11
- )
12
- );
13
- $form->setUseContainer(true);
14
- $this->setForm($form);
15
- return parent::_prepareForm();
16
- }
17
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/Responsivebanner/Edit/Tab/Form.php DELETED
@@ -1,48 +0,0 @@
1
- <?php
2
- class Mks_Responsivebannerslider_Block_Adminhtml_Responsivebanner_Edit_Tab_Form extends Mage_Adminhtml_Block_Widget_Form
3
- {
4
- protected function _prepareForm()
5
- {
6
-
7
- $form = new Varien_Data_Form();
8
- $this->setForm($form);
9
- $fieldset = $form->addFieldset("responsivebannerslider_form", array("legend"=>Mage::helper("responsivebannerslider")->__("Item information")));
10
-
11
-
12
- $fieldset->addField("title", "text", array(
13
- "label" => Mage::helper("responsivebannerslider")->__("Title"),
14
- "name" => "title",
15
- ));
16
-
17
- $fieldset->addField('image', 'image', array(
18
- 'label' => Mage::helper('responsivebannerslider')->__('Impage'),
19
- 'name' => 'image',
20
- 'note' => '(*.jpg, *.png, *.gif)',
21
- ));
22
- $fieldset->addField("description", "textarea", array(
23
- "label" => Mage::helper("responsivebannerslider")->__("Description"),
24
- "name" => "description",
25
- ));
26
-
27
- $fieldset->addField("url", "text", array(
28
- "label" => Mage::helper("responsivebannerslider")->__("URL"),
29
- "name" => "url",
30
- ));
31
-
32
- $fieldset->addField("status", "text", array(
33
- "label" => Mage::helper("responsivebannerslider")->__("Status"),
34
- "name" => "status",
35
- ));
36
-
37
-
38
- if (Mage::getSingleton("adminhtml/session")->getResponsivebannerData())
39
- {
40
- $form->setValues(Mage::getSingleton("adminhtml/session")->getResponsivebannerData());
41
- Mage::getSingleton("adminhtml/session")->setResponsivebannerData(null);
42
- }
43
- elseif(Mage::registry("responsivebanner_data")) {
44
- $form->setValues(Mage::registry("responsivebanner_data")->getData());
45
- }
46
- return parent::_prepareForm();
47
- }
48
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/Responsivebanner/Edit/Tabs.php DELETED
@@ -1,21 +0,0 @@
1
- <?php
2
- class Mks_Responsivebannerslider_Block_Adminhtml_Responsivebanner_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs
3
- {
4
- public function __construct()
5
- {
6
- parent::__construct();
7
- $this->setId("responsivebanner_tabs");
8
- $this->setDestElementId("edit_form");
9
- $this->setTitle(Mage::helper("responsivebannerslider")->__("Item Information"));
10
- }
11
- protected function _beforeToHtml()
12
- {
13
- $this->addTab("form_section", array(
14
- "label" => Mage::helper("responsivebannerslider")->__("Item Information"),
15
- "title" => Mage::helper("responsivebannerslider")->__("Item Information"),
16
- "content" => $this->getLayout()->createBlock("responsivebannerslider/adminhtml_responsivebanner_edit_tab_form")->toHtml(),
17
- ));
18
- return parent::_beforeToHtml();
19
- }
20
-
21
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/Responsivebanner/Grid.php DELETED
@@ -1,71 +0,0 @@
1
- <?php
2
-
3
- class Mks_Responsivebannerslider_Block_Adminhtml_Responsivebanner_Grid extends Mage_Adminhtml_Block_Widget_Grid
4
- {
5
-
6
- public function __construct()
7
- {
8
- parent::__construct();
9
- $this->setId("responsivebannerGrid");
10
- $this->setDefaultSort("id");
11
- $this->setDefaultDir("DESC");
12
- $this->setSaveParametersInSession(true);
13
- }
14
-
15
- protected function _prepareCollection()
16
- {
17
- $collection = Mage::getModel("responsivebannerslider/responsivebanner")->getCollection();
18
- $this->setCollection($collection);
19
- return parent::_prepareCollection();
20
- }
21
- protected function _prepareColumns()
22
- {
23
- $this->addColumn("id", array(
24
- "header" => Mage::helper("responsivebannerslider")->__("ID"),
25
- "align" =>"right",
26
- "width" => "50px",
27
- "type" => "number",
28
- "index" => "id",
29
- ));
30
-
31
- $this->addColumn("title", array(
32
- "header" => Mage::helper("responsivebannerslider")->__("Title"),
33
- "index" => "title",
34
- ));
35
- $this->addColumn("url", array(
36
- "header" => Mage::helper("responsivebannerslider")->__("URL"),
37
- "index" => "url",
38
- ));
39
- $this->addColumn("status", array(
40
- "header" => Mage::helper("responsivebannerslider")->__("Status"),
41
- "index" => "status",
42
- ));
43
- $this->addRssList('responsivebannerslider/adminhtml_rss_rss/responsivebanner', Mage::helper('responsivebannerslider')->__('RSS'));
44
- $this->addExportType('*/*/exportCsv', Mage::helper('sales')->__('CSV'));
45
- $this->addExportType('*/*/exportExcel', Mage::helper('sales')->__('Excel'));
46
-
47
- return parent::_prepareColumns();
48
- }
49
-
50
- public function getRowUrl($row)
51
- {
52
- return $this->getUrl("*/*/edit", array("id" => $row->getId()));
53
- }
54
-
55
-
56
-
57
- protected function _prepareMassaction()
58
- {
59
- $this->setMassactionIdField('id');
60
- $this->getMassactionBlock()->setFormFieldName('ids');
61
- $this->getMassactionBlock()->setUseSelectAll(true);
62
- $this->getMassactionBlock()->addItem('remove_responsivebanner', array(
63
- 'label'=> Mage::helper('responsivebannerslider')->__('Remove Responsivebanner'),
64
- 'url' => $this->getUrl('*/adminhtml_responsivebanner/massRemove'),
65
- 'confirm' => Mage::helper('responsivebannerslider')->__('Are you sure?')
66
- ));
67
- return $this;
68
- }
69
-
70
-
71
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Responsivebannerslider/Block/Adminhtml/Responsivebannersliderbackend.php DELETED
@@ -1,5 +0,0 @@
1
- <?php
2
-
3
- class Mks_Responsivebannerslider_Block_Adminhtml_Responsivebannersliderbackend extends Mage_Adminhtml_Block_Template {
4
-
5
- }
 
 
 
 
 
app/code/community/Mks/Responsivebannerslider/Block/Index.php DELETED
@@ -1,32 +0,0 @@
1
- <?php
2
- class Mks_Responsivebannerslider_Block_Index extends Mage_Core_Block_Template{
3
-
4
-
5
-
6
- public function getResponsivebannersliderEnabled()
7
- {
8
- return Mage::getStoreConfig('generalsetting/mksresponsivegroup/enable',Mage::app()->getStore());
9
- }
10
-
11
- public function getResponsivebannersliderSpeed()
12
- {
13
- return Mage::getStoreConfig('generalsetting/mksresponsivegroup/slidespeed',Mage::app()->getStore());
14
- }
15
-
16
- public function getResponsivebannerSlideType()
17
- {
18
- return Mage::getStoreConfig('generalsetting/mksresponsivegroup/styletype',Mage::app()->getStore());
19
- }
20
-
21
- public function getResponsivebannerBannerLoop()
22
- {
23
- return Mage::getStoreConfig('generalsetting/mksresponsivegroup/bannerloop',Mage::app()->getStore());
24
- }
25
-
26
- public function getResponsivebannerPauseOnhover()
27
- {
28
- return Mage::getStoreConfig('generalsetting/mksresponsivegroup/pauseonhover',Mage::app()->getStore());
29
- }
30
-
31
-
32
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Responsivebannerslider/Helper/Data.php DELETED
@@ -1,5 +0,0 @@
1
- <?php
2
- class Mks_Responsivebannerslider_Helper_Data extends Mage_Core_Helper_Abstract
3
- {
4
- }
5
-
 
 
 
 
 
app/code/community/Mks/Responsivebannerslider/Model/Mysql4/Responsivebanner.php 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/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/controllers/Adminhtml/ResponsivebannerController.php DELETED
@@ -1,209 +0,0 @@
1
- <?php
2
-
3
- class Mks_Responsivebannerslider_Adminhtml_ResponsivebannerController extends Mage_Adminhtml_Controller_Action
4
- {
5
- protected function _initAction()
6
- {
7
- $this->loadLayout()->_setActiveMenu("responsivebannerslider/responsivebanner")->_addBreadcrumb(Mage::helper("adminhtml")->__("Responsivebanner Manager"),Mage::helper("adminhtml")->__("Responsivebanner Manager"));
8
- return $this;
9
- }
10
- public function indexAction()
11
- {
12
- $this->_title($this->__("Responsivebannerslider"));
13
- $this->_title($this->__("Manager Responsivebanner"));
14
-
15
- $this->_initAction();
16
- $this->renderLayout();
17
- }
18
- public function editAction()
19
- {
20
- $this->_title($this->__("Responsivebannerslider"));
21
- $this->_title($this->__("Responsivebanner"));
22
- $this->_title($this->__("Edit Item"));
23
-
24
- $id = $this->getRequest()->getParam("id");
25
- $model = Mage::getModel("responsivebannerslider/responsivebanner")->load($id);
26
- if ($model->getId()) {
27
- Mage::register("responsivebanner_data", $model);
28
- $this->loadLayout();
29
- $this->_setActiveMenu("responsivebannerslider/responsivebanner");
30
- $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Responsivebanner Manager"), Mage::helper("adminhtml")->__("Responsivebanner Manager"));
31
- $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Responsivebanner Description"), Mage::helper("adminhtml")->__("Responsivebanner Description"));
32
- $this->getLayout()->getBlock("head")->setCanLoadExtJs(true);
33
- $this->_addContent($this->getLayout()->createBlock("responsivebannerslider/adminhtml_responsivebanner_edit"))->_addLeft($this->getLayout()->createBlock("responsivebannerslider/adminhtml_responsivebanner_edit_tabs"));
34
- $this->renderLayout();
35
- }
36
- else {
37
- Mage::getSingleton("adminhtml/session")->addError(Mage::helper("responsivebannerslider")->__("Item does not exist."));
38
- $this->_redirect("*/*/");
39
- }
40
- }
41
-
42
- public function newAction()
43
- {
44
-
45
- $this->_title($this->__("Responsivebannerslider"));
46
- $this->_title($this->__("Responsivebanner"));
47
- $this->_title($this->__("New Item"));
48
-
49
- $id = $this->getRequest()->getParam("id");
50
- $model = Mage::getModel("responsivebannerslider/responsivebanner")->load($id);
51
-
52
- $data = Mage::getSingleton("adminhtml/session")->getFormData(true);
53
- if (!empty($data)) {
54
- $model->setData($data);
55
- }
56
-
57
- Mage::register("responsivebanner_data", $model);
58
-
59
- $this->loadLayout();
60
- $this->_setActiveMenu("responsivebannerslider/responsivebanner");
61
-
62
- $this->getLayout()->getBlock("head")->setCanLoadExtJs(true);
63
-
64
- $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Responsivebanner Manager"), Mage::helper("adminhtml")->__("Responsivebanner Manager"));
65
- $this->_addBreadcrumb(Mage::helper("adminhtml")->__("Responsivebanner Description"), Mage::helper("adminhtml")->__("Responsivebanner Description"));
66
-
67
-
68
- $this->_addContent($this->getLayout()->createBlock("responsivebannerslider/adminhtml_responsivebanner_edit"))->_addLeft($this->getLayout()->createBlock("responsivebannerslider/adminhtml_responsivebanner_edit_tabs"));
69
-
70
- $this->renderLayout();
71
-
72
- }
73
- public function saveAction()
74
- {
75
-
76
- $post_data=$this->getRequest()->getPost();
77
-
78
-
79
- if ($post_data) {
80
-
81
- try {
82
-
83
-
84
- //save image
85
- try{
86
-
87
- if((bool)$post_data['image']['delete']==1) {
88
-
89
- $post_data['image']='';
90
-
91
- }
92
- else {
93
-
94
- unset($post_data['image']);
95
-
96
- if (isset($_FILES)){
97
-
98
- if ($_FILES['image']['name']) {
99
-
100
- if($this->getRequest()->getParam("id")){
101
- $model = Mage::getModel("responsivebannerslider/responsivebanner")->load($this->getRequest()->getParam("id"));
102
- if($model->getData('image')){
103
- $io = new Varien_Io_File();
104
- $io->rm(Mage::getBaseDir('media').DS.implode(DS,explode('/',$model->getData('image'))));
105
- }
106
- }
107
- $path = Mage::getBaseDir('media') . DS . 'responsivebannerslider' . DS .'responsivebanner'.DS;
108
- $uploader = new Varien_File_Uploader('image');
109
- $uploader->setAllowedExtensions(array('jpg','png','gif'));
110
- $uploader->setAllowRenameFiles(false);
111
- $uploader->setFilesDispersion(false);
112
- $destFile = $path.$_FILES['image']['name'];
113
- $filename = $uploader->getNewFileName($destFile);
114
- $uploader->save($path, $filename);
115
-
116
- $post_data['image']='responsivebannerslider/responsivebanner/'.$filename;
117
- }
118
- }
119
- }
120
-
121
- } catch (Exception $e) {
122
- Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
123
- $this->_redirect('*/*/edit', array('id' => $this->getRequest()->getParam('id')));
124
- return;
125
- }
126
- //save image
127
-
128
-
129
- $model = Mage::getModel("responsivebannerslider/responsivebanner")
130
- ->addData($post_data)
131
- ->setId($this->getRequest()->getParam("id"))
132
- ->save();
133
-
134
- Mage::getSingleton("adminhtml/session")->addSuccess(Mage::helper("adminhtml")->__("Responsivebanner was successfully saved"));
135
- Mage::getSingleton("adminhtml/session")->setResponsivebannerData(false);
136
-
137
- if ($this->getRequest()->getParam("back")) {
138
- $this->_redirect("*/*/edit", array("id" => $model->getId()));
139
- return;
140
- }
141
- $this->_redirect("*/*/");
142
- return;
143
- }
144
- catch (Exception $e) {
145
- Mage::getSingleton("adminhtml/session")->addError($e->getMessage());
146
- Mage::getSingleton("adminhtml/session")->setResponsivebannerData($this->getRequest()->getPost());
147
- $this->_redirect("*/*/edit", array("id" => $this->getRequest()->getParam("id")));
148
- return;
149
- }
150
-
151
- }
152
- $this->_redirect("*/*/");
153
- }
154
-
155
-
156
-
157
- public function deleteAction()
158
- {
159
- if( $this->getRequest()->getParam("id") > 0 ) {
160
- try {
161
- $model = Mage::getModel("responsivebannerslider/responsivebanner");
162
- $model->setId($this->getRequest()->getParam("id"))->delete();
163
- Mage::getSingleton("adminhtml/session")->addSuccess(Mage::helper("adminhtml")->__("Item was successfully deleted"));
164
- $this->_redirect("*/*/");
165
- }
166
- catch (Exception $e) {
167
- Mage::getSingleton("adminhtml/session")->addError($e->getMessage());
168
- $this->_redirect("*/*/edit", array("id" => $this->getRequest()->getParam("id")));
169
- }
170
- }
171
- $this->_redirect("*/*/");
172
- }
173
-
174
-
175
- public function massRemoveAction()
176
- {
177
- try {
178
- $ids = $this->getRequest()->getPost('ids', array());
179
- foreach ($ids as $id) {
180
- $model = Mage::getModel("responsivebannerslider/responsivebanner");
181
- $model->setId($id)->delete();
182
- }
183
- Mage::getSingleton("adminhtml/session")->addSuccess(Mage::helper("adminhtml")->__("Item(s) was successfully removed"));
184
- }
185
- catch (Exception $e) {
186
- Mage::getSingleton("adminhtml/session")->addError($e->getMessage());
187
- }
188
- $this->_redirect('*/*/');
189
- }
190
-
191
- /**
192
- * Export order grid to CSV format
193
- */
194
- public function exportCsvAction()
195
- {
196
- $fileName = 'responsivebanner.csv';
197
- $grid = $this->getLayout()->createBlock('responsivebannerslider/adminhtml_responsivebanner_grid');
198
- $this->_prepareDownloadResponse($fileName, $grid->getCsvFile());
199
- }
200
- /**
201
- * Export order grid to Excel XML format
202
- */
203
- public function exportExcelAction()
204
- {
205
- $fileName = 'responsivebanner.xml';
206
- $grid = $this->getLayout()->createBlock('responsivebannerslider/adminhtml_responsivebanner_grid');
207
- $this->_prepareDownloadResponse($fileName, $grid->getExcelFile($fileName));
208
- }
209
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Responsivebannerslider/controllers/Adminhtml/ResponsivebannersliderbackendController.php DELETED
@@ -1,10 +0,0 @@
1
- <?php
2
- class Mks_Responsivebannerslider_Adminhtml_ResponsivebannersliderbackendController extends Mage_Adminhtml_Controller_Action
3
- {
4
- public function indexAction()
5
- {
6
- $this->loadLayout();
7
- $this->_title($this->__("About Us"));
8
- $this->renderLayout();
9
- }
10
- }
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Responsivebannerslider/controllers/Adminhtml/Rss/RssController.php 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 DELETED
@@ -1,22 +0,0 @@
1
- <?php
2
- class Mks_Responsivebannerslider_IndexController extends Mage_Core_Controller_Front_Action{
3
- public function IndexAction() {
4
-
5
- $this->loadLayout();
6
- $this->getLayout()->getBlock("head")->setTitle($this->__("Mks_Responsivebannerslider"));
7
- $breadcrumbs = $this->getLayout()->getBlock("breadcrumbs");
8
- $breadcrumbs->addCrumb("home", array(
9
- "label" => $this->__("Home Page"),
10
- "title" => $this->__("Home Page"),
11
- "link" => Mage::getBaseUrl()
12
- ));
13
-
14
- $breadcrumbs->addCrumb("mks_responsivebannerslider", array(
15
- "label" => $this->__("Mks_Responsivebannerslider"),
16
- "title" => $this->__("Mks_Responsivebannerslider")
17
- ));
18
-
19
- $this->renderLayout();
20
-
21
- }
22
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Responsivebannerslider/etc/adminhtml.xml 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
- <generalsetting translate="title" module="responsivebannerslider">
12
- <title>General Setting Section</title>
13
- <sort_order>0</sort_order>
14
- </generalsetting>
15
- </children>
16
- </config>
17
- </children>
18
- </system>
19
- </children>
20
- </admin>
21
- </resources>
22
- </acl>
23
- </config>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Responsivebannerslider/etc/config.xml DELETED
@@ -1,134 +0,0 @@
1
- <?xml version="1.0"?>
2
- <config>
3
- <modules>
4
- <Mks_Responsivebannerslider>
5
- <version>8.1.1</version>
6
- </Mks_Responsivebannerslider>
7
- </modules>
8
- <frontend>
9
- <routers>
10
- <responsivebannerslider>
11
- <use>standard</use>
12
- <args>
13
- <module>Mks_Responsivebannerslider</module>
14
- <frontName>responsivebannerslider</frontName>
15
- </args>
16
- </responsivebannerslider>
17
- </routers>
18
- <layout>
19
- <updates>
20
- <responsivebannerslider>
21
- <file>responsivebannerslider.xml</file>
22
- </responsivebannerslider>
23
- </updates>
24
- </layout>
25
- </frontend>
26
- <global>
27
- <helpers>
28
- <responsivebannerslider>
29
- <class>Mks_Responsivebannerslider_Helper</class>
30
- </responsivebannerslider>
31
- </helpers>
32
- <blocks>
33
- <responsivebannerslider>
34
- <class>Mks_Responsivebannerslider_Block</class>
35
- </responsivebannerslider>
36
- </blocks>
37
- <models>
38
- <responsivebannerslider>
39
- <class>Mks_Responsivebannerslider_Model</class>
40
- <resourceModel>responsivebannerslider_mysql4</resourceModel>
41
- </responsivebannerslider>
42
- <responsivebannerslider_mysql4>
43
- <class>Mks_Responsivebannerslider_Model_Mysql4</class>
44
- <entities>
45
- <responsivebanner>
46
- <table>mksresponsivebannerslider</table>
47
- </responsivebanner>
48
- </entities>
49
- </responsivebannerslider_mysql4>
50
- </models>
51
- <resources>
52
- <responsivebannerslider_setup>
53
- <setup>
54
- <module>Mks_Responsivebannerslider</module>
55
- </setup>
56
- <connection>
57
- <use>core_setup</use>
58
- </connection>
59
- </responsivebannerslider_setup>
60
- <responsivebannerslider_write>
61
- <connection>
62
- <use>core_write</use>
63
- </connection>
64
- </responsivebannerslider_write>
65
- <responsivebannerslider_read>
66
- <connection>
67
- <use>core_read</use>
68
- </connection>
69
- </responsivebannerslider_read>
70
- </resources>
71
- </global>
72
- <admin>
73
- <routers>
74
- <responsivebannerslider>
75
- <use>admin</use>
76
- <args>
77
- <module>Mks_Responsivebannerslider</module>
78
- <frontName>responsivebannerslider</frontName>
79
- </args>
80
- </responsivebannerslider>
81
- </routers>
82
- </admin>
83
- <adminhtml>
84
- <menu>
85
- <responsivebannerslider module="responsivebannerslider">
86
- <title>Responsivebannerslider</title>
87
- <sort_order>100</sort_order>
88
- <children>
89
- <responsivebannersliderbackend module="responsivebannerslider">
90
- <title>About Us</title>
91
- <sort_order>0</sort_order>
92
- <action>responsivebannerslider/adminhtml_responsivebannersliderbackend</action>
93
- </responsivebannersliderbackend>
94
- <responsivebanner module="responsivebannerslider">
95
- <title>Manage Responsivebanner</title>
96
- <sort_order>0</sort_order>
97
- <action>responsivebannerslider/adminhtml_responsivebanner</action>
98
- </responsivebanner>
99
- </children>
100
- </responsivebannerslider>
101
- </menu>
102
- <acl>
103
- <resources>
104
- <all>
105
- <title>Allow Everything</title>
106
- </all>
107
- <admin>
108
- <children>
109
- <responsivebannerslider translate="title" module="responsivebannerslider">
110
- <title>Responsivebannerslider</title>
111
- <sort_order>1000</sort_order>
112
- <children>
113
- <responsivebannersliderbackend translate="title">
114
- <title>About Us</title>
115
- </responsivebannersliderbackend>
116
- <responsivebanner translate="title">
117
- <title>Manage Responsivebanner</title>
118
- <sort_order>0</sort_order>
119
- </responsivebanner>
120
- </children>
121
- </responsivebannerslider>
122
- </children>
123
- </admin>
124
- </resources>
125
- </acl>
126
- <layout>
127
- <updates>
128
- <responsivebannerslider>
129
- <file>responsivebannerslider.xml</file>
130
- </responsivebannerslider>
131
- </updates>
132
- </layout>
133
- </adminhtml>
134
- </config>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Responsivebannerslider/etc/system.xml DELETED
@@ -1,78 +0,0 @@
1
- <?xml version="1.0"?>
2
- <config>
3
- <tabs>
4
- <mksresponsibetab translate="label" module="responsivebannerslider">
5
- <label>MKS RESPONSIVE BANNER</label>
6
- <sort_order>0</sort_order>
7
- </mksresponsibetab>
8
- </tabs>
9
- <sections>
10
- <generalsetting translate="label" module="responsivebannerslider">
11
- <label>General Setting</label>
12
- <tab>mksresponsibetab</tab>
13
- <frontend_type>text</frontend_type>
14
- <sort_order>0</sort_order>
15
- <show_in_default>1</show_in_default>
16
- <show_in_website>1</show_in_website>
17
- <show_in_store>1</show_in_store>
18
- <groups>
19
- <mksresponsivegroup translate="label">
20
- <label>Banner Setting</label>
21
- <frontend_type>text</frontend_type>
22
- <sort_order>0</sort_order>
23
- <show_in_default>1</show_in_default>
24
- <show_in_website>1</show_in_website>
25
- <show_in_store>1</show_in_store>
26
- <fields>
27
- <pauseonhover translate="label">
28
- <label>Pause OnHover</label>
29
- <frontend_type>select</frontend_type>
30
- <source_model>adminhtml/system_config_source_yesno</source_model>
31
- <sort_order>4</sort_order>
32
- <show_in_default>1</show_in_default>
33
- <show_in_website>1</show_in_website>
34
- <show_in_store>1</show_in_store>
35
- <comment>Example :- On / Off</comment>
36
- </pauseonhover>
37
- <styletype translate="label">
38
- <label>Style Type</label>
39
- <frontend_type>select</frontend_type>
40
- <source_model>adminhtml/system_config_source_Diyoptions13952315961</source_model>
41
- <sort_order>1</sort_order>
42
- <show_in_default>1</show_in_default>
43
- <show_in_website>1</show_in_website>
44
- <show_in_store>1</show_in_store>
45
- </styletype>
46
- <bannerloop translate="label">
47
- <label>Banner Loop</label>
48
- <frontend_type>text</frontend_type>
49
- <sort_order>3</sort_order>
50
- <show_in_default>1</show_in_default>
51
- <show_in_website>1</show_in_website>
52
- <show_in_store>1</show_in_store>
53
- <comment>Example :- On = 1 , off = 0</comment>
54
- </bannerloop>
55
- <slidespeed translate="label">
56
- <label>Slide Speed</label>
57
- <frontend_type>text</frontend_type>
58
- <sort_order>2</sort_order>
59
- <show_in_default>1</show_in_default>
60
- <show_in_website>1</show_in_website>
61
- <show_in_store>1</show_in_store>
62
- <comment>Example :- 1000</comment>
63
- </slidespeed>
64
- <enable translate="label">
65
- <label>Enable</label>
66
- <frontend_type>select</frontend_type>
67
- <source_model>adminhtml/system_config_source_yesno</source_model>
68
- <sort_order>0</sort_order>
69
- <show_in_default>1</show_in_default>
70
- <show_in_website>1</show_in_website>
71
- <show_in_store>1</show_in_store>
72
- </enable>
73
- </fields>
74
- </mksresponsivegroup>
75
- </groups>
76
- </generalsetting>
77
- </sections>
78
- </config>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Responsivebannerslider/sql/responsivebannerslider_setup/mysql4-install-8.1.1.php 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/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>About Us</title>
91
- <sort_order>0</sort_order>
92
- <action>storelocator/adminhtml_storelocatorbackend</action>
93
- </storelocatorbackend>
94
- <storelocator module="storelocator">
95
- <title>Manage Storelocator</title>
96
- <sort_order>0</sort_order>
97
- <action>storelocator/adminhtml_storelocator</action>
98
- </storelocator>
99
- </children>
100
- </storelocator>
101
- </menu>
102
- <acl>
103
- <resources>
104
- <all>
105
- <title>Allow Everything</title>
106
- </all>
107
- <admin>
108
- <children>
109
- <storelocator translate="title" module="storelocator">
110
- <title>Storelocator</title>
111
- <sort_order>1000</sort_order>
112
- <children>
113
- <storelocatorbackend translate="title">
114
- <title>About Us</title>
115
- </storelocatorbackend>
116
- <storelocator translate="title">
117
- <title>Manage Storelocator</title>
118
- <sort_order>0</sort_order>
119
- </storelocator>
120
- </children>
121
- </storelocator>
122
- </children>
123
- </admin>
124
- </resources>
125
- </acl>
126
- <layout>
127
- <updates>
128
- <storelocator>
129
- <file>storelocator.xml</file>
130
- </storelocator>
131
- </updates>
132
- </layout>
133
- </adminhtml>
134
- </config>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Mks/Storelocator/etc/system.xml 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/frontend/base/default/template/bannerslider/index.phtml CHANGED
@@ -2,41 +2,58 @@
2
  <?php $str = '?';
3
  $currentUrl = substr($currentUrl1,0,strrpos($currentUrl1,'?'));
4
  ?>
 
 
 
5
  <?php $gallery_status=$this->getImagegalleryEnabled(); ?>
6
  <?php $gallery_Paggingstar=$this->getImagegalleryPaggingstart(); ?>
7
  <?php $gallery_Rowitem=$this->getImagegalleryRowitem(); ?>
 
 
 
 
 
 
 
 
8
 
9
 
10
 
11
- <?php if($gallery_status==1){ ?>
 
 
12
 
13
 
14
- <?php $cssurl = str_replace('index.php/','',$this->getUrl());?>
 
 
 
15
  <script src="<?php echo $cssurl.'skin/frontend/base/default/bannerslider/js/jquery-1.2.6.noConflict.min.js'; ?>" type="text/javascript" ></script>
16
  <link rel="stylesheet" type="text/css" href="<?php echo $cssurl.'skin/frontend/base/default/bannerslider/css/imagegallery.css'; ?>" media="all">
17
  <script type="text/javascript">
18
- jQuery.noConflict();
19
  function applyto(id) {
20
  var c= '#mks'+id
21
- jQuery(c).fadeIn(1000);
22
  }
23
 
24
  function applytoprev(x,y) {
25
- jQuery('#mks'+x).hide();
26
- jQuery('#mks'+y).show();
27
  }
28
 
29
  function applytonext(x,y) {
30
- jQuery('#mks'+x).hide();
31
- jQuery('#mks'+y).show();
32
  }
33
  </script>
34
 
35
 
36
  <?php
37
  $connection = Mage::getSingleton('core/resource')->getConnection('core_write');
38
- $sql = $connection->query("select * from popupgalleryslider");
39
- $nr = $connection->fetchOne( 'SELECT COUNT(*) AS count FROM popupgalleryslider' );
 
40
  //$sql = mysql_query("SELECT * FROM imagegallery");
41
 
42
  //echo $nr = mysql_num_rows($sql); // Get total of Num rows from the database query
@@ -85,7 +102,9 @@ $limit = 'LIMIT ' .($pn - 1) * $itemsPerPage .',' .$itemsPerPage;
85
  // Now we are going to run the same query as above but this time add $limit onto the end of the SQL syntax
86
  // $sql2 is what we will use to fuel our while loop statement below
87
  //$sql2 = mysql_query("SELECT * from imagegallery ORDER BY imagegallery_id ASC $limit");
88
- $sql2 = $connection->query("select * from popupgalleryslider ORDER BY id ASC $limit");
 
 
89
 
90
  $paginationDisplay = ""; // Initialize the pagination output variable
91
  // This code runs only if the last page variable is ot equal to 1, if it is only 1 page we require no paginated links to display
@@ -117,6 +136,7 @@ if ($lastPage != "1"){
117
  <table>
118
  <tr>
119
  <?php
 
120
  $outputList = '';
121
  $vz=1;
122
  $i = 0;
@@ -131,13 +151,13 @@ $img_src = $media_url.$country;
131
  ?>
132
  <td>
133
  <div style="margin-left:64px;float:left;">
134
- <a href="javascript:void(0)" onclick="applyto('<?php echo $vz; ?>')"><img src="<?php echo $img_src; ?>" height="100" width="100" style="padding:10px;"></a>
135
  </div>
136
 
137
 
138
 
139
  <div id="mks<?php echo $vz; ?>" style="display:none">
140
- <div id="popupform">
141
  <div class="blankdiv"></div>
142
  <div id="pclose" onclick="javascript:document.getElementById('<?php echo 'mks'.$vz; ?>').style.display='none'">
143
  <img src="<?php echo $cssurl.'skin/frontend/base/default/bannerslider/images/close.png'; ?>" />
@@ -147,7 +167,7 @@ $img_src = $media_url.$country;
147
 
148
  <center>
149
  <a href="javascript:void(0)" onclick="applytoprev('<?php echo $vz; ?>' ,'<?php echo $vz-1; ?>')"><img src="<?php echo $cssurl.'skin/frontend/base/default/bannerslider/images/left_1.png'; ?>" /></a>
150
- <img src="<?php echo $img_src; ?>" height="400" width="400" >
151
  <a href="javascript:void(0)" onclick="applytonext('<?php echo $vz; ?>' ,'<?php echo $vz+1; ?>')"><img src="<?php echo $cssurl.'skin/frontend/base/default/bannerslider/images/right_1.png'; ?>" /></a>
152
  </center>
153
 
@@ -166,14 +186,169 @@ echo '</tr><tr>';
166
 
167
  </tr>
168
  </table>
169
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
170
 
171
 
172
 
173
 
174
  <?php } else { ?>
175
 
176
- <h1 style="color:red;">Enable ( MKS IMAGE GALLERY (POP UP) ) Module via Admin = System -> Configuration-> General Setting </h1>
177
 
178
  <?php } ?>
179
 
2
  <?php $str = '?';
3
  $currentUrl = substr($currentUrl1,0,strrpos($currentUrl1,'?'));
4
  ?>
5
+ <?php $cssurl = str_replace('index.php/','',$this->getUrl());?>
6
+
7
+
8
  <?php $gallery_status=$this->getImagegalleryEnabled(); ?>
9
  <?php $gallery_Paggingstar=$this->getImagegalleryPaggingstart(); ?>
10
  <?php $gallery_Rowitem=$this->getImagegalleryRowitem(); ?>
11
+ <?php $gallery_imageheight = $this->getImagegalleryimageheight(); ?>
12
+ <?php $gallery_imagewidth = $this->getImagegalleryimagewidth(); ?>
13
+ <?php $gallery_popuphight = $this->getImagegalleryvideohight(); ?>
14
+ <?php $gallery_popupwidth = $this->getImagegalleryvideowidth(); ?>
15
+ <?php $gallery_popupspeed = $this->getImagegallerypopupspeed(); ?>
16
+ <?php $gallery_type = $this->getImagegallerytype(); ?>
17
+ <?php $sql = $this->getImagegallerysql(); ?>
18
+
19
 
20
 
21
 
22
+ <?php if($gallery_status==1){
23
+ /* check module status */
24
+ ?>
25
 
26
 
27
+
28
+ <?php
29
+
30
+ if($gallery_type=='1'){ ?>
31
  <script src="<?php echo $cssurl.'skin/frontend/base/default/bannerslider/js/jquery-1.2.6.noConflict.min.js'; ?>" type="text/javascript" ></script>
32
  <link rel="stylesheet" type="text/css" href="<?php echo $cssurl.'skin/frontend/base/default/bannerslider/css/imagegallery.css'; ?>" media="all">
33
  <script type="text/javascript">
34
+ var imagesmks = jQuery.noConflict();
35
  function applyto(id) {
36
  var c= '#mks'+id
37
+ imagesmks(c).fadeIn(1000);
38
  }
39
 
40
  function applytoprev(x,y) {
41
+ imagesmks('#mks'+x).hide();
42
+ imagesmks('#mks'+y).show();
43
  }
44
 
45
  function applytonext(x,y) {
46
+ imagesmks('#mks'+x).hide();
47
+ imagesmks('#mks'+y).show();
48
  }
49
  </script>
50
 
51
 
52
  <?php
53
  $connection = Mage::getSingleton('core/resource')->getConnection('core_write');
54
+ $prefix = Mage::getConfig()->getTablePrefix();
55
+ $tblname=$prefix.'popupgalleryslider';
56
+ $nr = $connection->fetchOne( "SELECT COUNT(*) AS count FROM $tblname" );
57
  //$sql = mysql_query("SELECT * FROM imagegallery");
58
 
59
  //echo $nr = mysql_num_rows($sql); // Get total of Num rows from the database query
102
  // Now we are going to run the same query as above but this time add $limit onto the end of the SQL syntax
103
  // $sql2 is what we will use to fuel our while loop statement below
104
  //$sql2 = mysql_query("SELECT * from imagegallery ORDER BY imagegallery_id ASC $limit");
105
+ $prefix = Mage::getConfig()->getTablePrefix();
106
+ $tblname=$prefix.'popupgalleryslider';
107
+ $sql2 = $connection->query("select * from $tblname ORDER BY id ASC $limit");
108
 
109
  $paginationDisplay = ""; // Initialize the pagination output variable
110
  // This code runs only if the last page variable is ot equal to 1, if it is only 1 page we require no paginated links to display
136
  <table>
137
  <tr>
138
  <?php
139
+
140
  $outputList = '';
141
  $vz=1;
142
  $i = 0;
151
  ?>
152
  <td>
153
  <div style="margin-left:64px;float:left;">
154
+ <a href="javascript:void(0)" onclick="applyto('<?php echo $vz; ?>')"><img src="<?php echo $img_src; ?>" height="<?php echo $gallery_imageheight; ?>" width="<?php echo $gallery_imagewidth; ?>" style="padding:10px;"></a>
155
  </div>
156
 
157
 
158
 
159
  <div id="mks<?php echo $vz; ?>" style="display:none">
160
+ <div id="popupform" width="<?php echo $gallery_popupwidth; ?>" height="<?php echo $gallery_popuphight; ?>">
161
  <div class="blankdiv"></div>
162
  <div id="pclose" onclick="javascript:document.getElementById('<?php echo 'mks'.$vz; ?>').style.display='none'">
163
  <img src="<?php echo $cssurl.'skin/frontend/base/default/bannerslider/images/close.png'; ?>" />
167
 
168
  <center>
169
  <a href="javascript:void(0)" onclick="applytoprev('<?php echo $vz; ?>' ,'<?php echo $vz-1; ?>')"><img src="<?php echo $cssurl.'skin/frontend/base/default/bannerslider/images/left_1.png'; ?>" /></a>
170
+ <img src="<?php echo $img_src; ?>" width="<?php echo $gallery_popupwidth-40; ?>" height="<?php echo $gallery_popuphight-40; ?>" >
171
  <a href="javascript:void(0)" onclick="applytonext('<?php echo $vz; ?>' ,'<?php echo $vz+1; ?>')"><img src="<?php echo $cssurl.'skin/frontend/base/default/bannerslider/images/right_1.png'; ?>" /></a>
172
  </center>
173
 
186
 
187
  </tr>
188
  </table>
189
+
190
+ <?php }
191
+ /* module type 1 close */
192
+
193
+ ?>
194
+
195
+
196
+
197
+
198
+
199
+
200
+ <?php
201
+ if($gallery_type==2) { ?>
202
+ <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2/jquery.min.js"></script>
203
+ <script type="text/javascript" src="<?php echo $cssurl.'skin/frontend/base/default/bannerslider/cssjs/jquery.jcarousel.min.js'; ?>"></script>
204
+ <link rel="stylesheet" type="text/css" href="<?php echo $cssurl.'skin/frontend/base/default/bannerslider/cssjs/skin.css'; ?>" />
205
+
206
+ <script type="text/javascript">
207
+ var videomks = jQuery.noConflict();
208
+ videomks(document).ready(function() {
209
+ videomks('.first-and-second-and-third-carousel').jcarousel();
210
+ });
211
+
212
+ function mks(obj)
213
+ {
214
+ var url = obj.src;
215
+ document.getElementById('playerxxx').src=url;
216
+ }
217
+
218
+ function mksxx()
219
+ {
220
+ var obj = document.getElementById('mks1');
221
+ var url = obj.src;
222
+ document.getElementById('playerxxx').src=url;
223
+ }
224
+
225
+ window.onload=mksxx;
226
+ </script>
227
+
228
+
229
+
230
+ <div id="wrap">
231
+
232
+ <img class="mksiframe" width="<?php echo $gallery_popupwidth; ?>" height="<?php echo $gallery_popuphight; ?>" id="playerxxx" src="" />
233
+
234
+ <ul id="first-carousel" class="first-and-second-and-third-carousel jcarousel-skin-ie7">
235
+ <?php
236
+ $xx=1;
237
+ while($row1 = $sql->fetch())
238
+ {
239
+ $id = $row1["id"];
240
+ $firstname = $row1["url"];
241
+ $country = $row1["image"];
242
+ $media_url = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA);
243
+ $img_src = $media_url.$country;
244
+ ?>
245
+ <li>
246
+ <img id="mks<?php echo $xx; ?>" src="<?php echo $img_src; ?>" height="<?php echo $gallery_imageheight; ?>" width="<?php echo $gallery_imagewidth; ?>" style="padding:10px;" onclick="mks(this);">
247
+ </li>
248
+ <?php $xx++; } ?>
249
+
250
+ </ul>
251
+ </div>
252
+
253
+
254
+
255
+
256
+
257
+ <?php /* close type 2 */ } ?>
258
+
259
+
260
+
261
+
262
+
263
+ <?php
264
+ if($gallery_type==3) { ?>
265
+ <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2/jquery.min.js"></script>
266
+ <script type="text/javascript" src="<?php echo $cssurl.'skin/frontend/base/default/bannerslider/cssjs/jquery.jcarousel.min.js'; ?>"></script>
267
+ <link rel="stylesheet" type="text/css" href="<?php echo $cssurl.'skin/frontend/base/default/bannerslider/cssjs/skin.css'; ?>" />
268
+
269
+ <script type="text/javascript">
270
+ var videomks = jQuery.noConflict();
271
+ videomks(document).ready(function() {
272
+ videomks('.first-and-second-and-third-carousel').jcarousel();
273
+ });
274
+ </script>
275
+
276
+ <script src="<?php echo $cssurl.'skin/frontend/base/default/bannerslider/js/jquery-1.2.6.noConflict.min.js'; ?>" type="text/javascript" ></script>
277
+ <link rel="stylesheet" type="text/css" href="<?php echo $cssurl.'skin/frontend/base/default/bannerslider/css/imagegallery.css'; ?>" media="all">
278
+ <script type="text/javascript">
279
+
280
+ function applyto1(id) {
281
+ var c= '#mks'+id;
282
+ videomks(c).fadeIn(1000);
283
+ }
284
+
285
+ function applytoprev(x,y) {
286
+ videomks('#mks'+x).hide();
287
+ videomks('#mks'+y).show();
288
+ }
289
+
290
+ function applytonext(x,y) {
291
+ videomks('#mks'+x).hide();
292
+ videomks('#mks'+y).show();
293
+ }
294
+ </script>
295
+
296
+ <div id="wrap">
297
+
298
+
299
+
300
+ <ul id="first-carousel" class="first-and-second-and-third-carousel jcarousel-skin-ie7">
301
+ <?php
302
+ $xx=1;
303
+ $vz=1;
304
+ while($row1 = $sql->fetch())
305
+ {
306
+ $id = $row1["id"];
307
+ $firstname = $row1["url"];
308
+ $country = $row1["image"];
309
+ $media_url = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA);
310
+ $img_src = $media_url.$country;
311
+ ?>
312
+ <li>
313
+ <img src="<?php echo $img_src; ?>" height="<?php echo $gallery_imageheight; ?>" width="<?php echo $gallery_imagewidth; ?>" style="padding:10px;" href="javascript:void(0)" onclick="applyto1('<?php echo $vz; ?>')">
314
+ </li>
315
+
316
+ <div id="mks<?php echo $vz; ?>" style="display:none" >
317
+ <div id="popupform" width="<?php echo $gallery_popupwidth; ?>" height="<?php echo $gallery_popuphight; ?>">
318
+ <div class="blankdiv"></div>
319
+ <div id="pclose" onclick="javascript:document.getElementById('<?php echo 'mks'.$vz; ?>').style.display='none'">
320
+ <img src="<?php echo $cssurl.'skin/frontend/base/default/bannerslider/images/close.png'; ?>" />
321
+ </div>
322
+ <div class="applyform">
323
+ <p id="contactArea">
324
+
325
+ <center>
326
+ <a href="javascript:void(0)" onclick="applytoprev('<?php echo $vz; ?>' ,'<?php echo $vz-1; ?>')"><img src="<?php echo $cssurl.'skin/frontend/base/default/bannerslider/images/left_1.png'; ?>" /></a>
327
+ <img src="<?php echo $img_src; ?>" width="<?php echo $gallery_popupwidth-40; ?>" height="<?php echo $gallery_popuphight-40; ?>" >
328
+ <a href="javascript:void(0)" onclick="applytonext('<?php echo $vz; ?>' ,'<?php echo $vz+1; ?>')"><img src="<?php echo $cssurl.'skin/frontend/base/default/bannerslider/images/right_1.png'; ?>" /></a>
329
+ </center>
330
+
331
+ </p>
332
+ </div>
333
+ </div>
334
+ </div>
335
+ <?php $xx++; $vz++; } ?>
336
+
337
+ </ul>
338
+ </div>
339
+
340
+
341
+
342
+
343
+
344
+ <?php /* close type 3 */ } ?>
345
 
346
 
347
 
348
 
349
  <?php } else { ?>
350
 
351
+ <span style="color:red;">Enable ( MKS IMAGE GALLERY ) Module via Admin : = </span> <span style="color:black;">System -> Configuration->Mks Image gallery-> General Setting </span>
352
 
353
  <?php } ?>
354
 
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Mks_Bannerslider</name>
4
- <version>8.1.3</version>
5
  <stability>stable</stability>
6
  <license>OSL</license>
7
  <channel>community</channel>
@@ -9,14 +9,12 @@
9
  <summary>Banner Slider Fully Dynamic (Pop-up image gallery on cms page). always use Banner Slider</summary>
10
  <description>Banner Slider Fully Dynamic (Pop-up image gallery on cms page). always use Banner Slider</description>
11
  <notes>New Freature :-&#xD;
12
- 1. new configuration setting.&#xD;
13
- 2. Auto load data.&#xD;
14
- 3. One click installation.&#xD;
15
- 4. user friendly.</notes>
16
  <authors><author><name>Mukesh Kumar saini</name><user>mukeshbagri</user><email>in.mukeshsaini@gmail.com</email></author></authors>
17
- <date>2014-03-25</date>
18
- <time>08:34:07</time>
19
- <contents><target name="mageetc"><dir name="modules"><file name="Mks_Bannerslider.xml" hash="67606578b66a115849bde7920bb73c3c"/></dir></target><target name="magecommunity"><dir name="Mks"><dir name="Bannerslider"><dir name="Block"><dir name="Adminhtml"><file name="Bannersliderbackend.php" hash="c4c6fb4b655fea0bd41834cbc0b380d3"/><dir name="Imagegallery"><dir name="Edit"><file name="Form.php" hash="6bf611a29b6f43553b324cea6f299996"/><dir name="Tab"><file name="Form.php" hash="2a897f9391cef5a81faf0cee77dc4b51"/></dir><file name="Tabs.php" hash="947d52b2cf774dc10eb0249b51d03d6d"/></dir><file name="Edit.php" hash="4a0489c69b7830287e18edad35348ceb"/><file name="Grid.php" hash="7bbd1bae121f43a80faa3cbe4dae990b"/></dir><file name="Imagegallery.php" hash="5d7f22716646a9156b70a14c9e3cac35"/></dir><file name="Index.php" hash="51e40e2e1b2e593a40a4616bf14b5721"/></dir><dir name="Helper"><file name="Data.php" hash="78ef976446429483b21fafd68f74989b"/></dir><dir name="Model"><file name="Imagegallery.php" hash="7754ac88ef14e47ed6ae20bd6e5b3dee"/><dir name="Mysql4"><dir name="Imagegallery"><file name="Collection.php" hash="05ad344c19853775cc2defb6c02f43d5"/></dir><file name="Imagegallery.php" hash="f4a3ccb42c61c75d54ce07e1526e297a"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="BannersliderbackendController.php" hash="2a19bc5dad2edb6de017c394d5616b00"/><file name="ImagegalleryController.php" hash="47103603a51c27efcf3072089ee9388b"/></dir><file name="IndexController.php" hash="a16f142d2046e4d5b21db1a3f58b1fbe"/></dir><dir name="etc"><file name="adminhtml.xml" hash="29856211718c298818eca603185065c5"/><file name="config.xml" hash="19f1dda334456dea239e9310bfad0ab7"/><file name="system.xml" hash="8df05a66e5258bfd736a8f5c9eaa4876"/></dir><dir name="sql"><dir name="bannerslider_setup"><file name="mysql4-install-8.1.1.php" hash="acdf1e7b910770e8816604216b5d2399"/></dir></dir></dir><dir name="Responsivebannerslider"><dir name="Block"><dir name="Adminhtml"><dir name="Responsivebanner"><dir name="Edit"><file name="Form.php" hash="c36517d5197a80c1399baab97e8ed4b0"/><dir name="Tab"><file name="Form.php" hash="7f316ecdce6f39efb44e02544aef5691"/></dir><file name="Tabs.php" hash="e5ba328e7f140e0d3dfe7ef49dc0d150"/></dir><file name="Edit.php" hash="6b7baf576089d1342863c52f0e36cb3f"/><file name="Grid.php" hash="ca5863ccd3369c37faa0d07fc7e47710"/></dir><file name="Responsivebanner.php" hash="29896ed5c7e1b8fd852cb2d9cbe674a5"/><file name="Responsivebannersliderbackend.php" hash="492c6c1c9897c51b987a1acadcc42a5c"/></dir><file name="Index.php" hash="6e09dc15f07c2d1e67e8e392c99bcf99"/></dir><dir name="Helper"><file name="Data.php" hash="54fb6015b45224292e5e47f0004633b6"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Responsivebanner"><file name="Collection.php" hash="56fc94a43c440a6288b5af96677c2378"/></dir><file name="Responsivebanner.php" hash="a957dbcb9c5b5da89edf852408d7337b"/></dir><file name="Responsivebanner.php" hash="2ad733a5835ead201a3ea4de2b4fd323"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="ResponsivebannerController.php" hash="e69a844949bb59be3dddffb5ac9064e4"/><file name="ResponsivebannersliderbackendController.php" hash="f095780b42f66f229d8bb76b69bb8f08"/><dir name="Rss"><file name="RssController.php" hash="fd0ab6a5a32d695d99717dda4e17a8cd"/></dir></dir><file name="IndexController.php" hash="2e6b22c241781739abdddefb77df2f6c"/></dir><dir name="etc"><file name="adminhtml.xml" hash="c44d2173a50ace0dd8b6e8dc6788d5e6"/><file name="config.xml" hash="736654b55517ac27ea7b14e578080aed"/><file name="system.xml" hash="db2c6269ebfc2daa7f8e025d2f71fcbb"/></dir><dir name="sql"><dir name="responsivebannerslider_setup"><file name="mysql4-install-8.1.1.php" hash="1b2373663fd4f14bc95306d3b1c946d5"/></dir></dir></dir><dir name="Storelocator"><dir name="Block"><dir name="Adminhtml"><dir name="Storelocator"><dir name="Edit"><file name="Form.php" hash="00fed13f02e804d93bac7258689769ad"/><dir name="Tab"><file name="Form.php" hash="da3f13dd930a591372ad0c14796c1e54"/></dir><file name="Tabs.php" hash="8819f35cd4af4b61d14bf377c58432b6"/></dir><file name="Edit.php" hash="9be35d036a69cfb545d2f1c1649cb6ba"/><file name="Grid.php" hash="da9a9f1d7359078f7f388440020b2c3e"/></dir><file name="Storelocator.php" hash="81770ec5e092a177c22e188b8db38d7e"/><file name="Storelocatorbackend.php" hash="d600cb8ff797f008c7c652a299305c8d"/></dir><file name="Index.php" hash="4a9374eced7efc8e0dc9aafb9ff3cef4"/></dir><dir name="Helper"><file name="Data.php" hash="083521dd42bf734a864e06dceb37b5a0"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Storelocator"><file name="Collection.php" hash="183c5eeeb2ef6b444bfc08a829b93cde"/></dir><file name="Storelocator.php" hash="29d65325bd746be070275726e309afdb"/></dir><file name="Storelocator.php" hash="e91d32a733f49d62d54c1335a57e2ee5"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="StorelocatorController.php" hash="1c8564c74994999c3e5177450b64241b"/><file name="StorelocatorbackendController.php" hash="342691ea69bd91fed7db67032fa69e32"/></dir><file name="IndexController.php" hash="852566fcfe7bf18f80926d04af88821e"/></dir><dir name="etc"><file name="adminhtml.xml" hash="49f58436b0c5e5d0ff6ed5b2f7eb0b8a"/><file name="config.xml" hash="aa5b1df1e9cbf67ea541db01f5ccc23b"/><file name="system.xml" hash="e903fefb54e74e5db482baee62d46185"/></dir><dir name="sql"><dir name="storelocator_setup"><file name="mysql4-install-8.1.1.php" hash="a6c9e74024278161f3ed0653dfbc9eb0"/></dir></dir></dir></dir></target><target name="magemedia"><dir name="bannerslider"><dir name="imagegallery"><file name="10.jpg" hash="e319bda7e5c57ec44604f57e4e432568"/><file name="11.jpg" hash="e319bda7e5c57ec44604f57e4e432568"/><file name="2.jpg" hash="50e1b25352e7a5438cfbea4c879a21bd"/><file name="3.jpg" hash="128aad6c96e9e1fbff279cd31ecc333d"/><file name="4.jpg" hash="7db4b1d19e73e8ce8f3d11de293d6b27"/><file name="5.jpg" hash="4c82a02693447cad4b9182defd8d0c5a"/><file name="6.jpg" hash="cb4985bf42b8848830b510ac8fa73232"/><file name="7.jpg" hash="b50f64182ba7094e72724b42b56c703b"/><file name="8.jpg" hash="3ed6b46a09a1faf5be74b70671944c66"/><file name="9.jpg" hash="17116b2c61f8e9b7d4f84a68da7eacc0"/></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="bannerslider.xml" hash="86a5f0476c92402b9bb69f90fa33eb20"/></dir><dir name="template"><dir name="bannerslider"><file name="bannersliderbackend.phtml" hash="df18a76ac5d10cd61c8cd0b9fa2ee247"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="bannerslider.xml" hash="e1f2b2ebd80564049e52fc0b50d8008f"/></dir><dir name="template"><dir name="bannerslider"><file name="index.phtml" hash="35d832b210837f8c51bfdff39d5c3438"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="bannerslider"><dir name="css"><file name="imagegallery.css" hash="325242c5f63dd8788f01adfbbc7df495"/></dir><dir name="images"><file name="close.png" hash="7e1e4fe9697be548050b612c84df15d7"/><file name="left_1.png" hash="70604f05151344b82eb8727bf917d992"/><file name="right_1.png" hash="8d90f2d7ba1b5ff56e093c5c48950cfd"/></dir><dir name="js"><file name="jquery-1.2.6.noConflict.min.js" hash="34c0f327c9bd8215df7206bf57c2868f"/></dir></dir></dir></dir></dir></target></contents>
20
  <compatible/>
21
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
22
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Mks_Bannerslider</name>
4
+ <version>9.1.1</version>
5
  <stability>stable</stability>
6
  <license>OSL</license>
7
  <channel>community</channel>
9
  <summary>Banner Slider Fully Dynamic (Pop-up image gallery on cms page). always use Banner Slider</summary>
10
  <description>Banner Slider Fully Dynamic (Pop-up image gallery on cms page). always use Banner Slider</description>
11
  <notes>New Freature :-&#xD;
12
+ Add 3 type new gallery style&#xD;
13
+ 1,2,3</notes>
 
 
14
  <authors><author><name>Mukesh Kumar saini</name><user>mukeshbagri</user><email>in.mukeshsaini@gmail.com</email></author></authors>
15
+ <date>2014-05-27</date>
16
+ <time>13:07:46</time>
17
+ <contents><target name="mageetc"><dir name="modules"><file name="Mks_Bannerslider.xml" hash="67606578b66a115849bde7920bb73c3c"/></dir></target><target name="magecommunity"><dir name="Mks"><dir name="Bannerslider"><dir name="Block"><dir name="Adminhtml"><file name="Bannersliderbackend.php" hash="c4c6fb4b655fea0bd41834cbc0b380d3"/><dir name="Imagegallery"><dir name="Edit"><file name="Form.php" hash="6bf611a29b6f43553b324cea6f299996"/><dir name="Tab"><file name="Form.php" hash="2a897f9391cef5a81faf0cee77dc4b51"/></dir><file name="Tabs.php" hash="947d52b2cf774dc10eb0249b51d03d6d"/></dir><file name="Edit.php" hash="4a0489c69b7830287e18edad35348ceb"/><file name="Grid.php" hash="7bbd1bae121f43a80faa3cbe4dae990b"/></dir><file name="Imagegallery.php" hash="5d7f22716646a9156b70a14c9e3cac35"/></dir><file name="Index.php" hash="93b897fe8a78e686651f33ce067a3bc4"/></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="14d3bcf92449f018fffd787bfc8a5f43"/></dir><dir name="sql"><dir name="bannerslider_setup"><file name="mysql4-install-8.1.1.php" hash="acdf1e7b910770e8816604216b5d2399"/></dir></dir></dir></dir></target><target name="magemedia"><dir name="bannerslider"><dir name="imagegallery"><file name="10.jpg" hash="e319bda7e5c57ec44604f57e4e432568"/><file name="11.jpg" hash="e319bda7e5c57ec44604f57e4e432568"/><file name="2.jpg" hash="50e1b25352e7a5438cfbea4c879a21bd"/><file name="3.jpg" hash="128aad6c96e9e1fbff279cd31ecc333d"/><file name="4.jpg" hash="7db4b1d19e73e8ce8f3d11de293d6b27"/><file name="5.jpg" hash="4c82a02693447cad4b9182defd8d0c5a"/><file name="6.jpg" hash="cb4985bf42b8848830b510ac8fa73232"/><file name="7.jpg" hash="b50f64182ba7094e72724b42b56c703b"/><file name="8.jpg" hash="3ed6b46a09a1faf5be74b70671944c66"/><file name="9.jpg" hash="17116b2c61f8e9b7d4f84a68da7eacc0"/></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="bannerslider.xml" hash="86a5f0476c92402b9bb69f90fa33eb20"/></dir><dir name="template"><dir name="bannerslider"><file name="bannersliderbackend.phtml" hash="df18a76ac5d10cd61c8cd0b9fa2ee247"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="bannerslider.xml" hash="e1f2b2ebd80564049e52fc0b50d8008f"/></dir><dir name="template"><dir name="bannerslider"><file name="index.phtml" hash="cb18e92930bd303fb8ed352bfcfb23dd"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="bannerslider"><dir name="css"><file name="imagegallery.css" hash="cec3db3b29955bdbe380789e6e3cd297"/></dir><dir name="cssjs"><file name="credits.txt" hash="978b65abab55335fc94c658c26fce654"/><file name="jquery.jcarousel.min.js" hash="21eeec2778ae3350a46c9c5c60fc8d58"/><file name="loading-small.gif" hash="52f1c39ff0ab3d75045ab1aadf13ff83"/><file name="loading.gif" hash="5ca630697891902c87111c0248617eb1"/><file name="loading_small.gif" hash="fc10e3e462187bfd5d08e1a5e4395235"/><file name="next-horizontal.gif" hash="2e31df0deb375acd5cfc83c176dab686"/><file name="next-horizontal.png" hash="f457d9e2544c1c0e38f2e059665b9ba1"/><file name="next-vertical.png" hash="75f3e73541fa7407d6f2fe702b727b3e"/><file name="prev-horizontal.gif" hash="0730f97fd654289539590cf9f949338b"/><file name="prev-horizontal.png" hash="09bd536fd4aee6b42a8cd60bab3b3a9f"/><file name="prev-vertical.png" hash="17bca192c379c012426c46d44e7994e8"/><file name="skin.css" hash="319cef0b82be05c3c6e9b2b72e17b383"/></dir><dir name="images"><file name="close.png" hash="7e1e4fe9697be548050b612c84df15d7"/><file name="left_1.png" hash="70604f05151344b82eb8727bf917d992"/><file name="right_1.png" hash="8d90f2d7ba1b5ff56e093c5c48950cfd"/></dir><dir name="js"><file name="jquery-1.2.6.noConflict.min.js" hash="34c0f327c9bd8215df7206bf57c2868f"/></dir></dir></dir></dir></dir></target></contents>
18
  <compatible/>
19
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
20
  </package>
skin/frontend/base/default/bannerslider/css/imagegallery.css CHANGED
@@ -1,4 +1,5 @@
1
 
 
2
  .blankdiv{background-color:#000;
3
  position:fixed;
4
  z-index: 9001;
@@ -7,19 +8,11 @@ left:0px;
7
  width:100%; opacity: 0.65;
8
  filter:alpha(opacity=65);}
9
 
10
- #popupform{height: 100%;
11
- left: 0;
12
- padding: 15px;
13
- position: fixed;
14
- top: 0;
15
- width:97%;
16
- z-index: 10001;
17
  }
18
 
19
  #popupform .applyform{position:relative; overflow:auto;
20
- background-color:#fff;
21
- width:510px;
22
- height:500px; margin:5% auto auto auto;
23
  z-index: 9002; padding:10px; border:10px solid #7F3814; }
24
 
25
 
1
 
2
+
3
  .blankdiv{background-color:#000;
4
  position:fixed;
5
  z-index: 9001;
8
  width:100%; opacity: 0.65;
9
  filter:alpha(opacity=65);}
10
 
11
+ #popupform{padding: 15px; position: fixed; top: 0; z-index: 10001; left:30%;
 
 
 
 
 
 
12
  }
13
 
14
  #popupform .applyform{position:relative; overflow:auto;
15
+ background-color:#fff; margin:5% auto auto auto;
 
 
16
  z-index: 9002; padding:10px; border:10px solid #7F3814; }
17
 
18
 
skin/frontend/base/default/bannerslider/cssjs/credits.txt ADDED
@@ -0,0 +1 @@
 
1
+ Button images copyright by Microsoft Corporation (http://microsoft.com)
skin/frontend/base/default/bannerslider/cssjs/jquery.jcarousel.min.js ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*!
2
+ * jCarousel - Riding carousels with jQuery
3
+ * http://sorgalla.com/jcarousel/
4
+ *
5
+ * Copyright (c) 2006 Jan Sorgalla (http://sorgalla.com)
6
+ * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
7
+ * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
8
+ *
9
+ * Built on top of the jQuery library
10
+ * http://jquery.com
11
+ *
12
+ * Inspired by the "Carousel Component" by Bill Scott
13
+ * http://billwscott.com/carousel/
14
+ */
15
+
16
+ (function(g){var q={vertical:!1,rtl:!1,start:1,offset:1,size:null,scroll:1,visible:null,animation:"normal",easing:"swing",auto:0,wrap:null,initCallback:null,setupCallback:null,reloadCallback:null,itemLoadCallback:null,itemFirstInCallback:null,itemFirstOutCallback:null,itemLastInCallback:null,itemLastOutCallback:null,itemVisibleInCallback:null,itemVisibleOutCallback:null,animationStepCallback:null,buttonNextHTML:"<div></div>",buttonPrevHTML:"<div></div>",buttonNextEvent:"click",buttonPrevEvent:"click", buttonNextCallback:null,buttonPrevCallback:null,itemFallbackDimension:null},m=!1;g(window).bind("load.jcarousel",function(){m=!0});g.jcarousel=function(a,c){this.options=g.extend({},q,c||{});this.autoStopped=this.locked=!1;this.buttonPrevState=this.buttonNextState=this.buttonPrev=this.buttonNext=this.list=this.clip=this.container=null;if(!c||c.rtl===void 0)this.options.rtl=(g(a).attr("dir")||g("html").attr("dir")||"").toLowerCase()=="rtl";this.wh=!this.options.vertical?"width":"height";this.lt=!this.options.vertical? this.options.rtl?"right":"left":"top";for(var b="",d=a.className.split(" "),f=0;f<d.length;f++)if(d[f].indexOf("jcarousel-skin")!=-1){g(a).removeClass(d[f]);b=d[f];break}a.nodeName.toUpperCase()=="UL"||a.nodeName.toUpperCase()=="OL"?(this.list=g(a),this.clip=this.list.parents(".jcarousel-clip"),this.container=this.list.parents(".jcarousel-container")):(this.container=g(a),this.list=this.container.find("ul,ol").eq(0),this.clip=this.container.find(".jcarousel-clip"));if(this.clip.size()===0)this.clip= this.list.wrap("<div></div>").parent();if(this.container.size()===0)this.container=this.clip.wrap("<div></div>").parent();b!==""&&this.container.parent()[0].className.indexOf("jcarousel-skin")==-1&&this.container.wrap('<div class=" '+b+'"></div>');this.buttonPrev=g(".jcarousel-prev",this.container);if(this.buttonPrev.size()===0&&this.options.buttonPrevHTML!==null)this.buttonPrev=g(this.options.buttonPrevHTML).appendTo(this.container);this.buttonPrev.addClass(this.className("jcarousel-prev"));this.buttonNext= g(".jcarousel-next",this.container);if(this.buttonNext.size()===0&&this.options.buttonNextHTML!==null)this.buttonNext=g(this.options.buttonNextHTML).appendTo(this.container);this.buttonNext.addClass(this.className("jcarousel-next"));this.clip.addClass(this.className("jcarousel-clip")).css({position:"relative"});this.list.addClass(this.className("jcarousel-list")).css({overflow:"hidden",position:"relative",top:0,margin:0,padding:0}).css(this.options.rtl?"right":"left",0);this.container.addClass(this.className("jcarousel-container")).css({position:"relative"}); !this.options.vertical&&this.options.rtl&&this.container.addClass("jcarousel-direction-rtl").attr("dir","rtl");var j=this.options.visible!==null?Math.ceil(this.clipping()/this.options.visible):null,b=this.list.children("li"),e=this;if(b.size()>0){var h=0,i=this.options.offset;b.each(function(){e.format(this,i++);h+=e.dimension(this,j)});this.list.css(this.wh,h+100+"px");if(!c||c.size===void 0)this.options.size=b.size()}this.container.css("display","block");this.buttonNext.css("display","block");this.buttonPrev.css("display", "block");this.funcNext=function(){e.next()};this.funcPrev=function(){e.prev()};this.funcResize=function(){e.resizeTimer&&clearTimeout(e.resizeTimer);e.resizeTimer=setTimeout(function(){e.reload()},100)};this.options.initCallback!==null&&this.options.initCallback(this,"init");!m&&g.browser.safari?(this.buttons(!1,!1),g(window).bind("load.jcarousel",function(){e.setup()})):this.setup()};var f=g.jcarousel;f.fn=f.prototype={jcarousel:"0.2.8"};f.fn.extend=f.extend=g.extend;f.fn.extend({setup:function(){this.prevLast= this.prevFirst=this.last=this.first=null;this.animating=!1;this.tail=this.resizeTimer=this.timer=null;this.inTail=!1;if(!this.locked){this.list.css(this.lt,this.pos(this.options.offset)+"px");var a=this.pos(this.options.start,!0);this.prevFirst=this.prevLast=null;this.animate(a,!1);g(window).unbind("resize.jcarousel",this.funcResize).bind("resize.jcarousel",this.funcResize);this.options.setupCallback!==null&&this.options.setupCallback(this)}},reset:function(){this.list.empty();this.list.css(this.lt, "0px");this.list.css(this.wh,"10px");this.options.initCallback!==null&&this.options.initCallback(this,"reset");this.setup()},reload:function(){this.tail!==null&&this.inTail&&this.list.css(this.lt,f.intval(this.list.css(this.lt))+this.tail);this.tail=null;this.inTail=!1;this.options.reloadCallback!==null&&this.options.reloadCallback(this);if(this.options.visible!==null){var a=this,c=Math.ceil(this.clipping()/this.options.visible),b=0,d=0;this.list.children("li").each(function(f){b+=a.dimension(this, c);f+1<a.first&&(d=b)});this.list.css(this.wh,b+"px");this.list.css(this.lt,-d+"px")}this.scroll(this.first,!1)},lock:function(){this.locked=!0;this.buttons()},unlock:function(){this.locked=!1;this.buttons()},size:function(a){if(a!==void 0)this.options.size=a,this.locked||this.buttons();return this.options.size},has:function(a,c){if(c===void 0||!c)c=a;if(this.options.size!==null&&c>this.options.size)c=this.options.size;for(var b=a;b<=c;b++){var d=this.get(b);if(!d.length||d.hasClass("jcarousel-item-placeholder"))return!1}return!0}, get:function(a){return g(">.jcarousel-item-"+a,this.list)},add:function(a,c){var b=this.get(a),d=0,p=g(c);if(b.length===0)for(var j,e=f.intval(a),b=this.create(a);;){if(j=this.get(--e),e<=0||j.length){e<=0?this.list.prepend(b):j.after(b);break}}else d=this.dimension(b);p.get(0).nodeName.toUpperCase()=="LI"?(b.replaceWith(p),b=p):b.empty().append(c);this.format(b.removeClass(this.className("jcarousel-item-placeholder")),a);p=this.options.visible!==null?Math.ceil(this.clipping()/this.options.visible): null;d=this.dimension(b,p)-d;a>0&&a<this.first&&this.list.css(this.lt,f.intval(this.list.css(this.lt))-d+"px");this.list.css(this.wh,f.intval(this.list.css(this.wh))+d+"px");return b},remove:function(a){var c=this.get(a);if(c.length&&!(a>=this.first&&a<=this.last)){var b=this.dimension(c);a<this.first&&this.list.css(this.lt,f.intval(this.list.css(this.lt))+b+"px");c.remove();this.list.css(this.wh,f.intval(this.list.css(this.wh))-b+"px")}},next:function(){this.tail!==null&&!this.inTail?this.scrollTail(!1): this.scroll((this.options.wrap=="both"||this.options.wrap=="last")&&this.options.size!==null&&this.last==this.options.size?1:this.first+this.options.scroll)},prev:function(){this.tail!==null&&this.inTail?this.scrollTail(!0):this.scroll((this.options.wrap=="both"||this.options.wrap=="first")&&this.options.size!==null&&this.first==1?this.options.size:this.first-this.options.scroll)},scrollTail:function(a){if(!this.locked&&!this.animating&&this.tail){this.pauseAuto();var c=f.intval(this.list.css(this.lt)), c=!a?c-this.tail:c+this.tail;this.inTail=!a;this.prevFirst=this.first;this.prevLast=this.last;this.animate(c)}},scroll:function(a,c){!this.locked&&!this.animating&&(this.pauseAuto(),this.animate(this.pos(a),c))},pos:function(a,c){var b=f.intval(this.list.css(this.lt));if(this.locked||this.animating)return b;this.options.wrap!="circular"&&(a=a<1?1:this.options.size&&a>this.options.size?this.options.size:a);for(var d=this.first>a,g=this.options.wrap!="circular"&&this.first<=1?1:this.first,j=d?this.get(g): this.get(this.last),e=d?g:g-1,h=null,i=0,k=!1,l=0;d?--e>=a:++e<a;){h=this.get(e);k=!h.length;if(h.length===0&&(h=this.create(e).addClass(this.className("jcarousel-item-placeholder")),j[d?"before":"after"](h),this.first!==null&&this.options.wrap=="circular"&&this.options.size!==null&&(e<=0||e>this.options.size)))j=this.get(this.index(e)),j.length&&(h=this.add(e,j.clone(!0)));j=h;l=this.dimension(h);k&&(i+=l);if(this.first!==null&&(this.options.wrap=="circular"||e>=1&&(this.options.size===null||e<= this.options.size)))b=d?b+l:b-l}for(var g=this.clipping(),m=[],o=0,n=0,j=this.get(a-1),e=a;++o;){h=this.get(e);k=!h.length;if(h.length===0){h=this.create(e).addClass(this.className("jcarousel-item-placeholder"));if(j.length===0)this.list.prepend(h);else j[d?"before":"after"](h);if(this.first!==null&&this.options.wrap=="circular"&&this.options.size!==null&&(e<=0||e>this.options.size))j=this.get(this.index(e)),j.length&&(h=this.add(e,j.clone(!0)))}j=h;l=this.dimension(h);if(l===0)throw Error("jCarousel: No width/height set for items. This will cause an infinite loop. Aborting..."); this.options.wrap!="circular"&&this.options.size!==null&&e>this.options.size?m.push(h):k&&(i+=l);n+=l;if(n>=g)break;e++}for(h=0;h<m.length;h++)m[h].remove();i>0&&(this.list.css(this.wh,this.dimension(this.list)+i+"px"),d&&(b-=i,this.list.css(this.lt,f.intval(this.list.css(this.lt))-i+"px")));i=a+o-1;if(this.options.wrap!="circular"&&this.options.size&&i>this.options.size)i=this.options.size;if(e>i){o=0;e=i;for(n=0;++o;){h=this.get(e--);if(!h.length)break;n+=this.dimension(h);if(n>=g)break}}e=i-o+ 1;this.options.wrap!="circular"&&e<1&&(e=1);if(this.inTail&&d)b+=this.tail,this.inTail=!1;this.tail=null;if(this.options.wrap!="circular"&&i==this.options.size&&i-o+1>=1&&(d=f.intval(this.get(i).css(!this.options.vertical?"marginRight":"marginBottom")),n-d>g))this.tail=n-g-d;if(c&&a===this.options.size&&this.tail)b-=this.tail,this.inTail=!0;for(;a-- >e;)b+=this.dimension(this.get(a));this.prevFirst=this.first;this.prevLast=this.last;this.first=e;this.last=i;return b},animate:function(a,c){if(!this.locked&& !this.animating){this.animating=!0;var b=this,d=function(){b.animating=!1;a===0&&b.list.css(b.lt,0);!b.autoStopped&&(b.options.wrap=="circular"||b.options.wrap=="both"||b.options.wrap=="last"||b.options.size===null||b.last<b.options.size||b.last==b.options.size&&b.tail!==null&&!b.inTail)&&b.startAuto();b.buttons();b.notify("onAfterAnimation");if(b.options.wrap=="circular"&&b.options.size!==null)for(var c=b.prevFirst;c<=b.prevLast;c++)c!==null&&!(c>=b.first&&c<=b.last)&&(c<1||c>b.options.size)&&b.remove(c)}; this.notify("onBeforeAnimation");if(!this.options.animation||c===!1)this.list.css(this.lt,a+"px"),d();else{var f=!this.options.vertical?this.options.rtl?{right:a}:{left:a}:{top:a},d={duration:this.options.animation,easing:this.options.easing,complete:d};if(g.isFunction(this.options.animationStepCallback))d.step=this.options.animationStepCallback;this.list.animate(f,d)}}},startAuto:function(a){if(a!==void 0)this.options.auto=a;if(this.options.auto===0)return this.stopAuto();if(this.timer===null){this.autoStopped= !1;var c=this;this.timer=window.setTimeout(function(){c.next()},this.options.auto*1E3)}},stopAuto:function(){this.pauseAuto();this.autoStopped=!0},pauseAuto:function(){if(this.timer!==null)window.clearTimeout(this.timer),this.timer=null},buttons:function(a,c){if(a==null&&(a=!this.locked&&this.options.size!==0&&(this.options.wrap&&this.options.wrap!="first"||this.options.size===null||this.last<this.options.size),!this.locked&&(!this.options.wrap||this.options.wrap=="first")&&this.options.size!==null&& this.last>=this.options.size))a=this.tail!==null&&!this.inTail;if(c==null&&(c=!this.locked&&this.options.size!==0&&(this.options.wrap&&this.options.wrap!="last"||this.first>1),!this.locked&&(!this.options.wrap||this.options.wrap=="last")&&this.options.size!==null&&this.first==1))c=this.tail!==null&&this.inTail;var b=this;this.buttonNext.size()>0?(this.buttonNext.unbind(this.options.buttonNextEvent+".jcarousel",this.funcNext),a&&this.buttonNext.bind(this.options.buttonNextEvent+".jcarousel",this.funcNext), this.buttonNext[a?"removeClass":"addClass"](this.className("jcarousel-next-disabled")).attr("disabled",a?!1:!0),this.options.buttonNextCallback!==null&&this.buttonNext.data("jcarouselstate")!=a&&this.buttonNext.each(function(){b.options.buttonNextCallback(b,this,a)}).data("jcarouselstate",a)):this.options.buttonNextCallback!==null&&this.buttonNextState!=a&&this.options.buttonNextCallback(b,null,a);this.buttonPrev.size()>0?(this.buttonPrev.unbind(this.options.buttonPrevEvent+".jcarousel",this.funcPrev), c&&this.buttonPrev.bind(this.options.buttonPrevEvent+".jcarousel",this.funcPrev),this.buttonPrev[c?"removeClass":"addClass"](this.className("jcarousel-prev-disabled")).attr("disabled",c?!1:!0),this.options.buttonPrevCallback!==null&&this.buttonPrev.data("jcarouselstate")!=c&&this.buttonPrev.each(function(){b.options.buttonPrevCallback(b,this,c)}).data("jcarouselstate",c)):this.options.buttonPrevCallback!==null&&this.buttonPrevState!=c&&this.options.buttonPrevCallback(b,null,c);this.buttonNextState= a;this.buttonPrevState=c},notify:function(a){var c=this.prevFirst===null?"init":this.prevFirst<this.first?"next":"prev";this.callback("itemLoadCallback",a,c);this.prevFirst!==this.first&&(this.callback("itemFirstInCallback",a,c,this.first),this.callback("itemFirstOutCallback",a,c,this.prevFirst));this.prevLast!==this.last&&(this.callback("itemLastInCallback",a,c,this.last),this.callback("itemLastOutCallback",a,c,this.prevLast));this.callback("itemVisibleInCallback",a,c,this.first,this.last,this.prevFirst, this.prevLast);this.callback("itemVisibleOutCallback",a,c,this.prevFirst,this.prevLast,this.first,this.last)},callback:function(a,c,b,d,f,j,e){if(!(this.options[a]==null||typeof this.options[a]!="object"&&c!="onAfterAnimation")){var h=typeof this.options[a]=="object"?this.options[a][c]:this.options[a];if(g.isFunction(h)){var i=this;if(d===void 0)h(i,b,c);else if(f===void 0)this.get(d).each(function(){h(i,this,d,b,c)});else for(var a=function(a){i.get(a).each(function(){h(i,this,a,b,c)})},k=d;k<=f;k++)k!== null&&!(k>=j&&k<=e)&&a(k)}}},create:function(a){return this.format("<li></li>",a)},format:function(a,c){for(var a=g(a),b=a.get(0).className.split(" "),d=0;d<b.length;d++)b[d].indexOf("jcarousel-")!=-1&&a.removeClass(b[d]);a.addClass(this.className("jcarousel-item")).addClass(this.className("jcarousel-item-"+c)).css({"float":this.options.rtl?"right":"left","list-style":"none"}).attr("jcarouselindex",c);return a},className:function(a){return a+" "+a+(!this.options.vertical?"-horizontal":"-vertical")}, dimension:function(a,c){var b=g(a);if(c==null)return!this.options.vertical?b.outerWidth(!0)||f.intval(this.options.itemFallbackDimension):b.outerHeight(!0)||f.intval(this.options.itemFallbackDimension);else{var d=!this.options.vertical?c-f.intval(b.css("marginLeft"))-f.intval(b.css("marginRight")):c-f.intval(b.css("marginTop"))-f.intval(b.css("marginBottom"));g(b).css(this.wh,d+"px");return this.dimension(b)}},clipping:function(){return!this.options.vertical?this.clip[0].offsetWidth-f.intval(this.clip.css("borderLeftWidth"))- f.intval(this.clip.css("borderRightWidth")):this.clip[0].offsetHeight-f.intval(this.clip.css("borderTopWidth"))-f.intval(this.clip.css("borderBottomWidth"))},index:function(a,c){if(c==null)c=this.options.size;return Math.round(((a-1)/c-Math.floor((a-1)/c))*c)+1}});f.extend({defaults:function(a){return g.extend(q,a||{})},intval:function(a){a=parseInt(a,10);return isNaN(a)?0:a},windowLoaded:function(){m=!0}});g.fn.jcarousel=function(a){if(typeof a=="string"){var c=g(this).data("jcarousel"),b=Array.prototype.slice.call(arguments, 1);return c[a].apply(c,b)}else return this.each(function(){var b=g(this).data("jcarousel");b?(a&&g.extend(b.options,a),b.reload()):g(this).data("jcarousel",new f(this,a))})}})(jQuery);
skin/frontend/base/default/bannerslider/cssjs/loading-small.gif ADDED
Binary file
skin/frontend/base/default/bannerslider/cssjs/loading.gif ADDED
Binary file
skin/frontend/base/default/bannerslider/cssjs/loading_small.gif ADDED
Binary file
skin/frontend/base/default/bannerslider/cssjs/next-horizontal.gif ADDED
Binary file
skin/frontend/base/default/bannerslider/cssjs/next-horizontal.png ADDED
Binary file
skin/frontend/base/default/bannerslider/cssjs/next-vertical.png ADDED
Binary file
skin/frontend/base/default/bannerslider/cssjs/prev-horizontal.gif ADDED
Binary file
skin/frontend/base/default/bannerslider/cssjs/prev-horizontal.png ADDED
Binary file
skin/frontend/base/default/bannerslider/cssjs/prev-vertical.png ADDED
Binary file
skin/frontend/base/default/bannerslider/cssjs/skin.css ADDED
@@ -0,0 +1,188 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #wrap { text-align:center; }
2
+ .jcarousel-skin-ie7 .jcarousel-direction-rtl {
3
+ direction: rtl;
4
+ }
5
+
6
+ .jcarousel-skin-ie7 .jcarousel-container-horizontal {
7
+ width: 790px;
8
+ padding: 20px 0px;
9
+ margin:auto;
10
+ }
11
+
12
+ .jcarousel-skin-ie7 .jcarousel-container-vertical {
13
+ width: 300px;
14
+ height: 550px;
15
+ padding: 40px 20px;
16
+ }
17
+
18
+ .jcarousel-skin-ie7 .jcarousel-clip {
19
+ overflow: hidden;
20
+ }
21
+
22
+ .jcarousel-skin-ie7 .jcarousel-clip-horizontal {
23
+ width: 780px;
24
+ height: 300px;
25
+ }
26
+
27
+ .jcarousel-skin-ie7 .jcarousel-clip-vertical {
28
+ width: 150px;
29
+ height: 300px;
30
+ }
31
+
32
+ .jcarousel-skin-ie7 .jcarousel-item {
33
+ width: 145px;
34
+ height: 300px;
35
+ padding:5px 4px;
36
+
37
+ }
38
+
39
+ .jcarousel-skin-ie7 .jcarousel-item:hover,
40
+ .jcarousel-skin-ie7 .jcarousel-item:focus {
41
+ border-color: #808080;
42
+ }
43
+
44
+ .jcarousel-skin-ie7 .jcarousel-item-horizontal {
45
+ margin-left: 0;
46
+ margin-right: 7px;
47
+ }
48
+
49
+ .jcarousel-skin-ie7 .jcarousel-direction-rtl .jcarousel-item-horizontal {
50
+ margin-left: 7px;
51
+ margin-right: 0;
52
+ }
53
+
54
+ .jcarousel-skin-ie7 .jcarousel-item-vertical {
55
+ margin-bottom: 7px;
56
+ }
57
+
58
+ .jcarousel-skin-ie7 .jcarousel-item-placeholder {
59
+ }
60
+
61
+ /**
62
+ * Horizontal Buttons
63
+ */
64
+ .jcarousel-skin-ie7 .jcarousel-next-horizontal {
65
+ position: absolute;
66
+ top: 73px;
67
+ right: -16px;
68
+ width: 32px;
69
+ height: 32px;
70
+ cursor: pointer;
71
+ background: transparent url(next-horizontal.png) no-repeat 0 0;
72
+ }
73
+
74
+ .jcarousel-skin-ie7 .jcarousel-direction-rtl .jcarousel-next-horizontal {
75
+ left: 5px;
76
+ right: auto;
77
+ background-image: url(prev-horizontal.gif);
78
+ }
79
+
80
+ .jcarousel-skin-ie7 .jcarousel-next-horizontal:hover,
81
+ .jcarousel-skin-ie7 .jcarousel-next-horizontal:focus {
82
+ background-position: -32px 0;
83
+ }
84
+
85
+ .jcarousel-skin-ie7 .jcarousel-next-horizontal:active {
86
+ background-position: -64px 0;
87
+ }
88
+
89
+ .jcarousel-skin-ie7 .jcarousel-next-disabled-horizontal,
90
+ .jcarousel-skin-ie7 .jcarousel-next-disabled-horizontal:hover,
91
+ .jcarousel-skin-ie7 .jcarousel-next-disabled-horizontal:focus,
92
+ .jcarousel-skin-ie7 .jcarousel-next-disabled-horizontal:active {
93
+ cursor: default;
94
+ background-position: -96px 0;
95
+ }
96
+
97
+ .jcarousel-skin-ie7 .jcarousel-prev-horizontal {
98
+ position: absolute;
99
+ top: 73px;
100
+ left: -27px;
101
+ width: 32px;
102
+ height: 32px;
103
+ cursor: pointer;
104
+ background: transparent url(prev-horizontal.png) no-repeat 0 0;
105
+ }
106
+
107
+ .jcarousel-skin-ie7 .jcarousel-direction-rtl .jcarousel-prev-horizontal {
108
+ left: auto;
109
+ right: 5px;
110
+ background-image: url(next-horizontal.png);
111
+ }
112
+
113
+ .jcarousel-skin-ie7 .jcarousel-prev-horizontal:hover,
114
+ .jcarousel-skin-ie7 .jcarousel-prev-horizontal:focus {
115
+ background-position: -32px 0;
116
+ }
117
+
118
+ .jcarousel-skin-ie7 .jcarousel-prev-horizontal:active {
119
+ background-position: -64px 0;
120
+ }
121
+
122
+ .jcarousel-skin-ie7 .jcarousel-prev-disabled-horizontal,
123
+ .jcarousel-skin-ie7 .jcarousel-prev-disabled-horizontal:hover,
124
+ .jcarousel-skin-ie7 .jcarousel-prev-disabled-horizontal:focus,
125
+ .jcarousel-skin-ie7 .jcarousel-prev-disabled-horizontal:active {
126
+ cursor: default;
127
+ background-position: -96px 0;
128
+ }
129
+
130
+ /**
131
+ * Vertical Buttons
132
+ */
133
+ .jcarousel-skin-ie7 .jcarousel-next-vertical {
134
+ position: absolute;
135
+ bottom: 5px;
136
+ left: 43px;
137
+ width: 32px;
138
+ height: 32px;
139
+ cursor: pointer;
140
+ background: transparent url(next-vertical.png) no-repeat 0 0;
141
+ }
142
+
143
+ .jcarousel-skin-ie7 .jcarousel-next-vertical:hover,
144
+ .jcarousel-skin-ie7 .jcarousel-next-vertical:focus {
145
+ background-position: 0 -32px;
146
+ }
147
+
148
+ .jcarousel-skin-ie7 .jcarousel-next-vertical:active {
149
+ background-position: 0 -64px;
150
+ }
151
+
152
+ .jcarousel-skin-ie7 .jcarousel-next-disabled-vertical,
153
+ .jcarousel-skin-ie7 .jcarousel-next-disabled-vertical:hover,
154
+ .jcarousel-skin-ie7 .jcarousel-next-disabled-vertical:focus,
155
+ .jcarousel-skin-ie7 .jcarousel-next-disabled-vertical:active {
156
+ cursor: default;
157
+ background-position: 0 -96px;
158
+ }
159
+
160
+ .jcarousel-skin-ie7 .jcarousel-prev-vertical {
161
+ position: absolute;
162
+ top: 5px;
163
+ left: 43px;
164
+ width: 32px;
165
+ height: 32px;
166
+ cursor: pointer;
167
+ background: transparent url(prev-vertical.png) no-repeat 0 0;
168
+ }
169
+
170
+ .jcarousel-skin-ie7 .jcarousel-prev-vertical:hover,
171
+ .jcarousel-skin-ie7 .jcarousel-prev-vertical:focus {
172
+ background-position: 0 -32px;
173
+ }
174
+
175
+ .jcarousel-skin-ie7 .jcarousel-prev-vertical:active {
176
+ background-position: 0 -64px;
177
+ }
178
+
179
+ .jcarousel-skin-ie7 .jcarousel-prev-disabled-vertical,
180
+ .jcarousel-skin-ie7 .jcarousel-prev-disabled-vertical:hover,
181
+ .jcarousel-skin-ie7 .jcarousel-prev-disabled-vertical:focus,
182
+ .jcarousel-skin-ie7 .jcarousel-prev-disabled-vertical:active {
183
+ cursor: default;
184
+ background-position: 0 -96px;
185
+ }
186
+
187
+
188
+