Responsive_Banner_Slider - Version 1.0.4

Version Notes

Capacity Web Solutions - Responsive Banner Slider

Download this release

Release Info

Developer Capacity Web Solutions
Extension Responsive_Banner_Slider
Version 1.0.4
Comparing to
See all releases


Code changes from version 1.0.3 to 1.0.4

Files changed (82) hide show
  1. app/code/community/CapacityWebSolutions/Responsivebannerslider/Block/Adminhtml/Slider.php +6 -8
  2. app/code/community/CapacityWebSolutions/Responsivebannerslider/Block/Adminhtml/Slider/Edit.php +10 -19
  3. app/code/community/CapacityWebSolutions/Responsivebannerslider/Block/Adminhtml/Slider/Edit/Form.php +6 -9
  4. app/code/community/CapacityWebSolutions/Responsivebannerslider/Block/Adminhtml/Slider/Edit/Tab/Form.php +24 -68
  5. app/code/community/CapacityWebSolutions/Responsivebannerslider/Block/Adminhtml/Slider/Edit/Tabs.php +9 -14
  6. app/code/community/CapacityWebSolutions/Responsivebannerslider/Block/Adminhtml/Slider/Grid.php +12 -35
  7. app/code/community/CapacityWebSolutions/Responsivebannerslider/Block/Adminhtml/Slider/Renderer/Groups.php +7 -11
  8. app/code/community/CapacityWebSolutions/Responsivebannerslider/Block/Adminhtml/Slidergroup.php +11 -17
  9. app/code/community/CapacityWebSolutions/Responsivebannerslider/Block/Adminhtml/Slidergroup/Edit.php +10 -20
  10. app/code/community/CapacityWebSolutions/Responsivebannerslider/Block/Adminhtml/Slidergroup/Edit/Form.php +7 -12
  11. app/code/community/CapacityWebSolutions/Responsivebannerslider/Block/Adminhtml/Slidergroup/Edit/Tab/Categories.php +13 -23
  12. app/code/community/CapacityWebSolutions/Responsivebannerslider/Block/Adminhtml/Slidergroup/Edit/Tab/Code.php +6 -11
  13. app/code/community/CapacityWebSolutions/Responsivebannerslider/Block/Adminhtml/Slidergroup/Edit/Tab/Form.php +22 -93
  14. app/code/community/CapacityWebSolutions/Responsivebannerslider/Block/Adminhtml/Slidergroup/Edit/Tab/Pages.php +10 -20
  15. app/code/community/CapacityWebSolutions/Responsivebannerslider/Block/Adminhtml/Slidergroup/Edit/Tab/Product.php +7 -15
  16. app/code/community/CapacityWebSolutions/Responsivebannerslider/Block/Adminhtml/Slidergroup/Edit/Tab/Sliders.php +8 -20
  17. app/code/community/CapacityWebSolutions/Responsivebannerslider/Block/Adminhtml/Slidergroup/Edit/Tabs.php +9 -21
  18. app/code/community/CapacityWebSolutions/Responsivebannerslider/Block/Adminhtml/Slidergroup/Grid.php +11 -30
  19. app/code/community/CapacityWebSolutions/Responsivebannerslider/Block/Managejquery.php +41 -0
  20. app/code/community/CapacityWebSolutions/Responsivebannerslider/Block/View.php +7 -16
  21. app/code/community/CapacityWebSolutions/Responsivebannerslider/Block/View/Bottom.php +13 -19
  22. app/code/community/CapacityWebSolutions/Responsivebannerslider/Block/View/Top.php +10 -19
  23. app/code/community/CapacityWebSolutions/Responsivebannerslider/Helper/Data.php +7 -36
  24. app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Categories.php +7 -10
  25. app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Category.php +7 -9
  26. app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Config/Effect.php +8 -13
  27. app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Config/Source/Animationdirection.php +6 -10
  28. app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Config/Source/Animationtype.php +7 -11
  29. app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Config/Source/Effect.php +7 -11
  30. app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Config/Source/Navigation.php +6 -10
  31. app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Config/Source/Navigationarrow.php +6 -10
  32. app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Config/Source/Navigationstyle.php +6 -10
  33. app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Config/Source/Pages.php +6 -10
  34. app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Config/Source/Paginationposition.php +6 -10
  35. app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Config/Source/Paginationstyle.php +6 -10
  36. app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Config/Source/Position.php +7 -11
  37. app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Config/Source/Status.php +7 -11
  38. app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Config/Source/Theme.php +7 -11
  39. app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Config/Source/Type.php +8 -12
  40. app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Config/Source/Urltarget.php +6 -10
  41. app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Config/Source/Video.php +6 -10
  42. app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Mysql4/Categories.php +7 -10
  43. app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Mysql4/Categories/Collection.php +7 -10
  44. app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Mysql4/Page.php +7 -10
  45. app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Mysql4/Page/Collection.php +8 -11
  46. app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Mysql4/Product.php +7 -10
  47. app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Mysql4/Product/Collection.php +7 -10
  48. app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Mysql4/Responsivebannerslider.php +7 -10
  49. app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Mysql4/Responsivebannerslider/Collection.php +7 -11
  50. app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Mysql4/Slide.php +7 -10
  51. app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Mysql4/Slide/Collection.php +7 -10
  52. app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Mysql4/Store.php +8 -12
  53. app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Mysql4/Store/Collection.php +7 -10
  54. app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Observer.php +14 -76
  55. app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Page.php +7 -10
  56. app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Product.php +7 -10
  57. app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Responsivebannerslider.php +7 -10
  58. app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Slide.php +8 -13
  59. app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Status.php +7 -11
  60. app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Store.php +7 -10
  61. app/code/community/CapacityWebSolutions/Responsivebannerslider/controllers/Adminhtml/SliderController.php +22 -75
  62. app/code/community/CapacityWebSolutions/Responsivebannerslider/controllers/Adminhtml/SlidergroupController.php +20 -73
  63. app/code/community/CapacityWebSolutions/Responsivebannerslider/controllers/IndexController.php +7 -14
  64. app/code/community/CapacityWebSolutions/Responsivebannerslider/etc/config.xml +18 -50
  65. app/code/community/CapacityWebSolutions/Responsivebannerslider/etc/system.xml +3 -20
  66. app/code/community/CapacityWebSolutions/Responsivebannerslider/sql/responsivebannerslider_setup/mysql4-install-1.0.0.php +0 -7
  67. app/code/community/CapacityWebSolutions/Responsivebannerslider/sql/responsivebannerslider_setup/mysql4-upgrade-1.0.0-1.0.4.php +14 -0
  68. app/design/adminhtml/default/default/layout/responsivebannerslider.xml +11 -30
  69. app/design/adminhtml/default/default/template/responsivebannerslider/category/edit/tab/categories.phtml +5 -6
  70. app/design/adminhtml/default/default/template/responsivebannerslider/category/edit/tab/product.phtml +5 -12
  71. app/design/adminhtml/default/default/template/responsivebannerslider/code.phtml +5 -6
  72. app/design/adminhtml/default/default/template/responsivebannerslider/group.phtml +5 -15
  73. app/design/adminhtml/default/default/template/responsivebannerslider/store.phtml +5 -6
  74. app/design/frontend/base/default/layout/responsivebannerslider.xml +3 -7
  75. app/design/frontend/base/default/template/responsivebannerslider/slider.phtml +4 -8
  76. app/design/frontend/rwd/default/layout/responsivebannerslider.xml +67 -0
  77. app/design/frontend/rwd/default/template/responsivebannerslider/slider.phtml +550 -0
  78. js/responsivebannerslider/jquery.easing.js +0 -8
  79. js/responsivebannerslider/noconflict.js +27 -0
  80. package.xml +4 -4
  81. skin/frontend/base/default/css/responsivebannerslider/group-1.css +1 -0
  82. skin/frontend/base/default/css/responsivebannerslider/group-2.css +1 -0
app/code/community/CapacityWebSolutions/Responsivebannerslider/Block/Adminhtml/Slider.php CHANGED
@@ -1,14 +1,12 @@
1
  <?php
2
  /***************************************************************************
3
- @extension : Responsive Banner Slider Extension.
4
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
5
- ( http://www.capacitywebsolutions.com )
6
- @author : Capacity Web Solutions Pvt. Ltd.
7
- @support : magento@capacitywebsolutions.com
8
- ***************************************************************************/
9
 
10
- class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slider extends Mage_Adminhtml_Block_Widget_Grid_Container
11
- {
12
  public function __construct() {
13
  $this->_controller = 'adminhtml_slider';
14
  $this->_blockGroup = 'responsivebannerslider';
1
  <?php
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
8
 
9
+ class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slider extends Mage_Adminhtml_Block_Widget_Grid_Container {
 
10
  public function __construct() {
11
  $this->_controller = 'adminhtml_slider';
12
  $this->_blockGroup = 'responsivebannerslider';
app/code/community/CapacityWebSolutions/Responsivebannerslider/Block/Adminhtml/Slider/Edit.php CHANGED
@@ -1,32 +1,25 @@
1
  <?php
2
-
3
  /***************************************************************************
4
- @extension : Responsive Banner Slider Extension.
5
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
6
- ( http://www.capacitywebsolutions.com )
7
- @author : Capacity Web Solutions Pvt. Ltd.
8
- @support : magento@capacitywebsolutions.com
9
- ***************************************************************************/
10
 
11
- class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slider_Edit extends Mage_Adminhtml_Block_Widget_Form_Container
12
- {
13
- public function __construct()
14
- {
15
  parent::__construct();
16
-
17
  $this->_objectId = 'id';
18
  $this->_blockGroup = 'responsivebannerslider';
19
  $this->_controller = 'adminhtml_slider';
20
-
21
  $this->_updateButton('save', 'label', Mage::helper('responsivebannerslider')->__('Save Item'));
22
  $this->_updateButton('delete', 'label', Mage::helper('responsivebannerslider')->__('Delete Item'));
23
-
24
- $this->_addButton('saveandcontinue', array(
25
  'label' => Mage::helper('adminhtml')->__('Save And Continue Edit'),
26
  'onclick' => 'saveAndContinueEdit()',
27
  'class' => 'save',
28
  ), -100);
29
-
30
  $this->_formScripts[] = "
31
  function toggleEditor() {
32
  if (tinyMCE.getInstanceById('web_content') == null) {
@@ -47,12 +40,10 @@ class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slider_Edit ex
47
  if (Mage::getSingleton('cms/wysiwyg_config')->isEnabled()) {
48
  $this->getLayout()->getBlock('head')->setCanLoadTinyMce(true);
49
  $this->getLayout()->getBlock('head')->setCanLoadExtJs(true);
50
-
51
  }
52
  }
53
 
54
- public function getHeaderText()
55
- {
56
  if( Mage::registry('slider_data') && Mage::registry('slider_data')->getId() ) {
57
  return Mage::helper('responsivebannerslider')->__("Edit Item '%s'", $this->htmlEscape(Mage::registry('slider_data')->getTitles()));
58
  } else {
1
  <?php
 
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
8
 
9
+ class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slider_Edit extends Mage_Adminhtml_Block_Widget_Form_Container {
10
+
11
+ public function __construct() {
 
12
  parent::__construct();
 
13
  $this->_objectId = 'id';
14
  $this->_blockGroup = 'responsivebannerslider';
15
  $this->_controller = 'adminhtml_slider';
 
16
  $this->_updateButton('save', 'label', Mage::helper('responsivebannerslider')->__('Save Item'));
17
  $this->_updateButton('delete', 'label', Mage::helper('responsivebannerslider')->__('Delete Item'));
18
+ $this->_addButton('saveandcontinue', array(
 
19
  'label' => Mage::helper('adminhtml')->__('Save And Continue Edit'),
20
  'onclick' => 'saveAndContinueEdit()',
21
  'class' => 'save',
22
  ), -100);
 
23
  $this->_formScripts[] = "
24
  function toggleEditor() {
25
  if (tinyMCE.getInstanceById('web_content') == null) {
40
  if (Mage::getSingleton('cms/wysiwyg_config')->isEnabled()) {
41
  $this->getLayout()->getBlock('head')->setCanLoadTinyMce(true);
42
  $this->getLayout()->getBlock('head')->setCanLoadExtJs(true);
 
43
  }
44
  }
45
 
46
+ public function getHeaderText() {
 
47
  if( Mage::registry('slider_data') && Mage::registry('slider_data')->getId() ) {
48
  return Mage::helper('responsivebannerslider')->__("Edit Item '%s'", $this->htmlEscape(Mage::registry('slider_data')->getTitles()));
49
  } else {
app/code/community/CapacityWebSolutions/Responsivebannerslider/Block/Adminhtml/Slider/Edit/Form.php CHANGED
@@ -1,14 +1,12 @@
1
  <?php
2
  /***************************************************************************
3
- @extension : Responsive Banner Slider Extension.
4
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
5
- ( http://www.capacitywebsolutions.com )
6
- @author : Capacity Web Solutions Pvt. Ltd.
7
- @support : magento@capacitywebsolutions.com
8
- ***************************************************************************/
9
 
10
- class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slider_Edit_Form extends Mage_Adminhtml_Block_Widget_Form
11
- {
12
  protected function _prepareForm()
13
  {
14
  $form = new Varien_Data_Form(array(
@@ -18,7 +16,6 @@ class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slider_Edit_Fo
18
  'enctype' => 'multipart/form-data'
19
  )
20
  );
21
-
22
  $form->setUseContainer(true);
23
  $this->setForm($form);
24
  return parent::_prepareForm();
1
  <?php
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
8
 
9
+ class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slider_Edit_Form extends Mage_Adminhtml_Block_Widget_Form{
 
10
  protected function _prepareForm()
11
  {
12
  $form = new Varien_Data_Form(array(
16
  'enctype' => 'multipart/form-data'
17
  )
18
  );
 
19
  $form->setUseContainer(true);
20
  $this->setForm($form);
21
  return parent::_prepareForm();
app/code/community/CapacityWebSolutions/Responsivebannerslider/Block/Adminhtml/Slider/Edit/Tab/Form.php CHANGED
@@ -1,29 +1,22 @@
1
  <?php
2
-
3
  /***************************************************************************
4
- @extension : Responsive Banner Slider Extension.
5
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
6
- ( http://www.capacitywebsolutions.com )
7
- @author : Capacity Web Solutions Pvt. Ltd.
8
- @support : magento@capacitywebsolutions.com
9
- ***************************************************************************/
10
 
11
- class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slider_Edit_Tab_Form extends Mage_Adminhtml_Block_Widget_Form
12
- {
13
 
14
  protected function Groupsid() {
15
  $groups = Mage::getModel('responsivebannerslider/responsivebannerslider')->getCollection()->setOrder('slidergroup_id', 'ASC');
16
 
17
  foreach($groups as $group) {
18
-
19
  $data = array(
20
  'value' => $group->getData('slidergroup_id'),
21
  'label' => $group->getTitle());
22
-
23
  $options[] = $data;
24
-
25
  }
26
-
27
  return $options;
28
  }
29
 
@@ -35,108 +28,89 @@ class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slider_Edit_Ta
35
  }
36
  }
37
 
38
- protected function _prepareForm()
39
- {
40
  $form = new Varien_Data_Form();
41
  $this->setForm($form);
42
  $fieldset = $form->addFieldset('slider_form', array('legend'=>Mage::helper('responsivebannerslider')->__('General information')));
43
-
44
- $group_name = $fieldset->addField('group_names', 'multiselect', array(
45
  'label' => Mage::helper('responsivebannerslider')->__('Group'),
46
  'class' => 'required-entry',
47
  'required' => true,
48
  'name' => 'group_names[]',
49
  'values' => $this->Groupsid(),
50
  ));
51
-
52
-
53
  $title = $fieldset->addField('titles', 'text', array(
54
  'label' => Mage::helper('responsivebannerslider')->__('Title'),
55
  'class' => 'required-entry',
56
  'required' => true,
57
  'name' => 'titles',
58
  ));
59
-
60
  $img_video = $fieldset->addField('img_video', 'select', array(
61
  'label' => Mage::helper('responsivebannerslider')->__('Image or Video'),
62
  'name' => 'img_video',
63
  'disabled' => $this->_sliderAdd(),
64
  'values' => Mage::getSingleton('responsivebannerslider/config_source_video')->toOptionArray(),
65
  ));
66
-
67
  $img_hosting = $fieldset->addField('img_hosting', 'select', array(
68
  'label' => Mage::helper('responsivebannerslider')->__('Use External Image Hosting'),
69
  'name' => 'img_hosting',
70
  'values' => Mage::getSingleton('adminhtml/system_config_source_yesno')->toOptionArray(),
71
  ));
72
-
73
  $video_height = $fieldset->addField('video_height', 'text', array(
74
  'label' => Mage::helper('responsivebannerslider')->__('Height of Video'),
75
  'name' => 'video_height',
76
  'class' => 'validate-number',
77
  'required' => true,
78
  ));
79
-
80
  $video_id = $fieldset->addField('video_id', 'text', array(
81
  'label' => Mage::helper('responsivebannerslider')->__('Video ID'),
82
  'name' => 'video_id',
83
  'note' => 'enter the video id of your YouTube or Vimeo video (not the full link)',
84
 
85
  ));
86
-
87
  $hosted_url = $fieldset->addField('hosted_url', 'text', array(
88
  'label' => Mage::helper('responsivebannerslider')->__('Hosted Image URL'),
89
  'name' => 'hosted_url',
90
  'note' => "Ex - http://example.com/filename",
91
  ));
92
-
93
  $hosted_thumb = $fieldset->addField('hosted_thumb', 'text', array(
94
  'label' => Mage::helper('responsivebannerslider')->__('Hosted Image Thumb URL'),
95
  'name' => 'hosted_thumb',
96
  'note' => 'you can use the same URL as above but for performance reasons it\'s better to upload a seperate small thumbnail of this image, the thumbnails are used in carousels',
97
  ));
98
-
99
  $filename = $fieldset->addField('filename', 'image', array(
100
  'label' => Mage::helper('responsivebannerslider')->__('Image'),
101
  'required' => false,
102
  'name' => 'filename',
103
 
104
  ));
105
-
106
  $alt_text = $fieldset->addField('alt_text', 'text', array(
107
  'label' => Mage::helper('responsivebannerslider')->__('ALT Text'),
108
  'name' => 'alt_text',
109
  ));
110
-
111
  $url = $fieldset->addField('url', 'text', array(
112
  'label' => Mage::helper('responsivebannerslider')->__('URL'),
113
  'name' => 'url',
114
  ));
115
-
116
  $url_target = $fieldset->addField('url_target', 'select', array(
117
  'label' => Mage::helper('responsivebannerslider')->__('URL Target'),
118
  'name' => 'url_target',
119
  'values' => Mage::getSingleton('responsivebannerslider/config_source_urltarget')->toOptionArray(),
120
  ));
121
-
122
-
123
- $wysiwygConfig = Mage::getSingleton('cms/wysiwyg_config')->getConfig(
124
  array('tab_id' => $this->getTabId())
125
  );
126
-
127
- $wysiwygConfig["files_browser_window_url"] = Mage::getSingleton('adminhtml/url')->getUrl('adminhtml/cms_wysiwyg_images/index');
128
- $wysiwygConfig["directives_url"] = Mage::getSingleton('adminhtml/url')->getUrl('adminhtml/cms_wysiwyg/directive');
129
- $wysiwygConfig["directives_url_quoted"] = Mage::getSingleton('adminhtml/url')->getUrl('adminhtml/cms_wysiwyg/directive');
130
- $wysiwygConfig["add_images"] = false;
131
- $wysiwygConfig["add_widgets"] = false;
132
- $wysiwygConfig["add_variables"] = false;
133
- $wysiwygConfig["widget_plugin_src"] = false;
134
- $wysiwygConfig->setData("plugins",array());
135
-
136
- $style = 'height:20em; width:50em;';
137
- $config = $wysiwygConfig;
138
 
139
-
140
  $description = $fieldset->addField('description','editor',array(
141
  'label' => Mage::helper('responsivebannerslider')->__('Description'),
142
  'required' => false,
@@ -145,8 +119,6 @@ class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slider_Edit_Ta
145
  'wysiwyg' => true,
146
  'config' => $config,
147
  ));
148
-
149
-
150
  $date_enabled = $fieldset->addField('date_enabled', 'select', array(
151
  'label' => Mage::helper('responsivebannerslider')->__('Use Date Range'),
152
  'name' => 'date_enabled',
@@ -155,12 +127,9 @@ class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slider_Edit_Ta
155
  1 => Mage::helper('responsivebannerslider')->__('Yes'),
156
  ),
157
  ));
158
-
159
  $note= $this->__('The current server time is').': '.$this->formatTime(now(),Mage_Core_Model_Locale::FORMAT_TYPE_SHORT,true);
160
-
161
  $current_timezone = Mage::app()->getStore()->getConfig('general/locale/timezone');
162
  $dateFormatIso = Mage::app()->getLocale()->getDateTimeFormat(Mage_Core_Model_Locale::FORMAT_TYPE_SHORT);
163
-
164
  $from_date = $fieldset->addField('from_date', 'date', array(
165
  'name' => 'from_date',
166
  'label' => Mage::helper('responsivebannerslider')->__('From Date & Time'),
@@ -171,7 +140,6 @@ class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slider_Edit_Ta
171
  'input_format' => Varien_Date::DATETIME_INTERNAL_FORMAT,
172
  'format' => $dateFormatIso
173
  ));
174
-
175
  $to_date = $fieldset->addField('to_date', 'date', array(
176
  'name' => 'to_date',
177
  'label' => Mage::helper('responsivebannerslider')->__('To Date & Time'),
@@ -183,39 +151,30 @@ class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slider_Edit_Ta
183
  'format' => $dateFormatIso,
184
  'note' =>$note,
185
  ));
186
-
187
  $sort_order = $fieldset->addField('sort_order', 'text', array(
188
  'label' => Mage::helper('responsivebannerslider')->__('Sort Order'),
189
  'class' => 'validate-number',
190
  'required' => false,
191
  'name' => 'sort_order',
192
  ));
193
-
194
- $status = $fieldset->addField('statuss', 'select', array(
195
  'label' => Mage::helper('responsivebannerslider')->__('Status'),
196
  'name' => 'statuss',
197
  'values' => Mage::getSingleton('responsivebannerslider/config_source_status')->toOptionArray(),
198
  ));
199
-
200
- if (Mage::getSingleton('cms/wysiwyg_config')->isEnabled()) {
201
  $this->getLayout()->getBlock('head')->setCanLoadTinyMce(true);
202
-
203
  }
204
 
205
  if (Mage::getSingleton('adminhtml/session')->getSliderData()) {
206
  $form->setValues(Mage::getSingleton('adminhtml/session')->getSliderData());
207
  Mage::getSingleton('adminhtml/session')->setSliderData(null);
208
  } elseif (Mage::registry('slider_data')) {
209
-
210
  $dataimg = Mage::registry('slider_data')->getData();
211
-
212
  if(count($dataimg)>0) {
213
-
214
  $tmp = "responsivebannerslider/".$dataimg['filename'];
215
  unset($dataimg['filename']);
216
  $dataimg = array_merge($dataimg, array("filename"=>$tmp));
217
-
218
-
219
  if($dataimg['filename'] == "responsivebannerslider/"){
220
  unset($dataimg['filename']);
221
  array_merge($dataimg, array("filename"=>""));
@@ -232,8 +191,7 @@ class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slider_Edit_Ta
232
  $form->setValues($dataimg);
233
  $this->setForm($form);
234
  }
235
-
236
- $this->setForm($form);
237
  $this->setChild('form_after', $this->getLayout()->createBlock('adminhtml/widget_form_element_dependence')
238
  ->addFieldMap($img_video->getHtmlId(), $img_video->getName())
239
  ->addFieldMap($img_hosting->getHtmlId(), $img_hosting->getName())
@@ -324,9 +282,7 @@ class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slider_Edit_Ta
324
  $img_hosting->getName(),
325
  0
326
  )
327
-
328
- );
329
-
330
- return parent::_prepareForm();
331
  }
332
  }
1
  <?php
 
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
8
 
9
+ class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slider_Edit_Tab_Form extends Mage_Adminhtml_Block_Widget_Form {
 
10
 
11
  protected function Groupsid() {
12
  $groups = Mage::getModel('responsivebannerslider/responsivebannerslider')->getCollection()->setOrder('slidergroup_id', 'ASC');
13
 
14
  foreach($groups as $group) {
 
15
  $data = array(
16
  'value' => $group->getData('slidergroup_id'),
17
  'label' => $group->getTitle());
 
18
  $options[] = $data;
 
19
  }
 
20
  return $options;
21
  }
22
 
28
  }
29
  }
30
 
31
+ protected function _prepareForm() {
 
32
  $form = new Varien_Data_Form();
33
  $this->setForm($form);
34
  $fieldset = $form->addFieldset('slider_form', array('legend'=>Mage::helper('responsivebannerslider')->__('General information')));
35
+ $group_name = $fieldset->addField('group_names', 'multiselect', array(
 
36
  'label' => Mage::helper('responsivebannerslider')->__('Group'),
37
  'class' => 'required-entry',
38
  'required' => true,
39
  'name' => 'group_names[]',
40
  'values' => $this->Groupsid(),
41
  ));
 
 
42
  $title = $fieldset->addField('titles', 'text', array(
43
  'label' => Mage::helper('responsivebannerslider')->__('Title'),
44
  'class' => 'required-entry',
45
  'required' => true,
46
  'name' => 'titles',
47
  ));
 
48
  $img_video = $fieldset->addField('img_video', 'select', array(
49
  'label' => Mage::helper('responsivebannerslider')->__('Image or Video'),
50
  'name' => 'img_video',
51
  'disabled' => $this->_sliderAdd(),
52
  'values' => Mage::getSingleton('responsivebannerslider/config_source_video')->toOptionArray(),
53
  ));
 
54
  $img_hosting = $fieldset->addField('img_hosting', 'select', array(
55
  'label' => Mage::helper('responsivebannerslider')->__('Use External Image Hosting'),
56
  'name' => 'img_hosting',
57
  'values' => Mage::getSingleton('adminhtml/system_config_source_yesno')->toOptionArray(),
58
  ));
 
59
  $video_height = $fieldset->addField('video_height', 'text', array(
60
  'label' => Mage::helper('responsivebannerslider')->__('Height of Video'),
61
  'name' => 'video_height',
62
  'class' => 'validate-number',
63
  'required' => true,
64
  ));
 
65
  $video_id = $fieldset->addField('video_id', 'text', array(
66
  'label' => Mage::helper('responsivebannerslider')->__('Video ID'),
67
  'name' => 'video_id',
68
  'note' => 'enter the video id of your YouTube or Vimeo video (not the full link)',
69
 
70
  ));
 
71
  $hosted_url = $fieldset->addField('hosted_url', 'text', array(
72
  'label' => Mage::helper('responsivebannerslider')->__('Hosted Image URL'),
73
  'name' => 'hosted_url',
74
  'note' => "Ex - http://example.com/filename",
75
  ));
 
76
  $hosted_thumb = $fieldset->addField('hosted_thumb', 'text', array(
77
  'label' => Mage::helper('responsivebannerslider')->__('Hosted Image Thumb URL'),
78
  'name' => 'hosted_thumb',
79
  'note' => 'you can use the same URL as above but for performance reasons it\'s better to upload a seperate small thumbnail of this image, the thumbnails are used in carousels',
80
  ));
 
81
  $filename = $fieldset->addField('filename', 'image', array(
82
  'label' => Mage::helper('responsivebannerslider')->__('Image'),
83
  'required' => false,
84
  'name' => 'filename',
85
 
86
  ));
 
87
  $alt_text = $fieldset->addField('alt_text', 'text', array(
88
  'label' => Mage::helper('responsivebannerslider')->__('ALT Text'),
89
  'name' => 'alt_text',
90
  ));
 
91
  $url = $fieldset->addField('url', 'text', array(
92
  'label' => Mage::helper('responsivebannerslider')->__('URL'),
93
  'name' => 'url',
94
  ));
 
95
  $url_target = $fieldset->addField('url_target', 'select', array(
96
  'label' => Mage::helper('responsivebannerslider')->__('URL Target'),
97
  'name' => 'url_target',
98
  'values' => Mage::getSingleton('responsivebannerslider/config_source_urltarget')->toOptionArray(),
99
  ));
100
+ $wysiwygConfig = Mage::getSingleton('cms/wysiwyg_config')->getConfig(
 
 
101
  array('tab_id' => $this->getTabId())
102
  );
103
+ $wysiwygConfig["files_browser_window_url"] = Mage::getSingleton('adminhtml/url')->getUrl('adminhtml/cms_wysiwyg_images/index');
104
+ $wysiwygConfig["directives_url"] = Mage::getSingleton('adminhtml/url')->getUrl('adminhtml/cms_wysiwyg/directive');
105
+ $wysiwygConfig["directives_url_quoted"] = Mage::getSingleton('adminhtml/url')->getUrl('adminhtml/cms_wysiwyg/directive');
106
+ $wysiwygConfig["add_images"] = false;
107
+ $wysiwygConfig["add_widgets"] = false;
108
+ $wysiwygConfig["add_variables"] = false;
109
+ $wysiwygConfig["widget_plugin_src"] = false;
110
+ $wysiwygConfig->setData("plugins",array());
111
+ $style = 'height:20em; width:50em;';
112
+ $config = $wysiwygConfig;
 
 
113
 
 
114
  $description = $fieldset->addField('description','editor',array(
115
  'label' => Mage::helper('responsivebannerslider')->__('Description'),
116
  'required' => false,
119
  'wysiwyg' => true,
120
  'config' => $config,
121
  ));
 
 
122
  $date_enabled = $fieldset->addField('date_enabled', 'select', array(
123
  'label' => Mage::helper('responsivebannerslider')->__('Use Date Range'),
124
  'name' => 'date_enabled',
127
  1 => Mage::helper('responsivebannerslider')->__('Yes'),
128
  ),
129
  ));
 
130
  $note= $this->__('The current server time is').': '.$this->formatTime(now(),Mage_Core_Model_Locale::FORMAT_TYPE_SHORT,true);
 
131
  $current_timezone = Mage::app()->getStore()->getConfig('general/locale/timezone');
132
  $dateFormatIso = Mage::app()->getLocale()->getDateTimeFormat(Mage_Core_Model_Locale::FORMAT_TYPE_SHORT);
 
133
  $from_date = $fieldset->addField('from_date', 'date', array(
134
  'name' => 'from_date',
135
  'label' => Mage::helper('responsivebannerslider')->__('From Date & Time'),
140
  'input_format' => Varien_Date::DATETIME_INTERNAL_FORMAT,
141
  'format' => $dateFormatIso
142
  ));
 
143
  $to_date = $fieldset->addField('to_date', 'date', array(
144
  'name' => 'to_date',
145
  'label' => Mage::helper('responsivebannerslider')->__('To Date & Time'),
151
  'format' => $dateFormatIso,
152
  'note' =>$note,
153
  ));
 
154
  $sort_order = $fieldset->addField('sort_order', 'text', array(
155
  'label' => Mage::helper('responsivebannerslider')->__('Sort Order'),
156
  'class' => 'validate-number',
157
  'required' => false,
158
  'name' => 'sort_order',
159
  ));
160
+ $status = $fieldset->addField('statuss', 'select', array(
 
161
  'label' => Mage::helper('responsivebannerslider')->__('Status'),
162
  'name' => 'statuss',
163
  'values' => Mage::getSingleton('responsivebannerslider/config_source_status')->toOptionArray(),
164
  ));
165
+ if (Mage::getSingleton('cms/wysiwyg_config')->isEnabled()) {
 
166
  $this->getLayout()->getBlock('head')->setCanLoadTinyMce(true);
 
167
  }
168
 
169
  if (Mage::getSingleton('adminhtml/session')->getSliderData()) {
170
  $form->setValues(Mage::getSingleton('adminhtml/session')->getSliderData());
171
  Mage::getSingleton('adminhtml/session')->setSliderData(null);
172
  } elseif (Mage::registry('slider_data')) {
 
173
  $dataimg = Mage::registry('slider_data')->getData();
 
174
  if(count($dataimg)>0) {
 
175
  $tmp = "responsivebannerslider/".$dataimg['filename'];
176
  unset($dataimg['filename']);
177
  $dataimg = array_merge($dataimg, array("filename"=>$tmp));
 
 
178
  if($dataimg['filename'] == "responsivebannerslider/"){
179
  unset($dataimg['filename']);
180
  array_merge($dataimg, array("filename"=>""));
191
  $form->setValues($dataimg);
192
  $this->setForm($form);
193
  }
194
+ $this->setForm($form);
 
195
  $this->setChild('form_after', $this->getLayout()->createBlock('adminhtml/widget_form_element_dependence')
196
  ->addFieldMap($img_video->getHtmlId(), $img_video->getName())
197
  ->addFieldMap($img_hosting->getHtmlId(), $img_hosting->getName())
282
  $img_hosting->getName(),
283
  0
284
  )
285
+ );
286
+ return parent::_prepareForm();
 
 
287
  }
288
  }
app/code/community/CapacityWebSolutions/Responsivebannerslider/Block/Adminhtml/Slider/Edit/Tabs.php CHANGED
@@ -1,30 +1,25 @@
1
  <?php
2
  /***************************************************************************
3
- @extension : Responsive Banner Slider Extension.
4
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
5
- ( http://www.capacitywebsolutions.com )
6
- @author : Capacity Web Solutions Pvt. Ltd.
7
- @support : magento@capacitywebsolutions.com
8
- ***************************************************************************/
9
 
10
- class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slider_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs
11
- {
12
- public function __construct()
13
- {
14
  parent::__construct();
15
  $this->setId('slider_tabs');
16
  $this->setDestElementId('edit_form');
17
  $this->setTitle(Mage::helper('responsivebannerslider')->__('Manage Slide'));
18
  }
19
 
20
- protected function _beforeToHtml()
21
- {
22
  $this->addTab('slide_section', array(
23
  'label' => Mage::helper('responsivebannerslider')->__('General Information'),
24
  'title' => Mage::helper('responsivebannerslider')->__('General Information'),
25
  'content' => $this->getLayout()->createBlock('responsivebannerslider/adminhtml_slider_edit_tab_form')->toHtml(),
26
  ));
27
-
28
- return parent::_beforeToHtml();
29
  }
30
  }
1
  <?php
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
8
 
9
+ class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slider_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs {
10
+ public function __construct(){
 
 
11
  parent::__construct();
12
  $this->setId('slider_tabs');
13
  $this->setDestElementId('edit_form');
14
  $this->setTitle(Mage::helper('responsivebannerslider')->__('Manage Slide'));
15
  }
16
 
17
+ protected function _beforeToHtml(){
 
18
  $this->addTab('slide_section', array(
19
  'label' => Mage::helper('responsivebannerslider')->__('General Information'),
20
  'title' => Mage::helper('responsivebannerslider')->__('General Information'),
21
  'content' => $this->getLayout()->createBlock('responsivebannerslider/adminhtml_slider_edit_tab_form')->toHtml(),
22
  ));
23
+ return parent::_beforeToHtml();
 
24
  }
25
  }
app/code/community/CapacityWebSolutions/Responsivebannerslider/Block/Adminhtml/Slider/Grid.php CHANGED
@@ -1,17 +1,13 @@
1
  <?php
2
-
3
  /***************************************************************************
4
- @extension : Responsive Banner Slider Extension.
5
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
6
- ( http://www.capacitywebsolutions.com )
7
- @author : Capacity Web Solutions Pvt. Ltd.
8
- @support : magento@capacitywebsolutions.com
9
- ***************************************************************************/
10
 
11
- class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slider_Grid extends Mage_Adminhtml_Block_Widget_Grid
12
- {
13
- public function __construct()
14
- {
15
  parent::__construct();
16
  $this->setId('sliderGrid');
17
  $this->setDefaultSort('slide_id');
@@ -20,27 +16,20 @@ class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slider_Grid ex
20
  $this->setUseAjax(true);
21
  }
22
 
23
- protected function _prepareCollection()
24
- {
25
  $collection = Mage::getModel('responsivebannerslider/slide')->getCollection();
26
  $groupId = (int) $this->getRequest()->getParam('group');
27
-
28
  if($groupId != 0) {
29
  $collection->addFieldToFilter('group_names', array(array('finset' => $groupId)));
30
  }
31
-
32
  $this->setCollection($collection);
33
-
34
- return parent::_prepareCollection();
35
  }
36
-
37
-
38
  protected function Groupsid() {
39
  $groups = Mage::getModel('responsivebannerslider/responsivebannerslider')->getCollection();
40
  foreach($groups as $group) {
41
  $options[$group->getData('slidergroup_id')] = $group->getTitle();
42
  }
43
-
44
  return $options;
45
  }
46
 
@@ -52,13 +41,11 @@ class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slider_Grid ex
52
  'width' => '50px',
53
  'index' => 'slide_id',
54
  ));
55
-
56
  $this->addColumn('titles', array(
57
  'header' => Mage::helper('responsivebannerslider')->__('Slide Title'),
58
  'align' =>'left',
59
  'index' => 'titles',
60
  ));
61
-
62
  $this->addColumn('Group', array(
63
  'header' => Mage::helper('responsivebannerslider')->__('Group'),
64
  'align' =>'left',
@@ -66,14 +53,12 @@ class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slider_Grid ex
66
  'renderer' => 'CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slider_Renderer_Groups',
67
  'filter' => false,
68
  ));
69
-
70
  $this->addColumn('sort_order', array(
71
  'header' => Mage::helper('responsivebannerslider')->__('Sort Order'),
72
  'align' =>'left',
73
  'index' => 'sort_order',
74
  'width' => '80px',
75
  ));
76
-
77
  $this->addColumn('statuss', array(
78
  'header' => Mage::helper('responsivebannerslider')->__('Status'),
79
  'align' => 'left',
@@ -85,8 +70,7 @@ class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slider_Grid ex
85
  0 => 'Disabled',
86
  ),
87
  ));
88
-
89
- $this->addColumn('action',
90
  array(
91
  'header' => Mage::helper('responsivebannerslider')->__('Action'),
92
  'width' => '100',
@@ -108,19 +92,15 @@ class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slider_Grid ex
108
  return parent::_prepareColumns();
109
  }
110
 
111
- protected function _prepareMassaction()
112
- {
113
  $this->setMassactionIdField('slide_id');
114
  $this->getMassactionBlock()->setFormFieldName('responsivebannerslider_slide');
115
-
116
  $this->getMassactionBlock()->addItem('delete', array(
117
  'label' => Mage::helper('responsivebannerslider')->__('Delete'),
118
  'url' => $this->getUrl('*/*/massDelete'),
119
  'confirm' => Mage::helper('responsivebannerslider')->__('Are you sure?')
120
  ));
121
-
122
  $statuses = Mage::getSingleton('responsivebannerslider/status')->getOptionArray();
123
-
124
  array_unshift($statuses, array('label'=>'', 'value'=>''));
125
  $this->getMassactionBlock()->addItem('status', array(
126
  'label'=> Mage::helper('responsivebannerslider')->__('Change status'),
@@ -139,13 +119,10 @@ class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slider_Grid ex
139
  }
140
 
141
  public function getRowUrl($row) {
142
-
143
  return $this->getUrl('*/*/edit', array('id' => $row->getId()));
144
  }
145
 
146
- public function getGridUrl()
147
- {
148
  return $this->getUrl('*/*/grid', array('_current' => true));
149
  }
150
-
151
  }
1
  <?php
 
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
8
 
9
+ class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slider_Grid extends Mage_Adminhtml_Block_Widget_Grid {
10
+ public function __construct(){
 
 
11
  parent::__construct();
12
  $this->setId('sliderGrid');
13
  $this->setDefaultSort('slide_id');
16
  $this->setUseAjax(true);
17
  }
18
 
19
+ protected function _prepareCollection(){
 
20
  $collection = Mage::getModel('responsivebannerslider/slide')->getCollection();
21
  $groupId = (int) $this->getRequest()->getParam('group');
 
22
  if($groupId != 0) {
23
  $collection->addFieldToFilter('group_names', array(array('finset' => $groupId)));
24
  }
 
25
  $this->setCollection($collection);
26
+ return parent::_prepareCollection();
 
27
  }
 
 
28
  protected function Groupsid() {
29
  $groups = Mage::getModel('responsivebannerslider/responsivebannerslider')->getCollection();
30
  foreach($groups as $group) {
31
  $options[$group->getData('slidergroup_id')] = $group->getTitle();
32
  }
 
33
  return $options;
34
  }
35
 
41
  'width' => '50px',
42
  'index' => 'slide_id',
43
  ));
 
44
  $this->addColumn('titles', array(
45
  'header' => Mage::helper('responsivebannerslider')->__('Slide Title'),
46
  'align' =>'left',
47
  'index' => 'titles',
48
  ));
 
49
  $this->addColumn('Group', array(
50
  'header' => Mage::helper('responsivebannerslider')->__('Group'),
51
  'align' =>'left',
53
  'renderer' => 'CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slider_Renderer_Groups',
54
  'filter' => false,
55
  ));
 
56
  $this->addColumn('sort_order', array(
57
  'header' => Mage::helper('responsivebannerslider')->__('Sort Order'),
58
  'align' =>'left',
59
  'index' => 'sort_order',
60
  'width' => '80px',
61
  ));
 
62
  $this->addColumn('statuss', array(
63
  'header' => Mage::helper('responsivebannerslider')->__('Status'),
64
  'align' => 'left',
70
  0 => 'Disabled',
71
  ),
72
  ));
73
+ $this->addColumn('action',
 
74
  array(
75
  'header' => Mage::helper('responsivebannerslider')->__('Action'),
76
  'width' => '100',
92
  return parent::_prepareColumns();
93
  }
94
 
95
+ protected function _prepareMassaction() {
 
96
  $this->setMassactionIdField('slide_id');
97
  $this->getMassactionBlock()->setFormFieldName('responsivebannerslider_slide');
 
98
  $this->getMassactionBlock()->addItem('delete', array(
99
  'label' => Mage::helper('responsivebannerslider')->__('Delete'),
100
  'url' => $this->getUrl('*/*/massDelete'),
101
  'confirm' => Mage::helper('responsivebannerslider')->__('Are you sure?')
102
  ));
 
103
  $statuses = Mage::getSingleton('responsivebannerslider/status')->getOptionArray();
 
104
  array_unshift($statuses, array('label'=>'', 'value'=>''));
105
  $this->getMassactionBlock()->addItem('status', array(
106
  'label'=> Mage::helper('responsivebannerslider')->__('Change status'),
119
  }
120
 
121
  public function getRowUrl($row) {
 
122
  return $this->getUrl('*/*/edit', array('id' => $row->getId()));
123
  }
124
 
125
+ public function getGridUrl() {
 
126
  return $this->getUrl('*/*/grid', array('_current' => true));
127
  }
 
128
  }
app/code/community/CapacityWebSolutions/Responsivebannerslider/Block/Adminhtml/Slider/Renderer/Groups.php CHANGED
@@ -1,21 +1,17 @@
1
  <?php
2
  /***************************************************************************
3
- @extension : Responsive Banner Slider Extension.
4
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
5
- ( http://www.capacitywebsolutions.com )
6
- @author : Capacity Web Solutions Pvt. Ltd.
7
- @support : magento@capacitywebsolutions.com
8
- ***************************************************************************/
9
 
10
- class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slider_Renderer_Groups extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Abstract
11
- {
12
- public function render(Varien_Object $row)
13
- {
14
  $value = $row->getData($this->getColumn()->getIndex());
15
  $groupdata = explode(",",$value);
16
  $Slider_Groups = '';
17
  for($i=0; $i<count($groupdata); $i++) {
18
-
19
  $groups = Mage::getModel('responsivebannerslider/responsivebannerslider')->load($groupdata[$i]);
20
  $title = $groups->getData('title');
21
  if($i ==0){
1
  <?php
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
8
 
9
+ class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slider_Renderer_Groups extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Abstract {
10
+ public function render(Varien_Object $row) {
 
 
11
  $value = $row->getData($this->getColumn()->getIndex());
12
  $groupdata = explode(",",$value);
13
  $Slider_Groups = '';
14
  for($i=0; $i<count($groupdata); $i++) {
 
15
  $groups = Mage::getModel('responsivebannerslider/responsivebannerslider')->load($groupdata[$i]);
16
  $title = $groups->getData('title');
17
  if($i ==0){
app/code/community/CapacityWebSolutions/Responsivebannerslider/Block/Adminhtml/Slidergroup.php CHANGED
@@ -1,16 +1,13 @@
1
  <?php
2
  /***************************************************************************
3
- @extension : Responsive Banner Slider Extension.
4
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
5
- ( http://www.capacitywebsolutions.com )
6
- @author : Capacity Web Solutions Pvt. Ltd.
7
- @support : magento@capacitywebsolutions.com
8
- ***************************************************************************/
9
 
10
- class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slidergroup extends Mage_Adminhtml_Block_Widget_Grid_Container
11
- {
12
  public function __construct() {
13
-
14
  $this->_controller = 'adminhtml_slidergroup';
15
  $this->_blockGroup = 'responsivebannerslider';
16
  $this->_headerText = Mage::helper('responsivebannerslider')->__('Responsive Banner Slider Groups');
@@ -19,20 +16,18 @@ class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slidergroup ex
19
  }
20
 
21
  protected function _prepareLayout() {
22
-
23
  if (!Mage::app()->isSingleStoreMode()) {
24
  $this->setChild('store_switcher', $this->getLayout()->createBlock('adminhtml/store_switcher')
25
  ->setUseConfirm(false)
26
  ->setSwitchUrl($this->getUrl('*/*/*', array('store'=>null)))
27
  );
28
  }
29
-
30
  return parent::_prepareLayout();
31
  }
32
 
33
- public function getStoreSwitcherHtml() {
34
- return $this->getChildHtml('store_switcher');
35
- }
36
 
37
  public function getGroupData() {
38
  $groups = Mage::getModel('responsivebannerslider/responsivebannerslider')->getCollection()->setOrder('slidergroup_id', 'ASC');
@@ -44,7 +39,6 @@ class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slidergroup ex
44
  }
45
  else{
46
  return false;
47
- }
48
-
49
- }
50
  }
1
  <?php
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
8
 
9
+ class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slidergroup extends Mage_Adminhtml_Block_Widget_Grid_Container {
 
10
  public function __construct() {
 
11
  $this->_controller = 'adminhtml_slidergroup';
12
  $this->_blockGroup = 'responsivebannerslider';
13
  $this->_headerText = Mage::helper('responsivebannerslider')->__('Responsive Banner Slider Groups');
16
  }
17
 
18
  protected function _prepareLayout() {
 
19
  if (!Mage::app()->isSingleStoreMode()) {
20
  $this->setChild('store_switcher', $this->getLayout()->createBlock('adminhtml/store_switcher')
21
  ->setUseConfirm(false)
22
  ->setSwitchUrl($this->getUrl('*/*/*', array('store'=>null)))
23
  );
24
  }
 
25
  return parent::_prepareLayout();
26
  }
27
 
28
+ public function getGridHtml() {
29
+ return $this->getChildHtml('store_switcher') . $this->getChildHtml('grid');
30
+ }
31
 
32
  public function getGroupData() {
33
  $groups = Mage::getModel('responsivebannerslider/responsivebannerslider')->getCollection()->setOrder('slidergroup_id', 'ASC');
39
  }
40
  else{
41
  return false;
42
+ }
43
+ }
 
44
  }
app/code/community/CapacityWebSolutions/Responsivebannerslider/Block/Adminhtml/Slidergroup/Edit.php CHANGED
@@ -1,33 +1,25 @@
1
  <?php
2
  /***************************************************************************
3
- @extension : Responsive Banner Slider Extension.
4
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
5
- ( http://www.capacitywebsolutions.com )
6
- @author : Capacity Web Solutions Pvt. Ltd.
7
- @support : magento@capacitywebsolutions.com
8
- ***************************************************************************/
9
 
10
-
11
- class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slidergroup_Edit extends Mage_Adminhtml_Block_Widget_Form_Container
12
- {
13
- public function __construct()
14
- {
15
  parent::__construct();
16
-
17
  $this->_objectId = 'id';
18
  $this->_blockGroup = 'responsivebannerslider';
19
  $this->_controller = 'adminhtml_slidergroup';
20
-
21
  $this->_updateButton('save', 'label', Mage::helper('responsivebannerslider')->__('Save Item'));
22
  $this->_updateButton('delete', 'label', Mage::helper('responsivebannerslider')->__('Delete Item'));
23
-
24
- $this->_addButton('saveandcontinue', array(
25
  'label' => Mage::helper('adminhtml')->__('Save And Continue Edit'),
26
  'onclick' => 'saveAndContinueEdit()',
27
  'class' => 'save',
28
  ), -100);
29
-
30
- $this->_formScripts[] = "
31
  function toggleEditor() {
32
  if (tinyMCE.getInstanceById('web_content') == null) {
33
  tinyMCE.execCommand('mceAddControl', false, 'web_content');
@@ -35,7 +27,6 @@ class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slidergroup_Ed
35
  tinyMCE.execCommand('mceRemoveControl', false, 'web_content');
36
  }
37
  }
38
-
39
  onload = function()
40
  {
41
 
@@ -53,8 +44,7 @@ class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slidergroup_Ed
53
  ";
54
  }
55
 
56
- public function getHeaderText()
57
- {
58
  if( Mage::registry('slidergroup_data') && Mage::registry('slidergroup_data')->getId() ) {
59
  return Mage::helper('responsivebannerslider')->__("Edit Item '%s'", $this->htmlEscape(Mage::registry('slidergroup_data')->getTitle()));
60
  } else {
1
  <?php
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
8
 
9
+ class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slidergroup_Edit extends Mage_Adminhtml_Block_Widget_Form_Container {
10
+ public function __construct() {
 
 
 
11
  parent::__construct();
 
12
  $this->_objectId = 'id';
13
  $this->_blockGroup = 'responsivebannerslider';
14
  $this->_controller = 'adminhtml_slidergroup';
 
15
  $this->_updateButton('save', 'label', Mage::helper('responsivebannerslider')->__('Save Item'));
16
  $this->_updateButton('delete', 'label', Mage::helper('responsivebannerslider')->__('Delete Item'));
17
+ $this->_addButton('saveandcontinue', array(
 
18
  'label' => Mage::helper('adminhtml')->__('Save And Continue Edit'),
19
  'onclick' => 'saveAndContinueEdit()',
20
  'class' => 'save',
21
  ), -100);
22
+ $this->_formScripts[] = "
 
23
  function toggleEditor() {
24
  if (tinyMCE.getInstanceById('web_content') == null) {
25
  tinyMCE.execCommand('mceAddControl', false, 'web_content');
27
  tinyMCE.execCommand('mceRemoveControl', false, 'web_content');
28
  }
29
  }
 
30
  onload = function()
31
  {
32
 
44
  ";
45
  }
46
 
47
+ public function getHeaderText() {
 
48
  if( Mage::registry('slidergroup_data') && Mage::registry('slidergroup_data')->getId() ) {
49
  return Mage::helper('responsivebannerslider')->__("Edit Item '%s'", $this->htmlEscape(Mage::registry('slidergroup_data')->getTitle()));
50
  } else {
app/code/community/CapacityWebSolutions/Responsivebannerslider/Block/Adminhtml/Slidergroup/Edit/Form.php CHANGED
@@ -1,17 +1,13 @@
1
  <?php
2
  /***************************************************************************
3
- @extension : Responsive Banner Slider Extension.
4
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
5
- ( http://www.capacitywebsolutions.com )
6
- @author : Capacity Web Solutions Pvt. Ltd.
7
- @support : magento@capacitywebsolutions.com
8
- ***************************************************************************/
9
 
10
-
11
- class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slidergroup_Edit_Form extends Mage_Adminhtml_Block_Widget_Form
12
- {
13
- protected function _prepareForm()
14
- {
15
  $form = new Varien_Data_Form(array(
16
  'id' => 'edit_form',
17
  'action' => $this->getUrl('*/*/save', array('id' => $this->getRequest()->getParam('id'))),
@@ -19,7 +15,6 @@ class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slidergroup_Ed
19
  'enctype' => 'multipart/form-data'
20
  )
21
  );
22
-
23
  $form->setUseContainer(true);
24
  $this->setForm($form);
25
  return parent::_prepareForm();
1
  <?php
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
8
 
9
+ class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slidergroup_Edit_Form extends Mage_Adminhtml_Block_Widget_Form {
10
+ protected function _prepareForm() {
 
 
 
11
  $form = new Varien_Data_Form(array(
12
  'id' => 'edit_form',
13
  'action' => $this->getUrl('*/*/save', array('id' => $this->getRequest()->getParam('id'))),
15
  'enctype' => 'multipart/form-data'
16
  )
17
  );
 
18
  $form->setUseContainer(true);
19
  $this->setForm($form);
20
  return parent::_prepareForm();
app/code/community/CapacityWebSolutions/Responsivebannerslider/Block/Adminhtml/Slidergroup/Edit/Tab/Categories.php CHANGED
@@ -1,40 +1,32 @@
1
  <?php
2
  /***************************************************************************
3
- @extension : Responsive Banner Slider Extension.
4
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
5
- ( http://www.capacitywebsolutions.com )
6
- @author : Capacity Web Solutions Pvt. Ltd.
7
- @support : magento@capacitywebsolutions.com
8
- ***************************************************************************/
9
-
10
  ?>
11
  <?php
12
 
13
- class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slidergroup_Edit_Tab_Categories extends Mage_Adminhtml_Block_Catalog_Category_Tree
14
- {
15
- protected $_categoryIds = null;
16
- protected $_selectedNodes = null;
17
- public function __construct() {
18
- parent::__construct();
19
-
20
- $this->setTemplate('responsivebannerslider/category/edit/tab/categories.phtml');
21
- $this->_withProductCount = false;
22
  }
23
 
24
  public function getCategoryIds(){
25
-
26
  $data = Mage::registry('slidergroup_data');
27
  $cate_model = Mage::getModel('responsivebannerslider/categories')->getCollection()->addFieldToFilter('slidergroup_id',array('eq' => $data->getData('slidergroup_id')));
28
-
29
  $_categoryIds = array();
30
-
31
  foreach($cate_model as $cate_data){
32
  $_categoryIds[] = $cate_data->getData('category_ids');
33
  }
34
  $this->_categoryIds = $_categoryIds;
35
 
36
  return $this->_categoryIds;
37
-
38
  }
39
 
40
  public function getIdsString(){
@@ -138,7 +130,6 @@ class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slidergroup_Ed
138
  else {
139
  $collection->addFieldToFilter('entity_id', array('in'=>$categoryIds));
140
  }
141
-
142
  foreach ($collection as $item) {
143
  if ($rootId && !in_array($rootId, $item->getPathIds())) {
144
  continue;
@@ -151,5 +142,4 @@ class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slidergroup_Ed
151
  }
152
  return $ids;
153
  }
154
-
155
- }
1
  <?php
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
 
8
  ?>
9
  <?php
10
 
11
+ class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slidergroup_Edit_Tab_Categories extends Mage_Adminhtml_Block_Catalog_Category_Tree {
12
+ protected $_categoryIds = null;
13
+ protected $_selectedNodes = null;
14
+ public function __construct() {
15
+ parent::__construct();
16
+ $this->setTemplate('responsivebannerslider/category/edit/tab/categories.phtml');
17
+ $this->_withProductCount = false;
 
 
18
  }
19
 
20
  public function getCategoryIds(){
 
21
  $data = Mage::registry('slidergroup_data');
22
  $cate_model = Mage::getModel('responsivebannerslider/categories')->getCollection()->addFieldToFilter('slidergroup_id',array('eq' => $data->getData('slidergroup_id')));
 
23
  $_categoryIds = array();
 
24
  foreach($cate_model as $cate_data){
25
  $_categoryIds[] = $cate_data->getData('category_ids');
26
  }
27
  $this->_categoryIds = $_categoryIds;
28
 
29
  return $this->_categoryIds;
 
30
  }
31
 
32
  public function getIdsString(){
130
  else {
131
  $collection->addFieldToFilter('entity_id', array('in'=>$categoryIds));
132
  }
 
133
  foreach ($collection as $item) {
134
  if ($rootId && !in_array($rootId, $item->getPathIds())) {
135
  continue;
142
  }
143
  return $ids;
144
  }
145
+ }
 
app/code/community/CapacityWebSolutions/Responsivebannerslider/Block/Adminhtml/Slidergroup/Edit/Tab/Code.php CHANGED
@@ -1,22 +1,17 @@
1
  <?php
2
-
3
  /***************************************************************************
4
- @extension : Responsive Banner Slider Extension.
5
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
6
- ( http://www.capacitywebsolutions.com )
7
- @author : Capacity Web Solutions Pvt. Ltd.
8
- @support : magento@capacitywebsolutions.com
9
- ***************************************************************************/
10
 
11
- class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slidergroup_Edit_Tab_Code extends Mage_Adminhtml_Block_Widget_Grid
12
- {
13
  public function __construct() {
14
  parent::__construct();
15
  $this->setTemplate('responsivebannerslider/code.phtml');
16
  }
17
-
18
  public function getCurrentGroup() {
19
  return Mage::registry('slidergroup_data');
20
  }
21
-
22
  }
1
  <?php
 
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
8
 
9
+ class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slidergroup_Edit_Tab_Code extends Mage_Adminhtml_Block_Widget_Grid {
 
10
  public function __construct() {
11
  parent::__construct();
12
  $this->setTemplate('responsivebannerslider/code.phtml');
13
  }
 
14
  public function getCurrentGroup() {
15
  return Mage::registry('slidergroup_data');
16
  }
 
17
  }
app/code/community/CapacityWebSolutions/Responsivebannerslider/Block/Adminhtml/Slidergroup/Edit/Tab/Form.php CHANGED
@@ -1,52 +1,41 @@
1
  <?php
2
-
3
  /***************************************************************************
4
- @extension : Responsive Banner Slider Extension.
5
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
6
- ( http://www.capacitywebsolutions.com )
7
- @author : Capacity Web Solutions Pvt. Ltd.
8
- @support : magento@capacitywebsolutions.com
9
- ***************************************************************************/
10
 
11
- class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slidergroup_Edit_Tab_Form extends Mage_Adminhtml_Block_Widget_Form
12
- {
13
- protected function _prepareForm()
14
- {
15
-
16
- $form = new Varien_Data_Form();
17
  $this->setForm($form);
18
  $fieldset = $form->addFieldset('general_form', array('legend'=>Mage::helper('responsivebannerslider')->__('General information')));
19
-
20
-
21
  $title = $fieldset->addField('title', 'text', array(
22
  'label' => Mage::helper('responsivebannerslider')->__('Title'),
23
  'class' => 'required-entry',
24
  'required' => true,
25
  'name' => 'title',
26
  ));
27
-
28
- $position = $fieldset->addField('position', 'select', array(
29
  'label' => Mage::helper('responsivebannerslider')->__('Position'),
30
  'name' => 'position',
31
  'values' => Mage::getSingleton('responsivebannerslider/config_source_position')->toOptionArray(),
32
  ));
33
-
34
- $sort_order = $fieldset->addField('sort_order', 'text', array(
35
  'label' => Mage::helper('responsivebannerslider')->__('Sort Order'),
36
  'class' => 'validate-number',
37
  'required' => false,
38
  'name' => 'sort_order',
39
  'note' => 'set the sort order in case of multiple group on one page'
40
  ));
41
-
42
-
43
- $status = $fieldset->addField('status', 'select', array(
44
  'label' => Mage::helper('responsivebannerslider')->__('Status'),
45
  'name' => 'status',
46
  'values' => Mage::getSingleton('responsivebannerslider/config_source_status')->toOptionArray(),
47
  ));
48
 
49
-
50
  if (!Mage::app()->isSingleStoreMode()) {
51
  $stores = $fieldset->addField('store_id', 'multiselect', array(
52
  'name' => 'store_id[]',
@@ -62,40 +51,32 @@ class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slidergroup_Ed
62
  'value' => Mage::app()->getStore(true)->getId()
63
  ));
64
  }
65
-
66
-
67
  $fieldset = $form->addFieldset('effect_form', array('legend'=>Mage::helper('responsivebannerslider')->__('Slider Effect')));
68
-
69
  $start_animation = $fieldset->addField('start_animation', 'select', array(
70
  'label' => Mage::helper('responsivebannerslider')->__('Auto Start Animation'),
71
  'name' => 'start_animation',
72
  'values' => Mage::getSingleton('adminhtml/system_config_source_yesno')->toOptionArray(),
73
  ));
74
-
75
  $loop_slider = $fieldset->addField('loop_slider', 'select', array(
76
  'label' => Mage::helper('responsivebannerslider')->__('Loop Slider '),
77
  'name' => 'loop_slider',
78
  'values' => Mage::getSingleton('adminhtml/system_config_source_yesno')->toOptionArray(),
79
  ));
80
-
81
  $pause_snavigation = $fieldset->addField('pause_snavigation', 'select', array(
82
  'label' => Mage::helper('responsivebannerslider')->__('Pause Slider On Navigation'),
83
  'name' => 'pause_snavigation',
84
  'values' => Mage::getSingleton('adminhtml/system_config_source_yesno')->toOptionArray(),
85
  ));
86
-
87
  $pause_shover = $fieldset->addField('pause_shover', 'select', array(
88
  'label' => Mage::helper('responsivebannerslider')->__('Pause Slider On Hover'),
89
  'name' => 'pause_shover',
90
  'values' => Mage::getSingleton('adminhtml/system_config_source_yesno')->toOptionArray(),
91
  ));
92
-
93
  $animation_type = $fieldset->addField('animation_type', 'select', array(
94
  'label' => Mage::helper('responsivebannerslider')->__('Animation Type'),
95
  'name' => 'animation_type',
96
  'values' => Mage::getSingleton('responsivebannerslider/config_source_animationtype')->toOptionArray(),
97
  ));
98
-
99
  $animation_duration = $fieldset->addField('animation_duration', 'text', array(
100
  'label' => Mage::helper('responsivebannerslider')->__('Animation Duration'),
101
  'class' => 'required-entry validate-number',
@@ -103,13 +84,11 @@ class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slidergroup_Ed
103
  'name' => 'animation_duration',
104
  'note' => 'in milliseconds (default is 600)',
105
  ));
106
-
107
  $animation_direction = $fieldset->addField('animation_direction', 'select', array(
108
  'label' => Mage::helper('responsivebannerslider')->__('Animation Direction'),
109
  'name' => 'animation_direction',
110
  'values' => Mage::getSingleton('responsivebannerslider/config_source_animationdirection')->toOptionArray(),
111
  ));
112
-
113
  $slide_duration = $fieldset->addField('slide_duration', 'text', array(
114
  'label' => Mage::helper('responsivebannerslider')->__('Slide Duration'),
115
  'class' => 'required-entry validate-number',
@@ -117,59 +96,46 @@ class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slidergroup_Ed
117
  'name' => 'slide_duration',
118
  'note' => 'in milliseconds (default is 7000)',
119
  ));
120
-
121
  $random_order = $fieldset->addField('random_order', 'select', array(
122
  'label' => Mage::helper('responsivebannerslider')->__('Random Order'),
123
  'name' => 'random_order',
124
  'values' => Mage::getSingleton('adminhtml/system_config_source_yesno')->toOptionArray(),
125
  ));
126
-
127
  $smooth_height = $fieldset->addField('smooth_height', 'select', array(
128
  'label' => Mage::helper('responsivebannerslider')->__('Smooth Height '),
129
  'name' => 'smooth_height',
130
  'values' => Mage::getSingleton('adminhtml/system_config_source_yesno')->toOptionArray(),
131
  ));
132
-
133
-
134
-
135
-
136
-
137
- $fieldset = $form->addFieldset('style_form', array('legend'=>Mage::helper('responsivebannerslider')->__('Slider Style')));
138
-
139
- $max_width = $fieldset->addField('max_width', 'text', array(
140
  'label' => Mage::helper('responsivebannerslider')->__('Maximum Width Slider'),
141
  'class' => 'validate-number',
142
  'required' => false,
143
  'name' => 'max_width',
144
  'note' => 'maximum width of the slider in pixels, leave empty or 0 for full responsive width',
145
  ));
146
-
147
- $slider_theme = $fieldset->addField('slider_theme', 'select', array(
148
  'label' => Mage::helper('responsivebannerslider')->__('Slider Theme'),
149
  'name' => 'slider_theme',
150
  'values' => Mage::getSingleton('responsivebannerslider/config_source_theme')->toOptionArray(),
151
  ));
152
-
153
- $slider_type = $fieldset->addField('slider_type', 'select', array(
154
  'label' => Mage::helper('responsivebannerslider')->__('Slider Type'),
155
  'name' => 'slider_type',
156
  'values' => Mage::getSingleton('responsivebannerslider/config_source_type')->toOptionArray(),
157
  ));
158
-
159
  $content_background = $fieldset->addField('content_background', 'text', array(
160
  'label' => Mage::helper('responsivebannerslider')->__('Banner content background'),
161
  'required' => false,
162
  'name' => 'content_background',
163
  'class' => "color",
164
  ));
165
-
166
  $content_opacity = $fieldset->addField('content_opacity', 'text', array(
167
  'label' => Mage::helper('responsivebannerslider')->__('Banner content opacity'),
168
  'class' => 'validate-number',
169
  'required' => false,
170
  'name' => 'content_opacity',
171
  ));
172
-
173
  $thumbnail_size = $fieldset->addField('thumbnail_size', 'text', array(
174
  'name' => 'thumbnail_size',
175
  'label' => Mage::helper('responsivebannerslider')->__('Thumbnail Width'),
@@ -177,13 +143,11 @@ class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slidergroup_Ed
177
  'class' => 'validate-number validate-greater-than-zero',
178
  'note' => 'width of the images in carousel, should not be larger then thumbnail upload width in general settings (default is 200)',
179
  ));
180
-
181
  $navigation_arrow = $fieldset->addField('navigation_arrow', 'select', array(
182
  'label' => Mage::helper('responsivebannerslider')->__('Show Navigation Arrows'),
183
  'name' => 'navigation_arrow',
184
  'values' => Mage::getSingleton('responsivebannerslider/config_source_navigation')->toOptionArray(),
185
  ));
186
-
187
  $navigation_style = $fieldset->addField('navigation_style', 'select', array(
188
  'label' => Mage::helper('responsivebannerslider')->__('Navigation Arrows Style'),
189
  'name' => 'navigation_style',
@@ -191,8 +155,7 @@ class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slidergroup_Ed
191
  'onchange' => 'notEmpty()',
192
  'after_element_html' => '<td id="navi_arrow" class="scope-label"><i class="cws" id="navigation_style_name"></i></td>',
193
  ));
194
-
195
- echo "<script>
196
  function notEmpty(){
197
  var e = document.getElementById('navigation_style');
198
 
@@ -203,55 +166,44 @@ class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slidergroup_Ed
203
  }
204
  </script>";
205
 
206
-
207
-
208
  $navigation_aposition = $fieldset->addField('navigation_aposition', 'select', array(
209
  'label' => Mage::helper('responsivebannerslider')->__('Navigation Arrows Position'),
210
  'name' => 'navigation_aposition',
211
  'values' => Mage::getSingleton('responsivebannerslider/config_source_navigationarrow')->toOptionArray(),
212
  ));
213
-
214
-
215
- $navigation_acolor = $fieldset->addField('navigation_acolor', 'text', array(
216
  'label' => Mage::helper('responsivebannerslider')->__('Navigation Arrows Color'),
217
  'required' => false,
218
  'name' => 'navigation_acolor',
219
  'class' => 'color',
220
  ));
221
-
222
-
223
  $show_pagination = $fieldset->addField('show_pagination', 'select', array(
224
  'label' => Mage::helper('responsivebannerslider')->__('Show Pagination'),
225
  'name' => 'show_pagination',
226
  'values' => Mage::getSingleton('responsivebannerslider/config_source_navigation')->toOptionArray(),
227
  ));
228
-
229
- $pagination_style = $fieldset->addField('pagination_style', 'select', array(
230
  'label' => Mage::helper('responsivebannerslider')->__('Pagination Style'),
231
  'name' => 'pagination_style',
232
  'values' => Mage::getSingleton('responsivebannerslider/config_source_paginationstyle')->toOptionArray(),
233
  ));
234
-
235
- $pagination_position = $fieldset->addField('pagination_position', 'select', array(
236
  'label' => Mage::helper('responsivebannerslider')->__('Pagination Position'),
237
  'name' => 'pagination_position',
238
  'values' => Mage::getSingleton('responsivebannerslider/config_source_paginationposition')->toOptionArray(),
239
  ));
240
-
241
  $pagination_color = $fieldset->addField('pagination_color', 'text', array(
242
  'label' => Mage::helper('responsivebannerslider')->__('Pagination Color'),
243
  'required' => false,
244
  'name' => 'pagination_color',
245
  'class' => 'color',
246
  ));
247
-
248
  $pagination_active = $fieldset->addField('pagination_active', 'text', array(
249
  'label' => Mage::helper('responsivebannerslider')->__('Pagination Active Color'),
250
  'required' => false,
251
  'name' => 'pagination_active',
252
  'class' => 'color',
253
  ));
254
-
255
  $pagination_bar = $fieldset->addField('pagination_bar', 'text', array(
256
  'label' => Mage::helper('responsivebannerslider')->__('Pagination Bar Background Color'),
257
  'required' => false,
@@ -259,20 +211,10 @@ class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slidergroup_Ed
259
  'class' => 'color',
260
  ));
261
 
262
-
263
-
264
-
265
  if (Mage::getSingleton('adminhtml/session')->getSlidergroupData()) {
266
  $form->setValues(Mage::getSingleton('adminhtml/session')->getSlidergroupData());
267
  $data = Mage::getSingleton('adminhtml/session')->getSlidergroupData();
268
-
269
  Mage::getSingleton('adminhtml/session')->setSlidergroupData(null);
270
-
271
-
272
-
273
-
274
-
275
-
276
  }elseif ( Mage::registry('slidergroup_data') ) {
277
  $data = Mage::registry('slidergroup_data');
278
  $store_model = Mage::getModel('responsivebannerslider/store')->getCollection()->addFieldToFilter('slidergroup_id',array('eq' => $data->getData('slidergroup_id')));
@@ -282,15 +224,9 @@ class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slidergroup_Ed
282
  }
283
  $model_data = $data->getData();
284
  array_push($model_data,$model_data['store_id'] = $store_data);
285
-
286
  $form->setValues($model_data);
287
-
288
  }
289
-
290
-
291
-
292
  $id = $this->getRequest()->getParam('id');
293
-
294
  if($id == ''){
295
  $model_data['animation_duration'] = '600';
296
  $model_data['slide_duration'] = '7000';
@@ -304,9 +240,7 @@ class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slidergroup_Ed
304
  $form->setValues($model_data);
305
  $this->setForm($form);
306
  }
307
-
308
-
309
- $this->setChild('form_after', $this->getLayout()->createBlock('adminhtml/widget_form_element_dependence')
310
  ->addFieldMap($slider_type->getHtmlId(), $slider_type->getName())
311
  ->addFieldMap($thumbnail_size->getHtmlId(), $thumbnail_size->getName())
312
  ->addFieldMap($navigation_arrow->getHtmlId(), $navigation_arrow->getName())
@@ -323,13 +257,11 @@ class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slidergroup_Ed
323
  ->addFieldMap($pause_shover->getHtmlId(), $pause_shover->getName())
324
  ->addFieldMap($pagination_active->getHtmlId(), $pagination_active->getName())
325
  ->addFieldMap($pagination_bar->getHtmlId(), $pagination_bar->getName())
326
-
327
  ->addFieldDependence(
328
  $pagination_bar->getName(),
329
  $pagination_style->getName(),
330
  array('circular_bar','square_bar')
331
  )
332
-
333
  ->addFieldDependence(
334
  $thumbnail_size->getName(),
335
  $slider_type->getName(),
@@ -366,7 +298,6 @@ class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slidergroup_Ed
366
  $show_pagination->getName(),
367
  array('hover','always')
368
  )
369
-
370
  ->addFieldDependence(
371
  $pagination_color->getName(),
372
  $show_pagination->getName(),
@@ -389,8 +320,6 @@ class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slidergroup_Ed
389
  )
390
 
391
  );
392
-
393
- return parent::_prepareForm();
394
-
395
  }
396
  }
1
  <?php
 
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
8
 
9
+ class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slidergroup_Edit_Tab_Form extends Mage_Adminhtml_Block_Widget_Form {
10
+ protected function _prepareForm() {
11
+ $form = new Varien_Data_Form();
 
 
 
12
  $this->setForm($form);
13
  $fieldset = $form->addFieldset('general_form', array('legend'=>Mage::helper('responsivebannerslider')->__('General information')));
14
+
 
15
  $title = $fieldset->addField('title', 'text', array(
16
  'label' => Mage::helper('responsivebannerslider')->__('Title'),
17
  'class' => 'required-entry',
18
  'required' => true,
19
  'name' => 'title',
20
  ));
21
+ $position = $fieldset->addField('position', 'select', array(
 
22
  'label' => Mage::helper('responsivebannerslider')->__('Position'),
23
  'name' => 'position',
24
  'values' => Mage::getSingleton('responsivebannerslider/config_source_position')->toOptionArray(),
25
  ));
26
+ $sort_order = $fieldset->addField('sort_order', 'text', array(
 
27
  'label' => Mage::helper('responsivebannerslider')->__('Sort Order'),
28
  'class' => 'validate-number',
29
  'required' => false,
30
  'name' => 'sort_order',
31
  'note' => 'set the sort order in case of multiple group on one page'
32
  ));
33
+ $status = $fieldset->addField('status', 'select', array(
 
 
34
  'label' => Mage::helper('responsivebannerslider')->__('Status'),
35
  'name' => 'status',
36
  'values' => Mage::getSingleton('responsivebannerslider/config_source_status')->toOptionArray(),
37
  ));
38
 
 
39
  if (!Mage::app()->isSingleStoreMode()) {
40
  $stores = $fieldset->addField('store_id', 'multiselect', array(
41
  'name' => 'store_id[]',
51
  'value' => Mage::app()->getStore(true)->getId()
52
  ));
53
  }
 
 
54
  $fieldset = $form->addFieldset('effect_form', array('legend'=>Mage::helper('responsivebannerslider')->__('Slider Effect')));
 
55
  $start_animation = $fieldset->addField('start_animation', 'select', array(
56
  'label' => Mage::helper('responsivebannerslider')->__('Auto Start Animation'),
57
  'name' => 'start_animation',
58
  'values' => Mage::getSingleton('adminhtml/system_config_source_yesno')->toOptionArray(),
59
  ));
 
60
  $loop_slider = $fieldset->addField('loop_slider', 'select', array(
61
  'label' => Mage::helper('responsivebannerslider')->__('Loop Slider '),
62
  'name' => 'loop_slider',
63
  'values' => Mage::getSingleton('adminhtml/system_config_source_yesno')->toOptionArray(),
64
  ));
 
65
  $pause_snavigation = $fieldset->addField('pause_snavigation', 'select', array(
66
  'label' => Mage::helper('responsivebannerslider')->__('Pause Slider On Navigation'),
67
  'name' => 'pause_snavigation',
68
  'values' => Mage::getSingleton('adminhtml/system_config_source_yesno')->toOptionArray(),
69
  ));
 
70
  $pause_shover = $fieldset->addField('pause_shover', 'select', array(
71
  'label' => Mage::helper('responsivebannerslider')->__('Pause Slider On Hover'),
72
  'name' => 'pause_shover',
73
  'values' => Mage::getSingleton('adminhtml/system_config_source_yesno')->toOptionArray(),
74
  ));
 
75
  $animation_type = $fieldset->addField('animation_type', 'select', array(
76
  'label' => Mage::helper('responsivebannerslider')->__('Animation Type'),
77
  'name' => 'animation_type',
78
  'values' => Mage::getSingleton('responsivebannerslider/config_source_animationtype')->toOptionArray(),
79
  ));
 
80
  $animation_duration = $fieldset->addField('animation_duration', 'text', array(
81
  'label' => Mage::helper('responsivebannerslider')->__('Animation Duration'),
82
  'class' => 'required-entry validate-number',
84
  'name' => 'animation_duration',
85
  'note' => 'in milliseconds (default is 600)',
86
  ));
 
87
  $animation_direction = $fieldset->addField('animation_direction', 'select', array(
88
  'label' => Mage::helper('responsivebannerslider')->__('Animation Direction'),
89
  'name' => 'animation_direction',
90
  'values' => Mage::getSingleton('responsivebannerslider/config_source_animationdirection')->toOptionArray(),
91
  ));
 
92
  $slide_duration = $fieldset->addField('slide_duration', 'text', array(
93
  'label' => Mage::helper('responsivebannerslider')->__('Slide Duration'),
94
  'class' => 'required-entry validate-number',
96
  'name' => 'slide_duration',
97
  'note' => 'in milliseconds (default is 7000)',
98
  ));
 
99
  $random_order = $fieldset->addField('random_order', 'select', array(
100
  'label' => Mage::helper('responsivebannerslider')->__('Random Order'),
101
  'name' => 'random_order',
102
  'values' => Mage::getSingleton('adminhtml/system_config_source_yesno')->toOptionArray(),
103
  ));
 
104
  $smooth_height = $fieldset->addField('smooth_height', 'select', array(
105
  'label' => Mage::helper('responsivebannerslider')->__('Smooth Height '),
106
  'name' => 'smooth_height',
107
  'values' => Mage::getSingleton('adminhtml/system_config_source_yesno')->toOptionArray(),
108
  ));
109
+ $fieldset = $form->addFieldset('style_form', array('legend'=>Mage::helper('responsivebannerslider')->__('Slider Style')));
110
+ $max_width = $fieldset->addField('max_width', 'text', array(
 
 
 
 
 
 
111
  'label' => Mage::helper('responsivebannerslider')->__('Maximum Width Slider'),
112
  'class' => 'validate-number',
113
  'required' => false,
114
  'name' => 'max_width',
115
  'note' => 'maximum width of the slider in pixels, leave empty or 0 for full responsive width',
116
  ));
117
+ $slider_theme = $fieldset->addField('slider_theme', 'select', array(
 
118
  'label' => Mage::helper('responsivebannerslider')->__('Slider Theme'),
119
  'name' => 'slider_theme',
120
  'values' => Mage::getSingleton('responsivebannerslider/config_source_theme')->toOptionArray(),
121
  ));
122
+ $slider_type = $fieldset->addField('slider_type', 'select', array(
 
123
  'label' => Mage::helper('responsivebannerslider')->__('Slider Type'),
124
  'name' => 'slider_type',
125
  'values' => Mage::getSingleton('responsivebannerslider/config_source_type')->toOptionArray(),
126
  ));
 
127
  $content_background = $fieldset->addField('content_background', 'text', array(
128
  'label' => Mage::helper('responsivebannerslider')->__('Banner content background'),
129
  'required' => false,
130
  'name' => 'content_background',
131
  'class' => "color",
132
  ));
 
133
  $content_opacity = $fieldset->addField('content_opacity', 'text', array(
134
  'label' => Mage::helper('responsivebannerslider')->__('Banner content opacity'),
135
  'class' => 'validate-number',
136
  'required' => false,
137
  'name' => 'content_opacity',
138
  ));
 
139
  $thumbnail_size = $fieldset->addField('thumbnail_size', 'text', array(
140
  'name' => 'thumbnail_size',
141
  'label' => Mage::helper('responsivebannerslider')->__('Thumbnail Width'),
143
  'class' => 'validate-number validate-greater-than-zero',
144
  'note' => 'width of the images in carousel, should not be larger then thumbnail upload width in general settings (default is 200)',
145
  ));
 
146
  $navigation_arrow = $fieldset->addField('navigation_arrow', 'select', array(
147
  'label' => Mage::helper('responsivebannerslider')->__('Show Navigation Arrows'),
148
  'name' => 'navigation_arrow',
149
  'values' => Mage::getSingleton('responsivebannerslider/config_source_navigation')->toOptionArray(),
150
  ));
 
151
  $navigation_style = $fieldset->addField('navigation_style', 'select', array(
152
  'label' => Mage::helper('responsivebannerslider')->__('Navigation Arrows Style'),
153
  'name' => 'navigation_style',
155
  'onchange' => 'notEmpty()',
156
  'after_element_html' => '<td id="navi_arrow" class="scope-label"><i class="cws" id="navigation_style_name"></i></td>',
157
  ));
158
+ echo "<script>
 
159
  function notEmpty(){
160
  var e = document.getElementById('navigation_style');
161
 
166
  }
167
  </script>";
168
 
 
 
169
  $navigation_aposition = $fieldset->addField('navigation_aposition', 'select', array(
170
  'label' => Mage::helper('responsivebannerslider')->__('Navigation Arrows Position'),
171
  'name' => 'navigation_aposition',
172
  'values' => Mage::getSingleton('responsivebannerslider/config_source_navigationarrow')->toOptionArray(),
173
  ));
174
+ $navigation_acolor = $fieldset->addField('navigation_acolor', 'text', array(
 
 
175
  'label' => Mage::helper('responsivebannerslider')->__('Navigation Arrows Color'),
176
  'required' => false,
177
  'name' => 'navigation_acolor',
178
  'class' => 'color',
179
  ));
 
 
180
  $show_pagination = $fieldset->addField('show_pagination', 'select', array(
181
  'label' => Mage::helper('responsivebannerslider')->__('Show Pagination'),
182
  'name' => 'show_pagination',
183
  'values' => Mage::getSingleton('responsivebannerslider/config_source_navigation')->toOptionArray(),
184
  ));
185
+ $pagination_style = $fieldset->addField('pagination_style', 'select', array(
 
186
  'label' => Mage::helper('responsivebannerslider')->__('Pagination Style'),
187
  'name' => 'pagination_style',
188
  'values' => Mage::getSingleton('responsivebannerslider/config_source_paginationstyle')->toOptionArray(),
189
  ));
190
+ $pagination_position = $fieldset->addField('pagination_position', 'select', array(
 
191
  'label' => Mage::helper('responsivebannerslider')->__('Pagination Position'),
192
  'name' => 'pagination_position',
193
  'values' => Mage::getSingleton('responsivebannerslider/config_source_paginationposition')->toOptionArray(),
194
  ));
 
195
  $pagination_color = $fieldset->addField('pagination_color', 'text', array(
196
  'label' => Mage::helper('responsivebannerslider')->__('Pagination Color'),
197
  'required' => false,
198
  'name' => 'pagination_color',
199
  'class' => 'color',
200
  ));
 
201
  $pagination_active = $fieldset->addField('pagination_active', 'text', array(
202
  'label' => Mage::helper('responsivebannerslider')->__('Pagination Active Color'),
203
  'required' => false,
204
  'name' => 'pagination_active',
205
  'class' => 'color',
206
  ));
 
207
  $pagination_bar = $fieldset->addField('pagination_bar', 'text', array(
208
  'label' => Mage::helper('responsivebannerslider')->__('Pagination Bar Background Color'),
209
  'required' => false,
211
  'class' => 'color',
212
  ));
213
 
 
 
 
214
  if (Mage::getSingleton('adminhtml/session')->getSlidergroupData()) {
215
  $form->setValues(Mage::getSingleton('adminhtml/session')->getSlidergroupData());
216
  $data = Mage::getSingleton('adminhtml/session')->getSlidergroupData();
 
217
  Mage::getSingleton('adminhtml/session')->setSlidergroupData(null);
 
 
 
 
 
 
218
  }elseif ( Mage::registry('slidergroup_data') ) {
219
  $data = Mage::registry('slidergroup_data');
220
  $store_model = Mage::getModel('responsivebannerslider/store')->getCollection()->addFieldToFilter('slidergroup_id',array('eq' => $data->getData('slidergroup_id')));
224
  }
225
  $model_data = $data->getData();
226
  array_push($model_data,$model_data['store_id'] = $store_data);
 
227
  $form->setValues($model_data);
 
228
  }
 
 
 
229
  $id = $this->getRequest()->getParam('id');
 
230
  if($id == ''){
231
  $model_data['animation_duration'] = '600';
232
  $model_data['slide_duration'] = '7000';
240
  $form->setValues($model_data);
241
  $this->setForm($form);
242
  }
243
+ $this->setChild('form_after', $this->getLayout()->createBlock('adminhtml/widget_form_element_dependence')
 
 
244
  ->addFieldMap($slider_type->getHtmlId(), $slider_type->getName())
245
  ->addFieldMap($thumbnail_size->getHtmlId(), $thumbnail_size->getName())
246
  ->addFieldMap($navigation_arrow->getHtmlId(), $navigation_arrow->getName())
257
  ->addFieldMap($pause_shover->getHtmlId(), $pause_shover->getName())
258
  ->addFieldMap($pagination_active->getHtmlId(), $pagination_active->getName())
259
  ->addFieldMap($pagination_bar->getHtmlId(), $pagination_bar->getName())
 
260
  ->addFieldDependence(
261
  $pagination_bar->getName(),
262
  $pagination_style->getName(),
263
  array('circular_bar','square_bar')
264
  )
 
265
  ->addFieldDependence(
266
  $thumbnail_size->getName(),
267
  $slider_type->getName(),
298
  $show_pagination->getName(),
299
  array('hover','always')
300
  )
 
301
  ->addFieldDependence(
302
  $pagination_color->getName(),
303
  $show_pagination->getName(),
320
  )
321
 
322
  );
323
+ return parent::_prepareForm();
 
 
324
  }
325
  }
app/code/community/CapacityWebSolutions/Responsivebannerslider/Block/Adminhtml/Slidergroup/Edit/Tab/Pages.php CHANGED
@@ -1,42 +1,32 @@
1
  <?php
2
  /***************************************************************************
3
- @extension : Responsive Banner Slider Extension.
4
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
5
- ( http://www.capacitywebsolutions.com )
6
- @author : Capacity Web Solutions Pvt. Ltd.
7
- @support : magento@capacitywebsolutions.com
8
- ***************************************************************************/
9
-
10
  ?>
11
  <?php
12
 
13
- class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slidergroup_Edit_Tab_Pages extends Mage_Adminhtml_Block_Widget_Form
14
- {
15
- protected function _prepareForm()
16
- {
17
-
18
  $data = Mage::registry('slidergroup_data');
19
  $page_model = Mage::getModel('responsivebannerslider/page')->getCollection()
20
  ->addFieldToFilter('slidergroup_id',array('eq' => $data->getData('slidergroup_id')));
21
  $page = array();
22
- foreach($page_model as $page_data)
23
- {
24
  $page[] = $page_data->getData('pages');
25
  }
26
-
27
  $form = new Varien_Data_Form();
28
  $this->setForm($form);
29
  $fieldset = $form->addFieldset('pages_form', array('legend'=>Mage::helper('responsivebannerslider')->__('Group Pages')));
30
-
31
- $fieldset->addField('pages', 'multiselect', array(
32
  'name' => 'pages[]',
33
  'label' => Mage::helper('responsivebannerslider')->__('Visible In'),
34
  'required' => false,
35
  'values' => Mage::getSingleton('responsivebannerslider/config_source_pages')->toOptionArray(),
36
  'value' => $page,
37
-
38
  ));
39
-
40
- return parent::_prepareForm();
41
  }
42
  }
1
  <?php
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
 
8
  ?>
9
  <?php
10
 
11
+ class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slidergroup_Edit_Tab_Pages extends Mage_Adminhtml_Block_Widget_Form {
12
+ protected function _prepareForm(){
 
 
 
13
  $data = Mage::registry('slidergroup_data');
14
  $page_model = Mage::getModel('responsivebannerslider/page')->getCollection()
15
  ->addFieldToFilter('slidergroup_id',array('eq' => $data->getData('slidergroup_id')));
16
  $page = array();
17
+ foreach($page_model as $page_data){
 
18
  $page[] = $page_data->getData('pages');
19
  }
 
20
  $form = new Varien_Data_Form();
21
  $this->setForm($form);
22
  $fieldset = $form->addFieldset('pages_form', array('legend'=>Mage::helper('responsivebannerslider')->__('Group Pages')));
23
+ $fieldset->addField('pages', 'multiselect', array(
 
24
  'name' => 'pages[]',
25
  'label' => Mage::helper('responsivebannerslider')->__('Visible In'),
26
  'required' => false,
27
  'values' => Mage::getSingleton('responsivebannerslider/config_source_pages')->toOptionArray(),
28
  'value' => $page,
 
29
  ));
30
+ return parent::_prepareForm();
 
31
  }
32
  }
app/code/community/CapacityWebSolutions/Responsivebannerslider/Block/Adminhtml/Slidergroup/Edit/Tab/Product.php CHANGED
@@ -1,38 +1,30 @@
1
  <?php
2
  /***************************************************************************
3
- @extension : Responsive Banner Slider Extension.
4
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
5
- ( http://www.capacitywebsolutions.com )
6
- @author : Capacity Web Solutions Pvt. Ltd.
7
- @support : magento@capacitywebsolutions.com
8
- ***************************************************************************/
9
-
10
  ?>
11
  <?php
12
 
13
- class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slidergroup_Edit_Tab_Product extends Mage_Adminhtml_Block_Widget_Grid
14
- {
15
 
16
  public function __construct() {
17
  parent::__construct();
18
  $this->setTemplate('responsivebannerslider/category/edit/tab/product.phtml');
19
  }
20
-
21
  protected function getProductIds() {
22
-
23
  $data = Mage::registry('slidergroup_data');
24
  $prd_model = Mage::getModel('responsivebannerslider/product')->getCollection()
25
  ->addFieldToFilter('slidergroup_id',array('eq' => $data->getData('slidergroup_id')));
26
  $_productList = array();
27
-
28
  foreach($prd_model as $prd_data){
29
  $_productList[] = $prd_data->getData('product_sku');
30
  }
31
  return is_array($_productList) ? $_productList : array();
32
  }
33
-
34
  public function getIdsString() {
35
  return implode(', ', $this->getProductIds());
36
  }
37
-
38
- }
1
  <?php
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
 
8
  ?>
9
  <?php
10
 
11
+ class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slidergroup_Edit_Tab_Product extends Mage_Adminhtml_Block_Widget_Grid {
 
12
 
13
  public function __construct() {
14
  parent::__construct();
15
  $this->setTemplate('responsivebannerslider/category/edit/tab/product.phtml');
16
  }
 
17
  protected function getProductIds() {
 
18
  $data = Mage::registry('slidergroup_data');
19
  $prd_model = Mage::getModel('responsivebannerslider/product')->getCollection()
20
  ->addFieldToFilter('slidergroup_id',array('eq' => $data->getData('slidergroup_id')));
21
  $_productList = array();
 
22
  foreach($prd_model as $prd_data){
23
  $_productList[] = $prd_data->getData('product_sku');
24
  }
25
  return is_array($_productList) ? $_productList : array();
26
  }
 
27
  public function getIdsString() {
28
  return implode(', ', $this->getProductIds());
29
  }
30
+ }
 
app/code/community/CapacityWebSolutions/Responsivebannerslider/Block/Adminhtml/Slidergroup/Edit/Tab/Sliders.php CHANGED
@@ -1,15 +1,12 @@
1
  <?php
2
-
3
  /***************************************************************************
4
- @extension : Responsive Banner Slider Extension.
5
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
6
- ( http://www.capacitywebsolutions.com )
7
- @author : Capacity Web Solutions Pvt. Ltd.
8
- @support : magento@capacitywebsolutions.com
9
- ***************************************************************************/
10
 
11
- class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slidergroup_Edit_Tab_Sliders extends Mage_Adminhtml_Block_Widget_Grid
12
- {
13
  public function __construct() {
14
  parent::__construct();
15
  $this->setId('sliderGrid');
@@ -17,16 +14,13 @@ class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slidergroup_Ed
17
  $this->setDefaultDir('asc');
18
  $this->setSaveParametersInSession(true);
19
  }
20
-
21
  protected function _prepareCollection() {
22
  $slide_collection = Mage::getModel('responsivebannerslider/slide')->getCollection();
23
  $current_groupid = $this->getGroupId();
24
  $slide_collection->addFieldToFilter('group_names', array(array('finset' => $current_groupid)));
25
  $this->setCollection($slide_collection);
26
-
27
  return parent::_prepareCollection();
28
  }
29
-
30
  protected function _prepareColumns() {
31
  $this->addColumn('slide_id', array(
32
  'header' => $this->__('ID'),
@@ -34,13 +28,11 @@ class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slidergroup_Ed
34
  'width' => '60px',
35
  'index' => 'slide_id',
36
  ));
37
-
38
  $this->addColumn('titles', array(
39
  'header' => $this->__('Title'),
40
  'align' => 'left',
41
  'index' => 'titles',
42
  ));
43
-
44
  $this->addColumn('statuss', array(
45
  'header' => $this->__('Enabled'),
46
  'width' => '90px',
@@ -51,16 +43,12 @@ class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slidergroup_Ed
51
  0 => $this->__('Disabled'),
52
  ),
53
  ));
54
-
55
- return parent::_prepareColumns();
56
  }
57
-
58
  public function getGroupId() {
59
  return Mage::registry('slidergroup_data') ? Mage::registry('slidergroup_data')->getId() : 0;
60
  }
61
  public function getRowUrl($row) {
62
-
63
- return $this->getUrl('*/adminhtml_slider/edit', array('id' => $row->getId()));
64
  }
65
-
66
  }
1
  <?php
 
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
8
 
9
+ class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slidergroup_Edit_Tab_Sliders extends Mage_Adminhtml_Block_Widget_Grid {
 
10
  public function __construct() {
11
  parent::__construct();
12
  $this->setId('sliderGrid');
14
  $this->setDefaultDir('asc');
15
  $this->setSaveParametersInSession(true);
16
  }
 
17
  protected function _prepareCollection() {
18
  $slide_collection = Mage::getModel('responsivebannerslider/slide')->getCollection();
19
  $current_groupid = $this->getGroupId();
20
  $slide_collection->addFieldToFilter('group_names', array(array('finset' => $current_groupid)));
21
  $this->setCollection($slide_collection);
 
22
  return parent::_prepareCollection();
23
  }
 
24
  protected function _prepareColumns() {
25
  $this->addColumn('slide_id', array(
26
  'header' => $this->__('ID'),
28
  'width' => '60px',
29
  'index' => 'slide_id',
30
  ));
 
31
  $this->addColumn('titles', array(
32
  'header' => $this->__('Title'),
33
  'align' => 'left',
34
  'index' => 'titles',
35
  ));
 
36
  $this->addColumn('statuss', array(
37
  'header' => $this->__('Enabled'),
38
  'width' => '90px',
43
  0 => $this->__('Disabled'),
44
  ),
45
  ));
46
+ return parent::_prepareColumns();
 
47
  }
 
48
  public function getGroupId() {
49
  return Mage::registry('slidergroup_data') ? Mage::registry('slidergroup_data')->getId() : 0;
50
  }
51
  public function getRowUrl($row) {
52
+ return $this->getUrl('*/adminhtml_slider/edit', array('id' => $row->getId()));
 
53
  }
 
54
  }
app/code/community/CapacityWebSolutions/Responsivebannerslider/Block/Adminhtml/Slidergroup/Edit/Tabs.php CHANGED
@@ -1,65 +1,53 @@
1
  <?php
2
  /***************************************************************************
3
- @extension : Responsive Banner Slider Extension.
4
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
5
- ( http://www.capacitywebsolutions.com )
6
- @author : Capacity Web Solutions Pvt. Ltd.
7
- @support : magento@capacitywebsolutions.com
8
- ***************************************************************************/
9
 
 
10
 
11
- class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slidergroup_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs
12
- {
13
-
14
- public function __construct()
15
- {
16
  parent::__construct();
17
  $this->setId('slidergroup_tabs');
18
  $this->setDestElementId('edit_form');
19
  $this->setTitle(Mage::helper('responsivebannerslider')->__('Manage Groups'));
20
  }
21
 
22
- protected function _beforeToHtml()
23
- {
24
  $this->addTab('form_section', array(
25
  'label' => Mage::helper('responsivebannerslider')->__('General Information'),
26
  'title' => Mage::helper('responsivebannerslider')->__('General Information'),
27
  'content' => $this->getLayout()->createBlock('responsivebannerslider/adminhtml_slidergroup_edit_tab_form')->toHtml(),
28
  ));
29
-
30
  $this->addTab('pages_section', array(
31
  'label' => Mage::helper('responsivebannerslider')->__('Display on Pages'),
32
  'title' => Mage::helper('responsivebannerslider')->__('Display on Pages'),
33
  'content' => $this->getLayout()->createBlock('responsivebannerslider/adminhtml_slidergroup_edit_tab_pages')->toHtml(),
34
  ));
35
-
36
  $this->addTab('category_section', array(
37
  'label' => Mage::helper('responsivebannerslider')->__('Display on Categories'),
38
  'title' => Mage::helper('responsivebannerslider')->__('Display on Categories'),
39
  'content' => $this->getLayout()->createBlock('responsivebannerslider/adminhtml_slidergroup_edit_tab_categories')->toHtml(),
40
  ));
41
-
42
  $this->addTab('product_section', array(
43
  'label' => Mage::helper('responsivebannerslider')->__('Display on Product Pages'),
44
  'title' => Mage::helper('responsivebannerslider')->__('Display on Product Pages'),
45
  'content' => $this->getLayout()->createBlock('responsivebannerslider/adminhtml_slidergroup_edit_tab_product')->toHtml(),
46
  ));
47
-
48
  if ($this->getRequest()->getParam('id')) {
49
-
50
  $this->addTab('sliders_section', array(
51
  'label' => Mage::helper('responsivebannerslider')->__('Slides of this Groups'),
52
  'title' => Mage::helper('responsivebannerslider')->__('Slides of this Groups'),
53
  'content' => $this->getLayout()->createBlock('responsivebannerslider/adminhtml_slidergroup_edit_tab_sliders')->toHtml(),
54
  ));
55
-
56
  $this->addTab('code_section', array(
57
  'label' => Mage::helper('responsivebannerslider')->__('Use Code Inserts'),
58
  'title' => Mage::helper('responsivebannerslider')->__('Use Code Inserts'),
59
  'content' => $this->getLayout()->createBlock('responsivebannerslider/adminhtml_slidergroup_edit_tab_code')->toHtml(),
60
  ));
61
  }
62
-
63
- return parent::_beforeToHtml();
64
  }
65
  }
1
  <?php
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
8
 
9
+ class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slidergroup_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs{
10
 
11
+ public function __construct(){
 
 
 
 
12
  parent::__construct();
13
  $this->setId('slidergroup_tabs');
14
  $this->setDestElementId('edit_form');
15
  $this->setTitle(Mage::helper('responsivebannerslider')->__('Manage Groups'));
16
  }
17
 
18
+ protected function _beforeToHtml(){
 
19
  $this->addTab('form_section', array(
20
  'label' => Mage::helper('responsivebannerslider')->__('General Information'),
21
  'title' => Mage::helper('responsivebannerslider')->__('General Information'),
22
  'content' => $this->getLayout()->createBlock('responsivebannerslider/adminhtml_slidergroup_edit_tab_form')->toHtml(),
23
  ));
 
24
  $this->addTab('pages_section', array(
25
  'label' => Mage::helper('responsivebannerslider')->__('Display on Pages'),
26
  'title' => Mage::helper('responsivebannerslider')->__('Display on Pages'),
27
  'content' => $this->getLayout()->createBlock('responsivebannerslider/adminhtml_slidergroup_edit_tab_pages')->toHtml(),
28
  ));
 
29
  $this->addTab('category_section', array(
30
  'label' => Mage::helper('responsivebannerslider')->__('Display on Categories'),
31
  'title' => Mage::helper('responsivebannerslider')->__('Display on Categories'),
32
  'content' => $this->getLayout()->createBlock('responsivebannerslider/adminhtml_slidergroup_edit_tab_categories')->toHtml(),
33
  ));
 
34
  $this->addTab('product_section', array(
35
  'label' => Mage::helper('responsivebannerslider')->__('Display on Product Pages'),
36
  'title' => Mage::helper('responsivebannerslider')->__('Display on Product Pages'),
37
  'content' => $this->getLayout()->createBlock('responsivebannerslider/adminhtml_slidergroup_edit_tab_product')->toHtml(),
38
  ));
 
39
  if ($this->getRequest()->getParam('id')) {
 
40
  $this->addTab('sliders_section', array(
41
  'label' => Mage::helper('responsivebannerslider')->__('Slides of this Groups'),
42
  'title' => Mage::helper('responsivebannerslider')->__('Slides of this Groups'),
43
  'content' => $this->getLayout()->createBlock('responsivebannerslider/adminhtml_slidergroup_edit_tab_sliders')->toHtml(),
44
  ));
 
45
  $this->addTab('code_section', array(
46
  'label' => Mage::helper('responsivebannerslider')->__('Use Code Inserts'),
47
  'title' => Mage::helper('responsivebannerslider')->__('Use Code Inserts'),
48
  'content' => $this->getLayout()->createBlock('responsivebannerslider/adminhtml_slidergroup_edit_tab_code')->toHtml(),
49
  ));
50
  }
51
+ return parent::_beforeToHtml();
 
52
  }
53
  }
app/code/community/CapacityWebSolutions/Responsivebannerslider/Block/Adminhtml/Slidergroup/Grid.php CHANGED
@@ -1,14 +1,12 @@
1
  <?php
2
  /***************************************************************************
3
- @extension : Responsive Banner Slider Extension.
4
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
5
- ( http://www.capacitywebsolutions.com )
6
- @author : Capacity Web Solutions Pvt. Ltd.
7
- @support : magento@capacitywebsolutions.com
8
- ***************************************************************************/
9
 
10
- class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slidergroup_Grid extends Mage_Adminhtml_Block_Widget_Grid
11
- {
12
  public function __construct() {
13
  parent::__construct();
14
  $this->setId('slidergroupGrid');
@@ -19,42 +17,33 @@ class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slidergroup_Gr
19
  }
20
 
21
  protected function _prepareCollection() {
22
-
23
  $collection = Mage::getModel('responsivebannerslider/responsivebannerslider')->getCollection();
24
-
25
  $storeId = (int) $this->getRequest()->getParam('store', 0);
26
  if($storeId){
27
  $collection->storeFilter($storeId);
28
  }
29
  $this->setCollection($collection);
30
-
31
  return parent::_prepareCollection();
32
  }
33
 
34
- protected function _prepareColumns()
35
- {
36
  $this->addColumn('slidergroup_id', array(
37
  'header' => Mage::helper('responsivebannerslider')->__('ID'),
38
  'align' =>'right',
39
  'width' => '50px',
40
  'index' => 'slidergroup_id',
41
  ));
42
-
43
  $this->addColumn('title', array(
44
  'header' => Mage::helper('responsivebannerslider')->__('Group Title'),
45
  'align' =>'left',
46
  'index' => 'title',
47
  ));
48
-
49
  $this->addColumn('sort_order', array(
50
  'header' => Mage::helper('responsivebannerslider')->__('Sort Order'),
51
  'align' =>'left',
52
  'index' => 'sort_order',
53
  ));
54
-
55
-
56
-
57
- $this->addColumn('status', array(
58
  'header' => Mage::helper('responsivebannerslider')->__('Status'),
59
  'align' => 'left',
60
  'width' => '80px',
@@ -65,8 +54,7 @@ class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slidergroup_Gr
65
  0 => 'Disabled',
66
  ),
67
  ));
68
-
69
- $this->addColumn('action',
70
  array(
71
  'header' => Mage::helper('responsivebannerslider')->__('Action'),
72
  'width' => '100',
@@ -88,19 +76,15 @@ class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slidergroup_Gr
88
  return parent::_prepareColumns();
89
  }
90
 
91
- protected function _prepareMassaction()
92
- {
93
  $this->setMassactionIdField('slidergroup_id');
94
  $this->getMassactionBlock()->setFormFieldName('responsivebannerslider_group');
95
-
96
  $this->getMassactionBlock()->addItem('delete', array(
97
  'label' => Mage::helper('responsivebannerslider')->__('Delete'),
98
  'url' => $this->getUrl('*/*/massDelete'),
99
  'confirm' => Mage::helper('responsivebannerslider')->__('Are you sure?')
100
  ));
101
-
102
  $statuses = Mage::getSingleton('responsivebannerslider/status')->getOptionArray();
103
-
104
  array_unshift($statuses, array('label'=>'', 'value'=>''));
105
  $this->getMassactionBlock()->addItem('status', array(
106
  'label'=> Mage::helper('responsivebannerslider')->__('Change status'),
@@ -119,13 +103,10 @@ class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slidergroup_Gr
119
  }
120
 
121
  public function getRowUrl($row) {
122
-
123
  return $this->getUrl('*/*/edit', array('id' => $row->getId()));
124
  }
125
 
126
- public function getGridUrl()
127
- {
128
  return $this->getUrl('*/*/grid', array('_current' => true));
129
  }
130
-
131
  }
1
  <?php
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
8
 
9
+ class CapacityWebSolutions_Responsivebannerslider_Block_Adminhtml_Slidergroup_Grid extends Mage_Adminhtml_Block_Widget_Grid {
 
10
  public function __construct() {
11
  parent::__construct();
12
  $this->setId('slidergroupGrid');
17
  }
18
 
19
  protected function _prepareCollection() {
 
20
  $collection = Mage::getModel('responsivebannerslider/responsivebannerslider')->getCollection();
 
21
  $storeId = (int) $this->getRequest()->getParam('store', 0);
22
  if($storeId){
23
  $collection->storeFilter($storeId);
24
  }
25
  $this->setCollection($collection);
 
26
  return parent::_prepareCollection();
27
  }
28
 
29
+ protected function _prepareColumns(){
 
30
  $this->addColumn('slidergroup_id', array(
31
  'header' => Mage::helper('responsivebannerslider')->__('ID'),
32
  'align' =>'right',
33
  'width' => '50px',
34
  'index' => 'slidergroup_id',
35
  ));
 
36
  $this->addColumn('title', array(
37
  'header' => Mage::helper('responsivebannerslider')->__('Group Title'),
38
  'align' =>'left',
39
  'index' => 'title',
40
  ));
 
41
  $this->addColumn('sort_order', array(
42
  'header' => Mage::helper('responsivebannerslider')->__('Sort Order'),
43
  'align' =>'left',
44
  'index' => 'sort_order',
45
  ));
46
+ $this->addColumn('status', array(
 
 
 
47
  'header' => Mage::helper('responsivebannerslider')->__('Status'),
48
  'align' => 'left',
49
  'width' => '80px',
54
  0 => 'Disabled',
55
  ),
56
  ));
57
+ $this->addColumn('action',
 
58
  array(
59
  'header' => Mage::helper('responsivebannerslider')->__('Action'),
60
  'width' => '100',
76
  return parent::_prepareColumns();
77
  }
78
 
79
+ protected function _prepareMassaction() {
 
80
  $this->setMassactionIdField('slidergroup_id');
81
  $this->getMassactionBlock()->setFormFieldName('responsivebannerslider_group');
 
82
  $this->getMassactionBlock()->addItem('delete', array(
83
  'label' => Mage::helper('responsivebannerslider')->__('Delete'),
84
  'url' => $this->getUrl('*/*/massDelete'),
85
  'confirm' => Mage::helper('responsivebannerslider')->__('Are you sure?')
86
  ));
 
87
  $statuses = Mage::getSingleton('responsivebannerslider/status')->getOptionArray();
 
88
  array_unshift($statuses, array('label'=>'', 'value'=>''));
89
  $this->getMassactionBlock()->addItem('status', array(
90
  'label'=> Mage::helper('responsivebannerslider')->__('Change status'),
103
  }
104
 
105
  public function getRowUrl($row) {
 
106
  return $this->getUrl('*/*/edit', array('id' => $row->getId()));
107
  }
108
 
109
+ public function getGridUrl() {
 
110
  return $this->getUrl('*/*/grid', array('_current' => true));
111
  }
 
112
  }
app/code/community/CapacityWebSolutions/Responsivebannerslider/Block/Managejquery.php ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
8
+ ?>
9
+ <?php
10
+ class CapacityWebSolutions_Responsivebannerslider_Block_Managejquery extends Mage_Core_Block_Template {
11
+
12
+ public function addJquery() {
13
+ $disable_output = Mage::getStoreConfig('advanced/modules_disable_output/CapacityWebSolutions_Responsivebannerslider');
14
+ if($disable_output == 0) {
15
+ $enabled = Mage::getStoreConfig('responsivebannerslider/general/enabled');
16
+ if($enabled) {
17
+ $jquery_enabled = Mage::getStoreConfig('responsivebannerslider/general/jquery');
18
+ $lazy_load_jquery = Mage::getStoreConfig('responsivebannerslider/general/lazy_load_jquery');
19
+ $_head = $this->__getHeadBlock();
20
+ if($jquery_enabled){
21
+ $_head->addJs('responsivebannerslider/jquery.min.js');
22
+ }
23
+ $_head->addJs('responsivebannerslider/noconflict.js');
24
+ $_head->addJs('responsivebannerslider/jquery.flexslider.js');
25
+ $_head->addJs('responsivebannerslider/jquery.easing.js');
26
+ $_head->addJs('responsivebannerslider/froogaloop.js');
27
+ $_head->addJs('responsivebannerslider/jquery.fitvid.js');
28
+ if($lazy_load_jquery){
29
+ $_head->addJs('responsivebannerslider/jquery.lazy.js');
30
+ }
31
+ $_head->addCss('css/responsivebannerslider/default.css');
32
+
33
+ return $_head;
34
+ }
35
+ }
36
+ }
37
+ private function __getHeadBlock() {
38
+ return $this->getLayout()->getBlock('head');
39
+ }
40
+ }
41
+ ?>
app/code/community/CapacityWebSolutions/Responsivebannerslider/Block/View.php CHANGED
@@ -1,27 +1,20 @@
1
  <?php
2
  /***************************************************************************
3
- @extension : Responsive Banner Slider Extension.
4
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
5
- ( http://www.capacitywebsolutions.com )
6
- @author : Capacity Web Solutions Pvt. Ltd.
7
- @support : magento@capacitywebsolutions.com
8
- ***************************************************************************/
9
-
10
  ?>
11
  <?php
12
- class CapacityWebSolutions_Responsivebannerslider_Block_View extends Mage_Core_Block_Template
13
- {
14
  public function __construct() {
15
  $this->setLazylaod(Mage::getStoreConfig("responsivebannerslider/general/lazy_load_jquery"));
16
  }
17
-
18
-
19
- public function getGroupscollection()
20
- {
21
  $groups = Mage::getModel('responsivebannerslider/responsivebannerslider')->getCollection();
22
  $groups ->addFieldToFilter('status',1);
23
  $groups ->addFieldToFilter('slidergroup_id',$this->getCode());
24
-
25
  $cms_page = Mage::getStoreConfig('responsivebannerslider/general/cms_page');
26
  $category_page = Mage::getStoreConfig('responsivebannerslider/general/category_page');
27
  $product_page = Mage::getStoreConfig('responsivebannerslider/general/product_page');
@@ -39,7 +32,6 @@ class CapacityWebSolutions_Responsivebannerslider_Block_View extends Mage_Core_B
39
  return false;
40
  }
41
  }
42
-
43
  return $groups;
44
  }
45
 
@@ -51,6 +43,5 @@ class CapacityWebSolutions_Responsivebannerslider_Block_View extends Mage_Core_B
51
 
52
  return $slide_collection;
53
  }
54
-
55
  }
56
  ?>
1
  <?php
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
 
8
  ?>
9
  <?php
10
+ class CapacityWebSolutions_Responsivebannerslider_Block_View extends Mage_Core_Block_Template {
 
11
  public function __construct() {
12
  $this->setLazylaod(Mage::getStoreConfig("responsivebannerslider/general/lazy_load_jquery"));
13
  }
14
+ public function getGroupscollection(){
 
 
 
15
  $groups = Mage::getModel('responsivebannerslider/responsivebannerslider')->getCollection();
16
  $groups ->addFieldToFilter('status',1);
17
  $groups ->addFieldToFilter('slidergroup_id',$this->getCode());
 
18
  $cms_page = Mage::getStoreConfig('responsivebannerslider/general/cms_page');
19
  $category_page = Mage::getStoreConfig('responsivebannerslider/general/category_page');
20
  $product_page = Mage::getStoreConfig('responsivebannerslider/general/product_page');
32
  return false;
33
  }
34
  }
 
35
  return $groups;
36
  }
37
 
43
 
44
  return $slide_collection;
45
  }
 
46
  }
47
  ?>
app/code/community/CapacityWebSolutions/Responsivebannerslider/Block/View/Bottom.php CHANGED
@@ -1,23 +1,19 @@
1
  <?php
2
  /***************************************************************************
3
- @extension : Responsive Banner Slider Extension.
4
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
5
- ( http://www.capacitywebsolutions.com )
6
- @author : Capacity Web Solutions Pvt. Ltd.
7
- @support : magento@capacitywebsolutions.com
8
- ***************************************************************************/
9
-
10
  ?>
11
  <?php
12
 
13
- class CapacityWebSolutions_Responsivebannerslider_Block_View_Bottom extends Mage_Core_Block_Template
14
- {
15
  public function __construct() {
16
  $this->setLazylaod(Mage::getStoreConfig("responsivebannerslider/general/lazy_load_jquery"));
17
  }
18
 
19
- public function getGroupscollection()
20
- {
21
  $groups = Mage::getModel('responsivebannerslider/responsivebannerslider')->getCollection();
22
  $groups->addFieldToFilter('status',1);
23
  $groups->addFieldToFilter('position','content_bottom');
@@ -25,14 +21,15 @@ class CapacityWebSolutions_Responsivebannerslider_Block_View_Bottom extends Mage
25
  $cms_page = Mage::getStoreConfig('responsivebannerslider/general/cms_page');
26
  $category_page = Mage::getStoreConfig('responsivebannerslider/general/category_page');
27
  $product_page = Mage::getStoreConfig('responsivebannerslider/general/product_page');
28
- if(Mage::registry('current_category')) {
 
29
  if($category_page) {
30
  $category_id = Mage::registry('current_category')->getId();
31
  $groups->categoryFilter($category_id);
32
  }else{
33
  return false;
34
  }
35
- }elseif (Mage::registry('current_product')) {
36
  if($product_page) {
37
  $productsku = Mage::registry('current_product')->getSku();
38
  $groups->productFilter($productsku);
@@ -51,18 +48,15 @@ class CapacityWebSolutions_Responsivebannerslider_Block_View_Bottom extends Mage
51
  if (!Mage::app()->isSingleStoreMode()) {
52
  $groups->storeFilter($store_id);
53
  }
54
-
55
  return $groups;
56
  }
57
 
58
  public function getSlides($slidegroupId) {
59
  $slide_collection = Mage::getModel('responsivebannerslider/slide')->getCollection()
60
- ->addFieldToFilter('group_names', array(array('finset' => $slidegroupId)))
61
- ->addFieldToFilter('statuss', '1')
62
- ->setOrder('sort_order','ASC');
63
-
64
  return $slide_collection;
65
  }
66
-
67
  }
68
  ?>
1
  <?php
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
 
8
  ?>
9
  <?php
10
 
11
+ class CapacityWebSolutions_Responsivebannerslider_Block_View_Bottom extends Mage_Core_Block_Template {
 
12
  public function __construct() {
13
  $this->setLazylaod(Mage::getStoreConfig("responsivebannerslider/general/lazy_load_jquery"));
14
  }
15
 
16
+ public function getGroupscollection() {
 
17
  $groups = Mage::getModel('responsivebannerslider/responsivebannerslider')->getCollection();
18
  $groups->addFieldToFilter('status',1);
19
  $groups->addFieldToFilter('position','content_bottom');
21
  $cms_page = Mage::getStoreConfig('responsivebannerslider/general/cms_page');
22
  $category_page = Mage::getStoreConfig('responsivebannerslider/general/category_page');
23
  $product_page = Mage::getStoreConfig('responsivebannerslider/general/product_page');
24
+ $current_page = Mage::app()->getFrontController()->getRequest()->getControllerName();
25
+ if($current_page == "category") {
26
  if($category_page) {
27
  $category_id = Mage::registry('current_category')->getId();
28
  $groups->categoryFilter($category_id);
29
  }else{
30
  return false;
31
  }
32
+ }elseif ($current_page == "product") {
33
  if($product_page) {
34
  $productsku = Mage::registry('current_product')->getSku();
35
  $groups->productFilter($productsku);
48
  if (!Mage::app()->isSingleStoreMode()) {
49
  $groups->storeFilter($store_id);
50
  }
 
51
  return $groups;
52
  }
53
 
54
  public function getSlides($slidegroupId) {
55
  $slide_collection = Mage::getModel('responsivebannerslider/slide')->getCollection()
56
+ ->addFieldToFilter('group_names', array(array('finset' => $slidegroupId)))
57
+ ->addFieldToFilter('statuss', '1')
58
+ ->setOrder('sort_order','ASC');
 
59
  return $slide_collection;
60
  }
 
61
  }
62
  ?>
app/code/community/CapacityWebSolutions/Responsivebannerslider/Block/View/Top.php CHANGED
@@ -1,42 +1,36 @@
1
  <?php
2
  /***************************************************************************
3
- @extension : Responsive Banner Slider Extension.
4
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
5
- ( http://www.capacitywebsolutions.com )
6
- @author : Capacity Web Solutions Pvt. Ltd.
7
- @support : magento@capacitywebsolutions.com
8
- ***************************************************************************/
9
-
10
  ?>
11
  <?php
12
-
13
- class CapacityWebSolutions_Responsivebannerslider_Block_View_Top extends Mage_Core_Block_Template
14
- {
15
 
16
  public function __construct() {
17
  $this->setLazylaod(Mage::getStoreConfig("responsivebannerslider/general/lazy_load_jquery"));
18
  }
19
 
20
- public function getGroupscollection()
21
- {
22
  $groups = Mage::getModel('responsivebannerslider/responsivebannerslider')->getCollection();
23
  $groups ->addFieldToFilter('status',1);
24
  $groups ->addFieldToFilter('position','content_top');
25
  $groups ->setOrder('sort_order','ASC');
26
-
27
  $cms_page = Mage::getStoreConfig('responsivebannerslider/general/cms_page');
28
  $category_page = Mage::getStoreConfig('responsivebannerslider/general/category_page');
29
  $product_page = Mage::getStoreConfig('responsivebannerslider/general/product_page');
 
30
 
31
-
32
- if(Mage::registry('current_category')) {
33
  if($category_page) {
34
  $category_id = Mage::registry('current_category')->getId();
35
  $groups->categoryFilter($category_id);
36
  }else{
37
  return false;
38
  }
39
- }elseif (Mage::registry('current_product')) {
40
  if($product_page) {
41
  $productsku = Mage::registry('current_product')->getSku();
42
  $groups->productFilter($productsku);
@@ -55,18 +49,15 @@ class CapacityWebSolutions_Responsivebannerslider_Block_View_Top extends Mage_Co
55
  if (!Mage::app()->isSingleStoreMode()) {
56
  $groups->storeFilter($store_id);
57
  }
58
-
59
  return $groups;
60
  }
61
 
62
  public function getSlides($slidegroupId) {
63
-
64
  $slide_collection = Mage::getModel('responsivebannerslider/slide')->getCollection()
65
  ->addFieldToFilter('group_names', array(array('finset' => $slidegroupId)))
66
  ->addFieldToFilter('statuss', '1')
67
  ->setOrder('sort_order','ASC');
68
  return $slide_collection;
69
  }
70
-
71
  }
72
  ?>
1
  <?php
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
 
8
  ?>
9
  <?php
10
+ class CapacityWebSolutions_Responsivebannerslider_Block_View_Top extends Mage_Core_Block_Template {
 
 
11
 
12
  public function __construct() {
13
  $this->setLazylaod(Mage::getStoreConfig("responsivebannerslider/general/lazy_load_jquery"));
14
  }
15
 
16
+ public function getGroupscollection(){
 
17
  $groups = Mage::getModel('responsivebannerslider/responsivebannerslider')->getCollection();
18
  $groups ->addFieldToFilter('status',1);
19
  $groups ->addFieldToFilter('position','content_top');
20
  $groups ->setOrder('sort_order','ASC');
 
21
  $cms_page = Mage::getStoreConfig('responsivebannerslider/general/cms_page');
22
  $category_page = Mage::getStoreConfig('responsivebannerslider/general/category_page');
23
  $product_page = Mage::getStoreConfig('responsivebannerslider/general/product_page');
24
+ $current_page = Mage::app()->getFrontController()->getRequest()->getControllerName();
25
 
26
+ if($current_page == "category") {
 
27
  if($category_page) {
28
  $category_id = Mage::registry('current_category')->getId();
29
  $groups->categoryFilter($category_id);
30
  }else{
31
  return false;
32
  }
33
+ }elseif ($current_page == "product") {
34
  if($product_page) {
35
  $productsku = Mage::registry('current_product')->getSku();
36
  $groups->productFilter($productsku);
49
  if (!Mage::app()->isSingleStoreMode()) {
50
  $groups->storeFilter($store_id);
51
  }
 
52
  return $groups;
53
  }
54
 
55
  public function getSlides($slidegroupId) {
 
56
  $slide_collection = Mage::getModel('responsivebannerslider/slide')->getCollection()
57
  ->addFieldToFilter('group_names', array(array('finset' => $slidegroupId)))
58
  ->addFieldToFilter('statuss', '1')
59
  ->setOrder('sort_order','ASC');
60
  return $slide_collection;
61
  }
 
62
  }
63
  ?>
app/code/community/CapacityWebSolutions/Responsivebannerslider/Helper/Data.php CHANGED
@@ -1,54 +1,25 @@
1
  <?php
2
-
3
  /***************************************************************************
4
- @extension : Responsive Banner Slider Extension.
5
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
6
- ( http://www.capacitywebsolutions.com )
7
- @author : Capacity Web Solutions Pvt. Ltd.
8
- @support : magento@capacitywebsolutions.com
9
- ***************************************************************************/
10
 
11
- class CapacityWebSolutions_Responsivebannerslider_Helper_Data extends Mage_Core_Helper_Abstract
12
- {
13
 
14
- const NAME_DIR_JS = 'responsivebannerslider/';
15
-
16
- protected $_files = array(
17
- 'jquery.min.js',
18
- 'jquery.flexslider.js',
19
- 'jquery.easing.js',
20
- 'froogaloop.js',
21
- 'jquery.fitvid.js',
22
-
23
-
24
- );
25
-
26
- public function getJQueryPath($file){
27
- return self::NAME_DIR_JS . $file;
28
- }
29
-
30
- public function getFiles(){
31
- return $this->_files;
32
- }
33
-
34
- public function resizeImg($fileName)
35
- {
36
  $dir = "thumbnails";
37
  $width = Mage::getStoreConfig('responsivebannerslider/general/thumbnail_width');
38
-
39
  if(trim($width) == "" || trim($width) < 0){
40
  $width = "200";
41
  }
42
-
43
  $basePath = Mage::getBaseDir('media') . DS . "responsivebannerslider" . DS . $fileName;
44
  $newPath = Mage::getBaseDir('media') . DS . "responsivebannerslider" . DS . $dir . DS . $fileName;
45
-
46
  if ($width != '') {
47
-
48
  if (file_exists($newPath)) {
49
  unlink($newPath);
50
  }
51
-
52
  if (file_exists($basePath) && is_file($basePath) && !file_exists($newPath)) {
53
  $imageObj = new Varien_Image($basePath);
54
  $imageObj->constrainOnly(TRUE);
1
  <?php
 
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
8
 
9
+ class CapacityWebSolutions_Responsivebannerslider_Helper_Data extends Mage_Core_Helper_Abstract {
 
10
 
11
+ public function resizeImg($fileName) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  $dir = "thumbnails";
13
  $width = Mage::getStoreConfig('responsivebannerslider/general/thumbnail_width');
 
14
  if(trim($width) == "" || trim($width) < 0){
15
  $width = "200";
16
  }
 
17
  $basePath = Mage::getBaseDir('media') . DS . "responsivebannerslider" . DS . $fileName;
18
  $newPath = Mage::getBaseDir('media') . DS . "responsivebannerslider" . DS . $dir . DS . $fileName;
 
19
  if ($width != '') {
 
20
  if (file_exists($newPath)) {
21
  unlink($newPath);
22
  }
 
23
  if (file_exists($basePath) && is_file($basePath) && !file_exists($newPath)) {
24
  $imageObj = new Varien_Image($basePath);
25
  $imageObj->constrainOnly(TRUE);
app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Categories.php CHANGED
@@ -1,16 +1,13 @@
1
  <?php
2
  /***************************************************************************
3
- @extension : Responsive Banner Slider Extension.
4
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
5
- ( http://www.capacitywebsolutions.com )
6
- @author : Capacity Web Solutions Pvt. Ltd.
7
- @support : magento@capacitywebsolutions.com
8
- ***************************************************************************/
9
 
10
- class CapacityWebSolutions_Responsivebannerslider_Model_Categories extends Mage_Core_Model_Abstract
11
- {
12
- public function _construct()
13
- {
14
  parent::_construct();
15
  $this->_init('responsivebannerslider/categories');
16
  }
1
  <?php
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
8
 
9
+ class CapacityWebSolutions_Responsivebannerslider_Model_Categories extends Mage_Core_Model_Abstract {
10
+ public function _construct() {
 
 
11
  parent::_construct();
12
  $this->_init('responsivebannerslider/categories');
13
  }
app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Category.php CHANGED
@@ -1,15 +1,13 @@
1
  <?php
2
  /***************************************************************************
3
- @extension : Responsive Banner Slider Extension.
4
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
5
- ( http://www.capacitywebsolutions.com )
6
- @author : Capacity Web Solutions Pvt. Ltd.
7
- @support : magento@capacitywebsolutions.com
8
- ***************************************************************************/
9
 
10
- class CapacityWebSolutions_Responsivebannerslider_Model_Category extends Mage_Core_Model_Abstract
11
- {
12
- protected function _construct(){
13
  $this->_init('responsivebannerslider/category_category');
14
  }
15
  public function savecategoryRelation($category){
1
  <?php
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
8
 
9
+ class CapacityWebSolutions_Responsivebannerslider_Model_Category extends Mage_Core_Model_Abstract {
10
+ protected function _construct(){
 
11
  $this->_init('responsivebannerslider/category_category');
12
  }
13
  public function savecategoryRelation($category){
app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Config/Effect.php CHANGED
@@ -1,22 +1,17 @@
1
  <?php
2
  /***************************************************************************
3
- @extension : Color Swatches Extension.
4
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
5
- ( http://www.capacitywebsolutions.com )
6
- @author : Capacity Web Solutions Pvt. Ltd.
7
- @support : magento@capacitywebsolutions.com
8
- ***************************************************************************/
9
 
10
- class CapacityWebSolutions_Responsivebannerslider_Model_Config_Effect
11
- {
12
- public function toOptionArray()
13
- {
14
  return array(
15
  array('value' => 0, 'label'=>Mage::helper('adminhtml')->__('Data1')),
16
  array('value' => 1, 'label'=>Mage::helper('adminhtml')->__('Data2 ')),
17
  array('value' => 2, 'label'=>Mage::helper('adminhtml')->__('Data3 ')),
18
  );
19
  }
20
-
21
- }
22
-
1
  <?php
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
8
 
9
+ class CapacityWebSolutions_Responsivebannerslider_Model_Config_Effect {
10
+ public function toOptionArray() {
 
 
11
  return array(
12
  array('value' => 0, 'label'=>Mage::helper('adminhtml')->__('Data1')),
13
  array('value' => 1, 'label'=>Mage::helper('adminhtml')->__('Data2 ')),
14
  array('value' => 2, 'label'=>Mage::helper('adminhtml')->__('Data3 ')),
15
  );
16
  }
17
+ }
 
 
app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Config/Source/Animationdirection.php CHANGED
@@ -1,21 +1,17 @@
1
  <?php
2
-
3
  /***************************************************************************
4
- @extension : Responsive Banner Slider Extension.
5
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
6
- ( http://www.capacitywebsolutions.com )
7
- @author : Capacity Web Solutions Pvt. Ltd.
8
- @support : magento@capacitywebsolutions.com
9
- ***************************************************************************/
10
 
11
  class CapacityWebSolutions_Responsivebannerslider_Model_Config_Source_Animationdirection
12
  {
13
- public function toOptionArray()
14
- {
15
  return array(
16
  array('value' => 'horizontal', 'label'=>Mage::helper('adminhtml')->__('Horizontal')),
17
  array('value' => 'vertical', 'label'=>Mage::helper('adminhtml')->__('Vertical')),
18
-
19
  );
20
  }
21
  }
1
  <?php
 
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
8
 
9
  class CapacityWebSolutions_Responsivebannerslider_Model_Config_Source_Animationdirection
10
  {
11
+ public function toOptionArray(){
 
12
  return array(
13
  array('value' => 'horizontal', 'label'=>Mage::helper('adminhtml')->__('Horizontal')),
14
  array('value' => 'vertical', 'label'=>Mage::helper('adminhtml')->__('Vertical')),
 
15
  );
16
  }
17
  }
app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Config/Source/Animationtype.php CHANGED
@@ -1,17 +1,13 @@
1
  <?php
2
-
3
  /***************************************************************************
4
- @extension : Responsive Banner Slider Extension.
5
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
6
- ( http://www.capacitywebsolutions.com )
7
- @author : Capacity Web Solutions Pvt. Ltd.
8
- @support : magento@capacitywebsolutions.com
9
- ***************************************************************************/
10
 
11
- class CapacityWebSolutions_Responsivebannerslider_Model_Config_Source_Animationtype
12
- {
13
- public function toOptionArray()
14
- {
15
  return array(
16
  array('value' => 'slide', 'label'=>Mage::helper('adminhtml')->__('Slide')),
17
  array('value' => 'fade', 'label'=>Mage::helper('adminhtml')->__('Fade')),
1
  <?php
 
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
8
 
9
+ class CapacityWebSolutions_Responsivebannerslider_Model_Config_Source_Animationtype {
10
+ public function toOptionArray() {
 
 
11
  return array(
12
  array('value' => 'slide', 'label'=>Mage::helper('adminhtml')->__('Slide')),
13
  array('value' => 'fade', 'label'=>Mage::helper('adminhtml')->__('Fade')),
app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Config/Source/Effect.php CHANGED
@@ -1,22 +1,18 @@
1
  <?php
2
  /***************************************************************************
3
- @extension : Color Swatches Extension.
4
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
5
- ( http://www.capacitywebsolutions.com )
6
- @author : Capacity Web Solutions Pvt. Ltd.
7
- @support : magento@capacitywebsolutions.com
8
- ***************************************************************************/
9
 
10
  class CapacityWebSolutions_Responsivebannerslider_Model_Config_Source_Effect
11
  {
12
- public function toOptionArray()
13
- {
14
  return array(
15
  array('value' => 0, 'label'=>Mage::helper('adminhtml')->__('Data1')),
16
  array('value' => 1, 'label'=>Mage::helper('adminhtml')->__('Data2 ')),
17
  array('value' => 2, 'label'=>Mage::helper('adminhtml')->__('Data3 ')),
18
  );
19
  }
20
-
21
- }
22
-
1
  <?php
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
8
 
9
  class CapacityWebSolutions_Responsivebannerslider_Model_Config_Source_Effect
10
  {
11
+ public function toOptionArray(){
 
12
  return array(
13
  array('value' => 0, 'label'=>Mage::helper('adminhtml')->__('Data1')),
14
  array('value' => 1, 'label'=>Mage::helper('adminhtml')->__('Data2 ')),
15
  array('value' => 2, 'label'=>Mage::helper('adminhtml')->__('Data3 ')),
16
  );
17
  }
18
+ }
 
 
app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Config/Source/Navigation.php CHANGED
@@ -1,22 +1,18 @@
1
  <?php
2
-
3
  /***************************************************************************
4
- @extension : Responsive Banner Slider Extension.
5
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
6
- ( http://www.capacitywebsolutions.com )
7
- @author : Capacity Web Solutions Pvt. Ltd.
8
- @support : magento@capacitywebsolutions.com
9
- ***************************************************************************/
10
 
11
  class CapacityWebSolutions_Responsivebannerslider_Model_Config_Source_Navigation
12
  {
13
- public function toOptionArray()
14
- {
15
  return array(
16
  array('value' => 'hover', 'label'=>Mage::helper('adminhtml')->__('On hover')),
17
  array('value' => 'always', 'label'=>Mage::helper('adminhtml')->__('Always')),
18
  array('value' => 'never', 'label'=>Mage::helper('adminhtml')->__('Never')),
19
-
20
  );
21
  }
22
  }
1
  <?php
 
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
8
 
9
  class CapacityWebSolutions_Responsivebannerslider_Model_Config_Source_Navigation
10
  {
11
+ public function toOptionArray() {
 
12
  return array(
13
  array('value' => 'hover', 'label'=>Mage::helper('adminhtml')->__('On hover')),
14
  array('value' => 'always', 'label'=>Mage::helper('adminhtml')->__('Always')),
15
  array('value' => 'never', 'label'=>Mage::helper('adminhtml')->__('Never')),
 
16
  );
17
  }
18
  }
app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Config/Source/Navigationarrow.php CHANGED
@@ -1,23 +1,19 @@
1
  <?php
2
-
3
  /***************************************************************************
4
- @extension : Responsive Banner Slider Extension.
5
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
6
- ( http://www.capacitywebsolutions.com )
7
- @author : Capacity Web Solutions Pvt. Ltd.
8
- @support : magento@capacitywebsolutions.com
9
- ***************************************************************************/
10
 
11
  class CapacityWebSolutions_Responsivebannerslider_Model_Config_Source_Navigationarrow
12
  {
13
- public function toOptionArray()
14
- {
15
  return array(
16
  array('value' => 'inside', 'label'=>Mage::helper('adminhtml')->__('Inside slider on both sides')),
17
  array('value' => 'outside', 'label'=>Mage::helper('adminhtml')->__('Outside the slider on both sides')),
18
  array('value' => 'inside_left', 'label'=>Mage::helper('adminhtml')->__('Inside slider grouped left')),
19
  array('value' => 'inside_right', 'label'=>Mage::helper('adminhtml')->__('Inside slider grouped right')),
20
-
21
  );
22
  }
23
  }
1
  <?php
 
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
8
 
9
  class CapacityWebSolutions_Responsivebannerslider_Model_Config_Source_Navigationarrow
10
  {
11
+ public function toOptionArray() {
 
12
  return array(
13
  array('value' => 'inside', 'label'=>Mage::helper('adminhtml')->__('Inside slider on both sides')),
14
  array('value' => 'outside', 'label'=>Mage::helper('adminhtml')->__('Outside the slider on both sides')),
15
  array('value' => 'inside_left', 'label'=>Mage::helper('adminhtml')->__('Inside slider grouped left')),
16
  array('value' => 'inside_right', 'label'=>Mage::helper('adminhtml')->__('Inside slider grouped right')),
 
17
  );
18
  }
19
  }
app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Config/Source/Navigationstyle.php CHANGED
@@ -1,17 +1,14 @@
1
  <?php
2
-
3
  /***************************************************************************
4
- @extension : Responsive Banner Slider Extension.
5
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
6
- ( http://www.capacitywebsolutions.com )
7
- @author : Capacity Web Solutions Pvt. Ltd.
8
- @support : magento@capacitywebsolutions.com
9
- ***************************************************************************/
10
 
11
  class CapacityWebSolutions_Responsivebannerslider_Model_Config_Source_Navigationstyle
12
  {
13
- public function toOptionArray()
14
- {
15
  return array(
16
  array('value' => 'angle', 'label'=>Mage::helper('adminhtml')->__('Angle')),
17
  array('value' => 'angle_small', 'label'=>Mage::helper('adminhtml')->__('Angle Small')),
@@ -24,7 +21,6 @@ class CapacityWebSolutions_Responsivebannerslider_Model_Config_Source_Navigation
24
  array('value' => 'chevron_smooth', 'label'=>Mage::helper('adminhtml')->__('Chevron Smooth')),
25
  array('value' => 'chevron_circle', 'label'=>Mage::helper('adminhtml')->__('Chevron Circle')),
26
  array('value' => 'chevron_square', 'label'=>Mage::helper('adminhtml')->__('Chevron Square')),
27
-
28
  );
29
  }
30
  }
1
  <?php
 
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
8
 
9
  class CapacityWebSolutions_Responsivebannerslider_Model_Config_Source_Navigationstyle
10
  {
11
+ public function toOptionArray() {
 
12
  return array(
13
  array('value' => 'angle', 'label'=>Mage::helper('adminhtml')->__('Angle')),
14
  array('value' => 'angle_small', 'label'=>Mage::helper('adminhtml')->__('Angle Small')),
21
  array('value' => 'chevron_smooth', 'label'=>Mage::helper('adminhtml')->__('Chevron Smooth')),
22
  array('value' => 'chevron_circle', 'label'=>Mage::helper('adminhtml')->__('Chevron Circle')),
23
  array('value' => 'chevron_square', 'label'=>Mage::helper('adminhtml')->__('Chevron Square')),
 
24
  );
25
  }
26
  }
app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Config/Source/Pages.php CHANGED
@@ -1,20 +1,16 @@
1
  <?php
2
-
3
  /***************************************************************************
4
- @extension : Responsive Banner Slider Extension.
5
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
6
- ( http://www.capacitywebsolutions.com )
7
- @author : Capacity Web Solutions Pvt. Ltd.
8
- @support : magento@capacitywebsolutions.com
9
- ***************************************************************************/
10
 
11
  class CapacityWebSolutions_Responsivebannerslider_Model_Config_Source_Pages
12
  {
13
- public function toOptionArray()
14
- {
15
  $collection = Mage::getSingleton('cms/page')->getCollection()
16
  ->addFieldToFilter('is_active', 1);
17
-
18
  $result = array();
19
  foreach ($collection as $item) {
20
  $data = array(
1
  <?php
 
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
8
 
9
  class CapacityWebSolutions_Responsivebannerslider_Model_Config_Source_Pages
10
  {
11
+ public function toOptionArray() {
 
12
  $collection = Mage::getSingleton('cms/page')->getCollection()
13
  ->addFieldToFilter('is_active', 1);
 
14
  $result = array();
15
  foreach ($collection as $item) {
16
  $data = array(
app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Config/Source/Paginationposition.php CHANGED
@@ -1,17 +1,14 @@
1
  <?php
2
-
3
  /***************************************************************************
4
- @extension : Responsive Banner Slider Extension.
5
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
6
- ( http://www.capacitywebsolutions.com )
7
- @author : Capacity Web Solutions Pvt. Ltd.
8
- @support : magento@capacitywebsolutions.com
9
- ***************************************************************************/
10
 
11
  class CapacityWebSolutions_Responsivebannerslider_Model_Config_Source_Paginationposition
12
  {
13
- public function toOptionArray()
14
- {
15
  return array(
16
  array('value' => 'below', 'label'=>Mage::helper('adminhtml')->__('Below the slider')),
17
  array('value' => 'above', 'label'=>Mage::helper('adminhtml')->__('Above the slider')),
@@ -19,7 +16,6 @@ class CapacityWebSolutions_Responsivebannerslider_Model_Config_Source_Pagination
19
  array('value' => 'inside_bottom', 'label'=>Mage::helper('adminhtml')->__('Inside bottom slider')),
20
  array('value' => 'inside_bottom_left', 'label'=>Mage::helper('adminhtml')->__('Inside bottom left')),
21
  array('value' => 'inside_bottom_right', 'label'=>Mage::helper('adminhtml')->__('Inside bottom right')),
22
-
23
  );
24
  }
25
  }
1
  <?php
 
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
8
 
9
  class CapacityWebSolutions_Responsivebannerslider_Model_Config_Source_Paginationposition
10
  {
11
+ public function toOptionArray() {
 
12
  return array(
13
  array('value' => 'below', 'label'=>Mage::helper('adminhtml')->__('Below the slider')),
14
  array('value' => 'above', 'label'=>Mage::helper('adminhtml')->__('Above the slider')),
16
  array('value' => 'inside_bottom', 'label'=>Mage::helper('adminhtml')->__('Inside bottom slider')),
17
  array('value' => 'inside_bottom_left', 'label'=>Mage::helper('adminhtml')->__('Inside bottom left')),
18
  array('value' => 'inside_bottom_right', 'label'=>Mage::helper('adminhtml')->__('Inside bottom right')),
 
19
  );
20
  }
21
  }
app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Config/Source/Paginationstyle.php CHANGED
@@ -1,23 +1,19 @@
1
  <?php
2
-
3
  /***************************************************************************
4
- @extension : Responsive Banner Slider Extension.
5
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
6
- ( http://www.capacitywebsolutions.com )
7
- @author : Capacity Web Solutions Pvt. Ltd.
8
- @support : magento@capacitywebsolutions.com
9
- ***************************************************************************/
10
 
11
  class CapacityWebSolutions_Responsivebannerslider_Model_Config_Source_Paginationstyle
12
  {
13
- public function toOptionArray()
14
- {
15
  return array(
16
  array('value' => 'circular', 'label'=>Mage::helper('adminhtml')->__('Circular')),
17
  array('value' => 'squared', 'label'=>Mage::helper('adminhtml')->__('Square')),
18
  array('value' => 'circular_bar', 'label'=>Mage::helper('adminhtml')->__('Circular with bar')),
19
  array('value' => 'square_bar', 'label'=>Mage::helper('adminhtml')->__('Square with bar')),
20
-
21
  );
22
  }
23
  }
1
  <?php
 
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
8
 
9
  class CapacityWebSolutions_Responsivebannerslider_Model_Config_Source_Paginationstyle
10
  {
11
+ public function toOptionArray() {
 
12
  return array(
13
  array('value' => 'circular', 'label'=>Mage::helper('adminhtml')->__('Circular')),
14
  array('value' => 'squared', 'label'=>Mage::helper('adminhtml')->__('Square')),
15
  array('value' => 'circular_bar', 'label'=>Mage::helper('adminhtml')->__('Circular with bar')),
16
  array('value' => 'square_bar', 'label'=>Mage::helper('adminhtml')->__('Square with bar')),
 
17
  );
18
  }
19
  }
app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Config/Source/Position.php CHANGED
@@ -1,17 +1,13 @@
1
  <?php
2
-
3
  /***************************************************************************
4
- @extension : Responsive Banner Slider Extension.
5
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
6
- ( http://www.capacitywebsolutions.com )
7
- @author : Capacity Web Solutions Pvt. Ltd.
8
- @support : magento@capacitywebsolutions.com
9
- ***************************************************************************/
10
 
11
- class CapacityWebSolutions_Responsivebannerslider_Model_Config_Source_Position
12
- {
13
- public function toOptionArray()
14
- {
15
  return array(
16
  array('value' => 'content_top', 'label'=>Mage::helper('adminhtml')->__('Content Top')),
17
  array('value' => 'content_bottom', 'label'=>Mage::helper('adminhtml')->__('Content Bottom')),
1
  <?php
 
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
8
 
9
+ class CapacityWebSolutions_Responsivebannerslider_Model_Config_Source_Position {
10
+ public function toOptionArray() {
 
 
11
  return array(
12
  array('value' => 'content_top', 'label'=>Mage::helper('adminhtml')->__('Content Top')),
13
  array('value' => 'content_bottom', 'label'=>Mage::helper('adminhtml')->__('Content Bottom')),
app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Config/Source/Status.php CHANGED
@@ -1,17 +1,13 @@
1
  <?php
2
-
3
  /***************************************************************************
4
- @extension : Responsive Banner Slider Extension.
5
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
6
- ( http://www.capacitywebsolutions.com )
7
- @author : Capacity Web Solutions Pvt. Ltd.
8
- @support : magento@capacitywebsolutions.com
9
- ***************************************************************************/
10
 
11
- class CapacityWebSolutions_Responsivebannerslider_Model_Config_Source_Status
12
- {
13
- public function toOptionArray()
14
- {
15
  return array(
16
  array('value' => 1, 'label'=>Mage::helper('adminhtml')->__('Enabled')),
17
  array('value' => 0, 'label'=>Mage::helper('adminhtml')->__('Disabled')),
1
  <?php
 
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
8
 
9
+ class CapacityWebSolutions_Responsivebannerslider_Model_Config_Source_Status {
10
+ public function toOptionArray() {
 
 
11
  return array(
12
  array('value' => 1, 'label'=>Mage::helper('adminhtml')->__('Enabled')),
13
  array('value' => 0, 'label'=>Mage::helper('adminhtml')->__('Disabled')),
app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Config/Source/Theme.php CHANGED
@@ -1,17 +1,13 @@
1
  <?php
2
-
3
  /***************************************************************************
4
- @extension : Responsive Banner Slider Extension.
5
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
6
- ( http://www.capacitywebsolutions.com )
7
- @author : Capacity Web Solutions Pvt. Ltd.
8
- @support : magento@capacitywebsolutions.com
9
- ***************************************************************************/
10
 
11
- class CapacityWebSolutions_Responsivebannerslider_Model_Config_Source_Theme
12
- {
13
- public function toOptionArray()
14
- {
15
  return array(
16
  array('value' => 'default', 'label'=>Mage::helper('adminhtml')->__('Default')),
17
  array('value' => 'blank', 'label'=>Mage::helper('adminhtml')->__('Blank')),
1
  <?php
 
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
8
 
9
+ class CapacityWebSolutions_Responsivebannerslider_Model_Config_Source_Theme {
10
+ public function toOptionArray() {
 
 
11
  return array(
12
  array('value' => 'default', 'label'=>Mage::helper('adminhtml')->__('Default')),
13
  array('value' => 'blank', 'label'=>Mage::helper('adminhtml')->__('Blank')),
app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Config/Source/Type.php CHANGED
@@ -1,22 +1,18 @@
1
  <?php
2
-
3
  /***************************************************************************
4
- @extension : Responsive Banner Slider Extension.
5
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
6
- ( http://www.capacitywebsolutions.com )
7
- @author : Capacity Web Solutions Pvt. Ltd.
8
- @support : magento@capacitywebsolutions.com
9
- ***************************************************************************/
10
-
11
  class CapacityWebSolutions_Responsivebannerslider_Model_Config_Source_Type
12
  {
13
- public function toOptionArray()
14
- {
15
  return array(
16
  array('value' => 'basic', 'label'=>Mage::helper('adminhtml')->__('Basic slider')),
17
  array('value' => 'carousel', 'label'=>Mage::helper('adminhtml')->__('Carousel')),
18
  array('value' => 'bas-caro', 'label'=>Mage::helper('adminhtml')->__('Basic slider with carousel navigation')),
19
-
20
- );
21
  }
22
  }
1
  <?php
 
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
8
+
 
9
  class CapacityWebSolutions_Responsivebannerslider_Model_Config_Source_Type
10
  {
11
+ public function toOptionArray() {
 
12
  return array(
13
  array('value' => 'basic', 'label'=>Mage::helper('adminhtml')->__('Basic slider')),
14
  array('value' => 'carousel', 'label'=>Mage::helper('adminhtml')->__('Carousel')),
15
  array('value' => 'bas-caro', 'label'=>Mage::helper('adminhtml')->__('Basic slider with carousel navigation')),
16
+ );
 
17
  }
18
  }
app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Config/Source/Urltarget.php CHANGED
@@ -1,21 +1,17 @@
1
  <?php
2
-
3
  /***************************************************************************
4
- @extension : Responsive Banner Slider Extension.
5
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
6
- ( http://www.capacitywebsolutions.com )
7
- @author : Capacity Web Solutions Pvt. Ltd.
8
- @support : magento@capacitywebsolutions.com
9
- ***************************************************************************/
10
 
11
  class CapacityWebSolutions_Responsivebannerslider_Model_Config_Source_Urltarget
12
  {
13
- public function toOptionArray()
14
- {
15
  return array(
16
  array('value' => 'same_window', 'label'=>Mage::helper('adminhtml')->__('Same Window / Tab')),
17
  array('value' => 'new_window', 'label'=>Mage::helper('adminhtml')->__('New Window / Tab')),
18
-
19
  );
20
  }
21
  }
1
  <?php
 
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
8
 
9
  class CapacityWebSolutions_Responsivebannerslider_Model_Config_Source_Urltarget
10
  {
11
+ public function toOptionArray() {
 
12
  return array(
13
  array('value' => 'same_window', 'label'=>Mage::helper('adminhtml')->__('Same Window / Tab')),
14
  array('value' => 'new_window', 'label'=>Mage::helper('adminhtml')->__('New Window / Tab')),
 
15
  );
16
  }
17
  }
app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Config/Source/Video.php CHANGED
@@ -1,22 +1,18 @@
1
  <?php
2
-
3
  /***************************************************************************
4
- @extension : Responsive Banner Slider Extension.
5
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
6
- ( http://www.capacitywebsolutions.com )
7
- @author : Capacity Web Solutions Pvt. Ltd.
8
- @support : magento@capacitywebsolutions.com
9
- ***************************************************************************/
10
 
11
  class CapacityWebSolutions_Responsivebannerslider_Model_Config_Source_Video
12
  {
13
- public function toOptionArray()
14
- {
15
  return array(
16
  array('value' => 'image', 'label'=>Mage::helper('adminhtml')->__('Image')),
17
  array('value' => 'youtube', 'label'=>Mage::helper('adminhtml')->__('Youtube Video')),
18
  array('value' => 'vimeo', 'label'=>Mage::helper('adminhtml')->__('Vimeo Video')),
19
-
20
  );
21
  }
22
  }
1
  <?php
 
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
8
 
9
  class CapacityWebSolutions_Responsivebannerslider_Model_Config_Source_Video
10
  {
11
+ public function toOptionArray() {
 
12
  return array(
13
  array('value' => 'image', 'label'=>Mage::helper('adminhtml')->__('Image')),
14
  array('value' => 'youtube', 'label'=>Mage::helper('adminhtml')->__('Youtube Video')),
15
  array('value' => 'vimeo', 'label'=>Mage::helper('adminhtml')->__('Vimeo Video')),
 
16
  );
17
  }
18
  }
app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Mysql4/Categories.php CHANGED
@@ -1,16 +1,13 @@
1
  <?php
2
  /***************************************************************************
3
- @extension : Responsive Banner Slider Extension.
4
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
5
- ( http://www.capacitywebsolutions.com )
6
- @author : Capacity Web Solutions Pvt. Ltd.
7
- @support : magento@capacitywebsolutions.com
8
- ***************************************************************************/
9
 
10
- class CapacityWebSolutions_Responsivebannerslider_Model_Mysql4_Categories extends Mage_Core_Model_Mysql4_Abstract
11
- {
12
- public function _construct()
13
- {
14
  $this->_init('responsivebannerslider/categories', 'category_id');
15
  }
16
  }
1
  <?php
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
8
 
9
+ class CapacityWebSolutions_Responsivebannerslider_Model_Mysql4_Categories extends Mage_Core_Model_Mysql4_Abstract {
10
+ public function _construct() {
 
 
11
  $this->_init('responsivebannerslider/categories', 'category_id');
12
  }
13
  }
app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Mysql4/Categories/Collection.php CHANGED
@@ -1,16 +1,13 @@
1
  <?php
2
  /***************************************************************************
3
- @extension : Responsive Banner Slider Extension.
4
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
5
- ( http://www.capacitywebsolutions.com )
6
- @author : Capacity Web Solutions Pvt. Ltd.
7
- @support : magento@capacitywebsolutions.com
8
- ***************************************************************************/
9
 
10
- class CapacityWebSolutions_Responsivebannerslider_Model_Mysql4_Categories_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
11
- {
12
- public function _construct()
13
- {
14
  parent::_construct();
15
  $this->_init('responsivebannerslider/categories');
16
  }
1
  <?php
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
8
 
9
+ class CapacityWebSolutions_Responsivebannerslider_Model_Mysql4_Categories_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract {
10
+ public function _construct() {
 
 
11
  parent::_construct();
12
  $this->_init('responsivebannerslider/categories');
13
  }
app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Mysql4/Page.php CHANGED
@@ -1,16 +1,13 @@
1
  <?php
2
  /***************************************************************************
3
- @extension : Responsive Banner Slider Extension.
4
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
5
- ( http://www.capacitywebsolutions.com )
6
- @author : Capacity Web Solutions Pvt. Ltd.
7
- @support : magento@capacitywebsolutions.com
8
- ***************************************************************************/
9
 
10
- class CapacityWebSolutions_Responsivebannerslider_Model_Mysql4_Page extends Mage_Core_Model_Mysql4_Abstract
11
- {
12
- public function _construct()
13
- {
14
  $this->_init('responsivebannerslider/page', 'page_id');
15
  }
16
  }
1
  <?php
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
8
 
9
+ class CapacityWebSolutions_Responsivebannerslider_Model_Mysql4_Page extends Mage_Core_Model_Mysql4_Abstract {
10
+ public function _construct() {
 
 
11
  $this->_init('responsivebannerslider/page', 'page_id');
12
  }
13
  }
app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Mysql4/Page/Collection.php CHANGED
@@ -1,16 +1,13 @@
1
  <?php
2
  /***************************************************************************
3
- @extension : Responsive Banner Slider Extension.
4
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
5
- ( http://www.capacitywebsolutions.com )
6
- @author : Capacity Web Solutions Pvt. Ltd.
7
- @support : magento@capacitywebsolutions.com
8
- ***************************************************************************/
9
-
10
- class CapacityWebSolutions_Responsivebannerslider_Model_Mysql4_Page_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
11
- {
12
- public function _construct()
13
- {
14
  parent::_construct();
15
  $this->_init('responsivebannerslider/page');
16
  }
1
  <?php
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
8
+
9
+ class CapacityWebSolutions_Responsivebannerslider_Model_Mysql4_Page_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract {
10
+ public function _construct() {
 
 
 
11
  parent::_construct();
12
  $this->_init('responsivebannerslider/page');
13
  }
app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Mysql4/Product.php CHANGED
@@ -1,16 +1,13 @@
1
  <?php
2
  /***************************************************************************
3
- @extension : Responsive Banner Slider Extension.
4
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
5
- ( http://www.capacitywebsolutions.com )
6
- @author : Capacity Web Solutions Pvt. Ltd.
7
- @support : magento@capacitywebsolutions.com
8
- ***************************************************************************/
9
 
10
- class CapacityWebSolutions_Responsivebannerslider_Model_Mysql4_Product extends Mage_Core_Model_Mysql4_Abstract
11
- {
12
- public function _construct()
13
- {
14
  $this->_init('responsivebannerslider/product', 'product_id');
15
  }
16
  }
1
  <?php
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
8
 
9
+ class CapacityWebSolutions_Responsivebannerslider_Model_Mysql4_Product extends Mage_Core_Model_Mysql4_Abstract {
10
+ public function _construct() {
 
 
11
  $this->_init('responsivebannerslider/product', 'product_id');
12
  }
13
  }
app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Mysql4/Product/Collection.php CHANGED
@@ -1,16 +1,13 @@
1
  <?php
2
  /***************************************************************************
3
- @extension : Responsive Banner Slider Extension.
4
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
5
- ( http://www.capacitywebsolutions.com )
6
- @author : Capacity Web Solutions Pvt. Ltd.
7
- @support : magento@capacitywebsolutions.com
8
- ***************************************************************************/
9
 
10
- class CapacityWebSolutions_Responsivebannerslider_Model_Mysql4_Product_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
11
- {
12
- public function _construct()
13
- {
14
  parent::_construct();
15
  $this->_init('responsivebannerslider/product');
16
  }
1
  <?php
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
8
 
9
+ class CapacityWebSolutions_Responsivebannerslider_Model_Mysql4_Product_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract {
10
+ public function _construct() {
 
 
11
  parent::_construct();
12
  $this->_init('responsivebannerslider/product');
13
  }
app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Mysql4/Responsivebannerslider.php CHANGED
@@ -1,16 +1,13 @@
1
  <?php
2
  /***************************************************************************
3
- @extension : Responsive Banner Slider Extension.
4
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
5
- ( http://www.capacitywebsolutions.com )
6
- @author : Capacity Web Solutions Pvt. Ltd.
7
- @support : magento@capacitywebsolutions.com
8
- ***************************************************************************/
9
 
10
- class CapacityWebSolutions_Responsivebannerslider_Model_Mysql4_Responsivebannerslider extends Mage_Core_Model_Mysql4_Abstract
11
- {
12
- public function _construct()
13
- {
14
  $this->_init('responsivebannerslider/responsivebannerslider', 'slidergroup_id');
15
  }
16
  }
1
  <?php
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
8
 
9
+ class CapacityWebSolutions_Responsivebannerslider_Model_Mysql4_Responsivebannerslider extends Mage_Core_Model_Mysql4_Abstract {
10
+ public function _construct() {
 
 
11
  $this->_init('responsivebannerslider/responsivebannerslider', 'slidergroup_id');
12
  }
13
  }
app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Mysql4/Responsivebannerslider/Collection.php CHANGED
@@ -1,21 +1,17 @@
1
  <?php
2
  /***************************************************************************
3
- @extension : Responsive Banner Slider Extension.
4
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
5
- ( http://www.capacitywebsolutions.com )
6
- @author : Capacity Web Solutions Pvt. Ltd.
7
- @support : magento@capacitywebsolutions.com
8
- ***************************************************************************/
9
 
10
- class CapacityWebSolutions_Responsivebannerslider_Model_Mysql4_Responsivebannerslider_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
11
- {
12
- public function _construct()
13
- {
14
  parent::_construct();
15
  $this->_init('responsivebannerslider/responsivebannerslider');
16
  }
17
  public function categoryFilter($category) {
18
-
19
  $this->getSelect()->join(
20
  array('category_table' => $this->getTable('responsivebannerslider/categories')),
21
  'main_table.slidergroup_id = category_table.slidergroup_id',
1
  <?php
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
8
 
9
+ class CapacityWebSolutions_Responsivebannerslider_Model_Mysql4_Responsivebannerslider_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract {
10
+ public function _construct() {
 
 
11
  parent::_construct();
12
  $this->_init('responsivebannerslider/responsivebannerslider');
13
  }
14
  public function categoryFilter($category) {
 
15
  $this->getSelect()->join(
16
  array('category_table' => $this->getTable('responsivebannerslider/categories')),
17
  'main_table.slidergroup_id = category_table.slidergroup_id',
app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Mysql4/Slide.php CHANGED
@@ -1,16 +1,13 @@
1
  <?php
2
  /***************************************************************************
3
- @extension : Responsive Banner Slider Extension.
4
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
5
- ( http://www.capacitywebsolutions.com )
6
- @author : Capacity Web Solutions Pvt. Ltd.
7
- @support : magento@capacitywebsolutions.com
8
- ***************************************************************************/
9
 
10
- class CapacityWebSolutions_Responsivebannerslider_Model_Mysql4_Slide extends Mage_Core_Model_Mysql4_Abstract
11
- {
12
- public function _construct()
13
- {
14
  $this->_init('responsivebannerslider/slide', 'slide_id');
15
  }
16
  }
1
  <?php
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
8
 
9
+ class CapacityWebSolutions_Responsivebannerslider_Model_Mysql4_Slide extends Mage_Core_Model_Mysql4_Abstract {
10
+ public function _construct() {
 
 
11
  $this->_init('responsivebannerslider/slide', 'slide_id');
12
  }
13
  }
app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Mysql4/Slide/Collection.php CHANGED
@@ -1,16 +1,13 @@
1
  <?php
2
  /***************************************************************************
3
- @extension : Responsive Banner Slider Extension.
4
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
5
- ( http://www.capacitywebsolutions.com )
6
- @author : Capacity Web Solutions Pvt. Ltd.
7
- @support : magento@capacitywebsolutions.com
8
- ***************************************************************************/
9
 
10
- class CapacityWebSolutions_Responsivebannerslider_Model_Mysql4_Slide_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
11
- {
12
- public function _construct()
13
- {
14
  parent::_construct();
15
  $this->_init('responsivebannerslider/slide');
16
  }
1
  <?php
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
8
 
9
+ class CapacityWebSolutions_Responsivebannerslider_Model_Mysql4_Slide_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract {
10
+ public function _construct() {
 
 
11
  parent::_construct();
12
  $this->_init('responsivebannerslider/slide');
13
  }
app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Mysql4/Store.php CHANGED
@@ -1,17 +1,13 @@
1
  <?php
2
  /***************************************************************************
3
- @extension : Responsive Banner Slider Extension.
4
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
5
- ( http://www.capacitywebsolutions.com )
6
- @author : Capacity Web Solutions Pvt. Ltd.
7
- @support : magento@capacitywebsolutions.com
8
- ***************************************************************************/
9
 
10
- class CapacityWebSolutions_Responsivebannerslider_Model_Mysql4_Store extends Mage_Core_Model_Mysql4_Abstract
11
- {
12
- public function _construct()
13
- {
14
  $this->_init('responsivebannerslider/store', 'store_ids');
15
  }
16
- }
17
-
1
  <?php
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
8
 
9
+ class CapacityWebSolutions_Responsivebannerslider_Model_Mysql4_Store extends Mage_Core_Model_Mysql4_Abstract {
10
+ public function _construct() {
 
 
11
  $this->_init('responsivebannerslider/store', 'store_ids');
12
  }
13
+ }
 
app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Mysql4/Store/Collection.php CHANGED
@@ -1,16 +1,13 @@
1
  <?php
2
  /***************************************************************************
3
- @extension : Responsive Banner Slider Extension.
4
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
5
- ( http://www.capacitywebsolutions.com )
6
- @author : Capacity Web Solutions Pvt. Ltd.
7
- @support : magento@capacitywebsolutions.com
8
- ***************************************************************************/
9
 
10
- class CapacityWebSolutions_Responsivebannerslider_Model_Mysql4_Store_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
11
- {
12
- public function _construct()
13
- {
14
  parent::_construct();
15
  $this->_init('responsivebannerslider/store');
16
  }
1
  <?php
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
8
 
9
+ class CapacityWebSolutions_Responsivebannerslider_Model_Mysql4_Store_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract {
10
+ public function _construct() {
 
 
11
  parent::_construct();
12
  $this->_init('responsivebannerslider/store');
13
  }
app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Observer.php CHANGED
@@ -1,91 +1,34 @@
1
  <?php
2
  /***************************************************************************
3
- @extension : Responsive Banner Slider Extension.
4
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
5
- ( http://www.capacitywebsolutions.com )
6
- @author : Capacity Web Solutions Pvt. Ltd.
7
- @support : magento@capacitywebsolutions.com
8
- ***************************************************************************/
9
 
10
- class CapacityWebSolutions_Responsivebannerslider_Model_Observer
11
- {
12
- public function prepareLayoutBefore(Varien_Event_Observer $observer)
13
- {
14
- $enabled = Mage::getStoreConfig('responsivebannerslider/general/enabled');
15
-
16
- $disable_output = Mage::getStoreConfig('advanced/modules_disable_output/CapacityWebSolutions_Responsivebannerslider');
17
-
18
- if (!$enabled) {
19
- return $this;
20
- }
21
- if ($disable_output) {
22
- return $this;
23
- }
24
-
25
- $block = $observer->getEvent()->getBlock();
26
-
27
- if ("head" == $block->getNameInLayout()) {
28
- foreach (Mage::helper('responsivebannerslider')->getFiles() as $file) {
29
- $jquery_enabled = Mage::getStoreConfig('responsivebannerslider/general/jquery');
30
- $lazy_load_jquery = Mage::getStoreConfig('responsivebannerslider/general/lazy_load_jquery');
31
-
32
- if($file=="jquery.min.js")
33
- {
34
- if($jquery_enabled){
35
- $block->addJs(Mage::helper('responsivebannerslider')->getJQueryPath($file));
36
- }
37
- }else{
38
- $block->addJs(Mage::helper('responsivebannerslider')->getJQueryPath($file));
39
- }
40
-
41
- if($lazy_load_jquery){
42
- $block->addJs('responsivebannerslider/jquery.lazy.js');
43
- }
44
-
45
- $block->addCss('css/responsivebannerslider/default.css');
46
- }
47
- }
48
-
49
- return $this;
50
- }
51
-
52
- public function adminSystemConfigChangedSection($observer)
53
- {
54
  // Resized Images //
55
 
56
  $dir = Mage::getBaseDir(Mage_Core_Model_Store::URL_TYPE_MEDIA) . DS . "responsivebannerslider" . DS . "thumbnails";
57
-
58
- if (is_dir($dir)) {
59
-
60
  foreach(glob($dir . '/*') as $file) {
61
  unlink($file);
62
  }
63
  }
64
-
65
  $path_to_image_dir = Mage::getBaseDir(Mage_Core_Model_Store::URL_TYPE_MEDIA) . DS . "responsivebannerslider";
66
-
67
- if ( $handle = opendir( $path_to_image_dir ) )
68
- {
69
- while (false !== ($file = readdir($handle)))
70
- {
71
- if ( is_file($path_to_image_dir.'/'.$file) )
72
- {
73
-
74
- $basepath = Mage::getBaseDir(Mage_Core_Model_Store::URL_TYPE_MEDIA) . DS . "responsivebannerslider" . DS . $file;
75
-
76
  $newpath = Mage::getBaseDir(Mage_Core_Model_Store::URL_TYPE_MEDIA) . DS . "responsivebannerslider" . DS . "thumbnails". DS . $file;
77
-
78
  $width = Mage::getStoreConfig('responsivebannerslider/general/thumbnail_width');
79
-
80
  if(trim($width) == "" || trim($width) < 0){
81
  $width = "200";
82
  }
83
-
84
  if ($width != '') {
85
-
86
- //if image has already resized then just return URL
87
  if (file_exists($basepath) && is_file($basepath) && !file_exists($newpath)) {
88
-
89
  $imageObj = new Varien_Image($basepath);
90
  $imageObj->constrainOnly(TRUE);
91
  $imageObj->keepAspectRatio(FALSE);
@@ -93,15 +36,10 @@ class CapacityWebSolutions_Responsivebannerslider_Model_Observer
93
  $imageObj->resize($width);
94
  $imageObj->save($newpath);
95
  }
96
-
97
- }
98
  }
99
  }
100
-
101
  closedir($handle);
102
  }
103
-
104
  }
105
-
106
-
107
  }
1
  <?php
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
8
 
9
+ class CapacityWebSolutions_Responsivebannerslider_Model_Observer {
10
+
11
+ public function adminSystemConfigChangedSection($observer){
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  // Resized Images //
13
 
14
  $dir = Mage::getBaseDir(Mage_Core_Model_Store::URL_TYPE_MEDIA) . DS . "responsivebannerslider" . DS . "thumbnails";
15
+ if (is_dir($dir)) {
 
 
16
  foreach(glob($dir . '/*') as $file) {
17
  unlink($file);
18
  }
19
  }
 
20
  $path_to_image_dir = Mage::getBaseDir(Mage_Core_Model_Store::URL_TYPE_MEDIA) . DS . "responsivebannerslider";
21
+ if ( $handle = opendir( $path_to_image_dir ) ) {
22
+ while (false !== ($file = readdir($handle))) {
23
+ if ( is_file($path_to_image_dir.'/'.$file) ) {
24
+ $basepath = Mage::getBaseDir(Mage_Core_Model_Store::URL_TYPE_MEDIA) . DS . "responsivebannerslider" . DS . $file;
 
 
 
 
 
 
25
  $newpath = Mage::getBaseDir(Mage_Core_Model_Store::URL_TYPE_MEDIA) . DS . "responsivebannerslider" . DS . "thumbnails". DS . $file;
 
26
  $width = Mage::getStoreConfig('responsivebannerslider/general/thumbnail_width');
 
27
  if(trim($width) == "" || trim($width) < 0){
28
  $width = "200";
29
  }
 
30
  if ($width != '') {
 
 
31
  if (file_exists($basepath) && is_file($basepath) && !file_exists($newpath)) {
 
32
  $imageObj = new Varien_Image($basepath);
33
  $imageObj->constrainOnly(TRUE);
34
  $imageObj->keepAspectRatio(FALSE);
36
  $imageObj->resize($width);
37
  $imageObj->save($newpath);
38
  }
39
+ }
 
40
  }
41
  }
 
42
  closedir($handle);
43
  }
 
44
  }
 
 
45
  }
app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Page.php CHANGED
@@ -1,16 +1,13 @@
1
  <?php
2
  /***************************************************************************
3
- @extension : Responsive Banner Slider Extension.
4
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
5
- ( http://www.capacitywebsolutions.com )
6
- @author : Capacity Web Solutions Pvt. Ltd.
7
- @support : magento@capacitywebsolutions.com
8
- ***************************************************************************/
9
 
10
- class CapacityWebSolutions_Responsivebannerslider_Model_Page extends Mage_Core_Model_Abstract
11
- {
12
- public function _construct()
13
- {
14
  parent::_construct();
15
  $this->_init('responsivebannerslider/page');
16
  }
1
  <?php
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
8
 
9
+ class CapacityWebSolutions_Responsivebannerslider_Model_Page extends Mage_Core_Model_Abstract {
10
+ public function _construct() {
 
 
11
  parent::_construct();
12
  $this->_init('responsivebannerslider/page');
13
  }
app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Product.php CHANGED
@@ -1,16 +1,13 @@
1
  <?php
2
  /***************************************************************************
3
- @extension : Responsive Banner Slider Extension.
4
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
5
- ( http://www.capacitywebsolutions.com )
6
- @author : Capacity Web Solutions Pvt. Ltd.
7
- @support : magento@capacitywebsolutions.com
8
- ***************************************************************************/
9
 
10
- class CapacityWebSolutions_Responsivebannerslider_Model_Product extends Mage_Core_Model_Abstract
11
- {
12
- public function _construct()
13
- {
14
  parent::_construct();
15
  $this->_init('responsivebannerslider/product');
16
  }
1
  <?php
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
8
 
9
+ class CapacityWebSolutions_Responsivebannerslider_Model_Product extends Mage_Core_Model_Abstract {
10
+ public function _construct() {
 
 
11
  parent::_construct();
12
  $this->_init('responsivebannerslider/product');
13
  }
app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Responsivebannerslider.php CHANGED
@@ -1,16 +1,13 @@
1
  <?php
2
  /***************************************************************************
3
- @extension : Responsive Banner Slider Extension.
4
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
5
- ( http://www.capacitywebsolutions.com )
6
- @author : Capacity Web Solutions Pvt. Ltd.
7
- @support : magento@capacitywebsolutions.com
8
- ***************************************************************************/
9
 
10
- class CapacityWebSolutions_Responsivebannerslider_Model_Responsivebannerslider extends Mage_Core_Model_Abstract
11
- {
12
- public function _construct()
13
- {
14
  parent::_construct();
15
  $this->_init('responsivebannerslider/responsivebannerslider');
16
  }
1
  <?php
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
8
 
9
+ class CapacityWebSolutions_Responsivebannerslider_Model_Responsivebannerslider extends Mage_Core_Model_Abstract {
10
+ public function _construct() {
 
 
11
  parent::_construct();
12
  $this->_init('responsivebannerslider/responsivebannerslider');
13
  }
app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Slide.php CHANGED
@@ -1,21 +1,17 @@
1
  <?php
2
  /***************************************************************************
3
- @extension : Responsive Banner Slider Extension.
4
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
5
- ( http://www.capacitywebsolutions.com )
6
- @author : Capacity Web Solutions Pvt. Ltd.
7
- @support : magento@capacitywebsolutions.com
8
- ***************************************************************************/
9
 
10
- class CapacityWebSolutions_Responsivebannerslider_Model_Slide extends Mage_Core_Model_Abstract
11
- {
12
- public function _construct()
13
- {
14
  parent::_construct();
15
  $this->_init('responsivebannerslider/slide');
16
  }
17
- public function validateData(Varien_Object $object)
18
- {
19
  $result = array();
20
  $fromDate = $toDate = null;
21
  if ($object->hasFromDate() && $object->hasToDate()) {
@@ -25,7 +21,6 @@ class CapacityWebSolutions_Responsivebannerslider_Model_Slide extends Mage_Core_
25
  if ($fromDate && $toDate) {
26
  $fromDate = new Zend_Date($fromDate,Varien_Date::DATETIME_INTERNAL_FORMAT);
27
  $toDate = new Zend_Date($toDate,Varien_Date::DATETIME_INTERNAL_FORMAT);
28
-
29
  if ($fromDate->compare($toDate) === 1) {
30
  $result[] = Mage::helper('responsivebannerslider')->__('End Date must be greater than Start Date.');
31
  }
1
  <?php
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
8
 
9
+ class CapacityWebSolutions_Responsivebannerslider_Model_Slide extends Mage_Core_Model_Abstract {
10
+ public function _construct() {
 
 
11
  parent::_construct();
12
  $this->_init('responsivebannerslider/slide');
13
  }
14
+ public function validateData(Varien_Object $object) {
 
15
  $result = array();
16
  $fromDate = $toDate = null;
17
  if ($object->hasFromDate() && $object->hasToDate()) {
21
  if ($fromDate && $toDate) {
22
  $fromDate = new Zend_Date($fromDate,Varien_Date::DATETIME_INTERNAL_FORMAT);
23
  $toDate = new Zend_Date($toDate,Varien_Date::DATETIME_INTERNAL_FORMAT);
 
24
  if ($fromDate->compare($toDate) === 1) {
25
  $result[] = Mage::helper('responsivebannerslider')->__('End Date must be greater than Start Date.');
26
  }
app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Status.php CHANGED
@@ -1,19 +1,15 @@
1
  <?php
2
  /***************************************************************************
3
- @extension : Responsive Banner Slider Extension.
4
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
5
- ( http://www.capacitywebsolutions.com )
6
- @author : Capacity Web Solutions Pvt. Ltd.
7
- @support : magento@capacitywebsolutions.com
8
- ***************************************************************************/
9
 
10
- class CapacityWebSolutions_Responsivebannerslider_Model_Status extends Varien_Object
11
- {
12
  const STATUS_DISABLED = 0;
13
  const STATUS_ENABLED = 1;
14
-
15
- static public function getOptionArray()
16
- {
17
  return array(
18
  array('value' => 1, 'label'=>Mage::helper('adminhtml')->__('Enabled')),
19
  array('value' => 0, 'label'=>Mage::helper('adminhtml')->__('Disabled')),
1
  <?php
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
8
 
9
+ class CapacityWebSolutions_Responsivebannerslider_Model_Status extends Varien_Object {
 
10
  const STATUS_DISABLED = 0;
11
  const STATUS_ENABLED = 1;
12
+ static public function getOptionArray() {
 
 
13
  return array(
14
  array('value' => 1, 'label'=>Mage::helper('adminhtml')->__('Enabled')),
15
  array('value' => 0, 'label'=>Mage::helper('adminhtml')->__('Disabled')),
app/code/community/CapacityWebSolutions/Responsivebannerslider/Model/Store.php CHANGED
@@ -1,16 +1,13 @@
1
  <?php
2
  /***************************************************************************
3
- @extension : Responsive Banner Slider Extension.
4
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
5
- ( http://www.capacitywebsolutions.com )
6
- @author : Capacity Web Solutions Pvt. Ltd.
7
- @support : magento@capacitywebsolutions.com
8
- ***************************************************************************/
9
 
10
- class CapacityWebSolutions_Responsivebannerslider_Model_Store extends Mage_Core_Model_Abstract
11
- {
12
- public function _construct()
13
- {
14
  parent::_construct();
15
  $this->_init('responsivebannerslider/store');
16
  }
1
  <?php
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
8
 
9
+ class CapacityWebSolutions_Responsivebannerslider_Model_Store extends Mage_Core_Model_Abstract {
10
+ public function _construct() {
 
 
11
  parent::_construct();
12
  $this->_init('responsivebannerslider/store');
13
  }
app/code/community/CapacityWebSolutions/Responsivebannerslider/controllers/Adminhtml/SliderController.php CHANGED
@@ -1,16 +1,12 @@
1
  <?php
2
-
3
  /***************************************************************************
4
- @extension : Responsive Banner Slider Extension.
5
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
6
- ( http://www.capacitywebsolutions.com )
7
- @author : Capacity Web Solutions Pvt. Ltd.
8
- @support : magento@capacitywebsolutions.com
9
- ***************************************************************************/
10
-
11
 
12
- class CapacityWebSolutions_Responsivebannerslider_Adminhtml_SliderController extends Mage_Adminhtml_Controller_Action
13
- {
14
 
15
  protected function _initAction() {
16
  $this->loadLayout()
@@ -19,52 +15,38 @@ class CapacityWebSolutions_Responsivebannerslider_Adminhtml_SliderController ext
19
 
20
  return $this;
21
  }
22
-
23
- public function indexAction() {
24
  $this->_initAction()
25
  ->renderLayout();
26
  }
27
-
28
  public function editAction() {
29
  $id = $this->getRequest()->getParam('id');
30
  $model = Mage::getModel('responsivebannerslider/slide')->load($id);
31
-
32
  if ($model->getId() || $id == 0) {
33
  $data = Mage::getSingleton('adminhtml/session')->getFormData(true);
34
  if (!empty($data)) {
35
  $model->setData($data);
36
  }
37
-
38
  Mage::register('slider_data', $model);
39
-
40
  $this->loadLayout();
41
  $this->_setActiveMenu('cws');
42
-
43
  $this->_addBreadcrumb(Mage::helper('adminhtml')->__('Responsive Banner Slider Manager'), Mage::helper('adminhtml')->__('Responsive Banner Slider Manager'));
44
-
45
  $this->getLayout()->getBlock('head')->setCanLoadExtJs(true);
46
-
47
  $this->_addContent($this->getLayout()->createBlock('responsivebannerslider/adminhtml_slider_edit'))
48
  ->_addLeft($this->getLayout()->createBlock('responsivebannerslider/adminhtml_slider_edit_tabs'));
49
-
50
  $this->renderLayout();
51
  } else {
52
  Mage::getSingleton('adminhtml/session')->addError(Mage::helper('responsivebannerslider')->__('Slider does not exist'));
53
  $this->_redirect('*/*/');
54
  }
55
  }
56
-
57
- public function newAction() {
58
  $this->_forward('edit');
59
  }
60
-
61
- public function saveAction() {
62
  if ($data = $this->getRequest()->getPost()) {
63
-
64
  if(isset($_FILES['filename']['name']) && $_FILES['filename']['name'] != '') {
65
-
66
  try {
67
-
68
  $uploader = new Varien_File_Uploader('filename');
69
  $uploader->setAllowedExtensions(array('jpg','jpeg','gif','png'));
70
  $uploader->setAllowRenameFiles(false);
@@ -74,51 +56,33 @@ class CapacityWebSolutions_Responsivebannerslider_Adminhtml_SliderController ext
74
  $path_parts = pathinfo($filenames);
75
  $filename = $path_parts['filename'].'_'.time().'.'.$path_parts['extension'];
76
  $uploader->save($path, $filename );
77
-
78
  Mage::helper('responsivebannerslider/data')->resizeImg($filename);
79
-
80
- } catch (Exception $e) {
81
-
82
- }
83
-
84
- $data['filename'] = $filename;
85
-
86
  }else {
87
-
88
  if (isset($data['filename']['delete']) && $data['filename']['delete'] == 1) {
89
-
90
  $path =str_replace("responsivebannerslider/","",$data['filename']['value']);
91
  $img_filename = Mage::getBaseDir('media') . DS . "responsivebannerslider" . DS . $path;
92
  if (file_exists($img_filename)) {
93
  unlink($img_filename);
94
  }
95
-
96
  $img_file = Mage::getBaseDir('media') . DS . "responsivebannerslider" . DS . "thumbnails" . DS . $path;
97
  if (file_exists($img_file)) {
98
  unlink($img_file);
99
  }
100
-
101
  $data['filename'] = '';
102
-
103
  }else {
104
  unset($data['filename']);
105
  }
106
-
107
  }
108
-
109
- $model = Mage::getModel('responsivebannerslider/slide');
110
-
111
  $model->setData($data)
112
  ->setId($this->getRequest()->getParam('id'));
113
-
114
  try {
115
-
116
  $group_label ='';
117
-
118
  for($i=0;$i<count($data['group_names']);$i++) {
119
  if($i < count($data['group_names'])-1){
120
  $group_label .= $data['group_names'][$i].",";
121
-
122
  }else{
123
  $group_label .= $data['group_names'][$i];
124
  }
@@ -132,14 +96,10 @@ class CapacityWebSolutions_Responsivebannerslider_Adminhtml_SliderController ext
132
  $this->_redirect('*/*/edit', array('id' => $model->getId()));
133
  return;
134
  }
135
-
136
  $model->setData("group_names",$group_label);
137
-
138
  $model->save();
139
-
140
  Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('responsivebannerslider')->__('Slide was successfully saved'));
141
  Mage::getSingleton('adminhtml/session')->setFormData(false);
142
-
143
  if ($this->getRequest()->getParam('back')) {
144
  $this->_redirect('*/*/edit', array('id' => $model->getId()));
145
  return;
@@ -161,23 +121,18 @@ class CapacityWebSolutions_Responsivebannerslider_Adminhtml_SliderController ext
161
  if( $this->getRequest()->getParam('id') > 0 ) {
162
  try {
163
  $model = Mage::getModel('responsivebannerslider/slide');
164
-
165
  $imgdata = $model->load($this->getRequest()->getParam('id'));
166
  if($imgdata['filename']) {
167
  $img_list_filename = Mage::getBaseDir('media') . DS . "responsivebannerslider" . DS . $imgdata['filename'];
168
  if (file_exists($img_list_filename)) {
169
  unlink($img_list_filename);
170
  }
171
-
172
  $img_file = Mage::getBaseDir('media') . DS . "responsivebannerslider" . DS . "thumbnails" . DS . $imgdata['filename'];
173
  if (file_exists($img_file)) {
174
  unlink($img_file);
175
  }
176
  }
177
-
178
- $model->setId($this->getRequest()->getParam('id'))
179
- ->delete();
180
-
181
  Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('adminhtml')->__('Slides was successfully deleted'));
182
  $this->_redirect('*/*/');
183
  } catch (Exception $e) {
@@ -196,25 +151,20 @@ class CapacityWebSolutions_Responsivebannerslider_Adminhtml_SliderController ext
196
  try {
197
  foreach ($webIds as $webId) {
198
  $responsivebannerslider_group = Mage::getModel('responsivebannerslider/slide')->load($webId);
199
-
200
  if($responsivebannerslider_group['filename']) {
201
  $img_list_filename = Mage::getBaseDir('media') . DS . "responsivebannerslider" . DS . $responsivebannerslider_group['filename'];
202
  if (file_exists($img_list_filename)) {
203
  unlink($img_list_filename);
204
  }
205
-
206
-
207
  $img_file = Mage::getBaseDir('media') . DS . "responsivebannerslider" . DS . "thumbnails" .DS . $responsivebannerslider_group['filename'];
208
  if (file_exists($img_file)) {
209
  unlink($img_file);
210
  }
211
-
212
  }
213
-
214
- $responsivebannerslider_group->delete();
215
  }
216
  Mage::getSingleton('adminhtml/session')->addSuccess(
217
- Mage::helper('adminhtml')->__(
218
  'Total of %d record(s) were successfully deleted', count($webIds)
219
  )
220
  );
@@ -225,22 +175,19 @@ class CapacityWebSolutions_Responsivebannerslider_Adminhtml_SliderController ext
225
  $this->_redirect('*/*/index');
226
  }
227
 
228
- public function massStatusAction()
229
- {
230
  $webIds = $this->getRequest()->getParam('responsivebannerslider_slide');
231
  if(!is_array($webIds)) {
232
  Mage::getSingleton('adminhtml/session')->addError($this->__('Please select item(s)'));
233
  } else {
234
  try {
235
  foreach ($webIds as $webId) {
236
-
237
- $responsivebannerslider_group = Mage::getSingleton('responsivebannerslider/slide')
238
  ->load($webId)
239
  ->setStatuss($this->getRequest()->getParam('statuss'))
240
  ->setIsMassupdate(true)
241
  ->save();
242
  }
243
-
244
  $this->_getSession()->addSuccess(
245
  $this->__('Total of %d record(s) were successfully updated', count($webIds))
246
  );
@@ -250,14 +197,14 @@ class CapacityWebSolutions_Responsivebannerslider_Adminhtml_SliderController ext
250
  }
251
  $this->_redirect('*/*/index');
252
  }
253
-
254
-
255
- public function gridAction()
256
- {
257
  $this->loadLayout();
258
  $this->getResponse()->setBody(
259
  $this->getLayout()->createBlock('responsivebannerslider/adminhtml_slider_grid')->toHtml()
260
  );
261
  }
262
-
 
 
 
263
  }
1
  <?php
 
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
 
8
 
9
+ class CapacityWebSolutions_Responsivebannerslider_Adminhtml_SliderController extends Mage_Adminhtml_Controller_Action {
 
10
 
11
  protected function _initAction() {
12
  $this->loadLayout()
15
 
16
  return $this;
17
  }
18
+ public function indexAction() {
 
19
  $this->_initAction()
20
  ->renderLayout();
21
  }
 
22
  public function editAction() {
23
  $id = $this->getRequest()->getParam('id');
24
  $model = Mage::getModel('responsivebannerslider/slide')->load($id);
 
25
  if ($model->getId() || $id == 0) {
26
  $data = Mage::getSingleton('adminhtml/session')->getFormData(true);
27
  if (!empty($data)) {
28
  $model->setData($data);
29
  }
 
30
  Mage::register('slider_data', $model);
 
31
  $this->loadLayout();
32
  $this->_setActiveMenu('cws');
 
33
  $this->_addBreadcrumb(Mage::helper('adminhtml')->__('Responsive Banner Slider Manager'), Mage::helper('adminhtml')->__('Responsive Banner Slider Manager'));
 
34
  $this->getLayout()->getBlock('head')->setCanLoadExtJs(true);
 
35
  $this->_addContent($this->getLayout()->createBlock('responsivebannerslider/adminhtml_slider_edit'))
36
  ->_addLeft($this->getLayout()->createBlock('responsivebannerslider/adminhtml_slider_edit_tabs'));
 
37
  $this->renderLayout();
38
  } else {
39
  Mage::getSingleton('adminhtml/session')->addError(Mage::helper('responsivebannerslider')->__('Slider does not exist'));
40
  $this->_redirect('*/*/');
41
  }
42
  }
43
+ public function newAction() {
 
44
  $this->_forward('edit');
45
  }
46
+ public function saveAction() {
 
47
  if ($data = $this->getRequest()->getPost()) {
 
48
  if(isset($_FILES['filename']['name']) && $_FILES['filename']['name'] != '') {
 
49
  try {
 
50
  $uploader = new Varien_File_Uploader('filename');
51
  $uploader->setAllowedExtensions(array('jpg','jpeg','gif','png'));
52
  $uploader->setAllowRenameFiles(false);
56
  $path_parts = pathinfo($filenames);
57
  $filename = $path_parts['filename'].'_'.time().'.'.$path_parts['extension'];
58
  $uploader->save($path, $filename );
 
59
  Mage::helper('responsivebannerslider/data')->resizeImg($filename);
60
+ } catch (Exception $e) { }
61
+ $data['filename'] = $filename;
 
 
 
 
 
62
  }else {
 
63
  if (isset($data['filename']['delete']) && $data['filename']['delete'] == 1) {
 
64
  $path =str_replace("responsivebannerslider/","",$data['filename']['value']);
65
  $img_filename = Mage::getBaseDir('media') . DS . "responsivebannerslider" . DS . $path;
66
  if (file_exists($img_filename)) {
67
  unlink($img_filename);
68
  }
 
69
  $img_file = Mage::getBaseDir('media') . DS . "responsivebannerslider" . DS . "thumbnails" . DS . $path;
70
  if (file_exists($img_file)) {
71
  unlink($img_file);
72
  }
 
73
  $data['filename'] = '';
 
74
  }else {
75
  unset($data['filename']);
76
  }
 
77
  }
78
+ $model = Mage::getModel('responsivebannerslider/slide');
 
 
79
  $model->setData($data)
80
  ->setId($this->getRequest()->getParam('id'));
 
81
  try {
 
82
  $group_label ='';
 
83
  for($i=0;$i<count($data['group_names']);$i++) {
84
  if($i < count($data['group_names'])-1){
85
  $group_label .= $data['group_names'][$i].",";
 
86
  }else{
87
  $group_label .= $data['group_names'][$i];
88
  }
96
  $this->_redirect('*/*/edit', array('id' => $model->getId()));
97
  return;
98
  }
 
99
  $model->setData("group_names",$group_label);
 
100
  $model->save();
 
101
  Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('responsivebannerslider')->__('Slide was successfully saved'));
102
  Mage::getSingleton('adminhtml/session')->setFormData(false);
 
103
  if ($this->getRequest()->getParam('back')) {
104
  $this->_redirect('*/*/edit', array('id' => $model->getId()));
105
  return;
121
  if( $this->getRequest()->getParam('id') > 0 ) {
122
  try {
123
  $model = Mage::getModel('responsivebannerslider/slide');
 
124
  $imgdata = $model->load($this->getRequest()->getParam('id'));
125
  if($imgdata['filename']) {
126
  $img_list_filename = Mage::getBaseDir('media') . DS . "responsivebannerslider" . DS . $imgdata['filename'];
127
  if (file_exists($img_list_filename)) {
128
  unlink($img_list_filename);
129
  }
 
130
  $img_file = Mage::getBaseDir('media') . DS . "responsivebannerslider" . DS . "thumbnails" . DS . $imgdata['filename'];
131
  if (file_exists($img_file)) {
132
  unlink($img_file);
133
  }
134
  }
135
+ $model->setId($this->getRequest()->getParam('id'))->delete();
 
 
 
136
  Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('adminhtml')->__('Slides was successfully deleted'));
137
  $this->_redirect('*/*/');
138
  } catch (Exception $e) {
151
  try {
152
  foreach ($webIds as $webId) {
153
  $responsivebannerslider_group = Mage::getModel('responsivebannerslider/slide')->load($webId);
 
154
  if($responsivebannerslider_group['filename']) {
155
  $img_list_filename = Mage::getBaseDir('media') . DS . "responsivebannerslider" . DS . $responsivebannerslider_group['filename'];
156
  if (file_exists($img_list_filename)) {
157
  unlink($img_list_filename);
158
  }
 
 
159
  $img_file = Mage::getBaseDir('media') . DS . "responsivebannerslider" . DS . "thumbnails" .DS . $responsivebannerslider_group['filename'];
160
  if (file_exists($img_file)) {
161
  unlink($img_file);
162
  }
 
163
  }
164
+ $responsivebannerslider_group->delete();
 
165
  }
166
  Mage::getSingleton('adminhtml/session')->addSuccess(
167
+ Mage::helper('adminhtml')->__(
168
  'Total of %d record(s) were successfully deleted', count($webIds)
169
  )
170
  );
175
  $this->_redirect('*/*/index');
176
  }
177
 
178
+ public function massStatusAction() {
 
179
  $webIds = $this->getRequest()->getParam('responsivebannerslider_slide');
180
  if(!is_array($webIds)) {
181
  Mage::getSingleton('adminhtml/session')->addError($this->__('Please select item(s)'));
182
  } else {
183
  try {
184
  foreach ($webIds as $webId) {
185
+ $responsivebannerslider_group = Mage::getSingleton('responsivebannerslider/slide')
 
186
  ->load($webId)
187
  ->setStatuss($this->getRequest()->getParam('statuss'))
188
  ->setIsMassupdate(true)
189
  ->save();
190
  }
 
191
  $this->_getSession()->addSuccess(
192
  $this->__('Total of %d record(s) were successfully updated', count($webIds))
193
  );
197
  }
198
  $this->_redirect('*/*/index');
199
  }
200
+ public function gridAction() {
 
 
 
201
  $this->loadLayout();
202
  $this->getResponse()->setBody(
203
  $this->getLayout()->createBlock('responsivebannerslider/adminhtml_slider_grid')->toHtml()
204
  );
205
  }
206
+
207
+ public function _isAllowed() {
208
+ return true;
209
+ }
210
  }
app/code/community/CapacityWebSolutions/Responsivebannerslider/controllers/Adminhtml/SlidergroupController.php CHANGED
@@ -1,11 +1,10 @@
1
  <?php
2
  /***************************************************************************
3
- @extension : Responsive Banner Slider Extension.
4
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
5
- ( http://www.capacitywebsolutions.com )
6
- @author : Capacity Web Solutions Pvt. Ltd.
7
- @support : magento@capacitywebsolutions.com
8
- ***************************************************************************/
9
 
10
  class CapacityWebSolutions_Responsivebannerslider_Adminhtml_SlidergroupController extends Mage_Adminhtml_Controller_Action {
11
 
@@ -13,7 +12,6 @@ class CapacityWebSolutions_Responsivebannerslider_Adminhtml_SlidergroupControlle
13
  $this->loadLayout()
14
  ->_setActiveMenu('cws')
15
  ->_addBreadcrumb(Mage::helper('adminhtml')->__('Responsive Banner Slider'), Mage::helper('adminhtml')->__('Responsive Banner Slider'));
16
-
17
  return $this;
18
  }
19
 
@@ -22,37 +20,27 @@ class CapacityWebSolutions_Responsivebannerslider_Adminhtml_SlidergroupControlle
22
  ->renderLayout();
23
  }
24
 
25
- public function gridAction()
26
- {
27
  $this->loadLayout();
28
  $this->getResponse()->setBody(
29
  $this->getLayout()->createBlock('responsivebannerslider/adminhtml_slidergroup_grid')->toHtml()
30
  );
31
  }
32
-
33
-
34
- public function editAction() {
35
  $id = $this->getRequest()->getParam('id');
36
  $model = Mage::getModel('responsivebannerslider/responsivebannerslider')->load($id);
37
-
38
  if ($model->getId() || $id == 0) {
39
  $data = Mage::getSingleton('adminhtml/session')->getFormData(true);
40
  if (!empty($data)) {
41
  $model->setData($data);
42
  }
43
-
44
  Mage::register('slidergroup_data', $model);
45
-
46
  $this->loadLayout();
47
  $this->_setActiveMenu('cws');
48
-
49
  $this->_addBreadcrumb(Mage::helper('adminhtml')->__('Slider Group Manager'), Mage::helper('adminhtml')->__('Slider Group Manager'));
50
-
51
  $this->getLayout()->getBlock('head')->setCanLoadExtJs(true);
52
-
53
  $this->_addContent($this->getLayout()->createBlock('responsivebannerslider/adminhtml_slidergroup_edit'))
54
  ->_addLeft($this->getLayout()->createBlock('responsivebannerslider/adminhtml_slidergroup_edit_tabs'));
55
-
56
  $this->renderLayout();
57
  } else {
58
  Mage::getSingleton('adminhtml/session')->addError(Mage::helper('responsivebannerslider')->__('Item does not exist'));
@@ -66,26 +54,21 @@ class CapacityWebSolutions_Responsivebannerslider_Adminhtml_SlidergroupControlle
66
 
67
  public function saveAction() {
68
  if ($data = $this->getRequest()->getPost()) {
69
-
70
  $dataid = $this->getRequest()->getParam('id');
71
-
72
  if (isset($data['category_ids'])) {
73
  $data['category_ids'] = explode(',',$data['category_ids']);
74
  if (is_array($data['category_ids'])) {
75
  $data['category_ids'] = array_unique($data['category_ids']);
76
  }
77
  }
78
-
79
  if (isset($data['product_sku'])) {
80
  $data['product_sku'] = explode(', ',$data['product_sku']);
81
  if (is_array($data['product_sku'])) {
82
  $data['product_sku'] = array_unique($data['product_sku']);
83
  }
84
  }
85
-
86
- $model = Mage::getModel('responsivebannerslider/responsivebannerslider');
87
- $model->setData($data)
88
- ->setId($this->getRequest()->getParam('id'));
89
 
90
  try {
91
  if ($model->getCreatedTime == NULL || $model->getUpdateTime() == NULL) {
@@ -94,9 +77,7 @@ class CapacityWebSolutions_Responsivebannerslider_Adminhtml_SlidergroupControlle
94
  } else {
95
  $model->setUpdateTime(now());
96
  }
97
-
98
  $model->save();
99
-
100
  $store_model = Mage::getModel('responsivebannerslider/store');
101
  if($dataid != "") {
102
  $store_data = $store_model->getCollection()
@@ -109,16 +90,13 @@ class CapacityWebSolutions_Responsivebannerslider_Adminhtml_SlidergroupControlle
109
  $store_model->setData($data_store);
110
  $store_model->save();
111
  }
112
-
113
  $page_model = Mage::getModel('responsivebannerslider/page');
114
  if($dataid != "") {
115
  $page_data = $page_model->getCollection()
116
  ->addFieldToFilter('slidergroup_id',$dataid);
117
  $page_data->walk('delete');
118
  }
119
-
120
- $cmspages = $model->getData('pages');
121
-
122
  if(isset($cmspages)) {
123
  if(count($model->getData('pages') > 0)) {
124
  foreach($model->getData('pages') as $pages) {
@@ -127,7 +105,6 @@ class CapacityWebSolutions_Responsivebannerslider_Adminhtml_SlidergroupControlle
127
  $page_model->setData($data_page);
128
  $page_model->save();
129
  }
130
-
131
  }
132
  }
133
  $cate_model = Mage::getModel('responsivebannerslider/categories');
@@ -144,7 +121,6 @@ class CapacityWebSolutions_Responsivebannerslider_Adminhtml_SlidergroupControlle
144
  $cate_model->save();
145
  }
146
  }
147
-
148
  $product_model = Mage::getModel('responsivebannerslider/product');
149
  if($dataid != "") {
150
  $prd_data = $product_model->getCollection()
@@ -154,7 +130,6 @@ class CapacityWebSolutions_Responsivebannerslider_Adminhtml_SlidergroupControlle
154
  foreach($model->getData('product_sku') as $product) {
155
  $data_prd['slidergroup_id'] = $model->getData('slidergroup_id');
156
  $data_prd['product_sku'] = $product;
157
-
158
  $product_model->setData($data_prd);
159
  $product_model->save();
160
  }
@@ -171,10 +146,8 @@ class CapacityWebSolutions_Responsivebannerslider_Adminhtml_SlidergroupControlle
171
  $path .= "group-".$group_id.".css";
172
  $css = $this->get_menu_css($group_id);
173
  file_put_contents($path,$css);
174
-
175
  Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('responsivebannerslider')->__('Group was successfully saved'));
176
  Mage::getSingleton('adminhtml/session')->setFormData(false);
177
-
178
  if ($this->getRequest()->getParam('back')) {
179
  $this->_redirect('*/*/edit', array('id' => $model->getId()));
180
  return;
@@ -194,39 +167,30 @@ class CapacityWebSolutions_Responsivebannerslider_Adminhtml_SlidergroupControlle
194
 
195
  public function deleteAction() {
196
  if( $this->getRequest()->getParam('id') > 0 ) {
197
-
198
  $slide_collection = Mage::getModel('responsivebannerslider/slide')->getCollection();
199
  $current_groupid = $this->getRequest()->getParam('id');
200
  $slide_collection->addFieldToFilter('group_names', array(array('finset' => $current_groupid)));
201
-
202
  if(count($slide_collection->getData()) <= 0){
203
  try {
204
  $model = Mage::getModel('responsivebannerslider/responsivebannerslider');
205
-
206
- $model->setId($this->getRequest()->getParam('id'))
207
- ->delete();
208
  $dataid = $this->getRequest()->getParam('id');
209
-
210
  $store_model = Mage::getModel('responsivebannerslider/store');
211
  $store_data = $store_model->getCollection()
212
  ->addFieldToFilter('slidergroup_id',$dataid);
213
  $store_data->walk('delete');
214
-
215
  $page_model = Mage::getModel('responsivebannerslider/page');
216
  $page_data = $page_model->getCollection()
217
  ->addFieldToFilter('slidergroup_id',$dataid);
218
  $page_data->walk('delete');
219
-
220
  $cate_model = Mage::getModel('responsivebannerslider/categories');
221
  $cate_data = $cate_model->getCollection()
222
  ->addFieldToFilter('slidergroup_id',$dataid);
223
  $cate_data->walk('delete');
224
-
225
  $product_model = Mage::getModel('responsivebannerslider/product');
226
  $prd_data = $product_model->getCollection()
227
  ->addFieldToFilter('slidergroup_id',$dataid);
228
  $prd_data->walk('delete');
229
-
230
  Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('adminhtml')->__('Group was successfully deleted'));
231
  $this->_redirect('*/*/');
232
  } catch (Exception $e) {
@@ -237,11 +201,10 @@ class CapacityWebSolutions_Responsivebannerslider_Adminhtml_SlidergroupControlle
237
  Mage::getSingleton('adminhtml/session')->addError("Please Remove Assigned slider form the selected group before delete group.");
238
  $this->_redirect('*/*/edit', array('id' => $this->getRequest()->getParam('id')));
239
  }
240
-
241
  }
242
  $this->_redirect('*/*/');
243
  }
244
-
245
  public function massDeleteAction() {
246
  $webIds = $this->getRequest()->getParam('responsivebannerslider_group');
247
  if(!is_array($webIds)) {
@@ -250,47 +213,34 @@ class CapacityWebSolutions_Responsivebannerslider_Adminhtml_SlidergroupControlle
250
  try {
251
  foreach ($webIds as $webId) {
252
  $responsivebannerslider_group = Mage::getModel('responsivebannerslider/responsivebannerslider')->load($webId);
253
-
254
- $slide_collection = Mage::getModel('responsivebannerslider/slide')->getCollection();
255
  $slide_collection->addFieldToFilter('group_names', array(array('finset' => $webId)));
256
-
257
  if(count($slide_collection->getData()) <= 0){
258
-
259
  $responsivebannerslider_group->delete();
260
-
261
  $store_model = Mage::getModel('responsivebannerslider/store');
262
  $store_data = $store_model->getCollection()
263
  ->addFieldToFilter('slidergroup_id',$webId);
264
  $store_data->walk('delete');
265
-
266
  $page_model = Mage::getModel('responsivebannerslider/page');
267
  $page_data = $page_model->getCollection()
268
  ->addFieldToFilter('slidergroup_id',$webId);
269
  $page_data->walk('delete');
270
-
271
-
272
  $cate_model = Mage::getModel('responsivebannerslider/categories');
273
  $cate_data = $cate_model->getCollection()
274
  ->addFieldToFilter('slidergroup_id',$webId);
275
  $cate_data->walk('delete');
276
-
277
  $product_model = Mage::getModel('responsivebannerslider/product');
278
  $prd_data = $product_model->getCollection()
279
  ->addFieldToFilter('slidergroup_id',$webId);
280
  $prd_data->walk('delete');
281
-
282
  $groupname = $responsivebannerslider_group->getData('title');
283
  Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('adminhtml')->__(''.$groupname.' Group was successfully deleted'));
284
  }else{
285
-
286
  $groupname = $responsivebannerslider_group->getData('title');
287
  Mage::getSingleton('adminhtml/session')->addError("Please Remove Assigned slider form the selected ".$groupname." group before delete ".$groupname." group.");
288
-
289
  }
290
-
291
- }
292
-
293
- } catch (Exception $e) {
294
  Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
295
  }
296
  }
@@ -334,11 +284,9 @@ class CapacityWebSolutions_Responsivebannerslider_Adminhtml_SlidergroupControlle
334
  );
335
  }
336
  protected function _initcategory(){
337
-
338
  $categoryId = $this->getRequest()->getParam('id');
339
  $category = Mage::getModel('responsivebannerslider/responsivebannerslider');
340
-
341
- if ($categoryId) {
342
  $category->load($categoryId);
343
  }
344
  Mage::register('slidergroup_data', $category);
@@ -347,7 +295,6 @@ class CapacityWebSolutions_Responsivebannerslider_Adminhtml_SlidergroupControlle
347
 
348
  public function get_menu_css($group_id){
349
  $groupdata = Mage::getModel("responsivebannerslider/responsivebannerslider")->load($group_id);
350
-
351
  $max_width = $groupdata->getMaxWidth();
352
  $content_background = $groupdata->getContentBackground();
353
  $content_opacity = $groupdata->getContentOpacity();
@@ -356,7 +303,6 @@ class CapacityWebSolutions_Responsivebannerslider_Adminhtml_SlidergroupControlle
356
  $pagination_active_color = $groupdata->getPaginationActive();
357
  $pagination_bar = $groupdata->getPaginationBar();
358
  $thumbnail_size = $groupdata->getThumbnailSize();
359
-
360
  if ($max_width > 0) {
361
  $max_width = $groupdata->getMaxWidth().'px';
362
  } else {
@@ -375,7 +321,8 @@ class CapacityWebSolutions_Responsivebannerslider_Adminhtml_SlidergroupControlle
375
  return $css;
376
  }
377
 
378
-
379
-
380
-
 
381
  }
1
  <?php
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
8
 
9
  class CapacityWebSolutions_Responsivebannerslider_Adminhtml_SlidergroupController extends Mage_Adminhtml_Controller_Action {
10
 
12
  $this->loadLayout()
13
  ->_setActiveMenu('cws')
14
  ->_addBreadcrumb(Mage::helper('adminhtml')->__('Responsive Banner Slider'), Mage::helper('adminhtml')->__('Responsive Banner Slider'));
 
15
  return $this;
16
  }
17
 
20
  ->renderLayout();
21
  }
22
 
23
+ public function gridAction() {
 
24
  $this->loadLayout();
25
  $this->getResponse()->setBody(
26
  $this->getLayout()->createBlock('responsivebannerslider/adminhtml_slidergroup_grid')->toHtml()
27
  );
28
  }
29
+ public function editAction() {
 
 
30
  $id = $this->getRequest()->getParam('id');
31
  $model = Mage::getModel('responsivebannerslider/responsivebannerslider')->load($id);
 
32
  if ($model->getId() || $id == 0) {
33
  $data = Mage::getSingleton('adminhtml/session')->getFormData(true);
34
  if (!empty($data)) {
35
  $model->setData($data);
36
  }
 
37
  Mage::register('slidergroup_data', $model);
 
38
  $this->loadLayout();
39
  $this->_setActiveMenu('cws');
 
40
  $this->_addBreadcrumb(Mage::helper('adminhtml')->__('Slider Group Manager'), Mage::helper('adminhtml')->__('Slider Group Manager'));
 
41
  $this->getLayout()->getBlock('head')->setCanLoadExtJs(true);
 
42
  $this->_addContent($this->getLayout()->createBlock('responsivebannerslider/adminhtml_slidergroup_edit'))
43
  ->_addLeft($this->getLayout()->createBlock('responsivebannerslider/adminhtml_slidergroup_edit_tabs'));
 
44
  $this->renderLayout();
45
  } else {
46
  Mage::getSingleton('adminhtml/session')->addError(Mage::helper('responsivebannerslider')->__('Item does not exist'));
54
 
55
  public function saveAction() {
56
  if ($data = $this->getRequest()->getPost()) {
 
57
  $dataid = $this->getRequest()->getParam('id');
 
58
  if (isset($data['category_ids'])) {
59
  $data['category_ids'] = explode(',',$data['category_ids']);
60
  if (is_array($data['category_ids'])) {
61
  $data['category_ids'] = array_unique($data['category_ids']);
62
  }
63
  }
 
64
  if (isset($data['product_sku'])) {
65
  $data['product_sku'] = explode(', ',$data['product_sku']);
66
  if (is_array($data['product_sku'])) {
67
  $data['product_sku'] = array_unique($data['product_sku']);
68
  }
69
  }
70
+ $model = Mage::getModel('responsivebannerslider/responsivebannerslider');
71
+ $model->setData($data)->setId($this->getRequest()->getParam('id'));
 
 
72
 
73
  try {
74
  if ($model->getCreatedTime == NULL || $model->getUpdateTime() == NULL) {
77
  } else {
78
  $model->setUpdateTime(now());
79
  }
 
80
  $model->save();
 
81
  $store_model = Mage::getModel('responsivebannerslider/store');
82
  if($dataid != "") {
83
  $store_data = $store_model->getCollection()
90
  $store_model->setData($data_store);
91
  $store_model->save();
92
  }
 
93
  $page_model = Mage::getModel('responsivebannerslider/page');
94
  if($dataid != "") {
95
  $page_data = $page_model->getCollection()
96
  ->addFieldToFilter('slidergroup_id',$dataid);
97
  $page_data->walk('delete');
98
  }
99
+ $cmspages = $model->getData('pages');
 
 
100
  if(isset($cmspages)) {
101
  if(count($model->getData('pages') > 0)) {
102
  foreach($model->getData('pages') as $pages) {
105
  $page_model->setData($data_page);
106
  $page_model->save();
107
  }
 
108
  }
109
  }
110
  $cate_model = Mage::getModel('responsivebannerslider/categories');
121
  $cate_model->save();
122
  }
123
  }
 
124
  $product_model = Mage::getModel('responsivebannerslider/product');
125
  if($dataid != "") {
126
  $prd_data = $product_model->getCollection()
130
  foreach($model->getData('product_sku') as $product) {
131
  $data_prd['slidergroup_id'] = $model->getData('slidergroup_id');
132
  $data_prd['product_sku'] = $product;
 
133
  $product_model->setData($data_prd);
134
  $product_model->save();
135
  }
146
  $path .= "group-".$group_id.".css";
147
  $css = $this->get_menu_css($group_id);
148
  file_put_contents($path,$css);
 
149
  Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('responsivebannerslider')->__('Group was successfully saved'));
150
  Mage::getSingleton('adminhtml/session')->setFormData(false);
 
151
  if ($this->getRequest()->getParam('back')) {
152
  $this->_redirect('*/*/edit', array('id' => $model->getId()));
153
  return;
167
 
168
  public function deleteAction() {
169
  if( $this->getRequest()->getParam('id') > 0 ) {
 
170
  $slide_collection = Mage::getModel('responsivebannerslider/slide')->getCollection();
171
  $current_groupid = $this->getRequest()->getParam('id');
172
  $slide_collection->addFieldToFilter('group_names', array(array('finset' => $current_groupid)));
 
173
  if(count($slide_collection->getData()) <= 0){
174
  try {
175
  $model = Mage::getModel('responsivebannerslider/responsivebannerslider');
176
+ $model->setId($this->getRequest()->getParam('id'))->delete();
 
 
177
  $dataid = $this->getRequest()->getParam('id');
 
178
  $store_model = Mage::getModel('responsivebannerslider/store');
179
  $store_data = $store_model->getCollection()
180
  ->addFieldToFilter('slidergroup_id',$dataid);
181
  $store_data->walk('delete');
 
182
  $page_model = Mage::getModel('responsivebannerslider/page');
183
  $page_data = $page_model->getCollection()
184
  ->addFieldToFilter('slidergroup_id',$dataid);
185
  $page_data->walk('delete');
 
186
  $cate_model = Mage::getModel('responsivebannerslider/categories');
187
  $cate_data = $cate_model->getCollection()
188
  ->addFieldToFilter('slidergroup_id',$dataid);
189
  $cate_data->walk('delete');
 
190
  $product_model = Mage::getModel('responsivebannerslider/product');
191
  $prd_data = $product_model->getCollection()
192
  ->addFieldToFilter('slidergroup_id',$dataid);
193
  $prd_data->walk('delete');
 
194
  Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('adminhtml')->__('Group was successfully deleted'));
195
  $this->_redirect('*/*/');
196
  } catch (Exception $e) {
201
  Mage::getSingleton('adminhtml/session')->addError("Please Remove Assigned slider form the selected group before delete group.");
202
  $this->_redirect('*/*/edit', array('id' => $this->getRequest()->getParam('id')));
203
  }
 
204
  }
205
  $this->_redirect('*/*/');
206
  }
207
+
208
  public function massDeleteAction() {
209
  $webIds = $this->getRequest()->getParam('responsivebannerslider_group');
210
  if(!is_array($webIds)) {
213
  try {
214
  foreach ($webIds as $webId) {
215
  $responsivebannerslider_group = Mage::getModel('responsivebannerslider/responsivebannerslider')->load($webId);
216
+ $slide_collection = Mage::getModel('responsivebannerslider/slide')->getCollection();
 
217
  $slide_collection->addFieldToFilter('group_names', array(array('finset' => $webId)));
 
218
  if(count($slide_collection->getData()) <= 0){
 
219
  $responsivebannerslider_group->delete();
 
220
  $store_model = Mage::getModel('responsivebannerslider/store');
221
  $store_data = $store_model->getCollection()
222
  ->addFieldToFilter('slidergroup_id',$webId);
223
  $store_data->walk('delete');
 
224
  $page_model = Mage::getModel('responsivebannerslider/page');
225
  $page_data = $page_model->getCollection()
226
  ->addFieldToFilter('slidergroup_id',$webId);
227
  $page_data->walk('delete');
 
 
228
  $cate_model = Mage::getModel('responsivebannerslider/categories');
229
  $cate_data = $cate_model->getCollection()
230
  ->addFieldToFilter('slidergroup_id',$webId);
231
  $cate_data->walk('delete');
 
232
  $product_model = Mage::getModel('responsivebannerslider/product');
233
  $prd_data = $product_model->getCollection()
234
  ->addFieldToFilter('slidergroup_id',$webId);
235
  $prd_data->walk('delete');
 
236
  $groupname = $responsivebannerslider_group->getData('title');
237
  Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('adminhtml')->__(''.$groupname.' Group was successfully deleted'));
238
  }else{
 
239
  $groupname = $responsivebannerslider_group->getData('title');
240
  Mage::getSingleton('adminhtml/session')->addError("Please Remove Assigned slider form the selected ".$groupname." group before delete ".$groupname." group.");
 
241
  }
242
+ }
243
+ } catch (Exception $e) {
 
 
244
  Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
245
  }
246
  }
284
  );
285
  }
286
  protected function _initcategory(){
 
287
  $categoryId = $this->getRequest()->getParam('id');
288
  $category = Mage::getModel('responsivebannerslider/responsivebannerslider');
289
+ if ($categoryId) {
 
290
  $category->load($categoryId);
291
  }
292
  Mage::register('slidergroup_data', $category);
295
 
296
  public function get_menu_css($group_id){
297
  $groupdata = Mage::getModel("responsivebannerslider/responsivebannerslider")->load($group_id);
 
298
  $max_width = $groupdata->getMaxWidth();
299
  $content_background = $groupdata->getContentBackground();
300
  $content_opacity = $groupdata->getContentOpacity();
303
  $pagination_active_color = $groupdata->getPaginationActive();
304
  $pagination_bar = $groupdata->getPaginationBar();
305
  $thumbnail_size = $groupdata->getThumbnailSize();
 
306
  if ($max_width > 0) {
307
  $max_width = $groupdata->getMaxWidth().'px';
308
  } else {
321
  return $css;
322
  }
323
 
324
+ public function _isAllowed(){
325
+ return true;
326
+ }
327
+
328
  }
app/code/community/CapacityWebSolutions/Responsivebannerslider/controllers/IndexController.php CHANGED
@@ -1,21 +1,14 @@
1
  <?php
2
-
3
  /***************************************************************************
4
- @extension : Responsive Banner Slider Extension.
5
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
6
- ( http://www.capacitywebsolutions.com )
7
- @author : Capacity Web Solutions Pvt. Ltd.
8
- @support : magento@capacitywebsolutions.com
9
- ***************************************************************************/
10
-
11
 
12
- class CapacityWebSolutions_Responsivebannerslider_IndexController extends Mage_Core_Controller_Front_Action
13
- {
14
- public function indexAction()
15
- {
16
  $this->loadLayout();
17
  $this->renderLayout();
18
  }
19
-
20
-
21
  }
1
  <?php
 
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
 
8
 
9
+ class CapacityWebSolutions_Responsivebannerslider_IndexController extends Mage_Core_Controller_Front_Action {
10
+ public function indexAction() {
 
 
11
  $this->loadLayout();
12
  $this->renderLayout();
13
  }
 
 
14
  }
app/code/community/CapacityWebSolutions/Responsivebannerslider/etc/config.xml CHANGED
@@ -1,18 +1,8 @@
1
  <?xml version="1.0"?>
2
- <!--
3
- /***************************************************************************
4
- @extension : Responsive Banner Slider Extension.
5
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
6
- ( http://www.capacitywebsolutions.com )
7
- @author : Capacity Web Solutions Pvt. Ltd.
8
- @support : magento@capacitywebsolutions.com
9
- ***************************************************************************/
10
- -->
11
-
12
  <config>
13
  <modules>
14
  <CapacityWebSolutions_Responsivebannerslider>
15
- <version>1.0.3</version>
16
  </CapacityWebSolutions_Responsivebannerslider>
17
  </modules>
18
  <frontend>
@@ -32,60 +22,44 @@
32
  </responsivebannerslider>
33
  </updates>
34
  </layout>
35
-
36
- <events>
37
- <core_block_abstract_prepare_layout_before>
38
- <observers>
39
- <capacityWebSolutions_responsivebannerslider_prepare_layout_before>
40
- <class>responsivebannerslider/observer</class>
41
- <method>prepareLayoutBefore</method>
42
- </capacityWebSolutions_responsivebannerslider_prepare_layout_before>
43
- </observers>
44
- </core_block_abstract_prepare_layout_before>
45
- </events>
46
-
47
- </frontend>
48
- <admin>
49
- <routers>
50
- <responsivebannerslider>
51
- <use>admin</use>
52
  <args>
53
- <module>CapacityWebSolutions_Responsivebannerslider</module>
54
- <frontName>responsivebannerslider</frontName>
 
55
  </args>
56
- </responsivebannerslider>
57
- </routers>
58
- </admin>
59
 
60
- <adminhtml>
61
  <menu>
62
  <cws module="responsivebannerslider">
63
- <title>CWS Extensions</title>
64
  <sort_order>70</sort_order>
65
  <children>
66
  <responsivebannerslider module="responsivebannerslider">
67
  <title>Responsive Banner Slider</title>
68
  <sort_order>70</sort_order>
69
-
70
  <children>
71
  <group module="responsivebannerslider">
72
  <title>Manage Groups</title>
73
  <sort_order>0</sort_order>
74
- <action>responsivebannerslider/adminhtml_slidergroup</action>
75
-
76
  </group>
77
  <slides module="responsivebannerslider">
78
  <title>Manage Slides</title>
79
  <sort_order>10</sort_order>
80
- <action>responsivebannerslider/adminhtml_slider</action>
81
  </slides>
82
-
83
  <settings module="responsivebannerslider">
84
  <title>Settings</title>
85
  <sort_order>20</sort_order>
86
  <action>adminhtml/system_config/edit/section/responsivebannerslider</action>
87
  </settings>
88
-
89
  </children>
90
  </responsivebannerslider>
91
  </children>
@@ -99,7 +73,7 @@
99
  <admin>
100
  <children>
101
  <cws module="responsivebannerslider">
102
- <title>CWS Extensions</title>
103
  <children>
104
  <responsivebannerslider module="responsivebannerslider">
105
  <title>Responsive Banner Slider</title>
@@ -117,7 +91,6 @@
117
  </children>
118
  </cws>
119
  </children>
120
-
121
  </admin>
122
  </resources>
123
  </acl>
@@ -128,7 +101,6 @@
128
  </responsivebannerslider>
129
  </updates>
130
  </layout>
131
-
132
  <acl>
133
  <resources>
134
  <admin>
@@ -161,8 +133,7 @@
161
  </events>
162
  </adminhtml>
163
  <global>
164
-
165
- <models>
166
  <responsivebannerslider>
167
  <class>CapacityWebSolutions_Responsivebannerslider_Model</class>
168
  <resourceModel>responsivebannerslider_mysql4</resourceModel>
@@ -221,9 +192,7 @@
221
  <class>CapacityWebSolutions_Responsivebannerslider_Helper</class>
222
  </responsivebannerslider>
223
  </helpers>
224
-
225
- </global>
226
-
227
  <default>
228
  <responsivebannerslider>
229
  <general>
@@ -236,5 +205,4 @@
236
  </general>
237
  </responsivebannerslider>
238
  </default>
239
-
240
  </config>
1
  <?xml version="1.0"?>
 
 
 
 
 
 
 
 
 
 
2
  <config>
3
  <modules>
4
  <CapacityWebSolutions_Responsivebannerslider>
5
+ <version>1.0.4</version>
6
  </CapacityWebSolutions_Responsivebannerslider>
7
  </modules>
8
  <frontend>
22
  </responsivebannerslider>
23
  </updates>
24
  </layout>
25
+ </frontend>
26
+ <admin>
27
+ <routers>
28
+ <adminhtml>
 
 
 
 
 
 
 
 
 
 
 
 
 
29
  <args>
30
+ <modules>
31
+ <responsivebannerslider after="Mage_Adminhtml">CapacityWebSolutions_Responsivebannerslider_Adminhtml</responsivebannerslider>
32
+ </modules>
33
  </args>
34
+ </adminhtml>
35
+ </routers>
36
+ </admin>
37
 
38
+ <adminhtml>
39
  <menu>
40
  <cws module="responsivebannerslider">
41
+ <title>MageBees</title>
42
  <sort_order>70</sort_order>
43
  <children>
44
  <responsivebannerslider module="responsivebannerslider">
45
  <title>Responsive Banner Slider</title>
46
  <sort_order>70</sort_order>
 
47
  <children>
48
  <group module="responsivebannerslider">
49
  <title>Manage Groups</title>
50
  <sort_order>0</sort_order>
51
+ <action>adminhtml/slidergroup</action>
 
52
  </group>
53
  <slides module="responsivebannerslider">
54
  <title>Manage Slides</title>
55
  <sort_order>10</sort_order>
56
+ <action>adminhtml/slider</action>
57
  </slides>
 
58
  <settings module="responsivebannerslider">
59
  <title>Settings</title>
60
  <sort_order>20</sort_order>
61
  <action>adminhtml/system_config/edit/section/responsivebannerslider</action>
62
  </settings>
 
63
  </children>
64
  </responsivebannerslider>
65
  </children>
73
  <admin>
74
  <children>
75
  <cws module="responsivebannerslider">
76
+ <title>MageBees</title>
77
  <children>
78
  <responsivebannerslider module="responsivebannerslider">
79
  <title>Responsive Banner Slider</title>
91
  </children>
92
  </cws>
93
  </children>
 
94
  </admin>
95
  </resources>
96
  </acl>
101
  </responsivebannerslider>
102
  </updates>
103
  </layout>
 
104
  <acl>
105
  <resources>
106
  <admin>
133
  </events>
134
  </adminhtml>
135
  <global>
136
+ <models>
 
137
  <responsivebannerslider>
138
  <class>CapacityWebSolutions_Responsivebannerslider_Model</class>
139
  <resourceModel>responsivebannerslider_mysql4</resourceModel>
192
  <class>CapacityWebSolutions_Responsivebannerslider_Helper</class>
193
  </responsivebannerslider>
194
  </helpers>
195
+ </global>
 
 
196
  <default>
197
  <responsivebannerslider>
198
  <general>
205
  </general>
206
  </responsivebannerslider>
207
  </default>
 
208
  </config>
app/code/community/CapacityWebSolutions/Responsivebannerslider/etc/system.xml CHANGED
@@ -1,18 +1,8 @@
1
  <?xml version="1.0"?>
2
- <!--
3
- /***************************************************************************
4
- @extension : Responsive Banner Slider Extension.
5
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
6
- ( http://www.capacitywebsolutions.com )
7
- @author : Capacity Web Solutions Pvt. Ltd.
8
- @support : magento@capacitywebsolutions.com
9
- ***************************************************************************/
10
- -->
11
-
12
  <config>
13
  <tabs>
14
  <cws translate="label" module="responsivebannerslider">
15
- <label>Capacity Web Solutions</label>
16
  <sort_order>100</sort_order>
17
  </cws>
18
  </tabs>
@@ -54,9 +44,7 @@
54
  <show_in_website>1</show_in_website>
55
  <show_in_store>1</show_in_store>
56
  </jquery>
57
-
58
-
59
- <lazy_load_jquery translate="label">
60
  <label>Lazy Load</label>
61
  <comment>Select Yes for the Lazy Load.</comment>
62
  <source_model>adminhtml/system_config_source_yesno</source_model>
@@ -66,8 +54,6 @@
66
  <show_in_website>1</show_in_website>
67
  <show_in_store>1</show_in_store>
68
  </lazy_load_jquery>
69
-
70
-
71
  <thumbnail_width translate="label">
72
  <label>Thumbnail Upload Width</label>
73
  <comment>Set the width of the thumbnails created during upload. Thumbnails are used in carousels (default is 200).</comment>
@@ -78,8 +64,7 @@
78
  <show_in_website>0</show_in_website>
79
  <show_in_store>0</show_in_store>
80
  </thumbnail_width>
81
-
82
- <cms_page translate="label">
83
  <label>Show in CMS Pages</label>
84
  <comment>Select Yes for display the Responsive Banner Slider on frontend for Selected CMS Pages.</comment>
85
  <source_model>adminhtml/system_config_source_yesno</source_model>
@@ -99,7 +84,6 @@
99
  <show_in_website>1</show_in_website>
100
  <show_in_store>1</show_in_store>
101
  </category_page>
102
-
103
  <product_page translate="label">
104
  <label>Show in Product Pages</label>
105
  <comment>Select Yes for display the Responsive Banner Slider on frontend for Selected Product Pages.</comment>
@@ -110,7 +94,6 @@
110
  <show_in_website>1</show_in_website>
111
  <show_in_store>1</show_in_store>
112
  </product_page>
113
-
114
  </fields>
115
  </general>
116
  </groups>
1
  <?xml version="1.0"?>
 
 
 
 
 
 
 
 
 
 
2
  <config>
3
  <tabs>
4
  <cws translate="label" module="responsivebannerslider">
5
+ <label>MageBees</label>
6
  <sort_order>100</sort_order>
7
  </cws>
8
  </tabs>
44
  <show_in_website>1</show_in_website>
45
  <show_in_store>1</show_in_store>
46
  </jquery>
47
+ <lazy_load_jquery translate="label">
 
 
48
  <label>Lazy Load</label>
49
  <comment>Select Yes for the Lazy Load.</comment>
50
  <source_model>adminhtml/system_config_source_yesno</source_model>
54
  <show_in_website>1</show_in_website>
55
  <show_in_store>1</show_in_store>
56
  </lazy_load_jquery>
 
 
57
  <thumbnail_width translate="label">
58
  <label>Thumbnail Upload Width</label>
59
  <comment>Set the width of the thumbnails created during upload. Thumbnails are used in carousels (default is 200).</comment>
64
  <show_in_website>0</show_in_website>
65
  <show_in_store>0</show_in_store>
66
  </thumbnail_width>
67
+ <cms_page translate="label">
 
68
  <label>Show in CMS Pages</label>
69
  <comment>Select Yes for display the Responsive Banner Slider on frontend for Selected CMS Pages.</comment>
70
  <source_model>adminhtml/system_config_source_yesno</source_model>
84
  <show_in_website>1</show_in_website>
85
  <show_in_store>1</show_in_store>
86
  </category_page>
 
87
  <product_page translate="label">
88
  <label>Show in Product Pages</label>
89
  <comment>Select Yes for display the Responsive Banner Slider on frontend for Selected Product Pages.</comment>
94
  <show_in_website>1</show_in_website>
95
  <show_in_store>1</show_in_store>
96
  </product_page>
 
97
  </fields>
98
  </general>
99
  </groups>
app/code/community/CapacityWebSolutions/Responsivebannerslider/sql/responsivebannerslider_setup/mysql4-install-1.0.0.php CHANGED
@@ -1,11 +1,7 @@
1
  <?php
2
-
3
  $installer = $this;
4
-
5
  $installer->startSetup();
6
-
7
  $installer->run("
8
-
9
  CREATE TABLE IF NOT EXISTS {$this->getTable('responsivebannerslider_group')} (
10
  `slidergroup_id` int(11) unsigned NOT NULL auto_increment,
11
  `title` varchar(255) NOT NULL default '',
@@ -48,7 +44,6 @@ CREATE TABLE IF NOT EXISTS {$this->getTable('responsivebannerslider_page')} (
48
  PRIMARY KEY (`page_id`)
49
  ) ENGINE=MyISAM CHARACTER SET utf8 COLLATE utf8_general_ci AUTO_INCREMENT=0;
50
 
51
-
52
  CREATE TABLE IF NOT EXISTS {$this->getTable('responsivebannerslider_category')} (
53
  `category_id` int(11) unsigned NOT NULL auto_increment,
54
  `slidergroup_id` smallint(6) NOT NULL,
@@ -56,7 +51,6 @@ CREATE TABLE IF NOT EXISTS {$this->getTable('responsivebannerslider_category')}
56
  PRIMARY KEY (`category_id`)
57
  ) ENGINE=MyISAM CHARACTER SET utf8 COLLATE utf8_general_ci AUTO_INCREMENT=0;
58
 
59
-
60
  CREATE TABLE IF NOT EXISTS {$this->getTable('responsivebannerslider_product')} (
61
  `product_id` int(11) unsigned NOT NULL auto_increment,
62
  `slidergroup_id` smallint(6) NOT NULL,
@@ -71,7 +65,6 @@ CREATE TABLE IF NOT EXISTS {$this->getTable('responsivebannerslider_store')} (
71
  PRIMARY KEY (`store_ids`)
72
  ) ENGINE=MyISAM CHARACTER SET utf8 COLLATE utf8_general_ci AUTO_INCREMENT=0;
73
 
74
-
75
  CREATE TABLE IF NOT EXISTS {$this->getTable('responsivebannerslider_slide')} (
76
  `slide_id` int(11) unsigned NOT NULL auto_increment,
77
  `group_names` varchar(255) NOT NULL default '',
1
  <?php
 
2
  $installer = $this;
 
3
  $installer->startSetup();
 
4
  $installer->run("
 
5
  CREATE TABLE IF NOT EXISTS {$this->getTable('responsivebannerslider_group')} (
6
  `slidergroup_id` int(11) unsigned NOT NULL auto_increment,
7
  `title` varchar(255) NOT NULL default '',
44
  PRIMARY KEY (`page_id`)
45
  ) ENGINE=MyISAM CHARACTER SET utf8 COLLATE utf8_general_ci AUTO_INCREMENT=0;
46
 
 
47
  CREATE TABLE IF NOT EXISTS {$this->getTable('responsivebannerslider_category')} (
48
  `category_id` int(11) unsigned NOT NULL auto_increment,
49
  `slidergroup_id` smallint(6) NOT NULL,
51
  PRIMARY KEY (`category_id`)
52
  ) ENGINE=MyISAM CHARACTER SET utf8 COLLATE utf8_general_ci AUTO_INCREMENT=0;
53
 
 
54
  CREATE TABLE IF NOT EXISTS {$this->getTable('responsivebannerslider_product')} (
55
  `product_id` int(11) unsigned NOT NULL auto_increment,
56
  `slidergroup_id` smallint(6) NOT NULL,
65
  PRIMARY KEY (`store_ids`)
66
  ) ENGINE=MyISAM CHARACTER SET utf8 COLLATE utf8_general_ci AUTO_INCREMENT=0;
67
 
 
68
  CREATE TABLE IF NOT EXISTS {$this->getTable('responsivebannerslider_slide')} (
69
  `slide_id` int(11) unsigned NOT NULL auto_increment,
70
  `group_names` varchar(255) NOT NULL default '',
app/code/community/CapacityWebSolutions/Responsivebannerslider/sql/responsivebannerslider_setup/mysql4-upgrade-1.0.0-1.0.4.php ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ $installer = $this;
4
+
5
+ $installer->startSetup();
6
+
7
+ if(in_array($this->getTable('permission_block'),$installer->getConnection()->listTables())){
8
+ $installer->run("
9
+ INSERT INTO {$this->getTable('permission_block')} (block_name,is_allowed) values ('responsivebannerslider/view','1');
10
+
11
+ ");
12
+ }
13
+ $installer->endSetup();
14
+ ?>
app/design/adminhtml/default/default/layout/responsivebannerslider.xml CHANGED
@@ -1,31 +1,16 @@
1
  <?xml version="1.0"?>
2
-
3
- <!--
4
- /***************************************************************************
5
- @extension : Responsive Banner Slider Extension.
6
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
7
- ( http://www.capacitywebsolutions.com )
8
- @author : Capacity Web Solutions Pvt. Ltd.
9
- @support : magento@capacitywebsolutions.com
10
- ***************************************************************************/
11
- -->
12
-
13
  <layout version="0.1.0">
14
-
15
-
16
- <responsivebannerslider_adminhtml_slidergroup_index>
17
  <reference name="content">
18
- <block type="responsivebannerslider/adminhtml_slidergroup" name="store_switcher" template="responsivebannerslider/store.phtml" />
19
- <block type="responsivebannerslider/adminhtml_slidergroup" name="slidergroup" />
20
  </reference>
21
- </responsivebannerslider_adminhtml_slidergroup_index>
22
- <responsivebannerslider_adminhtml_slidergroup_edit>
23
  <reference name="head">
24
  <action method="addJs"><script>responsivebannerslider/jscolor/jscolor.js</script></action>
25
  <action method="addJs"><script>responsivebannerslider/product-selector.js</script></action>
26
  <action method="addCss"><stylesheet>responsivebannerslider/responsivebannerslider.css</stylesheet></action>
27
-
28
- <action method="setCanLoadExtJs"><flag>1</flag></action>
29
  <action method="addJs"><script>lib/flex.js</script></action>
30
  <action method="addJs"><script>lib/FABridge.js</script></action>
31
  <action method="addJs"><script>mage/adminhtml/flexuploader.js</script></action>
@@ -33,21 +18,17 @@
33
  <action method="addJs"><script>prototype/window.js</script></action>
34
  <action method="addItem"><type>js_css</type><name>prototype/windows/themes/default.css</name></action>
35
  <action method="addCss"><stylesheet>lib/prototype/windows/themes/magento.css</stylesheet></action>
36
-
37
  </reference>
38
-
39
- </responsivebannerslider_adminhtml_slidergroup_edit>
40
- <responsivebannerslider_adminhtml_slider_index>
41
  <reference name="content">
42
  <block type="responsivebannerslider/adminhtml_slidergroup" name="group_switcher" template="responsivebannerslider/group.phtml" />
43
  <block type="responsivebannerslider/adminhtml_slider" name="slider" />
44
  </reference>
45
- </responsivebannerslider_adminhtml_slider_index>
46
-
47
- <responsivebannerslider_adminhtml_slidergroup_categories>
48
  <block type="core/text_list" name="root" output="toHtml">
49
  <block type="responsivebannerslider/adminhtml_slidergroup_edit_tab_categories" name="category.edit.tab.categories"/>
50
- </block>
51
- </responsivebannerslider_adminhtml_slidergroup_categories>
52
-
53
  </layout>
1
  <?xml version="1.0"?>
 
 
 
 
 
 
 
 
 
 
 
2
  <layout version="0.1.0">
3
+ <adminhtml_slidergroup_index>
 
 
4
  <reference name="content">
5
+ <block type="responsivebannerslider/adminhtml_slidergroup" name="slidergroup" />
 
6
  </reference>
7
+ </adminhtml_slidergroup_index>
8
+ <adminhtml_slidergroup_edit>
9
  <reference name="head">
10
  <action method="addJs"><script>responsivebannerslider/jscolor/jscolor.js</script></action>
11
  <action method="addJs"><script>responsivebannerslider/product-selector.js</script></action>
12
  <action method="addCss"><stylesheet>responsivebannerslider/responsivebannerslider.css</stylesheet></action>
13
+ <action method="setCanLoadExtJs"><flag>1</flag></action>
 
14
  <action method="addJs"><script>lib/flex.js</script></action>
15
  <action method="addJs"><script>lib/FABridge.js</script></action>
16
  <action method="addJs"><script>mage/adminhtml/flexuploader.js</script></action>
18
  <action method="addJs"><script>prototype/window.js</script></action>
19
  <action method="addItem"><type>js_css</type><name>prototype/windows/themes/default.css</name></action>
20
  <action method="addCss"><stylesheet>lib/prototype/windows/themes/magento.css</stylesheet></action>
 
21
  </reference>
22
+ </adminhtml_slidergroup_edit>
23
+ <adminhtml_slider_index>
 
24
  <reference name="content">
25
  <block type="responsivebannerslider/adminhtml_slidergroup" name="group_switcher" template="responsivebannerslider/group.phtml" />
26
  <block type="responsivebannerslider/adminhtml_slider" name="slider" />
27
  </reference>
28
+ </adminhtml_slider_index>
29
+ <adminhtml_slidergroup_categories>
 
30
  <block type="core/text_list" name="root" output="toHtml">
31
  <block type="responsivebannerslider/adminhtml_slidergroup_edit_tab_categories" name="category.edit.tab.categories"/>
32
+ </block>
33
+ </adminhtml_slidergroup_categories>
 
34
  </layout>
app/design/adminhtml/default/default/template/responsivebannerslider/category/edit/tab/categories.phtml CHANGED
@@ -1,11 +1,10 @@
1
  <?php
2
  /***************************************************************************
3
- @extension : Responsive Banner Slider Extension.
4
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
5
- ( http://www.capacitywebsolutions.com )
6
- @author : Capacity Web Solutions Pvt. Ltd.
7
- @support : magento@capacitywebsolutions.com
8
- ***************************************************************************/
9
  ?>
10
  <div class="entry-edit">
11
  <div class="entry-edit-head">
1
  <?php
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
8
  ?>
9
  <div class="entry-edit">
10
  <div class="entry-edit-head">
app/design/adminhtml/default/default/template/responsivebannerslider/category/edit/tab/product.phtml CHANGED
@@ -1,13 +1,10 @@
1
  <?php
2
-
3
  /***************************************************************************
4
- @extension : Responsive Banner Slider Extension.
5
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
6
- ( http://www.capacitywebsolutions.com )
7
- @author : Capacity Web Solutions Pvt. Ltd.
8
- @support : magento@capacitywebsolutions.com
9
- ***************************************************************************/
10
-
11
  ?>
12
  <style>
13
  .product-param label { padding-right: 10px; }
@@ -23,7 +20,6 @@
23
  <div class="entry-edit">
24
  <div class="entry-edit-head">
25
  <h4 class="icon-head head-edit-form fieldset-legend"><?php echo Mage::helper('responsivebannerslider')->__('Group Products') ?></h4>
26
-
27
  </div>
28
  <fieldset id="product_fieldset">
29
  <ul>
@@ -43,9 +39,6 @@
43
  </ul>
44
  </fieldset>
45
  </div>
46
-
47
  <script type="text/javascript">
48
  var rule_conditions_fieldset = new VarienRulesForm('product_fieldset', '<?php echo Mage::getUrl('/admin/promo_catalog/newConditionHtml/form/rule_conditions_fieldset/', array('_secure' => Mage::app()->getStore()->isAdminUrlSecure())) ?>');
49
-
50
-
51
  </script>
1
  <?php
 
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
 
8
  ?>
9
  <style>
10
  .product-param label { padding-right: 10px; }
20
  <div class="entry-edit">
21
  <div class="entry-edit-head">
22
  <h4 class="icon-head head-edit-form fieldset-legend"><?php echo Mage::helper('responsivebannerslider')->__('Group Products') ?></h4>
 
23
  </div>
24
  <fieldset id="product_fieldset">
25
  <ul>
39
  </ul>
40
  </fieldset>
41
  </div>
 
42
  <script type="text/javascript">
43
  var rule_conditions_fieldset = new VarienRulesForm('product_fieldset', '<?php echo Mage::getUrl('/admin/promo_catalog/newConditionHtml/form/rule_conditions_fieldset/', array('_secure' => Mage::app()->getStore()->isAdminUrlSecure())) ?>');
 
 
44
  </script>
app/design/adminhtml/default/default/template/responsivebannerslider/code.phtml CHANGED
@@ -1,11 +1,10 @@
1
  <?php
2
  /***************************************************************************
3
- @extension : Responsive Banner Slider Extension.
4
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
5
- ( http://www.capacitywebsolutions.com )
6
- @author : Capacity Web Solutions Pvt. Ltd.
7
- @support : magento@capacitywebsolutions.com
8
- ***************************************************************************/
9
  ?>
10
 
11
  <?php $GroupData = $this->getCurrentGroup(); ?>
1
  <?php
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
8
  ?>
9
 
10
  <?php $GroupData = $this->getCurrentGroup(); ?>
app/design/adminhtml/default/default/template/responsivebannerslider/group.phtml CHANGED
@@ -1,18 +1,14 @@
1
  <?php
2
  /***************************************************************************
3
- @extension : Responsive Banner Slider Extension.
4
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
5
- ( http://www.capacitywebsolutions.com )
6
- @author : Capacity Web Solutions Pvt. Ltd.
7
- @support : magento@capacitywebsolutions.com
8
- ***************************************************************************/
9
  ?>
10
-
11
  <?php if(count($this->getGroupData()) > 1) { ?>
12
-
13
  <?php $url = Mage::helper('adminhtml')->getUrl('responsivebannerslider/adminhtml_slider/index'); ?>
14
  <?php $group_id = $this->getRequest()->getParam('group'); ?>
15
-
16
  <p class="switcher"><label for="store_switcher"><?php echo $this->__('Choose Slider Group:') ?></label>
17
  <select name="store_switcher" id="store_switcher" onchange="return switchStore(this);">
18
  <option value="0"><?php echo $this->__('Show All Slider Group'); ?></option>
@@ -23,22 +19,16 @@
23
  <?php }else{?>
24
  <option value="<?php echo $key; ?>"><?php echo $value; ?></option>
25
  <?php } ?>
26
-
27
  <?php }?>
28
-
29
  </select>
30
-
31
  </p>
32
-
33
  <script type="text/javascript">
34
  function switchStore(obj) {
35
  var storeParam = obj.value ? 'group/' + obj.value + '/' : '';
36
  if (obj.switchParams) {
37
  storeParam += obj.switchParams;
38
  }
39
-
40
  setLocation('<?php echo $url ?>' + storeParam);
41
-
42
  }
43
  </script>
44
  <?php }?>
1
  <?php
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
8
  ?>
 
9
  <?php if(count($this->getGroupData()) > 1) { ?>
 
10
  <?php $url = Mage::helper('adminhtml')->getUrl('responsivebannerslider/adminhtml_slider/index'); ?>
11
  <?php $group_id = $this->getRequest()->getParam('group'); ?>
 
12
  <p class="switcher"><label for="store_switcher"><?php echo $this->__('Choose Slider Group:') ?></label>
13
  <select name="store_switcher" id="store_switcher" onchange="return switchStore(this);">
14
  <option value="0"><?php echo $this->__('Show All Slider Group'); ?></option>
19
  <?php }else{?>
20
  <option value="<?php echo $key; ?>"><?php echo $value; ?></option>
21
  <?php } ?>
 
22
  <?php }?>
 
23
  </select>
 
24
  </p>
 
25
  <script type="text/javascript">
26
  function switchStore(obj) {
27
  var storeParam = obj.value ? 'group/' + obj.value + '/' : '';
28
  if (obj.switchParams) {
29
  storeParam += obj.switchParams;
30
  }
 
31
  setLocation('<?php echo $url ?>' + storeParam);
 
32
  }
33
  </script>
34
  <?php }?>
app/design/adminhtml/default/default/template/responsivebannerslider/store.phtml CHANGED
@@ -1,11 +1,10 @@
1
  <?php
2
  /***************************************************************************
3
- @extension : Responsive Banner Slider Extension.
4
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
5
- ( http://www.capacitywebsolutions.com )
6
- @author : Capacity Web Solutions Pvt. Ltd.
7
- @support : magento@capacitywebsolutions.com
8
- ***************************************************************************/
9
  ?>
10
 
11
  <?php echo $this->getStoreSwitcherHtml() ?>
1
  <?php
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
 
8
  ?>
9
 
10
  <?php echo $this->getStoreSwitcherHtml() ?>
app/design/frontend/base/default/layout/responsivebannerslider.xml CHANGED
@@ -1,10 +1,10 @@
1
  <?xml version="1.0"?>
2
-
3
  <layout version="0.1.0">
4
  <default>
5
  <reference name="head">
6
- <action method="removeItem"><type>skin_js</type><name>js/lib/jquery-1.10.2.min.js</name></action>
7
- <action method="removeItem"><type>js</type><name>lib/jquery/jquery-1.10.2.min.js</name></action>
 
8
  </reference>
9
  </default>
10
  <cms_page>
@@ -21,7 +21,6 @@
21
  </block>
22
  </reference>
23
  </cms_page>
24
-
25
  <catalog_category_default>
26
  <reference name="content">
27
  <block type="responsivebannerslider/view_top" name="responsivebannerslider_tops" before="_">
@@ -36,7 +35,6 @@
36
  </block>
37
  </reference>
38
  </catalog_category_default>
39
-
40
  <catalog_category_layered>
41
  <reference name="content">
42
  <block type="responsivebannerslider/view_top" name="responsivebannerslider_top" before="_">
@@ -51,7 +49,6 @@
51
  </block>
52
  </reference>
53
  </catalog_category_layered>
54
-
55
  <catalog_product_view>
56
  <reference name="content">
57
  <block type="responsivebannerslider/view_top" name="responsivebannerslider_top" before="_">
@@ -66,5 +63,4 @@
66
  </block>
67
  </reference>
68
  </catalog_product_view>
69
-
70
  </layout>
1
  <?xml version="1.0"?>
 
2
  <layout version="0.1.0">
3
  <default>
4
  <reference name="head">
5
+ <block type="responsivebannerslider/managejquery" name="managejquery" >
6
+ <action method="addJquery"/>
7
+ </block>
8
  </reference>
9
  </default>
10
  <cms_page>
21
  </block>
22
  </reference>
23
  </cms_page>
 
24
  <catalog_category_default>
25
  <reference name="content">
26
  <block type="responsivebannerslider/view_top" name="responsivebannerslider_tops" before="_">
35
  </block>
36
  </reference>
37
  </catalog_category_default>
 
38
  <catalog_category_layered>
39
  <reference name="content">
40
  <block type="responsivebannerslider/view_top" name="responsivebannerslider_top" before="_">
49
  </block>
50
  </reference>
51
  </catalog_category_layered>
 
52
  <catalog_product_view>
53
  <reference name="content">
54
  <block type="responsivebannerslider/view_top" name="responsivebannerslider_top" before="_">
63
  </block>
64
  </reference>
65
  </catalog_product_view>
 
66
  </layout>
app/design/frontend/base/default/template/responsivebannerslider/slider.phtml CHANGED
@@ -1,19 +1,15 @@
1
  <?php
2
  /***************************************************************************
3
- @extension : Responsive Banner Slider Extension.
4
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
5
- ( http://www.capacitywebsolutions.com )
6
- @author : Capacity Web Solutions Pvt. Ltd.
7
- @support : magento@capacitywebsolutions.com
8
  ***************************************************************************/
9
  ?>
10
-
11
  <?php if ($this->getGroupscollection() != "") { ?>
12
  <?php $groupsdata = $this->getGroupscollection()->getData(); ?>
13
-
14
  <?php foreach ($groupsdata as $groups ) { ?>
15
  <?php
16
-
17
  if ($groups ['slider_theme'] == "default") {
18
  $theme = "defaultTheme";
19
  } elseif ($groups ['slider_theme'] == "blank") {
1
  <?php
2
  /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
 
7
  ***************************************************************************/
8
  ?>
 
9
  <?php if ($this->getGroupscollection() != "") { ?>
10
  <?php $groupsdata = $this->getGroupscollection()->getData(); ?>
 
11
  <?php foreach ($groupsdata as $groups ) { ?>
12
  <?php
 
13
  if ($groups ['slider_theme'] == "default") {
14
  $theme = "defaultTheme";
15
  } elseif ($groups ['slider_theme'] == "blank") {
app/design/frontend/rwd/default/layout/responsivebannerslider.xml ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <layout version="0.1.0">
3
+ <default>
4
+ <reference name="head">
5
+ <block type="responsivebannerslider/managejquery" name="managejquery" >
6
+ <action method="addJquery"/>
7
+ </block>
8
+ <action method="removeItem"><type>js</type><name>responsivebannerslider/noconflict.js</name></action>
9
+ </reference>
10
+ </default>
11
+ <cms_page>
12
+ <reference name="content">
13
+ <block type="responsivebannerslider/view_top" name="responsivebannerslider_top" before="_">
14
+ <action method="setTemplate" ifconfig="responsivebannerslider/general/enabled">
15
+ <template>responsivebannerslider/slider.phtml</template>
16
+ </action>
17
+ </block>
18
+ <block type="responsivebannerslider/view_bottom" name="responsivebannerslider_bottom" after="_">
19
+ <action method="setTemplate" ifconfig="responsivebannerslider/general/enabled">
20
+ <template>responsivebannerslider/slider.phtml</template>
21
+ </action>
22
+ </block>
23
+ </reference>
24
+ </cms_page>
25
+ <catalog_category_default>
26
+ <reference name="content">
27
+ <block type="responsivebannerslider/view_top" name="responsivebannerslider_tops" before="_">
28
+ <action method="setTemplate" ifconfig="responsivebannerslider/general/enabled">
29
+ <template>responsivebannerslider/slider.phtml</template>
30
+ </action>
31
+ </block>
32
+ <block type="responsivebannerslider/view_bottom" name="responsivebannerslider_bottom" after="_">
33
+ <action method="setTemplate" ifconfig="responsivebannerslider/general/enabled">
34
+ <template>responsivebannerslider/slider.phtml</template>
35
+ </action>
36
+ </block>
37
+ </reference>
38
+ </catalog_category_default>
39
+ <catalog_category_layered>
40
+ <reference name="content">
41
+ <block type="responsivebannerslider/view_top" name="responsivebannerslider_top" before="_">
42
+ <action method="setTemplate" ifconfig="responsivebannerslider/general/enabled">
43
+ <template>responsivebannerslider/slider.phtml</template>
44
+ </action>
45
+ </block>
46
+ <block type="responsivebannerslider/view_bottom" name="responsivebannerslider_bottom" after="_">
47
+ <action method="setTemplate" ifconfig="responsivebannerslider/general/enabled">
48
+ <template>responsivebannerslider/slider.phtml</template>
49
+ </action>
50
+ </block>
51
+ </reference>
52
+ </catalog_category_layered>
53
+ <catalog_product_view>
54
+ <reference name="content">
55
+ <block type="responsivebannerslider/view_top" name="responsivebannerslider_top" before="_">
56
+ <action method="setTemplate" ifconfig="responsivebannerslider/general/enabled">
57
+ <template>responsivebannerslider/slider.phtml</template>
58
+ </action>
59
+ </block>
60
+ <block type="responsivebannerslider/view_bottom" name="responsivebannerslider_bottom" after="_">
61
+ <action method="setTemplate" ifconfig="responsivebannerslider/general/enabled">
62
+ <template>responsivebannerslider/slider.phtml</template>
63
+ </action>
64
+ </block>
65
+ </reference>
66
+ </catalog_product_view>
67
+ </layout>
app/design/frontend/rwd/default/template/responsivebannerslider/slider.phtml ADDED
@@ -0,0 +1,550 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /***************************************************************************
3
+ Extension Name : Magento Responsive Banner Slider with Lazy Load Extension
4
+ Extension URL : http://www.magebees.com/magento-responsive-banner-slider-with-lazy-load-extension.html
5
+ Copyright : Copyright (c) 2015 MageBees, http://www.magebees.com
6
+ Support Email : support@magebees.com
7
+ ***************************************************************************/
8
+ ?>
9
+ <?php if ($this->getGroupscollection() != "") { ?>
10
+ <?php $groupsdata = $this->getGroupscollection()->getData(); ?>
11
+ <?php foreach ($groupsdata as $groups ) { ?>
12
+ <?php
13
+ if ($groups ['slider_theme'] == "default") {
14
+ $theme = "defaultTheme";
15
+ } elseif ($groups ['slider_theme'] == "blank") {
16
+ $theme = "blankTheme";
17
+ } elseif ($groups ['slider_theme'] == "drop_shadow") {
18
+ $theme = "dropShadow";
19
+ } else {
20
+ $theme = "emboss";
21
+ }
22
+
23
+ if ($groups ['navigation_arrow'] == "never") {
24
+ $navarrow = "noNavArw";
25
+ } elseif ($groups ['navigation_arrow'] == "always") {
26
+ $navarrow = "alwaysNavArw";
27
+ } else {
28
+ $navarrow = "NavArwOnHover";
29
+ }
30
+
31
+ if ($groups ['navigation_style'] == "angle") {
32
+ $navstyle = "angle";
33
+ } elseif ($groups ['navigation_style'] == "angle_small") {
34
+ $navstyle = "angle_small";
35
+ } elseif ($groups ['navigation_style'] == "angle_circle") {
36
+ $navstyle = "angle_circle";
37
+ } elseif ($groups ['navigation_style'] == "angle_square") {
38
+ $navstyle = "angle_square";
39
+ } elseif ($groups ['navigation_style'] == "arrow") {
40
+ $navstyle = "arrow";
41
+ } elseif ($groups ['navigation_style'] == "arrow_circle") {
42
+ $navstyle = "arrow_circle";
43
+ } elseif ($groups ['navigation_style'] == "caret") {
44
+ $navstyle = "caret";
45
+ } elseif ($groups ['navigation_style'] == "chevron") {
46
+ $navstyle = "chevron";
47
+ } elseif ($groups ['navigation_style'] == "chevron_smooth") {
48
+ $navstyle = "chevron_smooth";
49
+ } elseif ($groups ['navigation_style'] == "chevron_circle") {
50
+ $navstyle = "chevron_circle";
51
+ } else {
52
+ $navstyle = "chevron_square";
53
+ }
54
+
55
+ if ($groups ['navigation_aposition'] == "inside") {
56
+ $navpos = "navArwInside";
57
+ } elseif ($groups ['navigation_aposition'] == "outside") {
58
+ $navpos = "navArwOutside";
59
+ } elseif ($groups ['navigation_aposition'] == "inside_left") {
60
+ $navpos = "navArwInLeft";
61
+ } else {
62
+ $navpos = "navArwInRight";
63
+ }
64
+
65
+ if ($groups ['show_pagination'] == "never") {
66
+ $showpage = "noPaging";
67
+ } elseif ($groups ['show_pagination'] == "always") {
68
+ $showpage = "alwaysPaging";
69
+ } else {
70
+ $showpage = "pagingOnHover";
71
+ }
72
+
73
+ if ($groups ['pagination_style'] == "circular") {
74
+ $pagestyle = "circular";
75
+ } elseif ($groups ['pagination_style'] == "squared") {
76
+ $pagestyle = "squared";
77
+ } elseif ($groups ['pagination_style'] == "circular_bar") {
78
+ $pagestyle = "cir-bar";
79
+ } else {
80
+ $pagestyle = "squ-bar";
81
+ }
82
+
83
+ if ($groups ['pagination_position'] == "below") {
84
+ $pagepos = "pagerBelow";
85
+ } elseif ($groups ['pagination_position'] == "above") {
86
+ $pagepos = "pagerAbove";
87
+ } elseif ($groups ['pagination_position'] == "inside_top") {
88
+ $pagepos = "pagerInTop";
89
+ } elseif ($groups ['pagination_position'] == "inside_bottom") {
90
+ $pagepos = "pagerInBottom";
91
+ } elseif ($groups ['pagination_position'] == "inside_bottom_left") {
92
+ $pagepos = "pagerInBottomleft";
93
+ } else {
94
+ $pagepos = "pagerInBottomright";
95
+ }
96
+
97
+ if ($groups ['slider_type'] == "basic") {
98
+ $bannerStyle = "basSlider";
99
+ } elseif ($groups ['slider_type'] == "carousel") {
100
+ $bannerStyle = "basCarousel";
101
+ } else {
102
+ $bannerStyle = "slideNcrosel";
103
+ }
104
+
105
+ ?>
106
+ <?php $sliedsdata = $this->getSlides($groups['slidergroup_id']); ?>
107
+ <?php if(count($sliedsdata) > 0 ) { ?>
108
+ <?php $groupId = $groups['slidergroup_id']; ?>
109
+ <link rel="stylesheet" type="text/css"
110
+ href="<?php echo $this->getSkinUrl('css/responsivebannerslider/group-'.$groupId.'.css');?>"
111
+ media="all" />
112
+ <div id="bnrSlider-<?php echo $groups['slidergroup_id']; ?>"
113
+ class="cwsSlider <?php echo $bannerStyle.' '.$theme; ?>">
114
+ <?php if($groups['slider_type'] != "carousel") { ?>
115
+ <div class="slider loading">
116
+ <div id="rwdSlider-<?php echo $groups['slidergroup_id']; ?>"
117
+ class="cwsRwdSlider <?php echo $navpos.' '.$navarrow.' '.$showpage.' '.$pagepos ?>">
118
+ <ul class="slides">
119
+ <?php
120
+ $youtube = '';
121
+ $vimeo = '';
122
+ $sliedsdata = $this->getSlides ( $groups ['slidergroup_id'] );
123
+ foreach ( $sliedsdata as $slide ) {
124
+
125
+ if ($slide->getDateEnabled () == 1) {
126
+ $fromdate = strtotime ( $slide->getFromDate () );
127
+ $todate = strtotime ( $slide->getToDate () );
128
+ $nowdate = strtotime ( $this->formatTime ( now (), Mage_Core_Model_Locale::FORMAT_TYPE_SHORT, true ) );
129
+ } else {
130
+ $fromdate = strtotime ( $this->formatTime ( now (), Mage_Core_Model_Locale::FORMAT_TYPE_SHORT, true ) );
131
+ $todate = strtotime ( $this->formatTime ( now (), Mage_Core_Model_Locale::FORMAT_TYPE_SHORT, true ) );
132
+ $nowdate = strtotime ( $this->formatTime ( now (), Mage_Core_Model_Locale::FORMAT_TYPE_SHORT, true ) );
133
+ }
134
+ $videoid = $groups ['slidergroup_id'];
135
+ $video_height = $slide->getVideoHeight ();
136
+ ?>
137
+ <?php if($fromdate <= $nowdate && $todate >= $nowdate ) { ?>
138
+ <?php if($slide->getImgVideo() == "vimeo") { ?>
139
+ <?php $vimeo = $vimeo + 1; ?>
140
+ <li class="video"><iframe id="player_<?php echo $videoid; ?>"
141
+ src="http://player.vimeo.com/video/<?php echo $slide->getVideoId(); ?>?api=1&amp;player_id=player_<?php echo $videoid; ?>"
142
+ width="100%" height="<?php echo $video_height; ?>" frameborder="0"
143
+ webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe></li>
144
+ <?php } elseif($slide->getImgVideo() == "youtube") { ?>
145
+ <?php $youtube = $youtube + 1; ?>
146
+ <li class="video"><iframe class="youtube"
147
+ id="youtube_<?php echo $videoid; ?>"
148
+ src="http://www.youtube.com/embed/<?php echo $slide->getVideoId(); ?>?enablejsapi=1&amp;wmode=opaque&amp;playerapiid=youtube_<?php echo $videoid; ?>"
149
+ width="100%" height="<?php echo $video_height; ?>" frameborder="0"
150
+ webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe></li>
151
+ <?php } else { ?>
152
+ <?php
153
+ if($slide->getData ( 'img_hosting' )) {
154
+ if ($slide->getData ( 'hosted_url' )) {
155
+ $imgsrc = $slide->getHostedUrl ();
156
+ }
157
+ }else{
158
+ if ($slide->getData ( 'filename' )) {
159
+ $imgsrc = Mage::getBaseUrl ( 'media' ) . "responsivebannerslider/" . $slide->getData ( 'filename' );
160
+ }
161
+ }
162
+ $loading_img = $this->getSkinUrl ( 'css/responsivebannerslider/loading.gif' );
163
+ ?>
164
+
165
+ <?php if($slide->getData('hosted_url') != "" || $slide->getData('filename') != "") { ?>
166
+ <li><?php if($slide->getUrl()) {?><a
167
+ href="<?php echo $slide->getUrl(); ?>"
168
+ title="<?php echo $slide->getUrl(); ?>"
169
+ target="<?php if($slide->getUrlTarget() == "new_window") { echo "_blank"; } ?>"><?php } ?><img
170
+ class="cwslazy" <?php if($this->getLazylaod()) { ?>
171
+ data-src="<?php echo $imgsrc; ?>" <?php } ?>
172
+ src="<?php if(!$this->getLazylaod()) { echo $imgsrc; }else { echo $loading_img; } ?>"
173
+ alt="<?php echo $slide->getAltText(); ?>" /><?php if($slide->getUrl()) {?></a><?php } ?><?php if($slide->getDescription()) { ?><span
174
+ class="sliderdecs"><?php echo $slide->getDescription(); ?></span><?php } ?></li>
175
+
176
+ <?php } ?>
177
+
178
+ <?php } ?>
179
+ <?php if($slide->getDateEnabled() == 1) { } } ?> <?php } ?>
180
+ </ul>
181
+ </div>
182
+ </div>
183
+ <?php } ?>
184
+
185
+ <?php if($groups['slider_type'] == "carousel") { ?>
186
+ <div class="slider loading">
187
+ <div id="carousel-<?php echo $groups['slidergroup_id']; ?>"
188
+ class="rwdCarousel <?php echo $navpos.' '.$navarrow.' '.$showpage.' '.$pagepos ?>">
189
+ <ul class="slides">
190
+ <?php
191
+ $sliedsdata = $this->getSlides ( $groups ['slidergroup_id'] );
192
+ foreach ( $sliedsdata as $slide ) {
193
+ if ($slide->getDateEnabled () == 1) {
194
+ $fromdate = strtotime ( $slide->getFromDate () );
195
+ $todate = strtotime ( $slide->getToDate () );
196
+ $nowdate = strtotime ( $this->formatTime ( now (), Mage_Core_Model_Locale::FORMAT_TYPE_SHORT, true ) );
197
+ } else {
198
+ $fromdate = strtotime ( $this->formatTime ( now (), Mage_Core_Model_Locale::FORMAT_TYPE_SHORT, true ) );
199
+ $todate = strtotime ( $this->formatTime ( now (), Mage_Core_Model_Locale::FORMAT_TYPE_SHORT, true ) );
200
+ $nowdate = strtotime ( $this->formatTime ( now (), Mage_Core_Model_Locale::FORMAT_TYPE_SHORT, true ) );
201
+ }
202
+ $youtube = '';
203
+ $vimeo = '';
204
+ $videoid = $slide->getSlideId () . $groups ['slidergroup_id'];
205
+ ?>
206
+ <?php if($fromdate <= $nowdate && $todate >= $nowdate ) { ?>
207
+ <?php if($slide->getImgVideo() == "vimeo") { ?>
208
+ <?php
209
+ $vimeo = $vimeo + 1;
210
+ $img = $slide->getVideoId ();
211
+ $hash = unserialize ( file_get_contents ( "http://vimeo.com/api/v2/video/$img.php" ) );
212
+ ?>
213
+ <li class="video"><a
214
+ href="http://vimeo.com/<?php echo $slide->getVideoId(); ?>"
215
+ title="<?php echo $this->escapeHtml($slide->getTitles()) ?>"
216
+ target="_blank"><img
217
+ src="<?php echo $hash[0]['thumbnail_large']; ?>"
218
+ alt="<?php echo $this->escapeHtml($slide->getTitles()) ?>" /></a></li>
219
+ <?php }elseif($slide->getImgVideo() == "youtube") {?>
220
+ <?php $youtube = $youtube + 1; ?>
221
+ <li class="video"><a
222
+ href="http://www.youtube.com/watch?v=<?php echo $slide->getVideoId(); ?>"
223
+ title="<?php echo $this->escapeHtml($slide->getTitles()) ?>"
224
+ target="_blank"><img
225
+ src="http://img.youtube.com/vi/<?php echo $slide->getVideoId(); ?>/0.jpg"
226
+ alt="<?php echo $this->escapeHtml($slide->getTitles()) ?>" /></a></li>
227
+ <?php }else{ ?>
228
+ <?php
229
+ if($slide->getData ( 'img_hosting' )) {
230
+ if ($slide->getData ( 'hosted_thumb' )) {
231
+ $imgsrc = $slide->getHostedThumb ();
232
+ }
233
+ }else{
234
+ if ($slide->getData ( 'filename' )) {
235
+ $imgsrc = Mage::getBaseUrl ( 'media' ) . "responsivebannerslider/thumbnails/" . $slide->getData ( 'filename' );
236
+ }
237
+ }
238
+ ?>
239
+
240
+ <?php if($slide->getData('hosted_thumb') != "" || $slide->getData('filename') != "") { ?>
241
+ <li><?php if($slide->getUrl()) {?><a
242
+ href="<?php echo $slide->getUrl(); ?>"
243
+ title="<?php echo $slide->getUrl(); ?>"
244
+ target="<?php if($slide->getUrlTarget() == "new_window") { echo "_blank"; } ?>"><?php } ?><img
245
+ src="<?php echo $imgsrc; ?>"
246
+ alt="<?php echo $slide->getAltText(); ?>" /><?php if($slide->getUrl()) {?></a><?php } ?></li>
247
+ <?php } } ?>
248
+ <?php } ?>
249
+ <?php } ?>
250
+ </ul>
251
+ </div>
252
+ </div>
253
+ <?php } ?>
254
+
255
+ <?php if($groups['slider_type'] == "bas-caro") { ?>
256
+ <div class="slider loading">
257
+ <div id="carousel-<?php echo $groups['slidergroup_id']; ?>"
258
+ class="rwdSlideCrousel <?php echo $navpos.' '.$navarrow.' '.$showpage.' '.$pagepos ?>">
259
+ <ul class="slides">
260
+ <?php
261
+ $sliedsdata = $this->getSlides ( $groups ['slidergroup_id'] );
262
+ foreach ( $sliedsdata as $slide ) {
263
+ if ($slide->getDateEnabled () == 1) {
264
+ $fromdate = strtotime ( $slide->getFromDate () );
265
+ $todate = strtotime ( $slide->getToDate () );
266
+ $nowdate = strtotime ( $this->formatTime ( now (), Mage_Core_Model_Locale::FORMAT_TYPE_SHORT, true ) );
267
+ } else {
268
+ $fromdate = strtotime ( $this->formatTime ( now (), Mage_Core_Model_Locale::FORMAT_TYPE_SHORT, true ) );
269
+ $todate = strtotime ( $this->formatTime ( now (), Mage_Core_Model_Locale::FORMAT_TYPE_SHORT, true ) );
270
+ $nowdate = strtotime ( $this->formatTime ( now (), Mage_Core_Model_Locale::FORMAT_TYPE_SHORT, true ) );
271
+ }
272
+ $youtube = '';
273
+ $vimeo = '';
274
+ $videoid = $slide->getSlideId () . $groups ['slidergroup_id'];
275
+ ?>
276
+ <?php if($fromdate <= $nowdate && $todate >= $nowdate ) { ?>
277
+ <?php if($slide->getImgVideo() == "vimeo") { ?>
278
+ <?php
279
+ $vimeo = $vimeo + 1;
280
+ $img = $slide->getVideoId ();
281
+ $hash = unserialize ( file_get_contents ( "http://vimeo.com/api/v2/video/$img.php" ) );
282
+ ?>
283
+ <li class="video"><img
284
+ src="<?php echo $hash[0]['thumbnail_large']; ?>"
285
+ alt="<?php echo $this->escapeHtml($slide->getTitles()) ?>" /></li>
286
+ <?php } elseif($slide->getImgVideo() == "youtube") { ?>
287
+ <?php $youtube = $youtube + 1; ?>
288
+ <li class="video"><img
289
+ src="http://img.youtube.com/vi/<?php echo $slide->getVideoId(); ?>/0.jpg"
290
+ alt="<?php echo $this->escapeHtml($slide->getTitles()) ?>" /></li>
291
+ <?php } else { ?>
292
+ <?php
293
+ if($slide->getData ( 'img_hosting' )) {
294
+ if ($slide->getData ( 'hosted_thumb' )) {
295
+ $imgsrc = $slide->getHostedThumb ();
296
+ }
297
+ }else{
298
+ if ($slide->getData ( 'filename' )) {
299
+ $imgsrc = Mage::getBaseUrl ( 'media' ) . "responsivebannerslider/thumbnails/" . $slide->getData ( 'filename' );
300
+ }
301
+ }
302
+ ?>
303
+ <?php if($slide->getData('hosted_thumb') != "" || $slide->getData('filename') != "") { ?>
304
+ <li><img src="<?php echo $imgsrc; ?>"
305
+ alt="<?php echo $slide->getAltText(); ?>" /></li>
306
+ <?php } } ?>
307
+ <?php } ?>
308
+ <?php } ?>
309
+ </ul>
310
+ </div>
311
+ </div>
312
+ <?php } ?>
313
+ </div>
314
+
315
+ <script type="text/javascript">
316
+
317
+ function getGridSize() {
318
+ return (window.innerWidth < 600) ? 2 :
319
+ (window.innerWidth < 900) ? 3 : 4;
320
+ }
321
+
322
+ jQuery(window).load(function(){
323
+
324
+ <?php if($groups['slider_type'] != "basic") { ?>
325
+ jQuery('#carousel-<?php echo $groups['slidergroup_id']; ?>').flexslider({
326
+ animation: "slide",
327
+ itemWidth: <?php echo $groups['thumbnail_size']; ?>,
328
+ itemMargin: 10,
329
+
330
+ directionNav: <?php if($groups['navigation_arrow'] == "never") { echo "false"; } else { echo "true"; } ?>,
331
+ <?php if($groups['slider_type']== "bas-caro") { ?>
332
+ slideshow: false,
333
+ animationLoop: true,
334
+ controlNav: false,
335
+ asNavFor: '#rwdSlider-<?php echo $groups['slidergroup_id']; ?>',
336
+ <?php } else { ?>
337
+ controlNav: <?php if($groups['show_pagination'] == "never" || $groups['slider_type']== "bas-caro" || $groups['slider_type']== "basic") { echo "false"; } else { echo "true"; } ?>,
338
+ slideshow: <?php if($groups['start_animation']==0) { echo 'false'; } else { echo 'true'; } ?>,
339
+ animationLoop: <?php if($groups['loop_slider']==0) { echo 'false'; } else { echo 'true'; } ?>,
340
+ <?php } ?>
341
+ start: function(slider){
342
+ jQuery('.slider').removeClass('loading');
343
+ flexslider = slider;
344
+ },
345
+
346
+ navarrow : "<?php echo $navarrow; ?>",
347
+ navstyle : "<?php echo $navstyle; ?>",
348
+ showpage : "<?php echo $showpage; ?>",
349
+ pagestyle : "<?php echo $pagestyle; ?>",
350
+ pagepos : "<?php echo $pagepos; ?>",
351
+
352
+
353
+ });
354
+
355
+
356
+ jQuery(window).resize(function() {
357
+ var gridSize = getGridSize();
358
+
359
+ flexslider.vars.minItems = gridSize;
360
+ flexslider.vars.maxItems = gridSize;
361
+ });
362
+
363
+ <?php } ?>
364
+
365
+ <?php if($groups['slider_type'] != "carousel") { ?>
366
+ <?php if($youtube) { ?>
367
+ jQuery.getScript('//www.youtube.com/iframe_api');
368
+
369
+ var cnt = 0;
370
+ jQuery('#rwdSlider-<?php echo $groups['slidergroup_id']; ?> li.video iframe.youtube').each(function() {
371
+ jQuery(this).attr('id', 'youtubeplayer' + cnt);
372
+ cnt++;
373
+ });
374
+
375
+ loadSlider();
376
+
377
+ function loadSlider() {
378
+ if(typeof(YT) != 'undefined') {
379
+ jQuery('.slides').fitVids();
380
+ <?php } ?>
381
+
382
+
383
+ jQuery('#rwdSlider-<?php echo $groups['slidergroup_id']; ?>').fitVids().flexslider({
384
+
385
+ directionNav: <?php if($groups['navigation_arrow'] == "never") { echo "false"; } else { echo "true"; } ?>,
386
+ controlNav: <?php if($groups['show_pagination'] == "never" || $groups['slider_type']== "bas-caro" || $groups['slider_type']== "carousel") { echo "false"; } else { echo "true"; } ?>,
387
+ slideshow: <?php if($groups['start_animation']==0) { echo 'false'; } else { echo 'true'; } ?>,
388
+ animationLoop: <?php if($groups['loop_slider']==0) { echo 'false'; } else { echo 'true'; } ?>,
389
+ pauseOnAction: <?php if($groups['pause_snavigation']==0) { echo 'false'; } else { echo 'true'; } ?>,
390
+ pauseOnHover: <?php if($groups['pause_shover']==0) { echo 'false'; } else { echo 'true'; } ?>,
391
+ animation: "<?php echo $groups['animation_type'] ?>",
392
+ animationSpeed: <?php echo $groups['animation_duration'] ?>,
393
+ direction: "<?php echo $groups['animation_direction'] ?>",
394
+ slideshowSpeed: <?php echo $groups['slide_duration'] ?>,
395
+ randomize: <?php if($groups['random_order']==0 || $groups['slider_type'] == "bas-caro") { echo 'false'; } else { echo 'true'; } ?>,
396
+ smoothHeight: <?php if($groups['smooth_height']==0) { echo 'false'; } else { echo 'true'; } ?>,
397
+
398
+ <?php if($vimeo || $youtube) { ?>
399
+ video: true,
400
+ <?php } ?>
401
+
402
+ <?php if($groups['slider_type']== "bas-caro") { ?>
403
+ sync: "#carousel-<?php echo $groups['slidergroup_id']; ?>",
404
+ <?php } ?>
405
+
406
+ <?php if($vimeo) { ?>
407
+ before: function(slider){
408
+ $f(player).api('pause');
409
+
410
+ },
411
+ <?php } ?>
412
+
413
+ <?php if($youtube) { ?>
414
+ after: function(slider) {
415
+
416
+ createPlayers(slider);
417
+
418
+ },
419
+ before: function(slider) {
420
+ for (key in players) {
421
+
422
+ players[key].pauseVideo();
423
+
424
+
425
+ }
426
+ <?php if($vimeo) { ?>
427
+ $f(player).api('pause');
428
+ <?php } ?>
429
+ },
430
+ start: function(slider) {
431
+
432
+ createPlayers(slider);
433
+
434
+ jQuery('.slider').removeClass('loading');
435
+
436
+ },
437
+ <?php } else { ?>
438
+ start: function(slider){
439
+ jQuery('.slider').removeClass('loading');
440
+
441
+ <?php if($this->getLazylaod()) { ?>
442
+ jQuery(slider).find("img.cwslazy").slice(0,2).each(function () {
443
+ var src = jQuery(this).attr("data-src");
444
+ jQuery(this).attr("src", src).removeAttr("data-src").removeClass("cwslazy");
445
+ });
446
+ <?php } ?>
447
+
448
+ },
449
+
450
+ <?php if($this->getLazylaod()) { ?>
451
+ before: function (slider) {
452
+
453
+ var slide = jQuery(slider).find('.slides').children().eq(slider.animatingTo+1).find('img');
454
+ var src = slide.attr("data-src");
455
+ slide.attr("src", src).removeAttr("data-src").removeClass("cwslazy");
456
+ },
457
+ <?php } ?>
458
+ <?php } ?>
459
+
460
+ navarrow : "<?php echo $navarrow; ?>",
461
+ navstyle : "<?php echo $navstyle; ?>",
462
+ showpage : "<?php echo $showpage; ?>",
463
+ pagestyle : "<?php echo $pagestyle; ?>",
464
+ pagepos : "<?php echo $pagepos; ?>",
465
+
466
+ });
467
+
468
+ <?php if($youtube) { ?>
469
+ clearTimeout(timeout);
470
+ } else {
471
+ var timeout = setTimeout(loadSlider, 1000);
472
+ }
473
+ }
474
+ <?php } ?>
475
+
476
+ <?php if($vimeo) { ?>
477
+ var player = document.getElementById('player_<?php echo $groups['slidergroup_id']; ?>');
478
+
479
+ $f(player).addEvent('ready', ready);
480
+
481
+ function addEvent(element, eventName, callback) {
482
+
483
+ (element.addEventListener) ? element.addEventListener(eventName, callback, false) : element.attachEvent(eventName, callback, false);
484
+ }
485
+
486
+ function ready(player_id) {
487
+ var froogaloop = $f(player_id);
488
+
489
+ froogaloop.addEvent('play', function(data) {
490
+
491
+ jQuery('#rwdSlider-<?php echo $groups['slidergroup_id']; ?>').flexslider("pause");
492
+ });
493
+
494
+ froogaloop.addEvent('pause', function(data) {
495
+ jQuery('#rwdSlider-<?php echo $groups['slidergroup_id']; ?>').flexslider("play");
496
+ });
497
+ }
498
+ <?php } ?>
499
+
500
+ <?php if($youtube) { ?>
501
+ var players = {};
502
+
503
+ function createPlayers(slider) {
504
+ var playtimer = [];
505
+ (function(jQuery) {
506
+ jQuery("#rwdSlider-<?php echo $groups['slidergroup_id']; ?> li.video iframe.youtube").each(function(index) {
507
+ var frameID = this.id;
508
+
509
+
510
+ if (frameID) {
511
+
512
+ if (!(frameID in players)) {
513
+
514
+ if (jQuery(this).parents('.cws-active-slide').length > 0) {
515
+
516
+ players[frameID] = new YT.Player(frameID, {
517
+ events: {
518
+ "onStateChange": function(event) {
519
+
520
+ if(event.data == 1 || event.data == 3) {
521
+ slider.flexslider('pause');
522
+ for (var i=0; i<playtimer.length; i++) {
523
+ clearTimeout(playtimer[i]);
524
+ }
525
+ playtimer = [];
526
+
527
+ } else {
528
+
529
+ playtimer.push(setTimeout(function(){
530
+ slider.flexslider('play');
531
+
532
+ }, 2000));
533
+ }
534
+ }
535
+ }
536
+ });
537
+ }
538
+ }
539
+ }
540
+ });
541
+ }) (jQuery);
542
+ }
543
+
544
+ <?php } ?>
545
+ <?php } ?>
546
+ });
547
+ </script>
548
+ <?php } ?>
549
+ <?php } ?>
550
+ <?php } ?>
js/responsivebannerslider/jquery.easing.js CHANGED
@@ -1,11 +1,3 @@
1
- /***************************************************************************
2
- @extension : Responsive Banner Slider Extension.
3
- @copyright : Copyright (c) 2015 Capacity Web Solutions.
4
- ( http://www.capacitywebsolutions.com )
5
- @author : Capacity Web Solutions Pvt. Ltd.
6
- @support : magento@capacitywebsolutions.com
7
- ***************************************************************************/
8
-
9
  jQuery.easing['jswing'] = jQuery.easing['swing'];
10
 
11
  jQuery.extend( jQuery.easing,
 
 
 
 
 
 
 
 
1
  jQuery.easing['jswing'] = jQuery.easing['swing'];
2
 
3
  jQuery.extend( jQuery.easing,
js/responsivebannerslider/noconflict.js ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Magento
3
+ *
4
+ * NOTICE OF LICENSE
5
+ *
6
+ * This source file is subject to the Academic Free License (AFL 3.0)
7
+ * that is bundled with this package in the file LICENSE_AFL.txt.
8
+ * It is also available through the world-wide-web at this URL:
9
+ * http://opensource.org/licenses/afl-3.0.php
10
+ * If you did not receive a copy of the license and are unable to
11
+ * obtain it through the world-wide-web, please send an email
12
+ * to license@magentocommerce.com so we can send you a copy immediately.
13
+ *
14
+ * DISCLAIMER
15
+ *
16
+ * Do not edit or add to this file if you wish to upgrade Magento to newer
17
+ * versions in the future. If you wish to customize Magento for your
18
+ * needs please refer to http://www.magentocommerce.com for more information.
19
+ *
20
+ * @category design
21
+ * @package rwd_default
22
+ * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
23
+ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
24
+ */
25
+
26
+ // Avoid PrototypeJS conflicts, assign jQuery to $j instead of $
27
+ var $j = jQuery.noConflict();
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Responsive_Banner_Slider</name>
4
- <version>1.0.3</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL 3.0</license>
7
  <channel>community</channel>
@@ -12,9 +12,9 @@ This extension is easy to setup and give many options for settings from admin. Y
12
  </description>
13
  <notes>Capacity Web Solutions - Responsive Banner Slider</notes>
14
  <authors><author><name>Capacity Web Solutions</name><user>capacitywebsolutions</user><email>magento@capacitywebsolutions.com</email></author></authors>
15
- <date>2015-06-18</date>
16
- <time>05:27:47</time>
17
- <contents><target name="mageetc"><dir name="modules"><file name="CapacityWebSolutions_Responsivebannerslider.xml" hash="2a99a1b776e46e0f263fd11bbf3734e6"/></dir></target><target name="magecommunity"><dir name="CapacityWebSolutions"><dir name="Responsivebannerslider"><dir name="Block"><dir name="Adminhtml"><dir name="Slider"><dir name="Edit"><file name="Form.php" hash="c693bcac807af9a09d440eb168eb3fe2"/><dir name="Tab"><file name="Form.php" hash="7dcf146f6ae769ce2bb6e8a9c42e45cf"/></dir><file name="Tabs.php" hash="8925bab36ab5c00e08c11550428f2779"/></dir><file name="Edit.php" hash="50a6189710bd2c95fe797dea961e2b25"/><file name="Grid.php" hash="5aacb488667b8992fb2af5d18570d355"/><dir name="Renderer"><file name="Groups.php" hash="64bf193cdbe365b53f740f42171f1264"/></dir></dir><file name="Slider.php" hash="f43c568cf9cdb2ab00cdcc5570be0124"/><dir name="Slidergroup"><dir name="Edit"><file name="Form.php" hash="15e4ceaab37f2fa892538a832697e72d"/><dir name="Tab"><file name="Categories.php" hash="d340ac103065e332355c25db225dce19"/><file name="Code.php" hash="bc6d2bfc008c7dc062d12f0b95d1b1bb"/><file name="Form.php" hash="1e1f0bec054bbe9ddc779a91e7f1d901"/><file name="Pages.php" hash="0334b4b413b08fad246b1e75a1295b02"/><file name="Product.php" hash="ba020e27a3f51a75d1532b4e93b12564"/><file name="Sliders.php" hash="76bad616a4aeb6038a9b93fe85ec9fe8"/></dir><file name="Tabs.php" hash="7d50ea95fc1b3d889a5f7bfaa0b50961"/></dir><file name="Edit.php" hash="53f1d1360409a52f6d145a449acd98c7"/><file name="Grid.php" hash="443805684f17f487242a12e16bd22415"/></dir><file name="Slidergroup.php" hash="bea6d477bee50e19884d58232edb8891"/></dir><dir name="View"><file name="Bottom.php" hash="9789f6620c9b423fa0fd008ca8b891d6"/><file name="Top.php" hash="4e40ef544497f9ecf2a8475416a856eb"/></dir><file name="View.php" hash="4cb60d2f10505e4de132c7ac4a637593"/></dir><dir name="Helper"><file name="Data.php" hash="7ba54649e54da8b57b88806585a7df55"/></dir><dir name="Model"><file name="Categories.php" hash="8cac29d0e10ed8f42a9715ec171fe8a3"/><file name="Category.php" hash="aa800bbb91d4eed0172493aadb6278bb"/><dir name="Config"><file name="Effect.php" hash="49b86e04e38bd1757bf56d18503e1264"/><dir name="Source"><file name="Animationdirection.php" hash="9904f3f77ecc8f5def84b5f0ac147bca"/><file name="Animationtype.php" hash="eb4341a59f0ed657427cc2e847774553"/><file name="Effect.php" hash="365bfe3aaa0fa7e8235bd9131670ab91"/><file name="Navigation.php" hash="83af4ecbf1e4ab33261a9b5974db1d5d"/><file name="Navigationarrow.php" hash="78e6de8297d88504f0de352027076d76"/><file name="Navigationstyle.php" hash="84087644e9b439178d9a5eeb1a217cab"/><file name="Pages.php" hash="025071e0c33ec7fae54255f6309b60b8"/><file name="Paginationposition.php" hash="d672cc31fd6a35fcdae6b8658bde95a1"/><file name="Paginationstyle.php" hash="a8db3db4636afe540f5148bf4a0aab01"/><file name="Position.php" hash="0d221cdb4209f1dd469d2512d6a76e41"/><file name="Status.php" hash="1217aaf60bdb16c6e05236bbfc663b9a"/><file name="Theme.php" hash="50d77ffc3961aa7cab380d1ef13ccf0c"/><file name="Type.php" hash="249d3e740618010a249029a7bb9f2de1"/><file name="Urltarget.php" hash="f94e29c587735a3371ec951de478911c"/><file name="Video.php" hash="3aebf9b4033a31b8e795954909293ba9"/></dir></dir><dir name="Mysql4"><dir name="Categories"><file name="Collection.php" hash="a6f9741b66824a9fa833ade979a3a742"/></dir><file name="Categories.php" hash="af9c86a9f68ff02398e281f5f9ddbd8a"/><dir name="Page"><file name="Collection.php" hash="d5c87f75df5dba2ccb9f4c69a1ae01ca"/></dir><file name="Page.php" hash="6f9edf1be7105da0237dff5f1e64dc4e"/><dir name="Product"><file name="Collection.php" hash="a7205246e7aa75e22ea0d40efdc42595"/></dir><file name="Product.php" hash="6f4fe1a80df501a543efa6ddd044fa32"/><dir name="Responsivebannerslider"><file name="Collection.php" hash="9f2ded0948a1dd2c842e8636a4136c6b"/></dir><file name="Responsivebannerslider.php" hash="79d630dad9ce750cc53e0b5783927671"/><dir name="Slide"><file name="Collection.php" hash="10b7ee679e1c02de23000faf2146c38d"/></dir><file name="Slide.php" hash="63ed667457c4543861d8ae3ddb3784cf"/><dir name="Store"><file name="Collection.php" hash="83a4477b9ea24237b4aa151c223e3610"/></dir><file name="Store.php" hash="dc35d5d57d9aed5adcdd350df8e70468"/></dir><file name="Observer.php" hash="15a4bab058ed736878f0bde325c8049c"/><file name="Page.php" hash="ce06882b913b33fbdd20bb413004e8d1"/><file name="Product.php" hash="619f0b5ae7de3642fec5aa563e470640"/><file name="Responsivebannerslider.php" hash="308eb76b21f2cbf3403e2f9186213ca1"/><file name="Slide.php" hash="444dc63f5a09ed39bf94f3f1a19ccc07"/><file name="Status.php" hash="e06821c830b4e225d31035949ea117f1"/><file name="Store.php" hash="1828b5e27442c34c1b4faaa9121fcf99"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="SliderController.php" hash="335459a25666546a9343c13953a98628"/><file name="SlidergroupController.php" hash="63eb4f86e01b94df860a6f8a9e289755"/></dir><file name="IndexController.php" hash="b9e855e216650c60383de700e844afa7"/></dir><dir name="etc"><file name="config.xml" hash="1ec957323b2aee68449f5784ac65d0e6"/><file name="system.xml" hash="c8d53724d01659acdc6e522bd2e92d98"/></dir><dir name="sql"><dir name="responsivebannerslider_setup"><file name="mysql4-install-1.0.0.php" hash="a3ff6eea114f0c77c308eab7ea8e6130"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="responsivebannerslider"><file name="slider.phtml" hash="290149893458ee0cf23da38a6dbd7589"/></dir></dir><dir name="layout"><file name="responsivebannerslider.xml" hash="7d68272277e21dcda469e0f324bfae83"/></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="responsivebannerslider.xml" hash="0fd874a3c971f07fd6dc9c43d7298c74"/></dir><dir name="template"><dir name="responsivebannerslider"><dir name="category"><dir name="edit"><dir name="tab"><file name="categories.phtml" hash="95f4e5af33719a2543c73bc2eaae7395"/><file name="product.phtml" hash="8c289cbb0690fae8ea3819269bb369c1"/></dir></dir></dir><file name="code.phtml" hash="e2f283ad329cbb0be32d4bb10547b4f8"/><file name="group.phtml" hash="d61dc612ed18ad9d463dcce2b21149c2"/><file name="store.phtml" hash="9d96b0194b3a4863b44920fccc1db4d2"/></dir></dir></dir></dir></dir></target><target name="mageweb"><dir name="js"><dir name="responsivebannerslider"><file name="froogaloop.js" hash="e743b8d812558184ec3d4cae1038d551"/><file name="jquery.easing.js" hash="7a5ecdcd9a7623fbe340b9ab87e87d74"/><file name="jquery.fitvid.js" hash="c6f6443bff74dd462b30e5445ed551f3"/><file name="jquery.flexslider.js" hash="187a981329e19fd8f436c4ca87e472e7"/><file name="jquery.lazy.js" hash="fc16f364749bfc6613f981e443512d44"/><file name="jquery.min.js" hash="8101d596b2b8fa35fe3a634ea342d7c3"/><dir name="jscolor"><file name="Thumbs.db" hash="32fb573f166c0f3a4556474b2be54a05"/><file name="arrow.gif" hash="5034704a76cd55c1cbcbc58ea6bf523f"/><file name="cross.gif" hash="ba9a274b9323753cd95bc3b1eb2f4e5f"/><file name="hs.png" hash="fefa1a03d92ebad25c88dca94a0b63db"/><file name="hv.png" hash="990d71cada17da100653636cf8490884"/><file name="jscolor.js" hash="1a38f74bda8ecffcc0130ae4c40259ec"/></dir><file name="product-selector.js" hash="18edba645290825072641d0c032b0a0f"/></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="responsivebannerslider"><file name="Thumbs.db" hash="f37f36470242a70f0899bbf428653d0a"/><file name="bottom-shadow.png" hash="5f1ff2657b5f90226685492cefa866f6"/><file name="default.css" hash="5de24ed11eff80d11255765ca51f161b"/><dir name="fonts"><file name="cwsarw.eot" hash="41f04937f0acde47c88f749f001bb12f"/><file name="cwsarw.svg" hash="07131191014e36c08d6a67e34d74b709"/><file name="cwsarw.ttf" hash="4006f9d9fa6d69039f9c87bdc9b58c0f"/><file name="cwsarw.woff" hash="a9149ac28397ca3af9949933fb53fb60"/></dir><file name="loading.gif" hash="5d25806dac7cbee5f894b13144783866"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="responsivebannerslider"><file name="cwsarw.eot" hash="41f04937f0acde47c88f749f001bb12f"/><file name="cwsarw.svg" hash="07131191014e36c08d6a67e34d74b709"/><file name="cwsarw.ttf" hash="4006f9d9fa6d69039f9c87bdc9b58c0f"/><file name="cwsarw.woff" hash="a9149ac28397ca3af9949933fb53fb60"/><file name="responsivebannerslider.css" hash="e03584b7abd8cef4f16aab5ff20e809e"/></dir></dir></dir></dir></target></contents>
18
  <compatible/>
19
  <dependencies><required><php><min>5.0.0</min><max>6.0.0</max></php></required></dependencies>
20
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Responsive_Banner_Slider</name>
4
+ <version>1.0.4</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL 3.0</license>
7
  <channel>community</channel>
12
  </description>
13
  <notes>Capacity Web Solutions - Responsive Banner Slider</notes>
14
  <authors><author><name>Capacity Web Solutions</name><user>capacitywebsolutions</user><email>magento@capacitywebsolutions.com</email></author></authors>
15
+ <date>2015-11-04</date>
16
+ <time>11:05:44</time>
17
+ <contents><target name="mageetc"><dir name="modules"><file name="CapacityWebSolutions_Responsivebannerslider.xml" hash="2a99a1b776e46e0f263fd11bbf3734e6"/></dir></target><target name="magecommunity"><dir name="CapacityWebSolutions"><dir name="Responsivebannerslider"><dir name="Block"><dir name="Adminhtml"><dir name="Slider"><dir name="Edit"><file name="Form.php" hash="17f3cb3d8ffd6e4230585c5c688ac81c"/><dir name="Tab"><file name="Form.php" hash="2949d3326a06c6ada331886baecabdc0"/></dir><file name="Tabs.php" hash="6fc3a9dff8a464b5e3424b5f5c146740"/></dir><file name="Edit.php" hash="cadae8152a4fbc7daeeca33cb3239b12"/><file name="Grid.php" hash="73d6099ff428308c97d5a5987468351d"/><dir name="Renderer"><file name="Groups.php" hash="f450d38f65729f93ff061e52b969d1d7"/></dir></dir><file name="Slider.php" hash="7070a383d0ef3c35180ffe2a98934c1d"/><dir name="Slidergroup"><dir name="Edit"><file name="Form.php" hash="8baf9a1e9bf39d7d9daff14b7cb4d6d6"/><dir name="Tab"><file name="Categories.php" hash="f5b235a7ea0c7b916aae155c1f8b25e0"/><file name="Code.php" hash="98016dab4c6027444c0e38d847b7568c"/><file name="Form.php" hash="7c487f53cfc01711b2dd86d3f5d7744d"/><file name="Pages.php" hash="92eee39070154d0c54cc3e0550d84407"/><file name="Product.php" hash="3f5c524d50e76f83c0b5cd9a29889d32"/><file name="Sliders.php" hash="cceb8ac9947ddbefa0d1e956d269c5a4"/></dir><file name="Tabs.php" hash="91069bfcffa18bbd5840ea918aae67b0"/></dir><file name="Edit.php" hash="e020e09b27354d862469dc0cf1967114"/><file name="Grid.php" hash="2c79491986ebe5694b6b413dfc325535"/></dir><file name="Slidergroup.php" hash="8ac9559126d85ac1a6f17cee1f4a33b8"/></dir><file name="Managejquery.php" hash="0b26b3c7b0e06939f207cdcb7bfb3227"/><dir name="View"><file name="Bottom.php" hash="d90129cfa7a857b468d3511ce138b8ff"/><file name="Top.php" hash="85e6d5cd1bef6e73eacc08a960db8aee"/></dir><file name="View.php" hash="c48ff1e192d4ae117d0c70cc7c4acdd1"/></dir><dir name="Helper"><file name="Data.php" hash="84828898cc29f0fbc768058b41a84580"/></dir><dir name="Model"><file name="Categories.php" hash="57296bd0c56e74893a609ed0ddf9d45e"/><file name="Category.php" hash="dd7148f7428d670c96235ae63d91d79a"/><dir name="Config"><file name="Effect.php" hash="2ce7443b1ed137840e66d215487e2bb3"/><dir name="Source"><file name="Animationdirection.php" hash="a6f08629cc5eb90d2d451105edd4aaa0"/><file name="Animationtype.php" hash="bc8392149926b55deedae4624c2fe023"/><file name="Effect.php" hash="9b8a7a6d36a6dc4c817a87de3fa699b7"/><file name="Navigation.php" hash="f4ce37f8a1c3825838a7a1b4fed9f356"/><file name="Navigationarrow.php" hash="05d4279318808d335bf13f5c44fe7ac7"/><file name="Navigationstyle.php" hash="20455858028f7ca4aa45ae6eeb17a304"/><file name="Pages.php" hash="f45d519cece719429baaa2358bc39a61"/><file name="Paginationposition.php" hash="15a963d2c2a164b452481a5d0024d5ef"/><file name="Paginationstyle.php" hash="6c95f8f1ddf4f44d47105ea5ecda4112"/><file name="Position.php" hash="7c80614814b1f3c68dc93f27bae6f8ae"/><file name="Status.php" hash="0796ee28dfa1c0efeb05e76e24e38b05"/><file name="Theme.php" hash="49a82217459acbf53b8ffa09bb932464"/><file name="Type.php" hash="3d34468dd2ee506eeec1e1ba00cd1bea"/><file name="Urltarget.php" hash="a50894254cdfceff5047584da8e9d548"/><file name="Video.php" hash="87d090f33628dbacde33f910d0c0e8ce"/></dir></dir><dir name="Mysql4"><dir name="Categories"><file name="Collection.php" hash="0c436f84325734a4bf8aa03f118269ea"/></dir><file name="Categories.php" hash="6e1f52a5a4ac1d33e3510bca9b4f362c"/><dir name="Page"><file name="Collection.php" hash="e526ad44fbbc13417e1cee48d8e465b9"/></dir><file name="Page.php" hash="77374731c41496e33cb7a663a56195dd"/><dir name="Product"><file name="Collection.php" hash="2a0d15f001feb57306a94ece89f11a5b"/></dir><file name="Product.php" hash="4e19a9eef14fd3a42d08babdbdd3b6f4"/><dir name="Responsivebannerslider"><file name="Collection.php" hash="c764cb632d923be25b831844f31fa86e"/></dir><file name="Responsivebannerslider.php" hash="3615fdf9f7b8628aea07a55aee18de1c"/><dir name="Slide"><file name="Collection.php" hash="bf1e9f434ccc37e6cc5a8e1ccb293ec7"/></dir><file name="Slide.php" hash="a4319ae57aeec3ca0cd9ba9072242359"/><dir name="Store"><file name="Collection.php" hash="6e8074d14795a5616ae5ec4ca19d61f6"/></dir><file name="Store.php" hash="395d9ef456ce2d4657c38d40ead14ca9"/></dir><file name="Observer.php" hash="8254e1ff4de59d85f7fdee998c3f5ac1"/><file name="Page.php" hash="e731122ff43c5f429ef74c13ff753d02"/><file name="Product.php" hash="e5df2a97a9c731bfa7d8f02e147fd22d"/><file name="Responsivebannerslider.php" hash="263b387e413a4214ab0a0e86a9fd6e3f"/><file name="Slide.php" hash="80b4265825d4869d0845cffb56abdc77"/><file name="Status.php" hash="d761089547610782ffe234068b64a0c1"/><file name="Store.php" hash="22e15c706b73a36121038cd3b3bbd87b"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="SliderController.php" hash="ff5b53dc539478f48cf78d3f4be0613f"/><file name="SlidergroupController.php" hash="ed22fff6b5e53c7baa1afd9902bd14bd"/></dir><file name="IndexController.php" hash="c372901b890198fc9985869abdc90d28"/></dir><dir name="etc"><file name="config.xml" hash="8f31d668f4365c677e01067308d4ac7a"/><file name="system.xml" hash="a3a30d97ccb11165aaa070ed3d43193f"/></dir><dir name="sql"><dir name="responsivebannerslider_setup"><file name="mysql4-install-1.0.0.php" hash="dd317969e394f019f670fc9215d3d24e"/><file name="mysql4-upgrade-1.0.0-1.0.4.php" hash="f4b6dbcc84c706ac64eefc60a9514aca"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="responsivebannerslider"><file name="slider.phtml" hash="cfff14ca241816592e7f4e6de7eceb74"/></dir></dir><dir name="layout"><file name="responsivebannerslider.xml" hash="5c06eaea05350de42dff97e9293957f1"/></dir></dir></dir><dir name="rwd"><dir name="default"><dir name="template"><dir name="responsivebannerslider"><file name="slider.phtml" hash="cfff14ca241816592e7f4e6de7eceb74"/></dir></dir><dir name="layout"><file name="responsivebannerslider.xml" hash="cdbc2981eff3ec52b737f9f3b1742204"/></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="responsivebannerslider.xml" hash="cb3f7d434d8fed4a0c7bbe4a73bc3330"/></dir><dir name="template"><dir name="responsivebannerslider"><dir name="category"><dir name="edit"><dir name="tab"><file name="categories.phtml" hash="6b303d835ff6253dbe886a122b9f0525"/><file name="product.phtml" hash="b9b2c3c20413350b32bb95cde32a5d4e"/></dir></dir></dir><file name="code.phtml" hash="af377b86f952ba6aa53f9b804aa3e91d"/><file name="group.phtml" hash="78b7de9951858fab9c2c5475e814d781"/><file name="store.phtml" hash="24b845710dca373d5ed8eb0c5f114637"/></dir></dir></dir></dir></dir></target><target name="mageweb"><dir name="js"><dir name="responsivebannerslider"><file name="froogaloop.js" hash="e743b8d812558184ec3d4cae1038d551"/><file name="jquery.easing.js" hash="a3a4b38d63c286a696e142c355367619"/><file name="jquery.fitvid.js" hash="c6f6443bff74dd462b30e5445ed551f3"/><file name="jquery.flexslider.js" hash="187a981329e19fd8f436c4ca87e472e7"/><file name="jquery.lazy.js" hash="fc16f364749bfc6613f981e443512d44"/><file name="jquery.min.js" hash="8101d596b2b8fa35fe3a634ea342d7c3"/><dir name="jscolor"><file name="Thumbs.db" hash="32fb573f166c0f3a4556474b2be54a05"/><file name="arrow.gif" hash="5034704a76cd55c1cbcbc58ea6bf523f"/><file name="cross.gif" hash="ba9a274b9323753cd95bc3b1eb2f4e5f"/><file name="hs.png" hash="fefa1a03d92ebad25c88dca94a0b63db"/><file name="hv.png" hash="990d71cada17da100653636cf8490884"/><file name="jscolor.js" hash="1a38f74bda8ecffcc0130ae4c40259ec"/></dir><file name="noconflict.js" hash="2de1eabae306cff4f08b9f5eb1c934df"/><file name="product-selector.js" hash="18edba645290825072641d0c032b0a0f"/></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="responsivebannerslider"><file name="Thumbs.db" hash="f37f36470242a70f0899bbf428653d0a"/><file name="bottom-shadow.png" hash="5f1ff2657b5f90226685492cefa866f6"/><file name="default.css" hash="5de24ed11eff80d11255765ca51f161b"/><dir name="fonts"><file name="cwsarw.eot" hash="41f04937f0acde47c88f749f001bb12f"/><file name="cwsarw.svg" hash="07131191014e36c08d6a67e34d74b709"/><file name="cwsarw.ttf" hash="4006f9d9fa6d69039f9c87bdc9b58c0f"/><file name="cwsarw.woff" hash="a9149ac28397ca3af9949933fb53fb60"/></dir><file name="group-1.css" hash="9cd923906b53a70976b9164192169d62"/><file name="group-2.css" hash="4d44c87fa6c87fc82a14731cd03ab470"/><file name="loading.gif" hash="5d25806dac7cbee5f894b13144783866"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="responsivebannerslider"><file name="cwsarw.eot" hash="41f04937f0acde47c88f749f001bb12f"/><file name="cwsarw.svg" hash="07131191014e36c08d6a67e34d74b709"/><file name="cwsarw.ttf" hash="4006f9d9fa6d69039f9c87bdc9b58c0f"/><file name="cwsarw.woff" hash="a9149ac28397ca3af9949933fb53fb60"/><file name="responsivebannerslider.css" hash="e03584b7abd8cef4f16aab5ff20e809e"/></dir></dir></dir></dir></target></contents>
18
  <compatible/>
19
  <dependencies><required><php><min>5.0.0</min><max>6.0.0</max></php></required></dependencies>
20
  </package>
skin/frontend/base/default/css/responsivebannerslider/group-1.css ADDED
@@ -0,0 +1 @@
 
1
+ #bnrSlider-1 { }#bnrSlider-1 { max-width:; }#bnrSlider-1 .sliderdecs { background-color:#333333; opacity:0.9; }#bnrSlider-1 .cws-arw a:before { color:#333333; }#bnrSlider-1 .cws-pager a { background-color:#777777; }#bnrSlider-1 .cws-pager a.cws-active { background-color:#000000; }#bnrSlider-1 .cws-pager.cir-bar { background-color:#; }#bnrSlider-1 .cws-pager.squ-bar { background-color:#; }@media (min-width:999px){#carousel-1 ul.slides li { width:200px !important;}}
skin/frontend/base/default/css/responsivebannerslider/group-2.css ADDED
@@ -0,0 +1 @@
 
1
+ #bnrSlider-2 { }#bnrSlider-2 { max-width:; }#bnrSlider-2 .sliderdecs { background-color:#333333; opacity:0.9; }#bnrSlider-2 .cws-arw a:before { color:#333333; }#bnrSlider-2 .cws-pager a { background-color:#777777; }#bnrSlider-2 .cws-pager a.cws-active { background-color:#000000; }#bnrSlider-2 .cws-pager.cir-bar { background-color:#; }#bnrSlider-2 .cws-pager.squ-bar { background-color:#; }@media (min-width:999px){#carousel-2 ul.slides li { width:200px !important;}}