Version Notes
Version 1.1.3 Stable
New in version 1.1.3:
* Minor bugfixes
Download this release
Release Info
Developer | Magento Core Team |
Extension | Atwix_Recentlyviewed |
Version | 1.1.3 |
Comparing to | |
See all releases |
Code changes from version 1.1.2 to 1.1.3
app/design/frontend/base/default/template/recentlyviewed/view.phtml
CHANGED
@@ -2,44 +2,43 @@
|
|
2 |
|
3 |
$rw_items = $this->CollectRecentlyViewed();
|
4 |
$panel_state = $this->checkPanelState();
|
5 |
-
if (is_array($rw_items) && count($rw_items) > 0)
|
6 |
-
$prodmodel = Mage::getModel('catalog/product');
|
7 |
-
$imagemodel = Mage::helper('catalog/image')->init($prodmodel, 'small_image');
|
8 |
-
?>
|
9 |
|
10 |
-
<script type="text/javascript">
|
11 |
-
|
12 |
-
</script>
|
13 |
|
14 |
-
<div <?=(($panel_state == 'show')? '' : 'style="display: none;"');?> class="rw-wrapper" id="rvi_panel">
|
15 |
-
<div class="rvi-head"></div>
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
<
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
</
|
38 |
-
|
39 |
-
<div class="
|
40 |
-
<div class="
|
41 |
-
|
|
|
42 |
|
43 |
-
<?
|
44 |
-
|
45 |
-
?>
|
2 |
|
3 |
$rw_items = $this->CollectRecentlyViewed();
|
4 |
$panel_state = $this->checkPanelState();
|
5 |
+
if (is_array($rw_items) && count($rw_items) > 0) :
|
6 |
+
$prodmodel = Mage::getModel('catalog/product');
|
7 |
+
$imagemodel = Mage::helper('catalog/image')->init($prodmodel, 'small_image');
|
8 |
+
?>
|
9 |
|
10 |
+
<script type="text/javascript">
|
11 |
+
var atwix_base_url = '<?=Mage::getBaseUrl();?>';
|
12 |
+
</script>
|
13 |
|
14 |
+
<div <?=(($panel_state == 'show')? '' : 'style="display: none;"');?> class="rw-wrapper" id="rvi_panel">
|
15 |
+
<div class="rvi-head"></div>
|
16 |
+
<table border="0" width="100%">
|
17 |
+
<tr>
|
18 |
+
<td width="90%" valign="middle">
|
19 |
+
<div class="rw-block">
|
20 |
+
<div class="rw-title"><?=$this->__('Recently Viewed: ');?></div>
|
21 |
+
<? foreach ($rw_items as $rw_item) :
|
22 |
+
$prodmodel = Mage::getModel('catalog/product');
|
23 |
+
$prodmodel->load($rw_item);
|
24 |
+
$imagemodel->init($prodmodel, 'small_image')->resize(45); ?>
|
25 |
+
<a href="<?=$prodmodel->getProductUrl();?>"><img align="middle" class="rw-thumb" src="<?=$imagemodel?>" prod_id="<?=$rw_item;?>" alt="" /></a>
|
26 |
+
<? $imagemodel->init($prodmodel, 'small_image')->resize(125); ?>
|
27 |
+
<span class="rw-preview-wrapper" prod_id="<?=$rw_item;?>">
|
28 |
+
<img class="rw-preview" src="<?=$imagemodel;?>" alt="" />
|
29 |
+
</span>
|
30 |
+
<? endforeach; ?>
|
31 |
+
</div>
|
32 |
+
</td>
|
33 |
+
<td width="10%" style="vertical-align: middle !important">
|
34 |
+
<div class="rvi_btn btn_hide"></div>
|
35 |
+
</td>
|
36 |
+
</tr>
|
37 |
+
</table>
|
38 |
+
</div>
|
39 |
+
<div class="rw-wrapper-hidden" <?=(($panel_state != 'show')? '' : 'style="display: none;"');?> >
|
40 |
+
<div class="rvi-head"></div>
|
41 |
+
<div class="rvi_btn btn_show" style="margin-top: 22px;"></div>
|
42 |
+
</div>
|
43 |
|
44 |
+
<? endif; ?>
|
|
|
|
package.xml
CHANGED
@@ -1,22 +1,22 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Atwix_Recentlyviewed</name>
|
4 |
-
<version>1.1.
|
5 |
<stability>stable</stability>
|
6 |
<license>GPL</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Atwix Recently Viewed Items Bar</summary>
|
10 |
<description>Atwix Recently Viewed Items Bar shows a list of recently viewed products for customer.</description>
|
11 |
-
<notes>Version 1.1.
|
12 |
|
13 |
-
New in version 1.1.
|
14 |
|
15 |
-
* Minor
|
16 |
<authors><author><name>atwix</name><user>auto-converted</user><email>info@atwix.com</email></author></authors>
|
17 |
-
<date>2011-03-
|
18 |
-
<time>
|
19 |
-
<contents><target name="magecommunity"><dir name="Atwix"><dir name="Recentlyviewed"><dir name="Block"><file name="Collect.php" hash="350a4e3e4755b54241e60e552d628335"/><file name="Expand.php" hash="be8a6233defa3198a3fb4a1b8953c198"/><file name="View.php" hash="a35bf9cae926295eb8510d145eacb0fb"/></dir><dir name="controllers"><file name="AjaxController.php" hash="ac6c88249ad233920840bdc3bf2b3703"/></dir><dir name="etc"><file name="adminhtml.xml" hash="e23e673d2704f72c44cc9b3ed0ae336c"/><file name="config.xml" hash="c37f12509a2fbf4cf4fdf76bf80a0464"/><file name="system.xml" hash="44a1bc5caee6785f1bea9f45ef6a4cf2"/></dir><dir name="Helper"><file name="Data.php" hash="3ce9c1c49cc384bd46a7aa0c744e4ce9"/></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="Atwix_recentlyviewed.csv" hash="14a2f9b4019b8b7efa0b950160526b3e"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="recentlyviewed.xml" hash="f82aa3a5b5c89bdb479f634d85c47d6c"/></dir><dir name="template"><dir name="recentlyviewed"><file name="collect.phtml" hash="64695dad1338b524044eeefa06c1d96c"/><file name="expand.phtml" hash="c1f67ba5bbe457f8c2c1ac2d6aa8697d"/><file name="view.phtml" hash="
|
20 |
<compatible/>
|
21 |
<dependencies/>
|
22 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Atwix_Recentlyviewed</name>
|
4 |
+
<version>1.1.3</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>GPL</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Atwix Recently Viewed Items Bar</summary>
|
10 |
<description>Atwix Recently Viewed Items Bar shows a list of recently viewed products for customer.</description>
|
11 |
+
<notes>Version 1.1.3 Stable
|
12 |
|
13 |
+
New in version 1.1.3:
|
14 |
|
15 |
+
* Minor bugfixes</notes>
|
16 |
<authors><author><name>atwix</name><user>auto-converted</user><email>info@atwix.com</email></author></authors>
|
17 |
+
<date>2011-03-15</date>
|
18 |
+
<time>11:08:56</time>
|
19 |
+
<contents><target name="magecommunity"><dir name="Atwix"><dir name="Recentlyviewed"><dir name="Block"><file name="Collect.php" hash="350a4e3e4755b54241e60e552d628335"/><file name="Expand.php" hash="be8a6233defa3198a3fb4a1b8953c198"/><file name="View.php" hash="a35bf9cae926295eb8510d145eacb0fb"/></dir><dir name="controllers"><file name="AjaxController.php" hash="ac6c88249ad233920840bdc3bf2b3703"/></dir><dir name="etc"><file name="adminhtml.xml" hash="e23e673d2704f72c44cc9b3ed0ae336c"/><file name="config.xml" hash="c37f12509a2fbf4cf4fdf76bf80a0464"/><file name="system.xml" hash="44a1bc5caee6785f1bea9f45ef6a4cf2"/></dir><dir name="Helper"><file name="Data.php" hash="3ce9c1c49cc384bd46a7aa0c744e4ce9"/></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="Atwix_recentlyviewed.csv" hash="14a2f9b4019b8b7efa0b950160526b3e"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="recentlyviewed.xml" hash="f82aa3a5b5c89bdb479f634d85c47d6c"/></dir><dir name="template"><dir name="recentlyviewed"><file name="collect.phtml" hash="64695dad1338b524044eeefa06c1d96c"/><file name="expand.phtml" hash="c1f67ba5bbe457f8c2c1ac2d6aa8697d"/><file name="view.phtml" hash="260ea1252b1a6b4228058b5a962b7b10"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="recentlyviewed"><dir name="css"><file name="recentlyviewed.css" hash="f43400829d51b52ce6207c712e8f2d9e"/></dir><dir name="images"><file name="btnhide.gif" hash="dc0252ae36397e71c89f6f084616011a"/><file name="btnshow.gif" hash="9c33cc55e0efb5d6212a7b668ea1e270"/><file name="rvi-footer.jpg" hash="926f12531d37f15ceb7c5ec12f76b3cb"/></dir></dir></dir></dir></dir></target><target name="mageweb"><dir name="js"><dir name="atwix_recentlyviewed"><file name="jquery.js" hash="59fa85cd74410b80b2dd820b9b9fee53"/><file name="recentlyviewed.js" hash="bcfdec68a20cdbf6cbacf6d2e51a197a"/></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Atwix_All.xml" hash="25af9dd0133177b16161f42e89af066a"/></dir></target></contents>
|
20 |
<compatible/>
|
21 |
<dependencies/>
|
22 |
</package>
|