QAZ_Qbanner - Version 2.1.5

Version Notes

Fixed banner show in category

Download this release

Release Info

Developer Magento Core Team
Extension QAZ_Qbanner
Version 2.1.5
Comparing to
See all releases


Code changes from version 2.1.4 to 2.1.5

app/code/community/Qaz/Qbanner/Helper/Data.php CHANGED
@@ -1,5 +1,17 @@
1
  <?php
2
 
3
  class Qaz_Qbanner_Helper_Data extends Mage_Core_Helper_Abstract {
4
-
 
 
 
 
 
 
 
 
 
 
 
 
5
  }
1
  <?php
2
 
3
  class Qaz_Qbanner_Helper_Data extends Mage_Core_Helper_Abstract {
4
+ public function jsonEncode($valueToEncode, $cycleCheck = false, $options = array())
5
+ {
6
+ $json = Zend_Json::encode($valueToEncode, $cycleCheck, $options);
7
+ /* @var $inline Mage_Core_Model_Translate_Inline */
8
+ $inline = Mage::getSingleton('core/translate_inline');
9
+ if ($inline->isAllowed()) {
10
+ $inline->setIsJson(true);
11
+ $inline->processResponseBody($json);
12
+ $inline->setIsJson(false);
13
+ }
14
+
15
+ return $json;
16
+ }
17
  }
app/code/community/Qaz/Qbanner/controllers/Adminhtml/QbannerController.php CHANGED
@@ -215,6 +215,18 @@ class Qaz_Qbanner_Adminhtml_QbannerController extends Mage_Adminhtml_Controller_
215
  }
216
  $this->getResponse()->setBody(Mage::helper('core')->jsonEncode($result));
217
  }
 
 
 
 
 
 
 
 
 
 
 
 
218
 
219
  protected function _isAllowed() {
220
  return Mage::getSingleton('admin/session')->isAllowed('admin/qbanner');
215
  }
216
  $this->getResponse()->setBody(Mage::helper('core')->jsonEncode($result));
217
  }
218
+ public function categoriesJsonAction()
219
+ {
220
+ $bannerId = $this->getRequest()->getParam('id');
221
+ $_model = Mage::getModel('qbanner/qbanner')->load($bannerId);
222
+ Mage::register('qbanner_data', $_model);
223
+ Mage::register('current_qbanner', $_model);
224
+
225
+ $this->getResponse()->setBody(
226
+ $this->getLayout()->createBlock('qbanner/adminhtml_qbanner_edit_tab_category')
227
+ ->getCategoryChildrenJson($this->getRequest()->getParam('category'))
228
+ );
229
+ }
230
 
231
  protected function _isAllowed() {
232
  return Mage::getSingleton('admin/session')->isAllowed('admin/qbanner');
app/code/community/Qaz/Qbanner/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Qaz_Qbanner>
5
- <version>2.1.4</version>
6
  </Qaz_Qbanner>
7
  </modules>
8
  <frontend>
2
  <config>
3
  <modules>
4
  <Qaz_Qbanner>
5
+ <version>2.1.5</version>
6
  </Qaz_Qbanner>
7
  </modules>
8
  <frontend>
media/qaz/qbanner/b/i/biz_to_biz.jpg ADDED
Binary file
media/qaz/qbanner/d/u/ducati-art-prints.jpg ADDED
Binary file
media/qaz/qbanner/v/o/volleyball_vector_clipart.png ADDED
Binary file
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>QAZ_Qbanner</name>
4
- <version>2.1.4</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>
8
  <extends/>
9
  <summary>Support add more banner , set show more page , and very important , it help upload multi image</summary>
10
  <description>Support add more banner , set show more page , and very important , it help upload multi image</description>
11
- <notes>Added link to image when upload image</notes>
12
  <authors><author><name>Kevin Black</name><user>auto-converted</user><email>kevin@qazware.com</email></author></authors>
13
- <date>2012-03-19</date>
14
- <time>10:24:44</time>
15
- <contents><target name="magecommunity"><dir name="Qaz"><dir name="All"><dir name="Helper"><file name="Data.php" hash="a531698b0373f15ed017a921e0bfbe4b"/></dir><dir name="etc"><file name="config.xml" hash="6c6f6676c558ccb25c43a2c016f2d09d"/><file name="system.xml" hash="29a1180abd3b6a53b024f2bde75207bc"/></dir></dir><dir name="Qbanner"><dir name="Block"><dir name="Adminhtml"><dir name="Qbanner"><dir name="Edit"><dir name="Tab"><file name="Category.php" hash="61abdaddee7d7f504332b89967d28437"/><file name="Form.php" hash="03482f82f257505cb684a239c32a3086"/><file name="Image.php" hash="5fdc969762f6451abc2c40143f654a34"/><file name="Pages.php" hash="594a0ecffb7147893deb39d7f2f03493"/></dir><file name="Form.php" hash="aee2407e2a9f5940e9c08170b6a43abe"/><file name="Tabs.php" hash="769ebfc7c86192e02d189478f997eb40"/></dir><file name="Edit.php" hash="4970a7507a9b156eb5ad3549031ef791"/><file name="Grid.php" hash="4342ef02239e11f0e91c427169979d42"/></dir><file name="Qbanner.php" hash="cdc72f40377017f48bc7f83a4d879620"/></dir><file name="Qbanner.php" hash="5c6616111c1c04d821cf3f292c1987cf"/></dir><dir name="Helper"><file name="Data.php" hash="12358d50493059aa9171f2fe4fc340c0"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Qbanner"><file name="Collection.php" hash="713a2a33f4f015b30cf6f013d5fc30ed"/></dir><file name="Qbanner.php" hash="63cb5aeaaf13f055cff2e216c33b24d8"/></dir><dir name="Option"><file name="Pages.php" hash="221f9a629ea486d52b219b47e9d51583"/><file name="Position.php" hash="449baccb2053509ba0726befe7a4a1cf"/><file name="Status.php" hash="12d8c41655369a00094b9276e211582c"/></dir><file name="Config.php" hash="77b86ba70a8709518a1833cce313f8ce"/><file name="Qbanner.php" hash="062251b29ee6e6b9eca5fbb5217574f5"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="QbannerController.php" hash="d37b642e2ce89c39d358fc0a89467acd"/></dir><file name="IndexController.php" hash="f407373f3d22fcd6284b81ea426eaa4a"/></dir><dir name="etc"><file name="config.xml" hash="2d368844c82d83deb67a581356b5b4e4"/><file name="system.xml" hash="da732ecff7683edca974b996f74a5027"/></dir><dir name="sql"><dir name="qbanner_setup"><file name="mysql4-install-0.1.0.php" hash="6a7322f7c3b8978f4de877c7a3401480"/><file name="mysql4-upgrade-0.1.0-1.8.1.php" hash="85249553045169fee124e843298d62a6"/><file name="mysql4-upgrade-1.8.1-2.1.4.php" hash="81b15086ba716c7bb787687e25641f43"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Qaz_All.xml" hash="abff101149db6be3dd3340323e9fad85"/><file name="Qaz_Qbanner.xml" hash="81840a50f8ba118b9f652a4c68e6608f"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="qbanner.xml" hash="c1d49b73932f0b5a5cad7000f0940e55"/></dir><dir name="template"><dir name="qaz"><dir name="qbanner"><file name="qbanner.after.header.phtml" hash="4d78dd6939256bd580fddc32126f8555"/><file name="qbanner.content.top.phtml" hash="e15c8e2ef2579682e6af86a8c240f725"/></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="qbanner.xml" hash="5cdd5bf218f6a4f6313d6458486db6ca"/></dir><dir name="template"><dir name="qaz"><dir name="qbanner"><dir name="edit"><dir name="tab"><file name="category.phtml" hash="46a89238104e417024606afb156c6af8"/><file name="image.phtml" hash="17ee407ad00b66a0108da81bcb85355a"/></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="qaz"><dir name="qbanner"><dir name="css"><file name="global.css" hash="8c6811cf4bca210b0a3ad3cd88344c01"/></dir><dir name="images"><file name="arrow-bg.png" hash="dd02d2e167a7ad76df8f10bf1147de70"/><file name="arrow-bg2.gif" hash="630ba4ce19ec51a1f984d3d8bd140479"/><file name="arrow-l.png" hash="9a4f1aadda0df80f8db6ebc7d0c938d7"/><file name="arrow-next.png" hash="15d6fe778c4df2494a7af4e098aad4ff"/><file name="arrow-prev.png" hash="bc273e26e577babc8044b0a8a86358d0"/><file name="arrow-r.png" hash="94af413ec776ca1b09b9fff4f81cc618"/><file name="b_next.png" hash="d72dde0609aded61a24fa18cdca4bf7f"/><file name="b_prev.png" hash="86e333b7023d493e8024ccc6b32cd690"/><file name="background.png" hash="96519dab3e5a2a09075632cca4a98141"/><file name="example-frame.png" hash="a6fe93af35f205873d1c68e257f0ffe1"/><file name="loading.gif" hash="58c35cf5e9fcbe3914c839c6665794bd"/><file name="new-ribbon.png" hash="ddf312ad3449c87f2c98f11a56a3fcc3"/><file name="pagination.png" hash="c1e5cc6dfe80b935b657576c8b93f5f5"/><file name="slide-1.jpg" hash="60f4feb9d141c63d4b120831b7deab11"/><file name="slide-2.jpg" hash="772208e05945f5e83275b4869875f9ae"/><file name="slide-3.jpg" hash="5aa6d109f0131737ca0e7c9fbf3b9bae"/><file name="slide-4.jpg" hash="3eb11a293897724ada695688486f38e9"/><file name="slide-5.jpg" hash="8692bb9ad56518c50625d53cb87f4795"/><file name="slide-6.jpg" hash="7eb3c3d3bd818ec1d6726cc33881d661"/><file name="slide-7.jpg" hash="fcf0c1c41e4880f58d735bde18c986b5"/><file name="slide.jpg" hash="0a421d74f61d7cb8e01d203b7b3825fb"/></dir></dir></dir></dir></dir></dir></target><target name="mage"><dir name="js"><dir name="qaz"><dir name="qbanner"><dir name="mage"><dir name="adminhtml"><file name="product.js" hash="dc99b6f7b6c6ae1c57bec9824d1b90be"/></dir></dir><file name="jquery.1.5.1.js" hash="38251a5074065e46fea974a460ea7a00"/><file name="jquery.slides.min.js" hash="a599effbf3331c3616e8b393ab7d10d6"/><file name="jqueryNoconfig.js" hash="8dd633a4b123d345a666b655d88d0b17"/></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies/>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>QAZ_Qbanner</name>
4
+ <version>2.1.5</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>
8
  <extends/>
9
  <summary>Support add more banner , set show more page , and very important , it help upload multi image</summary>
10
  <description>Support add more banner , set show more page , and very important , it help upload multi image</description>
11
+ <notes>Fixed banner show in category</notes>
12
  <authors><author><name>Kevin Black</name><user>auto-converted</user><email>kevin@qazware.com</email></author></authors>
13
+ <date>2012-03-23</date>
14
+ <time>07:58:38</time>
15
+ <contents><target name="magecommunity"><dir name="Qaz"><dir name="All"><dir name="Helper"><file name="Data.php" hash="a531698b0373f15ed017a921e0bfbe4b"/></dir><dir name="etc"><file name="config.xml" hash="6c6f6676c558ccb25c43a2c016f2d09d"/><file name="system.xml" hash="29a1180abd3b6a53b024f2bde75207bc"/></dir></dir><dir name="Qbanner"><dir name="Block"><dir name="Adminhtml"><dir name="Qbanner"><dir name="Edit"><dir name="Tab"><file name="Category.php" hash="61abdaddee7d7f504332b89967d28437"/><file name="Form.php" hash="03482f82f257505cb684a239c32a3086"/><file name="Image.php" hash="5fdc969762f6451abc2c40143f654a34"/><file name="Pages.php" hash="594a0ecffb7147893deb39d7f2f03493"/></dir><file name="Form.php" hash="aee2407e2a9f5940e9c08170b6a43abe"/><file name="Tabs.php" hash="769ebfc7c86192e02d189478f997eb40"/></dir><file name="Edit.php" hash="4970a7507a9b156eb5ad3549031ef791"/><file name="Grid.php" hash="4342ef02239e11f0e91c427169979d42"/></dir><file name="Qbanner.php" hash="cdc72f40377017f48bc7f83a4d879620"/></dir><file name="Qbanner.php" hash="5c6616111c1c04d821cf3f292c1987cf"/></dir><dir name="Helper"><file name="Data.php" hash="0aad2b14e7842d7fcf4633d6704d8baa"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Qbanner"><file name="Collection.php" hash="713a2a33f4f015b30cf6f013d5fc30ed"/></dir><file name="Qbanner.php" hash="63cb5aeaaf13f055cff2e216c33b24d8"/></dir><dir name="Option"><file name="Pages.php" hash="221f9a629ea486d52b219b47e9d51583"/><file name="Position.php" hash="449baccb2053509ba0726befe7a4a1cf"/><file name="Status.php" hash="12d8c41655369a00094b9276e211582c"/></dir><file name="Config.php" hash="77b86ba70a8709518a1833cce313f8ce"/><file name="Qbanner.php" hash="062251b29ee6e6b9eca5fbb5217574f5"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="QbannerController.php" hash="7f8efef58f9cbe04bccfd3629bf7b869"/></dir><file name="IndexController.php" hash="f407373f3d22fcd6284b81ea426eaa4a"/></dir><dir name="etc"><file name="config.xml" hash="45716a28e9f8e62e7ae6e4569dfaa60a"/><file name="system.xml" hash="da732ecff7683edca974b996f74a5027"/></dir><dir name="sql"><dir name="qbanner_setup"><file name="mysql4-install-0.1.0.php" hash="6a7322f7c3b8978f4de877c7a3401480"/><file name="mysql4-upgrade-0.1.0-1.8.1.php" hash="85249553045169fee124e843298d62a6"/><file name="mysql4-upgrade-1.8.1-2.1.4.php" hash="81b15086ba716c7bb787687e25641f43"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Qaz_All.xml" hash="abff101149db6be3dd3340323e9fad85"/><file name="Qaz_Qbanner.xml" hash="81840a50f8ba118b9f652a4c68e6608f"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="qbanner.xml" hash="c1d49b73932f0b5a5cad7000f0940e55"/></dir><dir name="template"><dir name="qaz"><dir name="qbanner"><file name="qbanner.after.header.phtml" hash="4d78dd6939256bd580fddc32126f8555"/><file name="qbanner.content.top.phtml" hash="e15c8e2ef2579682e6af86a8c240f725"/></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="qbanner.xml" hash="5cdd5bf218f6a4f6313d6458486db6ca"/></dir><dir name="template"><dir name="qaz"><dir name="qbanner"><dir name="edit"><dir name="tab"><file name="category.phtml" hash="46a89238104e417024606afb156c6af8"/><file name="image.phtml" hash="17ee407ad00b66a0108da81bcb85355a"/></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="qaz"><dir name="qbanner"><dir name="css"><file name="global.css" hash="8c6811cf4bca210b0a3ad3cd88344c01"/></dir><dir name="images"><file name="arrow-bg.png" hash="dd02d2e167a7ad76df8f10bf1147de70"/><file name="arrow-bg2.gif" hash="630ba4ce19ec51a1f984d3d8bd140479"/><file name="arrow-l.png" hash="9a4f1aadda0df80f8db6ebc7d0c938d7"/><file name="arrow-next.png" hash="15d6fe778c4df2494a7af4e098aad4ff"/><file name="arrow-prev.png" hash="bc273e26e577babc8044b0a8a86358d0"/><file name="arrow-r.png" hash="94af413ec776ca1b09b9fff4f81cc618"/><file name="b_next.png" hash="d72dde0609aded61a24fa18cdca4bf7f"/><file name="b_prev.png" hash="86e333b7023d493e8024ccc6b32cd690"/><file name="background.png" hash="96519dab3e5a2a09075632cca4a98141"/><file name="example-frame.png" hash="a6fe93af35f205873d1c68e257f0ffe1"/><file name="loading.gif" hash="58c35cf5e9fcbe3914c839c6665794bd"/><file name="new-ribbon.png" hash="ddf312ad3449c87f2c98f11a56a3fcc3"/><file name="pagination.png" hash="c1e5cc6dfe80b935b657576c8b93f5f5"/><file name="slide-1.jpg" hash="60f4feb9d141c63d4b120831b7deab11"/><file name="slide-2.jpg" hash="772208e05945f5e83275b4869875f9ae"/><file name="slide-3.jpg" hash="5aa6d109f0131737ca0e7c9fbf3b9bae"/><file name="slide-4.jpg" hash="3eb11a293897724ada695688486f38e9"/><file name="slide-5.jpg" hash="8692bb9ad56518c50625d53cb87f4795"/><file name="slide-6.jpg" hash="7eb3c3d3bd818ec1d6726cc33881d661"/><file name="slide-7.jpg" hash="fcf0c1c41e4880f58d735bde18c986b5"/><file name="slide.jpg" hash="0a421d74f61d7cb8e01d203b7b3825fb"/></dir></dir></dir></dir></dir></dir></target><target name="mage"><dir name="media"><dir name="qaz"><dir name="qbanner"><dir name="b"><dir name="i"><file name="biz_to_biz.jpg" hash="6e775eb386f6dd8a441a11b57feeb81d"/></dir></dir><dir name="d"><dir name="u"><file name="ducati-art-prints.jpg" hash="61ea208ba8072ce0b41b3afea3f584ba"/></dir></dir><dir name="v"><dir name="o"><file name="volleyball_vector_clipart.png" hash="ed6124b0ad81ab2292c0cd7fbbe37877"/></dir></dir></dir></dir></dir><dir name="js"><dir name="qaz"><dir name="qbanner"><dir name="mage"><dir name="adminhtml"><file name="product.js" hash="dc99b6f7b6c6ae1c57bec9824d1b90be"/></dir></dir><file name="jquery.1.5.1.js" hash="38251a5074065e46fea974a460ea7a00"/><file name="jquery.slides.min.js" hash="a599effbf3331c3616e8b393ab7d10d6"/><file name="jqueryNoconfig.js" hash="8dd633a4b123d345a666b655d88d0b17"/></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies/>
18
  </package>