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 +2 -7
- app/code/community/Netgo/Nbanners/Helper/Data.php +5 -0
- app/code/community/Netgo/Nbanners/etc/config.xml +1 -1
- app/code/community/Netgo/Nbanners/etc/system.xml +13 -0
- app/code/community/Netgo/Nbanners/sql/nbanners_setup/mysql4-install-0.1.0.php +1 -1
- app/design/adminhtml/default/default/layout/nbanners.xml +1 -1
- app/design/frontend/base/default/layout/nbanners.xml +1 -1
- app/design/frontend/base/default/template/nbanners/index.phtml +0 -1
- app/etc/modules/Netgo_Nbanners.xml +1 -1
- package.xml +8 -29
- readme.txt +7 -10
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>
|
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
|
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="
|
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="
|
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>
|
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.
|
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
|
11 |
-
|
12 |
-
|
13 |
-
<p>"Complete RWD Slider" is fully responsive slider.</p><br/>
|
14 |
-
<p><b>Key features:</b></p>
|
15 |
-
<ul>
|
16 |
-
<li>Group</li>
|
17 |
-
<li>Name</li>
|
18 |
-
<li>Alt text</li>
|
19 |
-
<li>Caption</li>
|
20 |
-
<li>Caption Position</li>
|
21 |
-
<li>Banner Image</li>
|
22 |
-
<li>Status</li>
|
23 |
-
</ul><br/>
|
24 |
-
<p><b>Advantages:</b></p>
|
25 |
-
<ul>
|
26 |
-
<li>Provides Back end settings for slider images and uploading.</li>
|
27 |
-
<li>Allows Multi effects on images.</li>
|
28 |
-
<li>Enabled Vertical scrolling through js.</li>
|
29 |
-
<li>Responsive and flexible to design.</li>
|
30 |
-
<li>Admin friendly.</li>
|
31 |
-
<li>Easy to customize.</li>
|
32 |
-
</ul>
|
33 |
-
</description>
|
34 |
<notes>First Preview Release</notes>
|
35 |
-
<authors><author><name>Vipin</name><user>
|
36 |
-
<date>2015-07-
|
37 |
-
<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="
|
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. 
|
11 |
+

|
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 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
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 |
-
|
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 |
|