templates/home/index.html.twig line 1

Open in your IDE?
  1. {% extends 'layouts/layout.html.twig' %}
  2. {% do pimcore_head_script().appendFile('https://code.jquery.com/jquery-3.6.3.slim.min.js',null,null,{ integrity:"sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo",crossorigin:"anonymous"}) %}
  3. {% block content %}
  4.     {% set suffix = suffix ?? '' %}
  5.     <section
  6.         class="seccion_body">
  7. {# base
  8.                         <section class="section section_a">
  9.                             <div class="container text-center">
  10.                                 <div class="row">
  11.                                     <div class="col-md-4 ">
  12.                                         
  13.                                     </div>
  14.                                     <div class="col-md-8">
  15.                                     
  16.                                     </div>
  17.                 
  18.                                 </div>
  19.                             </div>
  20.                         </section> 
  21.                         #}
  22.         
  23.           {{ pimcore_areablock('contentA', {
  24.             class: 'pimcore_areas_with_100',
  25.             'allowed': ['area001','area002','area003','area004','area007','area008','area009','contacto', 'blockquote', 'embed', 'featurette', 'galeria-pdf', 'gallery-carousel', 'gallery-folder',
  26.                 'gallery-single-images', 'headlines', 'horizontal-line', 'iconos-teaser', 'iconos-texto-teaser', 'icon-teaser-row', 'image',
  27.                 'image-hotspot-marker', 'image-metadata', 'mapa', 'pdf', 'pdf-teaser', 'product-grid', 'product-teaser', 'standard-teaser', 'text-accordion',
  28.                 'time-slider-featurette', 'video', 'wysiwyg', 'wysiwyg-with-images', 'personalized-product-teaser']
  29.         }) }}
  30.         
  31.         {# area001 #}
  32.     <section
  33.             class="section section_a">
  34.             {# <div class="container text-center"> #}
  35.             <div class="row">
  36.                 <div class="col-sm-4 d-flex justify-content-center  ">
  37.                     {% if not editmode %}
  38.                         {{ pimcore_image('imagen-right0',
  39.                          {    
  40.                             class: 'pimcore_areas_with_100',
  41.                             imgAttributes: {class: 'img-fluid-100 '}
  42.                         }) }}
  43.                     {% else %}
  44.                         
  45.                             {{ pimcore_image('imagen-right0',
  46.                          {    
  47.                             "width": "25rem",
  48.                             "height": "auto",
  49.                             class: 'pimcore_areas_with_100',
  50.                             imgAttributes: {class: 'img-fluid-100 '}
  51.                         }) }}
  52.                             
  53.                         
  54.                     {% endif %}
  55.                 </div>
  56.                 <div class="col-sm-8">
  57.                     {% for i in pimcore_block('contentblock',{
  58.                                     class: 'pimcore_areas_with_100'
  59.                                 }).iterator %}
  60.                         <div class="container text-center">
  61.                             <div class="row">
  62.                                 <div class="col-md-4 ">
  63.                                     {{ pimcore_image('imagen-left1',
  64.                                     {
  65.                                         imgAttributes: {class: 'img-fluid-6rem '}
  66.                                     }) }}
  67.                                 </div>
  68.                                 <div class="col-md-8">
  69.                                     {{
  70.                                     pimcore_wysiwyg('text-left-1' ~ suffix, {
  71.                                     height: 100,
  72.                                     enterMode: 2,
  73.                                     class: 'pimcore_areas_with_100'})
  74.                                     }}
  75.                                 </div>
  76.                             </div>
  77.                         </div>
  78.                     {% endfor %}
  79.                 </div>
  80.                 {# </div> #}
  81.             </div>
  82.         </section>
  83.         {# area002 #}
  84.         <section class="section section_b">
  85.             <article class="article_a height_estandar">
  86.                 {{
  87.                     pimcore_wysiwyg('text-left' ~ suffix, {
  88.                     height: 100,
  89.                     enterMode: 2,
  90.                     class: 'pimcore_areas_with_100'})
  91.                     }}
  92.             </article>
  93.             <article class="article_b height_estandar">
  94.                 {{
  95.                     pimcore_wysiwyg('text_right1' ~ suffix, {
  96.                     height: 100,
  97.                     enterMode: 2,
  98.                     class: 'pimcore_areas_with_100'})
  99.                     }}
  100.                 {% if not editmode %}
  101.                     <a href="{{ pimcore_link('link-right1' ~ suffix).href }}" target="{{ pimcore_link('link-right1').getTarget() }}">
  102.                         {{ pimcore_image('imagen-right1',
  103.                          {
  104.                             imgAttributes: {class: 'img-fluid-11rem '}
  105.                         }) }}
  106.                     </a>
  107.                 {% else %}
  108.                     <div class="d-flex flex-column mb-3 align-items-center">
  109.                         <div class="p-2">
  110.                             {{ pimcore_image('imagen-right1',
  111.                             {    
  112.                                 class: 'pimcore_areas_with_100 img-fluid-11rem',
  113.                             }) }}
  114.                         </div>
  115.                         <div class="p-2">{{ pimcore_link('link-right1'  ~ suffix) }}</div>
  116.                     </div>
  117.                 {% endif %}
  118.             </article>
  119.         </section>
  120.         {# area003 #}
  121.         <section class="section section_c">
  122.             <article class="article_a">
  123.                 <div class="d-flex flex-column mb-3 align-items-center">
  124.                     <div class="p-2">
  125.                         {{
  126.                     pimcore_wysiwyg('text-left-2' ~ suffix, {
  127.                     height: 100,
  128.                     enterMode: 2,
  129.                     class: 'pimcore_areas_with_100'})
  130.                     }}
  131.                     </div>
  132.                     <div class="p-2">
  133.                         <div class="form-floating pimcore_area_contacto ">
  134.                             <form method="get" action="{{ path('expediente-index') }}" class="form-search-box" id="expedienteForm">
  135.                                 <input name="nombre" type="search" placeholder="Buscar" class="form-control form_busqueda"/>
  136.                             </form>
  137.                         </div>
  138.                     </div>
  139.                     <div class="p-2">
  140.                         {% include 'includes/carrusel-cobupem.html.twig' %}
  141.                         {% include 'includes/carrusel-fgjem.html.twig' %}
  142.                         {# {{ pimcore_areablock('content-pdfs', {
  143.                                                     'allowed': ['galeria-pdf']
  144.                                                 }) }} #}
  145.                     </div>
  146.                 </div>
  147.             </article>
  148.             <article class="article_b">
  149.                 {{
  150.                     pimcore_wysiwyg('text-right-2' ~ suffix, {
  151.                     height: 100,
  152.                     enterMode: 2,
  153.                     class: 'pimcore_areas_with_100'})
  154.                     }}
  155.                 {% if not editmode %}
  156.                     <a href="{{ pimcore_link('link-right2').href }}" target="{{ pimcore_link('link-right2').getTarget() }}">
  157.                         {{ pimcore_image('imagen-right2',
  158.                          {
  159.                             imgAttributes: {class: 'img-fluid '}
  160.                         }) }}
  161.                     </a>
  162.                 {% else %}
  163.                     <div class="d-flex flex-column mb-3 align-items-center">
  164.                         <div class="p-2">
  165.                             {{ pimcore_image('imagen-right2',
  166.                             {    
  167.                                 class: 'pimcore_areas_with_100 img-fluid-11rem',
  168.                             }) }}
  169.                         </div>
  170.                         <div class="p-2">{{ pimcore_link('link-right2') }}</div>
  171.                     </div>
  172.                 {% endif %}
  173.             </article>
  174.         </section>
  175.         
  176.           {{ pimcore_areablock('contentB', {
  177.             class: 'pimcore_areas_with_100',
  178.             'allowed': ['area001','area002','area003','area004','area007','area008','area009','contacto', 'blockquote', 'embed', 'featurette', 'galeria-pdf', 'gallery-carousel', 'gallery-folder',
  179.                 'gallery-single-images', 'headlines', 'horizontal-line', 'iconos-teaser', 'iconos-texto-teaser', 'icon-teaser-row', 'image',
  180.                 'image-hotspot-marker', 'image-metadata', 'mapa', 'pdf', 'pdf-teaser', 'product-grid', 'product-teaser', 'standard-teaser', 'text-accordion',
  181.                 'time-slider-featurette', 'video', 'wysiwyg', 'wysiwyg-with-images', 'personalized-product-teaser']
  182.         }) }}
  183.     </section>
  184. {% endblock %}