From RuneGlory
Revision as of 01:04, 23 April 2018 by Dannyx (talk | contribs) (Protected "Dannyx Test" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
<?php if ($_products = $this->getRecentlyViewedProducts()): $ids = ; foreach ($_products as $_item) {
$ids .= $_item->getId() . ';';
} ?>
<span
style="text-transform:capitalize;background:url(<?php echo $this->getSkinUrl('css/images/clo_left_heading_bullet2.gif') ?>) top left no-repeat;" >recently viewed</span>
<?php $i = 0; foreach ($_products as $_item): if ($i == 3) {
continue;
} ?>
<?php $product = $_item ?>
<?php $i++;
endforeach; ?>
<script type="text/javascript">decorateList('recently-viewed-items');</script>
<a style="border:1px solid #DDDDDD;float:left;margin:5px;padding:5px;"
href="<?php echo $this->getProductUrl($_item, array('_nosid' => true)) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($product, 'thumbnail')->resize(50) ?>"width="50" alt="<?php echo $this->escapeHtml($_item->getName()) ?>"/></a> |
<a style="position:relative;top:3px;font-size:11px;"
href="<?php echo $this->getProductUrl($_item, array('_nosid' => true)) ?>"><?php echo $this->escapeHtml($_item->getName()) ?></a> |
<input type="button" class="button recently_viewed_btn" value="<?php echo $this->__('Email These To Me') ?> " onClick="email_recently('<?php echo $ids; ?>')"/>
<a href="<?php echo $this->getBaseUrl() ?>recently-viewed-items/"><?php echo $this->__('See All Recently Viewed') ?></a>