Advertisement
Guest User

lsit.phtml

a guest
Sep 22nd, 2014
388
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.63 KB | None | 0 0
  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..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) 2012 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. <div class="list-item-inner row-fluid">
  50. <?php // Product Image ?>
  51. <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image span4"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(300,380); ?>" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>
  52. <?php // Product description ?>
  53. <div class="product-shop span8">
  54. <div class="f-fix">
  55. <?php $_productNameStripped = $this->stripTags($_product->getName(), null, true); ?>
  56. <h2 class="product-name"><a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped; ?>"><?php echo $_helper->productAttribute($_product, $_product->getName() , 'name'); ?></a></h2>
  57. <?php if($_product->getRatingSummary()): ?>
  58. <?php echo $this->getReviewsSummaryHtml($_product) ?>
  59. <?php endif; ?>
  60.  
  61. <div class="desc std">
  62. <?php echo $_helper->productAttribute($_product, $_product->getShortDescription(), 'short_description') ?>
  63. <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $_productNameStripped ?>" class="link-learn"><?php echo $this->__('Learn More') ?></a>
  64. </div>
  65. <div class="price-box-item">
  66.  
  67. </div>
  68.  
  69. <ul class="add-to-links">
  70. <?php if($_product->isSaleable()): ?>
  71.  
  72. <?php else: ?>
  73. <li><p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p></li>
  74. <?php endif; ?>
  75.  
  76.  
  77. </ul>
  78. </div>
  79. </div>
  80. </div>
  81. </li>
  82. <?php endforeach; ?>
  83. </ol>
  84. <script type="text/javascript">decorateList('products-list', 'none-recursive')</script>
  85.  
  86. <?php else: ?>
  87.  
  88. <?php // Grid Mode ?>
  89.  
  90. <?php $_collectionSize = $_productCollection->count() ?>
  91. <?php $_columnCount = $this->getColumnCount(); ?>
  92. <?php $i=0; foreach ($_productCollection as $_product): ?>
  93. <?php if ($i++%$_columnCount==0): ?>
  94. <div class="products-grid row-fluid">
  95. <?php endif ?>
  96. <div class="span4 item<?php if(($i-1)%$_columnCount==0): ?> first<?php elseif($i%$_columnCount==0): ?> last<?php endif; ?>">
  97. <div class="item-inner">
  98. <a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(300,380); ?>" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>
  99. <div class="product-inner">
  100. <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>
  101. <?php if($_product->getRatingSummary()): ?>
  102. <?php echo $this->getReviewsSummaryHtml($_product, 'short') ?>
  103. <?php endif; ?>
  104. <div class="product-des">
  105. <?php echo $_helper->productAttribute($_product, $_product->getShortDescriptionGrid(), 'short_description_grid') ?>
  106. </div>
  107. <div class="actions">
  108. <ul class="add-to-links">
  109. <?php if($_product->isSaleable()): ?>
  110.  
  111. <?php else: ?>
  112. <li><p class="availability out-of-stock"><span><?php echo $this->__('Out of stock') ?></span></p></li>
  113. <?php endif; ?>
  114.  
  115.  
  116. </ul>
  117. <div class="price-box-item">
  118.  
  119. </div>
  120. </div>
  121. </div>
  122. </div>
  123. </div>
  124. <?php if ($i%$_columnCount==0 || $i==$_collectionSize): ?>
  125. </div>
  126. <?php endif ?>
  127. <?php endforeach ?>
  128. <script type="text/javascript">decorateGeneric($$('ul.products-grid'), ['odd','even','first','last'])</script>
  129. <?php endif; ?>
  130.  
  131. <div class="toolbar-bottom">
  132. <?php echo $this->getToolbarHtml() ?>
  133. </div>
  134. </div>
  135. <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement