camaleon-8.x-1.x-dev/templates/layout/commerce-product.html.twig

templates/layout/commerce-product.html.twig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{#
/**
 * @file
 *
 * Default product template.
 *
 * Available variables:
 * - attributes: HTML attributes for the wrapper.
 * - product: The rendered product fields.
 *   Use 'product' to print them all, or print a subset such as
 *   'product.title'. Use the following code to exclude the
 *   printing of a given field:
 *   @code
 *   {{ product|without('title') }}
 *   @endcode
 * - product_entity: The product entity.
 * - product_url: The product URL.
 *
 * @ingroup themeable
 */
#}
<article{{ attributes }}>
 
  <div class="container product">
 
    <div class="row">
 
      <div class="col-xs-12 col-md-6 product--image">
        {{ product.field_image }}
      </div>
 
      <div class="col-xs-12 col-md-6 product--detail">
        {{ product.field_category }}
        {{ product.body }}
        {{ product.variation_price }}
        {{ product.variations }}
      </div>
 
    </div>
 
  </div>
 
</article>

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc