[ Index ]
 

Code source de eZ Publish 3.9.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/design/admin/override/templates/admin_preview/ -> product.tpl (source)

   1  {* Product - Admin preview *}
   2  
   3  <div class="content-view-full">
   4      <div class="class-product">
   5  
   6      <h1>{$node.name|wash()}</h1>
   7  
   8      {* Image. *}
   9      {section show=$node.data_map.image.content}
  10          <div class="attribute-image">
  11              {attribute_view_gui alignment=right image_class=medium attribute=$node.data_map.image.content.data_map.image}
  12          </div>
  13      {/section}
  14  
  15          {* Short description. *}
  16          <div class="attribute-short">
  17             {attribute_view_gui attribute=$node.data_map.short_description}
  18          </div>
  19  
  20          {* Description. *}
  21          <div class="attribute-long">
  22             {attribute_view_gui attribute=$node.data_map.description}
  23          </div>
  24  
  25          {* Price. *}
  26          <div class="attribute-price">
  27            <p>{attribute_view_gui attribute=$node.data_map.price}</p>
  28          </div>
  29  
  30          {* Category. *}
  31          {def $product_category_attribute=ezini( 'VATSettings', 'ProductCategoryAttribute', 'shop.ini' )}
  32          {if and( $product_category_attribute, is_set( $node.data_map.$product_category_attribute ) )}
  33          <div class="attribute-long">
  34            <p>Category:&nbsp;{attribute_view_gui attribute=$node.data_map.$product_category_attribute}</p>
  35          </div>
  36          {/if}
  37          {undef $product_category_attribute}
  38  
  39          {* PDF. *}
  40          <div class="attribute-pdf">
  41            <p><a href={concat( '/content/pdf/', $node.node_id )|ezurl}>{'Download this product sheet as PDF'|i18n( 'design/admin/preview/product' )}</a></p>
  42          </div>
  43  
  44         {* Related products. *}
  45         {let related_purchase=fetch( shop, related_purchase, hash( contentobject_id, $node.contentobject_id, limit, 10 ) )}
  46         {section show=$related_purchase}
  47              <h2>{'People who bought this also bought'|i18n( 'design/admin/preview/product' )}</h2>
  48  
  49              <div class="relatedorders">
  50              {section var=product loop=$related_purchase}
  51                  {content_view_gui view=text_linked content_object=$product.item}
  52              {/section}
  53              </div>
  54         {/section}
  55         {/let}
  56  
  57     </div>
  58  </div>


Généré le : Sat Feb 24 10:30:04 2007 par Balluche grâce à PHPXref 0.7