Welcome to the RuneGlory Wiki, where we do our best to make your life easier!

You can use the search menu on the right side of the wiki (or at the bottom if you are on mobile) to search for the page you are looking for. The most popular pages can be found on the right side of the wiki aswell (or again at the bottom if you are on mobile).

Difference between revisions of "Dannyx Test"

From RuneGlory
Jump to: navigation, search
m (Protected "Dannyx Test" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
(Blanked the page)
Line 1: Line 1:
<?php if ($_products = $this->getRecentlyViewedProducts()):
 
$ids = '';
 
foreach ($_products as $_item) {
 
    $ids .= $_item->getId() . ';';
 
}
 
?>
 
<div class="lftHeading">
 
<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>
 
</div>
 
<div class="innerRgtMenu recently_viewed_block">
 
<table id="recently-viewed-items">
 
    <?php $i = 0; foreach ($_products as $_item): if ($i == 3) {
 
    continue;
 
} ?>
 
    <?php $product = $_item ?>
 
    <tr>
 
        <td><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></td>
 
        <td><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>
 
        </td>
 
  
    </tr>
 
    <?php $i++;
 
endforeach; ?>
 
</table>
 
<div style="margin: 5px 0px 5px 2px; text-align: center; width: 140px;">
 
    <input type="button" class="button recently_viewed_btn" value="<?php echo $this->__('Email These To Me') ?> "
 
          onClick="email_recently('<?php echo $ids; ?>')"/>
 
</div>
 
<div style="margin:5px;">
 
    <a href="<?php echo $this->getBaseUrl() ?>recently-viewed-items/"><?php echo $this->__('See All Recently Viewed') ?></a>
 
</div>
 
<script type="text/javascript">decorateList('recently-viewed-items');</script>
 

Revision as of 01:04, 23 April 2018