Version Notes
First release of the extension
Download this release
Release Info
Developer | Abhishek Dixit |
Extension | Srdt_Banner_Slider |
Version | 1.0.2 |
Comparing to | |
See all releases |
Code changes from version 1.0.1 to 1.0.2
- app/code/local/Srdt/Slider/Block/Adminhtml/Catalog/Category/Edit/Buttons.php +17 -0
- app/code/local/Srdt/Slider/Block/Adminhtml/Slider/Edit/Tab/Form.php +1 -1
- app/code/local/Srdt/Slider/controllers/Adminhtml/IndexController.php +1 -1
- package.xml +5 -5
- skin/frontend/base/default/js/srdt/jquery.noconflict.js +4 -0
app/code/local/Srdt/Slider/Block/Adminhtml/Catalog/Category/Edit/Buttons.php
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Srdt_Slider_Block_Adminhtml_Catalog_Category_Edit_Buttons
|
3 |
+
extends Mage_Adminhtml_Block_Catalog_Category_Edit_Form {
|
4 |
+
public function addButtons()
|
5 |
+
{
|
6 |
+
// echo "abhishek Dixit<pre>";
|
7 |
+
// print_r($this->getParentBlock());
|
8 |
+
// exit;
|
9 |
+
|
10 |
+
$this->addAdditionalButton('export', array(
|
11 |
+
'label' => $this->helper('srdt_slider')->__('Export'),
|
12 |
+
'class' => 'add',
|
13 |
+
'onclick' => 'alert(\'It works\')' //change the action of the button to what you need
|
14 |
+
));
|
15 |
+
// return $this;
|
16 |
+
}
|
17 |
+
}
|
app/code/local/Srdt/Slider/Block/Adminhtml/Slider/Edit/Tab/Form.php
CHANGED
@@ -121,7 +121,7 @@ class Srdt_Slider_Block_Adminhtml_Slider_Edit_Tab_Form extends Mage_Adminhtml_Bl
|
|
121 |
}
|
122 |
|
123 |
echo '<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>';
|
124 |
-
echo '<script type="text/javascript" src="
|
125 |
echo "<script type=\"text/javascript\">
|
126 |
|
127 |
function checkBannerType(id)
|
121 |
}
|
122 |
|
123 |
echo '<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>';
|
124 |
+
echo '<script type="text/javascript" src="'. Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN).'frontend/base/default/js/srdt/jquery.noconflict.js"></script>';
|
125 |
echo "<script type=\"text/javascript\">
|
126 |
|
127 |
function checkBannerType(id)
|
app/code/local/Srdt/Slider/controllers/Adminhtml/IndexController.php
CHANGED
@@ -63,7 +63,7 @@ class Srdt_Slider_Adminhtml_IndexController extends Mage_Adminhtml_Controller_Ac
|
|
63 |
Mage::register('banner_data', $model);
|
64 |
|
65 |
$this->loadLayout();
|
66 |
-
|
67 |
|
68 |
$this->_addBreadcrumb(Mage::helper('adminhtml')->__('Enquiry Manager'), Mage::helper('adminhtml')->__('Banner Manager'));
|
69 |
$this->_addBreadcrumb(Mage::helper('adminhtml')->__('Item News'), Mage::helper('adminhtml')->__('Item News'));
|
63 |
Mage::register('banner_data', $model);
|
64 |
|
65 |
$this->loadLayout();
|
66 |
+
$this->_setActiveMenu('srdt');
|
67 |
|
68 |
$this->_addBreadcrumb(Mage::helper('adminhtml')->__('Enquiry Manager'), Mage::helper('adminhtml')->__('Banner Manager'));
|
69 |
$this->_addBreadcrumb(Mage::helper('adminhtml')->__('Item News'), Mage::helper('adminhtml')->__('Item News'));
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Srdt_Banner_Slider</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
|
7 |
<channel>community</channel>
|
@@ -9,10 +9,10 @@
|
|
9 |
<summary>This Extension Let you add Banner slider on any page(Video or Image);</summary>
|
10 |
<description>This Extension Lets you add banner slider either using image or youtube video.Both the banner video or image will be responsive by default.In admin you can select whether you want to use video or image.</description>
|
11 |
<notes>First release of the extension</notes>
|
12 |
-
<authors><author><name>Abhishek Dixit</name><user>staywithabhi</user><email>er.abhishek_integral@rediffmail.com</email></author><author><name>pushpendra tiwari</name><user>pushpendra</user><email>veerutiwari7@gmail.com</email></author><author><name>prakash kumar</name><user>
|
13 |
-
<date>2016-
|
14 |
-
<time>
|
15 |
-
<contents><target name="magelocal"><dir name="Srdt"><dir name="Slider"><dir name="Block"><dir name="Adminhtml"><dir name="Slider"><dir name="Edit"><file name="Form.php" hash="e88d45cbd5483ab9d01bc3d56c4ddd6c"/><dir name="Tab"><file name="Form.php" hash="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Srdt_Banner_Slider</name>
|
4 |
+
<version>1.0.2</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
|
7 |
<channel>community</channel>
|
9 |
<summary>This Extension Let you add Banner slider on any page(Video or Image);</summary>
|
10 |
<description>This Extension Lets you add banner slider either using image or youtube video.Both the banner video or image will be responsive by default.In admin you can select whether you want to use video or image.</description>
|
11 |
<notes>First release of the extension</notes>
|
12 |
+
<authors><author><name>Abhishek Dixit</name><user>staywithabhi</user><email>er.abhishek_integral@rediffmail.com</email></author><author><name>pushpendra tiwari</name><user>pushpendra</user><email>veerutiwari7@gmail.com</email></author><author><name>prakash kumar</name><user>PRAKASH9506</user><email>prakash_kumar0068@hotmail.com</email></author><author><name>Vijay Kumar</name><user>vijay_panacea</user><email>vijay_panacea92@gmail.com</email></author><author><name>SRDT</name><user>SRDT</user><email>abhishek.srdt@gmail.com</email></author></authors>
|
13 |
+
<date>2016-05-12</date>
|
14 |
+
<time>06:58:20</time>
|
15 |
+
<contents><target name="magelocal"><dir name="Srdt"><dir name="Slider"><dir name="Block"><dir name="Adminhtml"><dir name="Catalog"><dir name="Category"><dir name="Edit"><file name="Buttons.php" hash="ed9e6aafd4145ba71c1092245ab7c0ce"/></dir></dir></dir><dir name="Slider"><dir name="Edit"><file name="Form.php" hash="e88d45cbd5483ab9d01bc3d56c4ddd6c"/><dir name="Tab"><file name="Form.php" hash="d7d394584ce46058c6693d1cd89ced84"/></dir><file name="Tabs.php" hash="96e0883c0cf52d21d28e29d173c6eab5"/></dir><file name="Edit.php" hash="b07bc0f0c43d4c2b3f861d993354b40a"/><file name="Grid.php" hash="eb823fb6d5612c665b5243f48089ea87"/></dir><file name="Slider.php" hash="67ed4667e5d24e036bd40f6c52f4b416"/></dir><file name="Banner.php" hash="8079c78dbcc2309960f7abb00972a9b5"/></dir><dir name="Helper"><file name="Data.php" hash="9f379e483aa08f4c1ce229cfa0862ac3"/></dir><dir name="Model"><dir name="Resource"><dir name="Slider"><file name="Collection.php" hash="ad8e35be7412e44de7bcf2e164682e8e"/></dir><file name="Slider.php" hash="317c635cca76e3d101c6dd67421bea81"/></dir><file name="Slider.php" hash="06bf017e4f3c6035d21a4021ab05e2b8"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="IndexController.php" hash="94c61315cfddff418486477c23b8fb43"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="2fd101c76223a3161f6346a662d642aa"/><file name="config.xml" hash="1d804ae6836cad44afb2730f5a8b2546"/></dir><dir name="sql"><dir name="slider_setup"><file name="install-1.0.0.php" hash="a3515c0fa06d7b93bac4f4679019a162"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Srdt_Slider.xml" hash="a45ce0e4d3a5f9009c4e2613c132dba9"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="banner"><file name="slider.phtml" hash="a182a87c4c1c5761c0e821b4c964d670"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="srdt"><file name="jquery.bxslider.css" hash="4ee5165078fec8053e2205cbc63798fe"/></dir></dir><dir name="images"><dir name="srdt"><file name="bx_loader.gif" hash="931bdb6b50816b03206c66921760b246"/><file name="controls.png" hash="d9d25372f38c6b242b9b51d5841fe86e"/></dir></dir><dir name="js"><dir name="srdt"><file name="jquery.bxslider.js" hash="b257e0969014adf4d5836b545fd6ccfc"/><file name="jquery.bxslider.min.js" hash="697d69a48e5356f7106e38c09f7f19e0"/><file name="jquery.easing.1.3.js" hash="6516449ed5089677ed3d7e2f11fc8942"/><file name="jquery.fitvids.js" hash="55e813eb3e253f97bb8053bffe8c6b49"/><file name="jquery.noconflict.js" hash="0bf3b93eb27fd4751ef1096b70530431"/></dir></dir></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|
skin/frontend/base/default/js/srdt/jquery.noconflict.js
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
1 |
+
var $j = jQuery.noConflict();
|
2 |
+
// $j is now an alias to the jQuery function; creating the new alias is optional.
|
3 |
+
|
4 |
+
|