Netgo_Nbanners - Version 1.0.1

Version Notes

First Preview Release

Download this release

Release Info

Developer NetGo
Extension Netgo_Nbanners
Version 1.0.1
Comparing to
See all releases


Code changes from version 1.0.0 to 1.0.1

app/code/community/Netgo/Nbanners/Block/Index.php CHANGED
@@ -15,11 +15,7 @@ class Netgo_Nbanners_Block_Index extends Mage_Core_Block_Template{
15
 
16
  public function __construct()
17
  {
18
- parent::__construct();
19
-
20
- //echo "id is".$this->getGroup();die;
21
- //$status = Netgo_Nbanners_Helper_Data::enabledisable();
22
-
23
  }
24
 
25
  public function getSliderCollection()
@@ -28,8 +24,7 @@ public function getSliderCollection()
28
 
29
  $collection = Mage::getModel('nbanners/nbanners')->getCollection();
30
  $collection->addFieldToFilter('nbanners_status', 1);
31
- $collection->addFieldToFilter('nbannergroup', $this->getGroup());//
32
- // $this->setCollection($collection);
33
  return $collection;
34
 
35
  }
15
 
16
  public function __construct()
17
  {
18
+ parent::__construct();
 
 
 
 
19
  }
20
 
21
  public function getSliderCollection()
24
 
25
  $collection = Mage::getModel('nbanners/nbanners')->getCollection();
26
  $collection->addFieldToFilter('nbanners_status', 1);
27
+ $collection->addFieldToFilter('nbannergroup', $this->getGroup());
 
28
  return $collection;
29
 
30
  }
app/code/community/Netgo/Nbanners/Helper/Data.php CHANGED
@@ -18,6 +18,11 @@ class Netgo_Nbanners_Helper_Data extends Mage_Core_Helper_Abstract
18
  return $enableDisableValue;
19
 
20
  }
 
 
 
 
 
21
  public function showpagination(){
22
  $paginationValue = Mage::getStoreConfig('netgo_nbanners/netgo_nbanners_group/pagination', Mage::app()->getStore());
23
  return $paginationValue;
18
  return $enableDisableValue;
19
 
20
  }
21
+ /*public function enablejquery(){
22
+ $enableJqueryValue = Mage::getStoreConfig('netgo_nbanners/netgo_nbanners_group/enablejquery', Mage::app()->getStore());
23
+ return $enableJqueryValue;
24
+
25
+ }*/
26
  public function showpagination(){
27
  $paginationValue = Mage::getStoreConfig('netgo_nbanners/netgo_nbanners_group/pagination', Mage::app()->getStore());
28
  return $paginationValue;
app/code/community/Netgo/Nbanners/etc/config.xml CHANGED
@@ -15,7 +15,7 @@
15
  <config>
16
  <modules>
17
  <Netgo_Nbanners>
18
- <version>0.1.0</version>
19
  </Netgo_Nbanners>
20
  </modules>
21
  <frontend>
15
  <config>
16
  <modules>
17
  <Netgo_Nbanners>
18
+ <version>1.0.0</version>
19
  </Netgo_Nbanners>
20
  </modules>
21
  <frontend>
app/code/community/Netgo/Nbanners/etc/system.xml CHANGED
@@ -46,7 +46,20 @@
46
  <show_in_website>1</show_in_website>
47
  <show_in_store>1</show_in_store>
48
  </status>
 
 
 
 
 
 
 
 
 
 
 
 
49
  </fields>-->
 
50
  <fields>
51
  <pagination translate="label">
52
  <label>Show Pagination</label>
46
  <show_in_website>1</show_in_website>
47
  <show_in_store>1</show_in_store>
48
  </status>
49
+ </fields>
50
+
51
+ <fields>
52
+ <enablejquery translate="label">
53
+ <label>Enable JQuery</label>
54
+ <frontend_type>select</frontend_type>
55
+ <source_model>adminhtml/system_config_source_yesno</source_model>
56
+ <sort_order>1</sort_order>
57
+ <show_in_default>1</show_in_default>
58
+ <show_in_website>1</show_in_website>
59
+ <show_in_store>1</show_in_store>
60
+ </enablejquery>
61
  </fields>-->
62
+
63
  <fields>
64
  <pagination translate="label">
65
  <label>Show Pagination</label>
app/code/community/Netgo/Nbanners/sql/nbanners_setup/mysql4-install-0.1.0.php CHANGED
@@ -13,7 +13,7 @@
13
  $installer = $this;
14
  $installer->startSetup();
15
  $sql=<<<SQLTEXT
16
- create table nbanners(nbanners_id int not null auto_increment, nbannergroup varchar(100), nbanners_name varchar(100), nbanners_alt varchar(100), nbanners_caption text(), nbanners_cap_pos varchar(100), nbanners_effect varchar(100), nbanners_show_pag varchar(10), nbanners_show_pr_next varchar(10), nbanners_image varchar(100), nbanners_status varchar(5), primary key(nbanners_id));
17
 
18
  SQLTEXT;
19
 
13
  $installer = $this;
14
  $installer->startSetup();
15
  $sql=<<<SQLTEXT
16
+ create table nbanners(nbanners_id int not null auto_increment, nbannergroup varchar(100), nbanners_name varchar(100), nbanners_alt varchar(100), nbanners_caption varchar(100), nbanners_cap_pos varchar(100), nbanners_effect varchar(100), nbanners_show_pag varchar(10), nbanners_show_pr_next varchar(10), nbanners_image varchar(100), nbanners_status varchar(5), primary key(nbanners_id));
17
 
18
  SQLTEXT;
19
 
app/design/adminhtml/default/default/layout/nbanners.xml CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  */
14
  -->
15
- <layout version="0.1.0">
16
  <nbanners_adminhtml_nbanners_index>
17
  <reference name="content">
18
  <block type="nbanners/adminhtml_nbanners" name="nbanners" />
12
  *
13
  */
14
  -->
15
+ <layout version="1.0.0">
16
  <nbanners_adminhtml_nbanners_index>
17
  <reference name="content">
18
  <block type="nbanners/adminhtml_nbanners" name="nbanners" />
app/design/frontend/base/default/layout/nbanners.xml CHANGED
@@ -12,7 +12,7 @@
12
  *
13
  */
14
  -->
15
- <layout version="0.1.0">
16
 
17
  <default>
18
  <reference name="head">
12
  *
13
  */
14
  -->
15
+ <layout version="1.0.0">
16
 
17
  <default>
18
  <reference name="head">
app/design/frontend/base/default/template/nbanners/index.phtml CHANGED
@@ -13,7 +13,6 @@
13
  $isPagination = Netgo_Nbanners_Helper_Data::showpagination();
14
  $effectType = Netgo_Nbanners_Helper_Data::effecttype();
15
 
16
-
17
  //check if pagination is set to yes or not
18
  if($isPagination == 1){
19
  $paginationStatus = '.slideshow-pager';
13
  $isPagination = Netgo_Nbanners_Helper_Data::showpagination();
14
  $effectType = Netgo_Nbanners_Helper_Data::effecttype();
15
 
 
16
  //check if pagination is set to yes or not
17
  if($isPagination == 1){
18
  $paginationStatus = '.slideshow-pager';
app/etc/modules/Netgo_Nbanners.xml CHANGED
@@ -17,7 +17,7 @@
17
  <Netgo_Nbanners>
18
  <active>true</active>
19
  <codePool>community</codePool>
20
- <version>0.1.0</version>
21
  </Netgo_Nbanners>
22
  </modules>
23
  </config>
17
  <Netgo_Nbanners>
18
  <active>true</active>
19
  <codePool>community</codePool>
20
+ <version>1.0.0</version>
21
  </Netgo_Nbanners>
22
  </modules>
23
  </config>
package.xml CHANGED
@@ -1,41 +1,20 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Netgo_Nbanners</name>
4
- <version>1.0.0</version>
5
  <stability>stable</stability>
6
  <license>Open Software License (OSL)</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>This extension is used to create banner slider on cms pages.</summary>
10
- <description>&lt;p&gt;RWD responsive theme gave great various functionality,one of which is cycle2 slider inbuilt with it. The front end output was quite fascinating with the slider but back end management became headache for non technical clients as it didn't give any feature of uploading images of back end. As an alternative to upload images, images were uploaded via CMS page or WYSIWYG editor so to overcome complexity we emphasized on developing Complete RWD Slider.&lt;/p&gt;&#xD;
11
- &lt;p&gt;It uses Slideshow.js library and allow to configure it in admin (slide effects, slides speed, slides pagination).&lt;/p&gt;&lt;br/&gt;&#xD;
12
- &lt;p&gt;You can put each single slider banner in a group and call them in cms pages by created group names.&lt;/p&gt;&#xD;
13
- &lt;p&gt;"Complete RWD Slider" is fully responsive slider.&lt;/p&gt;&lt;br/&gt;&#xD;
14
- &lt;p&gt;&lt;b&gt;Key features:&lt;/b&gt;&lt;/p&gt;&#xD;
15
- &lt;ul&gt;&#xD;
16
- &lt;li&gt;Group&lt;/li&gt;&#xD;
17
- &lt;li&gt;Name&lt;/li&gt;&#xD;
18
- &lt;li&gt;Alt text&lt;/li&gt;&#xD;
19
- &lt;li&gt;Caption&lt;/li&gt;&#xD;
20
- &lt;li&gt;Caption Position&lt;/li&gt;&#xD;
21
- &lt;li&gt;Banner Image&lt;/li&gt;&#xD;
22
- &lt;li&gt;Status&lt;/li&gt;&#xD;
23
- &lt;/ul&gt;&lt;br/&gt;&#xD;
24
- &lt;p&gt;&lt;b&gt;Advantages:&lt;/b&gt;&lt;/p&gt;&#xD;
25
- &lt;ul&gt;&#xD;
26
- &lt;li&gt;Provides Back end settings for slider images and uploading.&lt;/li&gt;&#xD;
27
- &lt;li&gt;Allows Multi effects on images.&lt;/li&gt;&#xD;
28
- &lt;li&gt;Enabled Vertical scrolling through js.&lt;/li&gt;&#xD;
29
- &lt;li&gt;Responsive and flexible to design.&lt;/li&gt;&#xD;
30
- &lt;li&gt;Admin friendly.&lt;/li&gt;&#xD;
31
- &lt;li&gt;Easy to customize.&lt;/li&gt;&#xD;
32
- &lt;/ul&gt;&#xD;
33
- </description>
34
  <notes>First Preview Release</notes>
35
- <authors><author><name>Vipin</name><user>admin</user><email>77vips@gmail.com</email></author></authors>
36
- <date>2015-07-07</date>
37
- <time>07:36:53</time>
38
- <contents><target name="magecommunity"><dir name="Netgo"><dir name="Nbanners"><dir name="Block"><dir name="Adminhtml"><dir name="Nbanners"><dir name="Edit"><file name="Form.php" hash="3fbe2145660cc1cdcfaa4aea0fa32435"/><dir name="Tab"><file name="Form.php" hash="81ba3e1064888386fcf4f6333d00ed67"/></dir><file name="Tabs.php" hash="2fd49e481e123ee0e08cbd237f0a6710"/></dir><file name="Edit.php" hash="5a9713fe01d8da0c549295b7ca241436"/><file name="Grid.php" hash="7a8347fadb7a63b7321e6e543eaffb21"/></dir><file name="Nbanners.php" hash="7e95662669baaf96bc83dccb692bbbab"/></dir><file name="Index.php" hash="a3916ce151ec2ca0176090c687b41181"/><file name="Left.php" hash="b16d7bdb474517707c7a7142f4aa8320"/></dir><dir name="Helper"><file name="Data.php" hash="b635503d3f86887d68e9062be24806d8"/></dir><dir name="Model"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Source"><file name="Effects.php" hash="3e3d577e67b7e01de234bab5f21dd989"/></dir></dir></dir></dir><dir name="Mysql4"><dir name="Nbanners"><file name="Collection.php" hash="fac1cd030448246abf05c328d944a03d"/></dir><file name="Nbanners.php" hash="1a7bd7119a93f3c98d6c02a2fc391fe1"/></dir><file name="Nbanners.php" hash="dac54ae33ada538c2ca88ebf3ccea594"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="NbannersController.php" hash="fcb2ac3302931641f7fd1b4ff366bcfc"/></dir><file name="IndexController.php" hash="13f5eba780c38400b5077dd596c75121"/></dir><dir name="etc"><file name="adminhtml.xml" hash="abea19749af37315b7868c88faf925b2"/><file name="config.xml" hash="7faa97cd95535793d9c6755d9ced07bf"/><file name="system.xml" hash="7269026fa87e25dfaa510ebb0df693db"/></dir><dir name="sql"><dir name="nbanners_setup"><file name="mysql4-install-0.1.0.php" hash="12e363f298a894301919dfcd7da3beee"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="nbanners.xml" hash="4aaadd7a3c466e955d5edfffb35e6bba"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="nbanners.xml" hash="5022ae4f21a881a82cdc43af695a0ba3"/></dir><dir name="template"><dir name="nbanners"><file name="index.phtml" hash="474ef5d2cb2c0d68beb2c77c067aad45"/><file name="left.phtml" hash="0285dc1e312060f0a98a9e3569f72cdd"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="js"><dir name="lib"><dir name="nbanners"><file name="jquery.cycle2.scrollVert.js" hash="06e50735f44de6c820f35df17b961471"/></dir></dir></dir></dir></dir></dir></target><target name="mage"><dir name="."><file name="readme.txt" hash="c9fb3cb27c49e8b10554c438599b09fb"/></dir></target><target name="mageetc"><dir name="modules"><file name="Netgo_Nbanners.xml" hash="24ce7bfae01dbc677c2e968c386a3698"/></dir></target></contents>
39
  <compatible/>
40
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
41
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Netgo_Nbanners</name>
4
+ <version>1.0.1</version>
5
  <stability>stable</stability>
6
  <license>Open Software License (OSL)</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>This extension is used to create banner slider on cms pages.</summary>
10
+ <description>This slider is exclusively for customers that are not satisfied with the back end management of sliders provided by Magento. The feature of uploading slider images from back end is enhanced in this module.The module also involves method of GROUP SLIDER, this emphasizes that if any user requires different banner slider for different pages then can form groups of slider for respective pages. &#xD;
11
+ &#xD;
12
+ This stopped the complex methodologies of uploading images via WYSIWYG editor or CMS page.Thus making Admin user friendly for all the users.</description>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  <notes>First Preview Release</notes>
14
+ <authors><author><name>Vipin</name><user>NetGo</user><email>77vips@gmail.com</email></author></authors>
15
+ <date>2015-07-24</date>
16
+ <time>02:33:34</time>
17
+ <contents><target name="magecommunity"><dir name="Netgo"><dir name="Nbanners"><dir name="Block"><dir name="Adminhtml"><dir name="Nbanners"><dir name="Edit"><file name="Form.php" hash="3fbe2145660cc1cdcfaa4aea0fa32435"/><dir name="Tab"><file name="Form.php" hash="81ba3e1064888386fcf4f6333d00ed67"/></dir><file name="Tabs.php" hash="2fd49e481e123ee0e08cbd237f0a6710"/></dir><file name="Edit.php" hash="5a9713fe01d8da0c549295b7ca241436"/><file name="Grid.php" hash="7a8347fadb7a63b7321e6e543eaffb21"/></dir><file name="Nbanners.php" hash="7e95662669baaf96bc83dccb692bbbab"/></dir><file name="Index.php" hash="31d1f9121fe7e00c7ed891b49c57091e"/><file name="Left.php" hash="b16d7bdb474517707c7a7142f4aa8320"/></dir><dir name="Helper"><file name="Data.php" hash="31e9acde2fc8229f510b3d16d8bf3191"/></dir><dir name="Model"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Source"><file name="Effects.php" hash="3e3d577e67b7e01de234bab5f21dd989"/></dir></dir></dir></dir><dir name="Mysql4"><dir name="Nbanners"><file name="Collection.php" hash="fac1cd030448246abf05c328d944a03d"/></dir><file name="Nbanners.php" hash="1a7bd7119a93f3c98d6c02a2fc391fe1"/></dir><file name="Nbanners.php" hash="dac54ae33ada538c2ca88ebf3ccea594"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="NbannersController.php" hash="fcb2ac3302931641f7fd1b4ff366bcfc"/></dir><file name="IndexController.php" hash="13f5eba780c38400b5077dd596c75121"/></dir><dir name="etc"><file name="adminhtml.xml" hash="abea19749af37315b7868c88faf925b2"/><file name="config.xml" hash="c32f6249f80ccb396fe380fe180276ad"/><file name="system.xml" hash="e57ecb2b37922dc61df5c3b08967ba87"/></dir><dir name="sql"><dir name="nbanners_setup"><file name="mysql4-install-0.1.0.php" hash="de6cc96b2d052383d907822d559603b8"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="nbanners.xml" hash="86c0ae959ed9082a1c52c73b57002739"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="nbanners.xml" hash="97b127561ea9c94bfd82914aba9ab9ce"/></dir><dir name="template"><dir name="nbanners"><file name="index.phtml" hash="9083bf83b0473f724682863bbdfdff4a"/><file name="left.phtml" hash="0285dc1e312060f0a98a9e3569f72cdd"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="js"><dir name="lib"><dir name="nbanners"><file name="jquery.cycle2.scrollVert.js" hash="06e50735f44de6c820f35df17b961471"/></dir></dir></dir></dir></dir></dir></target><target name="mage"><dir name="."><file name="readme.txt" hash="a408fb2f14477dc69da02e875d807795"/></dir></target><target name="mageetc"><dir name="modules"><file name="Netgo_Nbanners.xml" hash="37ca468c432f3eaa8c04d1b09db91e53"/></dir></target></contents>
18
  <compatible/>
19
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
20
  </package>
readme.txt CHANGED
@@ -1,22 +1,19 @@
1
  Usage in CMS page
2
- -----------------
3
  {{block type="nbanners/index" group="home_group" template="nbanners/index.phtml"}}
4
- -----------------
5
-
6
 
7
  Note: If you are using theme other than rwd, follow this extra steps
8
- --------------------------------------------------------------------
9
  1) Put these in app/design/frontend/base/default/template/nbanners/index.phtml file
10
 
11
- <script type="text/javascript" src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN); ?>frontend/rwd/default/js/lib/jquery.cycle2.min.js"></script>
12
-
13
- <script type="text/javascript" src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN); ?>frontend/rwd/default/js/lib/jquery.cycle2.swipe.min.js"></script>
14
-
15
- <script type="text/javascript" src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN); ?>skin/frontend/rwd/default/js/slideshow.js"></script>
16
 
17
 
18
  2) Now in page.xml file put:
19
 
20
  <action method="addJs"><script>lib/jquery/jquery-1.10.2.min.js</script></action>
21
- <action method="addJs"><script>lib/jquery/noconflict.js</script></action>
22
 
1
  Usage in CMS page
 
2
  {{block type="nbanners/index" group="home_group" template="nbanners/index.phtml"}}
 
 
3
 
4
  Note: If you are using theme other than rwd, follow this extra steps
5
+
6
  1) Put these in app/design/frontend/base/default/template/nbanners/index.phtml file
7
 
8
+ <script type="text/javascript" src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN); ?>frontend/rwd/default/js/lib/jquery.cycle2.min.js"></script>
9
+
10
+ <script type="text/javascript" src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN); ?>frontend/rwd/default/js/lib/jquery.cycle2.swipe.min.js"></script>
11
+
12
+ <script type="text/javascript" src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN); ?>frontend/rwd/default/js/slideshow.js"></script>
13
 
14
 
15
  2) Now in page.xml file put:
16
 
17
  <action method="addJs"><script>lib/jquery/jquery-1.10.2.min.js</script></action>
18
+ <action method="addJs"><script>lib/jquery/noconflict.js</script></action>
19