Advertisement
Guest User

Untitled

a guest
Oct 1st, 2013
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.33 KB | None | 0 0
  1. {*
  2. * 2007-2013 PrestaShop
  3. *
  4. * NOTICE OF LICENSE
  5. *
  6. * This source file is subject to the Academic Free License (AFL 3.0)
  7. * that is bundled with this package in the file LICENSE.txt.
  8. * It is also available through the world-wide-web at this URL:
  9. * http://opensource.org/licenses/afl-3.0.php
  10. * If you did not receive a copy of the license and are unable to
  11. * obtain it through the world-wide-web, please send an email
  12. * to license@prestashop.com so we can send you a copy immediately.
  13. *
  14. * DISCLAIMER
  15. *
  16. * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
  17. * versions in the future. If you wish to customize PrestaShop for your
  18. * needs please refer to http://www.prestashop.com for more information.
  19. *
  20. * @author PrestaShop SA <contact@prestashop.com>
  21. * @copyright 2007-2013 PrestaShop SA
  22. * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
  23. * International Registered Trademark & Property of PrestaShop SA
  24. *}
  25.  
  26. {include file="$tpl_dir./breadcrumb.tpl"}
  27. {include file="$tpl_dir./errors.tpl"}
  28.  
  29. {if isset($category)}
  30. {if $category->id AND $category->active}
  31. <h1>
  32. {strip}
  33. {$category->name|escape:'htmlall':'UTF-8'}
  34. {if isset($categoryNameComplement)}
  35. {$categoryNameComplement|escape:'htmlall':'UTF-8'}
  36. {/if}
  37. {/strip}
  38. </h1>
  39.  
  40. <div class="resumecat category-product-count">
  41. {include file="$tpl_dir./category-count.tpl"}
  42. </div>
  43.  
  44. {if $scenes || $category->description || $category->id_image}
  45. <div class="content_scene_cat">
  46. {if $scenes}
  47. <!-- Scenes -->
  48. {include file="$tpl_dir./scenes.tpl" scenes=$scenes}
  49. {else}
  50. <!-- Category image -->
  51. {if $category->id_image}
  52. <div class="align_center">
  53. <img src="{$link->getCatImageLink($category->link_rewrite, $category->id_image, 'category_default')|escape:'html'}" alt="{$category->name|escape:'htmlall':'UTF-8'}" title="{$category->name|escape:'htmlall':'UTF-8'}" id="categoryImage" width="{$categorySize.width}" height="{$categorySize.height}" />
  54. </div>
  55. {/if}
  56. {/if}
  57.  
  58.  
  59. {/if}
  60. </div>
  61. {/if}
  62. </div>
  63. {/if}
  64. {if isset($subcategories)}
  65. <!-- Subcategories -->
  66. <div id="subcategories">
  67. <h3>{l s='Subcategories'}</h3>
  68. <ul class="inline_list">
  69. {foreach from=$subcategories item=subcategory}
  70. <li class="clearfix">
  71. <a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" title="{$subcategory.name|escape:'htmlall':'UTF-8'}" class="img">
  72. <a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" class="cat_name">{$subcategory.name|escape:'htmlall':'UTF-8'}</a>
  73. {if $subcategory.id_image}
  74. <img src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium_default')|escape:'html'}" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" />
  75. {else}
  76. <img src="{$img_cat_dir}default-medium_default.jpg" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" />
  77. {/if}
  78. </a>
  79. {if $subcategory.description}
  80. <p class="cat_desc">{$subcategory.description}</p>
  81. {/if}
  82. </li>
  83. {/foreach}
  84. </ul>
  85. <br class="clear"/>
  86. </div>
  87. {/if}
  88.  
  89. {if $products}
  90. <div class="content_sortPagiBar">
  91. {include file="$tpl_dir./pagination.tpl"}
  92. <div class="sortPagiBar clearfix">
  93. {include file="./product-sort.tpl"}
  94. {include file="./product-compare.tpl"}
  95. {include file="./nbr-product-page.tpl"}
  96. </div>
  97. </div>
  98.  
  99. {include file="./product-list.tpl" products=$products}
  100.  
  101. <div class="content_sortPagiBar">
  102. <div class="sortPagiBar clearfix">
  103. {include file="./product-sort.tpl" paginationId='bottom'}
  104. {include file="./product-compare.tpl" paginationId='bottom'}
  105. {include file="./nbr-product-page.tpl" paginationId='bottom'}
  106. </div>
  107. {include file="./pagination.tpl" paginationId='bottom'}
  108. </div>
  109. {/if}
  110. {elseif $category->id}
  111. <p class="warning">{l s='This category is currently unavailable.'}</p>
  112. {/if}
  113. {/if}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement