Version Notes
Nivo slider extension for magento.
This is a stable release.
Download this release
Release Info
Developer | sam-sys pvt ltd |
Extension | samsys-nivo-banner-1-0 |
Version | 1.0.1 |
Comparing to | |
See all releases |
Code changes from version 1.0.0 to 1.0.1
app/code/community/Samsys/Nivobanner/Block/Adminhtml/Nivobannergroup/Grid.php
CHANGED
@@ -18,8 +18,7 @@ class Samsys_Nivobanner_Block_Adminhtml_Nivobannergroup_Grid extends Mage_Adminh
|
|
18 |
|
19 |
protected function _prepareCollection() {
|
20 |
$collection = Mage::getModel('nivobanner/nivobannergroup')->getCollection();
|
21 |
-
|
22 |
-
$collection->getSelect()->columns();
|
23 |
$this->setCollection($collection);
|
24 |
return parent::_prepareCollection();
|
25 |
}
|
18 |
|
19 |
protected function _prepareCollection() {
|
20 |
$collection = Mage::getModel('nivobanner/nivobannergroup')->getCollection();
|
21 |
+
$collection->getSelect()->columns();
|
|
|
22 |
$this->setCollection($collection);
|
23 |
return parent::_prepareCollection();
|
24 |
}
|
app/code/community/Samsys/Nivobanner/controllers/Adminhtml/NivobannergroupController.php
CHANGED
@@ -84,8 +84,6 @@ class Samsys_Nivobanner_Adminhtml_NivobannergroupController extends Mage_Adminht
|
|
84 |
}
|
85 |
$bannerIds = array_intersect($availBannerIds, $banners);
|
86 |
$data['banner_ids'] = implode(',', $bannerIds);
|
87 |
-
/* $data['banner_effects'] = (($data['animation_type'] == 0) ? '' : $data['banner_effects']);
|
88 |
-
$data['pre_banner_effects'] = (($data['animation_type'] == 0) ? $data['pre_banner_effects'] : '');*/
|
89 |
$model = Mage::getModel('nivobanner/nivobannergroup');
|
90 |
$model->setData($data)
|
91 |
->setId($this->getRequest()->getParam('id'));
|
@@ -124,8 +122,7 @@ class Samsys_Nivobanner_Adminhtml_NivobannergroupController extends Mage_Adminht
|
|
124 |
if ($this->getRequest()->getParam('id') > 0) {
|
125 |
try {
|
126 |
$model = Mage::getModel('nivobanner/nivobannergroup')->load($this->getRequest()->getParam('id'));
|
127 |
-
|
128 |
-
$filePath = Mage::getBaseDir('media') . DS . 'nivo' . DS . 'banner' . DS . 'Nivo_' . $model->getGroupCode();
|
129 |
$model->delete();
|
130 |
$this->removeFile($filePath);
|
131 |
|
@@ -147,8 +144,7 @@ class Samsys_Nivobanner_Adminhtml_NivobannergroupController extends Mage_Adminht
|
|
147 |
try {
|
148 |
foreach ($bannerIds as $bannerId) {
|
149 |
$banner = Mage::getModel('nivobanner/nivobannergroup')->load($bannerId);
|
150 |
-
|
151 |
-
$filePath = Mage::getBaseDir('media') . DS . 'nivo' . DS . 'banner' . DS . 'Nivo_' . $banner->getGroupCode();
|
152 |
$banner->delete();
|
153 |
$this->removeFile($filePath);
|
154 |
}
|
84 |
}
|
85 |
$bannerIds = array_intersect($availBannerIds, $banners);
|
86 |
$data['banner_ids'] = implode(',', $bannerIds);
|
|
|
|
|
87 |
$model = Mage::getModel('nivobanner/nivobannergroup');
|
88 |
$model->setData($data)
|
89 |
->setId($this->getRequest()->getParam('id'));
|
122 |
if ($this->getRequest()->getParam('id') > 0) {
|
123 |
try {
|
124 |
$model = Mage::getModel('nivobanner/nivobannergroup')->load($this->getRequest()->getParam('id'));
|
125 |
+
$filePath = Mage::getBaseDir('media') . DS . 'nivo' . DS . 'banner' . DS . 'Nivo_' . $model->getGroupCode();
|
|
|
126 |
$model->delete();
|
127 |
$this->removeFile($filePath);
|
128 |
|
144 |
try {
|
145 |
foreach ($bannerIds as $bannerId) {
|
146 |
$banner = Mage::getModel('nivobanner/nivobannergroup')->load($bannerId);
|
147 |
+
$filePath = Mage::getBaseDir('media') . DS . 'nivo' . DS . 'banner' . DS . 'Nivo_' . $banner->getGroupCode();
|
|
|
148 |
$banner->delete();
|
149 |
$this->removeFile($filePath);
|
150 |
}
|
app/code/community/Samsys/Nivobanner/etc/config.xml
CHANGED
@@ -1,12 +1,10 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<config>
|
3 |
-
<!--initialize the version for the module-->
|
4 |
<modules>
|
5 |
<Samsys_Nivobanner>
|
6 |
<version>1.0</version>
|
7 |
</Samsys_Nivobanner>
|
8 |
</modules>
|
9 |
-
<!--define the frontend module router and class name-->
|
10 |
<frontend>
|
11 |
<routers>
|
12 |
<nivobanner>
|
@@ -17,7 +15,6 @@
|
|
17 |
</args>
|
18 |
</nivobanner>
|
19 |
</routers>
|
20 |
-
<!--define the layout file to use in frontend-->
|
21 |
<layout>
|
22 |
<updates>
|
23 |
<nivobanner>
|
@@ -26,7 +23,6 @@
|
|
26 |
</updates>
|
27 |
</layout>
|
28 |
</frontend>
|
29 |
-
<!--define admin end module router and class name-->
|
30 |
<admin>
|
31 |
<routers>
|
32 |
<nivobanner>
|
@@ -38,14 +34,11 @@
|
|
38 |
</nivobanner>
|
39 |
</routers>
|
40 |
</admin>
|
41 |
-
<!--define admin end module links and urls-->
|
42 |
<adminhtml>
|
43 |
-
<!--define menu links and name-->
|
44 |
<menu>
|
45 |
<nivobanner module="nivobanner">
|
46 |
<title>Nivobanner</title>
|
47 |
<sort_order>75</sort_order>
|
48 |
-
<!--define the submenu links and name-->
|
49 |
<children>
|
50 |
<nivobanner module="nivobanner">
|
51 |
<title>Manage Banners</title>
|
@@ -60,7 +53,6 @@
|
|
60 |
</children>
|
61 |
</nivobanner>
|
62 |
</menu>
|
63 |
-
<!--after creating menu's, allow the menu access permisssion-->
|
64 |
<acl>
|
65 |
<resources>
|
66 |
<all>
|
@@ -84,7 +76,6 @@
|
|
84 |
</admin>
|
85 |
</resources>
|
86 |
</acl>
|
87 |
-
<!--include your admin layout file-->
|
88 |
<layout>
|
89 |
<updates>
|
90 |
<nivobanner>
|
@@ -92,7 +83,6 @@
|
|
92 |
</nivobanner>
|
93 |
</updates>
|
94 |
</layout>
|
95 |
-
<!--initiate the translation file-->
|
96 |
<translate>
|
97 |
<modules>
|
98 |
<Samsys_Nivobanner>
|
@@ -103,7 +93,6 @@
|
|
103 |
</modules>
|
104 |
</translate>
|
105 |
</adminhtml>
|
106 |
-
<!--define the global parameters such as helper file, model, block-->
|
107 |
<global>
|
108 |
<models>
|
109 |
<nivobanner>
|
1 |
<?xml version="1.0"?>
|
2 |
<config>
|
|
|
3 |
<modules>
|
4 |
<Samsys_Nivobanner>
|
5 |
<version>1.0</version>
|
6 |
</Samsys_Nivobanner>
|
7 |
</modules>
|
|
|
8 |
<frontend>
|
9 |
<routers>
|
10 |
<nivobanner>
|
15 |
</args>
|
16 |
</nivobanner>
|
17 |
</routers>
|
|
|
18 |
<layout>
|
19 |
<updates>
|
20 |
<nivobanner>
|
23 |
</updates>
|
24 |
</layout>
|
25 |
</frontend>
|
|
|
26 |
<admin>
|
27 |
<routers>
|
28 |
<nivobanner>
|
34 |
</nivobanner>
|
35 |
</routers>
|
36 |
</admin>
|
|
|
37 |
<adminhtml>
|
|
|
38 |
<menu>
|
39 |
<nivobanner module="nivobanner">
|
40 |
<title>Nivobanner</title>
|
41 |
<sort_order>75</sort_order>
|
|
|
42 |
<children>
|
43 |
<nivobanner module="nivobanner">
|
44 |
<title>Manage Banners</title>
|
53 |
</children>
|
54 |
</nivobanner>
|
55 |
</menu>
|
|
|
56 |
<acl>
|
57 |
<resources>
|
58 |
<all>
|
76 |
</admin>
|
77 |
</resources>
|
78 |
</acl>
|
|
|
79 |
<layout>
|
80 |
<updates>
|
81 |
<nivobanner>
|
83 |
</nivobanner>
|
84 |
</updates>
|
85 |
</layout>
|
|
|
86 |
<translate>
|
87 |
<modules>
|
88 |
<Samsys_Nivobanner>
|
93 |
</modules>
|
94 |
</translate>
|
95 |
</adminhtml>
|
|
|
96 |
<global>
|
97 |
<models>
|
98 |
<nivobanner>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>samsys-nivo-banner-1-0</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
@@ -12,12 +12,17 @@
|
|
12 |
Its simple and free to use.
|
13 |
Easy to use admin panel.
|
14 |
Full admin controls.
|
15 |
-
Easy implementation
|
16 |
-
|
|
|
|
|
|
|
|
|
|
|
17 |
<authors><author><name>sam-sys pvt ltd</name><user>sam</user><email>info@sam-sys.com</email></author></authors>
|
18 |
-
<date>2013-04-
|
19 |
-
<time>
|
20 |
-
<contents><target name="mageetc"><dir name="modules"><file name="Samsys_Nivobanner.xml" hash="96bfb1b6492710b689d77eff90672029"/></dir></target><target name="magecommunity"><dir name="Samsys"><dir name="Nivobanner"><dir name="Block"><dir name="Adminhtml"><dir name="Nivobanner"><dir name="Edit"><file name="Form.php" hash="0a6bdcdc423c3bab2ec44aeb43d441b3"/><dir name="Tab"><file name="Form.php" hash="2c7cbc7aa9142ae2daa205128b8057b7"/></dir><file name="Tabs.php" hash="b8b42cb96b7b1ecd00735b34094730f2"/></dir><file name="Edit.php" hash="fea4e798acafb5805b815e406529e7cf"/><dir name="Grid"><dir name="Renderer"><file name="Image.php" hash="947afbf892a0aa0bb941b0b68ef529b6"/></dir></dir><file name="Grid.php" hash="0109b707be5bd48179feaee2b1bfe302"/></dir><file name="Nivobanner.php" hash="0fe97c1d1d4ed8560cfc5bc443bae644"/><dir name="Nivobannergroup"><dir name="Edit"><file name="Form.php" hash="51d45f96622010799094ecc5a49b1099"/><dir name="Tab"><file name="Banner.php" hash="cf238cbfcb5ed837c88c9ef42ceb5d56"/><file name="Form.php" hash="971b83ee941b9ff6c29633782c22eb30"/><file name="Gridbanner.php" hash="da165363679fd3a08556a338068b858e"/></dir><file name="Tabs.php" hash="055c3327e6ce8291f6743aaa3afaddc4"/></dir><file name="Edit.php" hash="e2bbafef5ddcf3e7668049d2fe5c07b2"/><file name="Grid.php" hash="
|
21 |
<compatible/>
|
22 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php><package><name>Mage_Core_Modules</name><channel>community</channel><min>1.5.0.0</min><max>1.7.2</max></package></required></dependencies>
|
23 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>samsys-nivo-banner-1-0</name>
|
4 |
+
<version>1.0.1</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
12 |
Its simple and free to use.
|
13 |
Easy to use admin panel.
|
14 |
Full admin controls.
|
15 |
+
Easy implementation.
|
16 |
+

|
17 |
+
To call the banner in pages just copy and paste the below code.
|
18 |
+

|
19 |
+
{{block type="nivobanner/nivobanner" name="nivobanner.home" banner_group_code="home_banner" template="nivobanner/nivobanner.phtml"}} </description>
|
20 |
+
<notes>Nivo slider extension for magento.
|
21 |
+
This is a stable release.</notes>
|
22 |
<authors><author><name>sam-sys pvt ltd</name><user>sam</user><email>info@sam-sys.com</email></author></authors>
|
23 |
+
<date>2013-04-29</date>
|
24 |
+
<time>07:29:00</time>
|
25 |
+
<contents><target name="mageetc"><dir name="modules"><file name="Samsys_Nivobanner.xml" hash="96bfb1b6492710b689d77eff90672029"/></dir></target><target name="magecommunity"><dir name="Samsys"><dir name="Nivobanner"><dir name="Block"><dir name="Adminhtml"><dir name="Nivobanner"><dir name="Edit"><file name="Form.php" hash="0a6bdcdc423c3bab2ec44aeb43d441b3"/><dir name="Tab"><file name="Form.php" hash="2c7cbc7aa9142ae2daa205128b8057b7"/></dir><file name="Tabs.php" hash="b8b42cb96b7b1ecd00735b34094730f2"/></dir><file name="Edit.php" hash="fea4e798acafb5805b815e406529e7cf"/><dir name="Grid"><dir name="Renderer"><file name="Image.php" hash="947afbf892a0aa0bb941b0b68ef529b6"/></dir></dir><file name="Grid.php" hash="0109b707be5bd48179feaee2b1bfe302"/></dir><file name="Nivobanner.php" hash="0fe97c1d1d4ed8560cfc5bc443bae644"/><dir name="Nivobannergroup"><dir name="Edit"><file name="Form.php" hash="51d45f96622010799094ecc5a49b1099"/><dir name="Tab"><file name="Banner.php" hash="cf238cbfcb5ed837c88c9ef42ceb5d56"/><file name="Form.php" hash="971b83ee941b9ff6c29633782c22eb30"/><file name="Gridbanner.php" hash="da165363679fd3a08556a338068b858e"/></dir><file name="Tabs.php" hash="055c3327e6ce8291f6743aaa3afaddc4"/></dir><file name="Edit.php" hash="e2bbafef5ddcf3e7668049d2fe5c07b2"/><file name="Grid.php" hash="85c644b1e042ec88db64dca590135044"/></dir><file name="Nivobannergroup.php" hash="7cd96ce38597c19ce0037d6815f5f5ab"/><dir name="Widget"><dir name="Grid"><dir name="Column"><dir name="Filter"><file name="Banner.php" hash="d1bae5b52af4ac001dea1dc947144859"/></dir><dir name="Renderer"><file name="Banner.php" hash="2c53da55a649760902ac9fd8ef229ad1"/></dir></dir><file name="Column.php" hash="d7c6660823e8ab261cfed9c06ca8a55a"/></dir><file name="Grid.php" hash="00d9a1b54c6ece524415ccdfde9409fc"/></dir></dir><file name="Nivobanner.php" hash="13619b5cf3ddb50771a64a6e7d23d949"/></dir><dir name="Helper"><file name="Data.php" hash="cc2c62d358379f7079e4e5c31a7396e0"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Nivobanner"><file name="Collection.php" hash="3f1439419c2b7c7a2d1fcd3678bf33c7"/></dir><file name="Nivobanner.php" hash="77335a01c52ded5c766e1e5d62151952"/><dir name="Nivobannergroup"><file name="Collection.php" hash="57fe2fe2292bbc727e010e073f91cdcf"/></dir><file name="Nivobannergroup.php" hash="072e058ab528f61c0c8eb3eed03c3a03"/></dir><file name="Nivobanner.php" hash="0a2ec1e2f4f4a299c1604e5e6094e9ac"/><file name="Nivobannergroup.php" hash="b54b627e9e0c29808fa991030e5de43e"/><file name="Status.php" hash="09620561ef9ccbeba6719667162deb69"/><dir name="Wysiwyg"><file name="Config.php" hash="37cc8abcb96360275fb87f632089ef10"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="NivobannerController.php" hash="b030878554c44609a1579ba6f0df898c"/><file name="NivobannergroupController.php" hash="48caef3633c1eb7873466ca2d1a4699f"/></dir><file name="IndexController.php" hash="99a334f4a267bb88fe127db59cba6d17"/></dir><dir name="etc"><file name="config.xml" hash="5195d56bf8cf04dadcf0d4473cb6ebcd"/></dir><dir name="sql"><dir name="nivobanner_setup"><file name="mysql4-install-0.1.0.php" hash="dd901594707621f191f0d824eed9b027"/><file name="mysql4-upgrade-0.1.0-0.2.0.php" hash="c9b5c66a56b4d551b402bf898c034ab5"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="nivobanner"><file name="nivobanner.phtml" hash="24b9f9c9212c3562f43e37a5da5542d0"/></dir></dir><dir name="layout"><file name="nivobanner.xml" hash="7b9495cd87fce88601c1389731df76c5"/></dir></dir></dir></dir></target><target name="mage"><dir name="app"><dir name="design"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="nivobanner.xml" hash="c48c091fda4d47179c66cd2b89e9f3f8"/></dir><dir name="template"><dir name="nivobanner"><file name="banner.phtml" hash="9d87a8283ac7055bd1e5809641bfb7c6"/></dir></dir></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="nivobanner"><dir><dir name="js"><file name="jquery-1.9.0.min.js" hash="0652da382b6fceb033dfe2b6c06d4d11"/><file name="jquery.nivo.slider.js" hash="2376c698bb566fddcb6b680a98d42dc3"/></dir><dir name="themes"><dir name="bar"><file name="arrows.png" hash="09b24f1a73b9eeb5cc62db7ec0b60bca"/><file name="bar.css" hash="58f95f303855cd8bea1a1aaab6d730c8"/><file name="bullets.png" hash="acc66fce35a54d815a3aa3fd573cdd90"/><file name="loading.gif" hash="dd6b7b0bf5c3af22499abc0a9ee1e1b2"/></dir><dir name="dark"><file name="Thumbs.db" hash="ed42e32da8772b2f8de07a3be1aa2cc8"/><file name="arrows.png" hash="4d2ed50facf20fdc9206e65be96097d6"/><file name="bullets.png" hash="208e649ac5a7e0daf2023e30d92f675e"/><file name="dark.css" hash="8663fa16d89aa41939f134c2f7e5a3fb"/><file name="loading.gif" hash="dd6b7b0bf5c3af22499abc0a9ee1e1b2"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><dir name="default"><file name="Thumbs.db" hash="9e707f2c32cb09052d536c1e9aa6141a"/><file name="arrows.png" hash="09b24f1a73b9eeb5cc62db7ec0b60bca"/><file name="bullets.png" hash="acc66fce35a54d815a3aa3fd573cdd90"/><file name="default.css" hash="d66e12b55df8510fe05b9d4fb1aaaf07"/><file name="loading.gif" hash="dd6b7b0bf5c3af22499abc0a9ee1e1b2"/></dir><dir name="light"><file name="Thumbs.db" hash="9159525bd98b30036d48210d6b695e9d"/><file name="arrows.png" hash="246c707d1243339b740fefe80a76fd00"/><file name="bullets.png" hash="8be81f8814c2ba9b2ab77264d3132aef"/><file name="light.css" hash="eede2daf7c7aec7a4e444b60a7ce3a89"/><file name="loading.gif" hash="dd6b7b0bf5c3af22499abc0a9ee1e1b2"/></dir><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir></dir><file name="nivo-slider.css" hash="51b2916fcb7a9f89a21b70e0c7688a59"/></dir></dir></dir></dir></target><target name="magemedia"><dir name="nivo"><dir name="banner"><file name="nemo.jpg" hash="7ea962b318832ba18caab917448f0756"/><file name="toystory.jpg" hash="78431418683dea0dc82e990baed0e86a"/><file name="up.jpg" hash="97a89a100ea7387af842cd7bbddff7f3"/><file name="walle.jpg" hash="0e446ef957f6671ce3b066b242a20100"/></dir></dir></target></contents>
|
26 |
<compatible/>
|
27 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php><package><name>Mage_Core_Modules</name><channel>community</channel><min>1.5.0.0</min><max>1.7.2</max></package></required></dependencies>
|
28 |
</package>
|