Guest User

grgtrt

a guest
Feb 13th, 2017
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.79 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.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@magento.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.magento.com for more information.
  20. *
  21. * @category design
  22. * @package base_default
  23. * @copyright Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
  24. * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
  25. */
  26. ?>
  27. <?php
  28. /**
  29. * Category view template
  30. *
  31. * @see Mage_Catalog_Block_Category_View
  32. */
  33. ?>
  34. <?php
  35. $_helper = $this->helper('catalog/output');
  36. $_category = $this->getCurrentCategory();
  37. $_imgHtml = '';
  38. if ($_imgUrl = $_category->getImageUrl()) {
  39. $_imgHtml = '<p class="category-image"><img src="'.$_imgUrl.'" alt="'.$this->escapeHtml($_category->getName()).'" title="'.$this->escapeHtml($_category->getName()).'" /></p>';
  40. $_imgHtml = $_helper->categoryAttribute($_category, $_imgHtml, 'image');
  41. }
  42. ?>
  43. <?php echo $this->getMessagesBlock()->toHtml() ?>
  44.  
  45. <?php if($_imgUrl): ?>
  46. <?php echo $_imgHtml ?>
  47. <?php endif; ?>
  48.  
  49.  
  50.  
  51. <?php if($this->isContentMode()): ?>
  52. <?php echo $this->getCmsBlockHtml() ?>
  53.  
  54. <?php elseif($this->isMixedMode()): ?>
  55. <style>.pager > .count-container { top: -27px!important;}.sorter { display: none!important;}</style>
  56. <?php if($_GET['p']<=1){?>
  57. <?php echo $this->getCmsBlockHtml() ?>
  58. <?php }?>
  59. <?php echo $this->getProductListHtml() ?>
  60.  
  61. <?php else: ?>
  62. <?php echo $this->getProductListHtml() ?>
  63. <?php endif; ?>
  64.  
  65.  
  66. <?php if($_description=$this->getCurrentCategory()->getDescription()): ?>
  67. <div class="category-description std">
  68. <!-- <div class='footer-container-navigationcategory showHide'>
  69. <label for="toggle">
  70. <div class="navcategory" id="navcategory" onclick="expanddivcategory();"> <span id="nav-text-cat"><?php //echo $this->__('Main Title'); ?></span>
  71. <span class="changeArrowcategory arrow-upcategory" style="display:none"></span>
  72. <span class="changeArrowcategory arrow-dncategory" style="display:block"></span></div>
  73. </label>
  74. <div class="fieldsetContainercategory" id="fieldsetContainercategory" style="display:none;">
  75. <fieldset id="fdstLorem">
  76. <div class="category-description std">
  77. <?php //echo $_helper->categoryAttribute($_category, $_description, 'description') ?>
  78. </div>
  79. </fieldset>
  80. </div>
  81. </div>
  82. <script type="text/javascript">
  83. function expanddivcategory()
  84. {
  85. var info=jQuery('.arrow-upcategory').css('display');
  86. jQuery('#fieldsetContainercategory').slideToggle( "slow" );
  87. if(info=='block')
  88. {
  89. jQuery('#nav-text-cat').css({visibility:"visible",opacity: 0.0}).animate({opacity: 1.0},2000);
  90. }
  91. else
  92. {
  93. jQuery('#nav-text-cat').css({visibility:"hidden",opacity: 0.0}).animate({opacity: 1.0},2000);
  94. }
  95. jQuery('.arrow-upcategory').toggle();
  96. jQuery('.arrow-dncategory').toggle();
  97. }
  98. </script>-->
  99. <?php echo $_helper->categoryAttribute($_category, $_description, 'description') ?>
  100. </div>
  101. <?php endif; ?>
Add Comment
Please, Sign In to add comment