Version Notes
Fix :upload image in Magento's version > 1.6
Download this release
Release Info
Developer | Magento Core Team |
Extension | Kevin_Qbanner |
Version | 1.7.1 |
Comparing to | |
See all releases |
Code changes from version 1.6.1 to 1.7.1
app/code/community/Qaz/Qbanner/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Qaz_Qbanner>
|
5 |
-
<version>1.
|
6 |
</Qaz_Qbanner>
|
7 |
</modules>
|
8 |
<frontend>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Qaz_Qbanner>
|
5 |
+
<version>1.7.1</version>
|
6 |
</Qaz_Qbanner>
|
7 |
</modules>
|
8 |
<frontend>
|
app/design/frontend/default/default/template/qaz/qbanner/qbanner.after.header.phtml
CHANGED
@@ -29,19 +29,29 @@
|
|
29 |
<?php $images = $banner->getImageList(); ?>
|
30 |
<?php if (sizeof($images) > 0) : ?>
|
31 |
<?php foreach ($images as $image): ?>
|
32 |
-
|
33 |
-
<
|
34 |
-
|
35 |
-
|
36 |
-
<
|
37 |
-
|
38 |
-
|
39 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
<?php endforeach; ?>
|
41 |
<?php endif; ?>
|
42 |
</div>
|
43 |
-
<a href="#" class="prev" style="top:<?php echo $bannerHeight / 2 - 20; ?>px"><img src="<?php echo $this->getSkinUrl('qaz/qbanner/images/b_prev.png'); ?>" alt="Arrow Prev"/></a>
|
44 |
-
<a href="#" class="next" style="top:<?php echo $bannerHeight / 2 - 20; ?>px;
|
45 |
</div>
|
46 |
</div>
|
47 |
<div class="clear"></div>
|
@@ -82,12 +92,12 @@
|
|
82 |
});
|
83 |
</script>
|
84 |
<style>
|
85 |
-
#slides-after-header-<?php echo $banner->getId()?> .caption{width: <?php echo $bannerWidth; ?>px;}
|
86 |
-
#slides-after-header-<?php echo $banner->getId()?> .pagination {margin:0 auto;left:<?php echo ($bannerWidth - 50 ) / 2; ?>px;}
|
87 |
</style>
|
88 |
<?php if (!$showPagination): ?>
|
89 |
<style>
|
90 |
-
#slides-after-header-<?php echo $banner->getId()?> .pagination {display:none;}
|
91 |
</style>
|
92 |
<?php endif; ?>
|
93 |
<?php endif; ?>
|
29 |
<?php $images = $banner->getImageList(); ?>
|
30 |
<?php if (sizeof($images) > 0) : ?>
|
31 |
<?php foreach ($images as $image): ?>
|
32 |
+
<?php if (sizeof($images) == 1): ?>
|
33 |
+
<div class="slide" style="width:<?php echo $bannerWidth . 'px'; ?>; height: <?php echo $bannerHeight . 'px'; ?>;">
|
34 |
+
<img src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA) . 'qaz/qbanner' . $image['file']; ?>"alt="<?php echo $image['label']; ?>"/>
|
35 |
+
<?php if ($showCaption): ?>
|
36 |
+
<div class="caption" style="bottom:0">
|
37 |
+
<p><?php echo $image['label']; ?></p>
|
38 |
+
</div>
|
39 |
+
<?php endif; ?>
|
40 |
+
</div>
|
41 |
+
<?php endif; ?>
|
42 |
+
<div class="slide" style="width:<?php echo $bannerWidth . 'px'; ?>; height: <?php echo $bannerHeight . 'px'; ?>;">
|
43 |
+
<img src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA) . 'qaz/qbanner' . $image['file']; ?>"alt="<?php echo $image['label']; ?>"/>
|
44 |
+
<?php if ($showCaption): ?>
|
45 |
+
<div class="caption" style="bottom:0">
|
46 |
+
<p><?php echo $image['label']; ?></p>
|
47 |
+
</div>
|
48 |
+
<?php endif; ?>
|
49 |
+
</div>
|
50 |
<?php endforeach; ?>
|
51 |
<?php endif; ?>
|
52 |
</div>
|
53 |
+
<a href="#" class="prev" style="top:<?php echo $bannerHeight / 2 - 20; ?>px;left:0px"><img src="<?php echo $this->getSkinUrl('qaz/qbanner/images/b_prev.png'); ?>" alt="Arrow Prev"/></a>
|
54 |
+
<a href="#" class="next" style="top:<?php echo $bannerHeight / 2 - 20; ?>px;right:0px;"><img src="<?php echo $this->getSkinUrl('qaz/qbanner/images/b_next.png'); ?>" alt="Arrow Next"/></a>
|
55 |
</div>
|
56 |
</div>
|
57 |
<div class="clear"></div>
|
92 |
});
|
93 |
</script>
|
94 |
<style>
|
95 |
+
#slides-after-header-<?php echo $banner->getId() ?> .caption{width: <?php echo $bannerWidth; ?>px;}
|
96 |
+
#slides-after-header-<?php echo $banner->getId() ?> .pagination {margin:0 auto;left:<?php echo ($bannerWidth - 50 ) / 2; ?>px;}
|
97 |
</style>
|
98 |
<?php if (!$showPagination): ?>
|
99 |
<style>
|
100 |
+
#slides-after-header-<?php echo $banner->getId() ?> .pagination {display:none;}
|
101 |
</style>
|
102 |
<?php endif; ?>
|
103 |
<?php endif; ?>
|
app/design/frontend/default/default/template/qaz/qbanner/qbanner.content.top.phtml
CHANGED
@@ -29,19 +29,29 @@
|
|
29 |
<?php $images = $banner->getImageList(); ?>
|
30 |
<?php if (sizeof($images) > 0) : ?>
|
31 |
<?php foreach ($images as $image): ?>
|
32 |
-
|
33 |
-
<
|
34 |
-
|
35 |
-
|
36 |
-
<
|
37 |
-
|
38 |
-
|
39 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
<?php endforeach; ?>
|
41 |
<?php endif; ?>
|
42 |
</div>
|
43 |
-
<a href="#" class="prev" style="top:<?php echo $bannerHeight / 2 - 20; ?>px"><img src="<?php echo $this->getSkinUrl('qaz/qbanner/images/b_prev.png'); ?>" alt="Arrow Prev"/></a>
|
44 |
-
<a href="#" class="next" style="top:<?php echo $bannerHeight / 2 - 20; ?>px;
|
45 |
</div>
|
46 |
</div>
|
47 |
<div class="clear"></div>
|
29 |
<?php $images = $banner->getImageList(); ?>
|
30 |
<?php if (sizeof($images) > 0) : ?>
|
31 |
<?php foreach ($images as $image): ?>
|
32 |
+
<?php if (sizeof($images) == 1): ?>
|
33 |
+
<div class="slide" style="width:<?php echo $bannerWidth . 'px'; ?>; height: <?php echo $bannerHeight . 'px'; ?>;">
|
34 |
+
<img src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA) . 'qaz/qbanner' . $image['file']; ?>"alt="<?php echo $image['label']; ?>"/>
|
35 |
+
<?php if ($showCaption): ?>
|
36 |
+
<div class="caption" style="bottom:0">
|
37 |
+
<p><?php echo $image['label']; ?></p>
|
38 |
+
</div>
|
39 |
+
<?php endif; ?>
|
40 |
+
</div>
|
41 |
+
<?php endif; ?>
|
42 |
+
<div class="slide" style="width:<?php echo $bannerWidth . 'px'; ?>; height: <?php echo $bannerHeight . 'px'; ?>;">
|
43 |
+
<img src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA) . 'qaz/qbanner' . $image['file']; ?>"alt="<?php echo $image['label']; ?>"/>
|
44 |
+
<?php if ($showCaption): ?>
|
45 |
+
<div class="caption" style="bottom:0">
|
46 |
+
<p><?php echo $image['label']; ?></p>
|
47 |
+
</div>
|
48 |
+
<?php endif; ?>
|
49 |
+
</div>
|
50 |
<?php endforeach; ?>
|
51 |
<?php endif; ?>
|
52 |
</div>
|
53 |
+
<a href="#" class="prev" style="top:<?php echo $bannerHeight / 2 - 20; ?>px;left:0px"><img src="<?php echo $this->getSkinUrl('qaz/qbanner/images/b_prev.png'); ?>" alt="Arrow Prev"/></a>
|
54 |
+
<a href="#" class="next" style="top:<?php echo $bannerHeight / 2 - 20; ?>px;right:0px"><img src="<?php echo $this->getSkinUrl('qaz/qbanner/images/b_next.png'); ?>" alt="Arrow Next"/></a>
|
55 |
</div>
|
56 |
</div>
|
57 |
<div class="clear"></div>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Kevin_Qbanner</name>
|
4 |
-
<version>1.
|
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,9 +12,9 @@
|
|
12 |
(Or edit theme of you is not use default theme) More extensions FREE : http://extensionsmagento.com/</description>
|
13 |
<notes>Fix :upload image in Magento's version > 1.6</notes>
|
14 |
<authors><author><name>Kevin Black</name><user>auto-converted</user><email>kevin.magento@gmail.com</email></author></authors>
|
15 |
-
<date>2011-11-
|
16 |
-
<time>
|
17 |
-
<contents><target name="magecommunity"><dir name="Qaz"><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="5798748a5bfed033b650116a0a14107d"/><file name="Image.php" hash="c48ea83ae0ebce092d93a6b3dbbaf139"/><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="05a976e268ba40e1c38662d6bb5f6458"/></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="d2c604370bc786c3ba32d1d357c98cbb"/></dir><file name="IndexController.php" hash="d3c15879f3158b505d412ae90aeb5466"/></dir><dir name="etc"><file name="config.xml" hash="
|
18 |
<compatible/>
|
19 |
<dependencies/>
|
20 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Kevin_Qbanner</name>
|
4 |
+
<version>1.7.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 |
(Or edit theme of you is not use default theme) More extensions FREE : http://extensionsmagento.com/</description>
|
13 |
<notes>Fix :upload image in Magento's version > 1.6</notes>
|
14 |
<authors><author><name>Kevin Black</name><user>auto-converted</user><email>kevin.magento@gmail.com</email></author></authors>
|
15 |
+
<date>2011-11-29</date>
|
16 |
+
<time>09:23:14</time>
|
17 |
+
<contents><target name="magecommunity"><dir name="Qaz"><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="5798748a5bfed033b650116a0a14107d"/><file name="Image.php" hash="c48ea83ae0ebce092d93a6b3dbbaf139"/><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="05a976e268ba40e1c38662d6bb5f6458"/></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="d2c604370bc786c3ba32d1d357c98cbb"/></dir><file name="IndexController.php" hash="d3c15879f3158b505d412ae90aeb5466"/></dir><dir name="etc"><file name="config.xml" hash="c8509c0567a6b8a82dcd5b6e186cb41b"/></dir><dir name="sql"><dir name="qbanner_setup"><file name="mysql4-install-0.1.0.php" hash="6a7322f7c3b8978f4de877c7a3401480"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><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="5c715bc54032bdb913dece4a1e221ad9"/><file name="qbanner.content.top.phtml" hash="61f46286b3d14c0f576233e6ae371f31"/></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="qbanner.xml" hash="1cfd7b9362bf8e99dc47b450a920a25c"/></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="041ff63dcce58cd68e439b24b96062dc"/></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="615ecff68372fdd072631f04acbd0a29"/></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="magemedia"><dir name="qaz"><dir name="qbanner"><dir name="1"><dir name="6"><file name="1694554_11311.jpg" hash=""/></dir></dir><dir name="b"><dir name="a"><file name="banner-2.jpg" hash=""/><file name="banner-21.jpg" hash=""/><file name="banner-21_1.jpg" hash=""/><file name="banner-2_1.jpg" hash=""/><file name="banner-2_2.jpg" hash=""/><file name="banner-2_3.jpg" hash=""/><file name="banner-3.jpg" hash=""/><file name="banner-31.jpg" hash=""/><file name="banner-31_1.jpg" hash=""/><file name="banner-3_1.jpg" hash=""/><file name="banner-3_2.jpg" hash=""/><file name="banner-3_3.jpg" hash=""/><file name="banner-3_4.jpg" hash=""/><file name="banner-3_5.jpg" hash=""/><file name="banner-4.jpg" hash=""/><file name="banner-4_1.jpg" hash=""/><file name="banner-4_2.jpg" hash=""/><file name="banner-4_3.jpg" hash=""/><file name="banner-4_4.jpg" hash=""/><file name="banner-4_5.jpg" hash=""/><file name="banner.jpg" hash=""/></dir><dir name="o"><file name="bottom_banner.jpg" hash=""/><file name="bottom_banner2.jpg" hash=""/><file name="bottom_banner2_1.jpg" hash=""/></dir></dir><dir name="t"><dir name="o"><file name="top_banner.jpg" hash=""/><file name="top_banner_1.jpg" hash=""/></dir></dir></dir></dir></target><target name="mage"><dir name="js"><dir name="qaz"><dir name="qbanner"><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>
|
18 |
<compatible/>
|
19 |
<dependencies/>
|
20 |
</package>
|