Version Notes
Stable for download
Download this release
Release Info
Developer | Magento Core Team |
Extension | QAZ_Qtooltip |
Version | 0.1.4 |
Comparing to | |
See all releases |
Code changes from version 0.1.3 to 0.1.4
app/code/community/Qaz/Qtooltip/etc/config.xml
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
<config>
|
4 |
<modules>
|
5 |
<Qaz_Qtooltip>
|
6 |
-
<version>0.1.
|
7 |
</Qaz_Qtooltip>
|
8 |
</modules>
|
9 |
<frontend>
|
3 |
<config>
|
4 |
<modules>
|
5 |
<Qaz_Qtooltip>
|
6 |
+
<version>0.1.4</version>
|
7 |
</Qaz_Qtooltip>
|
8 |
</modules>
|
9 |
<frontend>
|
app/design/frontend/default/default/template/qaz/qtooltip/catalog.product.list.phtml
ADDED
@@ -0,0 +1,157 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* Product list template
|
30 |
+
*
|
31 |
+
* @see Mage_Catalog_Block_Product_List
|
32 |
+
*/
|
33 |
+
?>
|
34 |
+
<?php
|
35 |
+
$_productCollection = $this->getLoadedProductCollection();
|
36 |
+
$_helper = $this->helper('catalog/output');
|
37 |
+
?>
|
38 |
+
<?php if (!$_productCollection->count()): ?>
|
39 |
+
<p class="note-msg"><?php echo $this->__('There are no products matching the selection.') ?></p>
|
40 |
+
<?php else: ?>
|
41 |
+
<div class="category-products">
|
42 |
+
<?php echo $this->getToolbarHtml() ?>
|
43 |
+
<?php // List mode ?>
|
44 |
+
<?php if ($this->getMode() != 'grid'): ?>
|
45 |
+
<?php $_iterator = 0; ?>
|
46 |
+
<ol class="products-list" id="products-list">
|
47 |
+
<?php foreach ($_productCollection as $_product): ?>
|
48 |
+
<li class="item<?php if (++$_iterator == sizeof($_productCollection)): ?> last<?php endif; ?>">
|
49 |
+
<?php // Product Image ?>
|
50 |
+
<div id="<?php echo "tip" . $_iterator ?>" class="tip7abc">
|
51 |
+
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image">
|
52 |
+
<img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(135); ?>" width="135" height="135" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" />
|
53 |
+
</a>
|
54 |
+
</div>
|
55 |
+
<script type="text/javascript">
|
56 |
+
document.observe('dom:loaded', function() {
|
57 |
+
|
58 |
+
new Tip('<?php echo "tip" . $_iterator ?>', '<img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(Mage::getStoreConfig('qtool_tip/general/width'),Mage::getStoreConfig('qtool_tip/general/height')); ?>" />', {
|
59 |
+
className: 'darktip'
|
60 |
+
})
|
61 |
+
;
|
62 |
+
});
|
63 |
+
</script>
|
64 |
+
<?php // Product description ?>
|
65 |
+
<div class="product-shop">
|
66 |
+
<div class="f-fix">
|
67 |
+
<?php $_productNameStripped = $this->stripTags($_product->getName(), null, true); ?>
|
68 |
+
<h2 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped; ?>"><?php echo $_helper->productAttribute($_product, $_product->getName(), 'name'); ?></a></h2>
|
69 |
+
<?php if ($_product->getRatingSummary()): ?>
|
70 |
+
<?php echo $this->getReviewsSummaryHtml($_product) ?>
|
71 |
+
<?php endif; ?>
|
72 |
+
<?php echo $this->getPriceHtml($_product, true) ?>
|
73 |
+
<?php if ($_product->isSaleable()): ?>
|
74 |
+
<p><button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button></p>
|
75 |
+
<?php else: ?>
|
76 |
+
<p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
|
77 |
+
<?php endif; ?>
|
78 |
+
<div class="desc std">
|
79 |
+
<?php echo $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?>
|
80 |
+
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped ?>" class="link-learn"><?php echo $this->__('Learn More') ?></a>
|
81 |
+
</div>
|
82 |
+
<ul class="add-to-links">
|
83 |
+
<?php if ($this->helper('wishlist')->isAllow()) : ?>
|
84 |
+
<li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
|
85 |
+
<?php endif; ?>
|
86 |
+
<?php if ($_compareUrl = $this->getAddToCompareUrl($_product)): ?>
|
87 |
+
<li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
|
88 |
+
<?php endif; ?>
|
89 |
+
</ul>
|
90 |
+
</div>
|
91 |
+
</div>
|
92 |
+
</li>
|
93 |
+
<?php endforeach; ?>
|
94 |
+
</ol>
|
95 |
+
<script type="text/javascript">decorateList('products-list', 'none-recursive')</script>
|
96 |
+
|
97 |
+
<?php else: ?>
|
98 |
+
|
99 |
+
<?php // Grid Mode ?>
|
100 |
+
|
101 |
+
<?php $_collectionSize = $_productCollection->count() ?>
|
102 |
+
<?php $_columnCount = $this->getColumnCount(); ?>
|
103 |
+
<?php $i = 0;
|
104 |
+
|
105 |
+
foreach ($_productCollection as $_product): ?>
|
106 |
+
<?php if ($i++ % $_columnCount == 0): ?>
|
107 |
+
<ul class="products-grid">
|
108 |
+
<?php endif ?>
|
109 |
+
<li class="item<?php if (($i - 1) % $_columnCount == 0): ?> first<?php elseif ($i % $_columnCount == 0): ?> last<?php endif; ?>">
|
110 |
+
|
111 |
+
<div id="<?php echo "tip" . $i ?>" class="tip7abc">
|
112 |
+
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image">
|
113 |
+
<img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(300); ?>" width="135" height="135" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" />
|
114 |
+
</a>
|
115 |
+
</div>
|
116 |
+
<script type="text/javascript">
|
117 |
+
document.observe('dom:loaded', function() {
|
118 |
+
|
119 |
+
new Tip('<?php echo "tip" . $i ?>', '<img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(Mage::getStoreConfig('qtool_tip/general/width'),Mage::getStoreConfig('qtool_tip/general/height')); ?>" />', {
|
120 |
+
className: 'darktip'
|
121 |
+
})
|
122 |
+
;
|
123 |
+
});
|
124 |
+
</script>
|
125 |
+
<h2 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($_product->getName(), null, true) ?>"><?php echo $_helper->productAttribute($_product, $_product->getName(), 'name') ?></a></h2>
|
126 |
+
<?php if ($_product->getRatingSummary()): ?>
|
127 |
+
<?php echo $this->getReviewsSummaryHtml($_product, 'short') ?>
|
128 |
+
<?php endif; ?>
|
129 |
+
<?php echo $this->getPriceHtml($_product, true) ?>
|
130 |
+
<div class="actions">
|
131 |
+
<?php if ($_product->isSaleable()): ?>
|
132 |
+
<button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button>
|
133 |
+
<?php else: ?>
|
134 |
+
<p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p>
|
135 |
+
<?php endif; ?>
|
136 |
+
<ul class="add-to-links">
|
137 |
+
<?php if ($this->helper('wishlist')->isAllow()) : ?>
|
138 |
+
<li><a href="<?php echo $this->helper('wishlist')->getAddUrl($_product) ?>" class="link-wishlist"><?php echo $this->__('Add to Wishlist') ?></a></li>
|
139 |
+
<?php endif; ?>
|
140 |
+
<?php if ($_compareUrl = $this->getAddToCompareUrl($_product)): ?>
|
141 |
+
<li><span class="separator">|</span> <a href="<?php echo $_compareUrl ?>" class="link-compare"><?php echo $this->__('Add to Compare') ?></a></li>
|
142 |
+
<?php endif; ?>
|
143 |
+
</ul>
|
144 |
+
</div>
|
145 |
+
</li>
|
146 |
+
<?php if ($i % $_columnCount == 0 || $i == $_collectionSize): ?>
|
147 |
+
</ul>
|
148 |
+
<?php endif ?>
|
149 |
+
<?php endforeach ?>
|
150 |
+
<script type="text/javascript">decorateGeneric($$('ul.products-grid'), ['odd','even','first','last'])</script>
|
151 |
+
<?php endif; ?>
|
152 |
+
|
153 |
+
<div class="toolbar-bottom">
|
154 |
+
<?php echo $this->getToolbarHtml() ?>
|
155 |
+
</div>
|
156 |
+
</div>
|
157 |
+
<?php endif; ?>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>QAZ_Qtooltip</name>
|
4 |
-
<version>0.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>
|
@@ -29,9 +29,9 @@
|
|
29 |
<p><a href="http://qtooltip.qazware.com/admin">Demo Back-End </a> access : qtooltip/qazware123</p></description>
|
30 |
<notes>Stable for download</notes>
|
31 |
<authors><author><name>Kevin Black</name><user>auto-converted</user><email>kevin.qazware@gmail.com</email></author></authors>
|
32 |
-
<date>2012-
|
33 |
-
<time>08:
|
34 |
-
<contents><target name="mageetc"><dir name="modules"><file name="Qaz_Qtooltip.xml" hash="146b66b224cf823b15b62101a59cd6ad"/><file name="Qaz_All.xml" hash="abff101149db6be3dd3340323e9fad85"/></dir></target><target name="magecommunity"><dir name="Qaz"><dir name="Qtooltip"><dir name="Helper"><file name="Data.php" hash="04388badd6e9461f665a563707fbfba4"/></dir><dir name="etc"><file name="adminhtml.xml" hash="1be79d6de60bb0cf20d61ce9a789752d"/><file name="config.xml" hash="
|
35 |
<compatible/>
|
36 |
<dependencies/>
|
37 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>QAZ_Qtooltip</name>
|
4 |
+
<version>0.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>
|
29 |
<p><a href="http://qtooltip.qazware.com/admin">Demo Back-End </a> access : qtooltip/qazware123</p></description>
|
30 |
<notes>Stable for download</notes>
|
31 |
<authors><author><name>Kevin Black</name><user>auto-converted</user><email>kevin.qazware@gmail.com</email></author></authors>
|
32 |
+
<date>2012-03-30</date>
|
33 |
+
<time>08:58:01</time>
|
34 |
+
<contents><target name="mageetc"><dir name="modules"><file name="Qaz_Qtooltip.xml" hash="146b66b224cf823b15b62101a59cd6ad"/><file name="Qaz_All.xml" hash="abff101149db6be3dd3340323e9fad85"/></dir></target><target name="magecommunity"><dir name="Qaz"><dir name="Qtooltip"><dir name="Helper"><file name="Data.php" hash="04388badd6e9461f665a563707fbfba4"/></dir><dir name="etc"><file name="adminhtml.xml" hash="1be79d6de60bb0cf20d61ce9a789752d"/><file name="config.xml" hash="10b54a66c5ba0a1df286323cc96fdde0"/><file name="system.xml" hash="bca934b6e36132b9f6a15226e586ca2b"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="qtooltip.xml" hash="b9b890b81039beecf161d498db87b55a"/></dir><dir name="template"><dir name="qaz"><dir name="qtooltip"><file name="catalog.product.list.phtml" hash="cf15fd6b69df2f3aecd9accb7010ef2c"/></dir></dir></dir></dir></dir></dir></target></contents>
|
35 |
<compatible/>
|
36 |
<dependencies/>
|
37 |
</package>
|