templates/contenido.html.twig line 1

Open in your IDE?
  1. <section {{identSec|raw}} class="margin-neg {{tema}}">
  2.     {%set class=12%}
  3.     {%if pagina.sidebar is not null %}
  4.         {%set class=9%}
  5.     {%endif%}
  6.     <div id="content-print">
  7.         <div id="content-page">
  8.             {% for tipo, mensajes in app.session.flashbag.all() %}
  9.                 {% for mensaje in mensajes %}
  10.                     {#<p class="flash-{{ tipo }}">{{ mensaje|raw }}</p>#}
  11.                     <div class="callout alert {{tipo}}" id="fmensaje">
  12.                         <p>{{ mensaje|raw }}</p>
  13.                     </div>
  14.                 {% endfor %}
  15.             {% endfor %}
  16. <!--
  17.             <div class="grid-x grid-padding-x nav-toptitle">
  18.                 <div class="large-4 medium-4">
  19.                     <a href="#" target="_self" class="button expanded">{{ "Fitxa técnica" | trans }}</a>
  20.                 </div>
  21.                 <div class="large-4 medium-4">
  22.                     <a href="#" target="_self"class="button expanded">{{ "Itineraris" | trans }}</a>
  23.                 </div>
  24.                 <div class="large-4 medium-4">
  25.                     <a href="#" target="_self"class="button expanded">{{ "Remuntadors" | trans }}</a>
  26.                 </div>
  27.             </div>
  28. -->
  29.             <div class="grid-x grid-padding-x toptitle">
  30.                 {%if pagina.getTitol(app.request.locale) != ''%} 
  31.                     <div class="large-12 cell">
  32.                         <h1 class="main-heading"><span>{{pagina.getTitol(app.request.locale)}}</span></h1>
  33.                     </div>
  34.                 {%endif%}
  35.             </div>
  36.             <div class="grid-x grid-padding-x margin-neg">
  37.                 {% set anchoTotal=0 %}
  38.                 {% for contenido in  pagina.blocs %}
  39.                     {% if contenido.visible %}
  40.                         {%set anchoTotal=anchoTotal+contenido.ample%}
  41.                         {%if loop.first%}
  42.                         {%endif%}
  43.                         <div class="large-{{contenido.ample}} cell">
  44.                             {% if contenido.tipus is not null %}
  45.                                 {% if contenido.tipus.tipus=='R'%}
  46.                                     {{contenido.getText(app.request.locale)|raw}}
  47.                                 {% elseif contenido.tipus.slug=='calendari'%}
  48.                                     {{ render(controller('App\\Dp\\CalendarBundle\\Controller\\DefaultController::calendarDisplayAction', { 'admin': false, 'item' : contenido.getItem().getId()})) }}
  49.                                 {% elseif contenido.tipus.slug=='marquee'%}
  50.                                     {% include 'marqueeContenido.html.twig' with {'contenido': contenido,} only %}
  51.                                 {% elseif contenido.tipus.slug=='darrera_hora'%}
  52.                                     {#{ dump(contenido)}#}
  53.                                     {% include 'darrera_horaContenido.html.twig' with {'contenido': contenido, 'objDarreraHora': objDarreraHora} only %}
  54.                                 {% elseif contenido.tipus.slug=='banners' or contenido.tipus.slug=='banner_abonaments'%}
  55.                                     {% include 'bannerContenido.html.twig' with {'contenido': contenido} only %}
  56.                                     {% elseif (contenido.tipus.slug=='menu_desplegable_petit') or
  57.                                         (contenido.tipus.slug=='menu_desplegable_gran') or
  58.                                         (contenido.tipus.slug=='menu_desplegat')%}
  59.                                     {% include 'menu_desplegaContenido.html.twig' with {'contenido': contenido} only %}
  60.                                     {#% elseif contenido.tipus.slug=='temps'%#}
  61.                                     {#% include 'AppBundle::tempsContenido.html.twig' with {'contenido': contenido,} only %#}
  62.                                 {% elseif contenido.tipus.slug=='estacions'%}
  63.                                     {% if enGeneral[0].getMeteoVisible() != '' %}
  64.                                         {% include 'estacionsContenido.html.twig' with {'contenido': contenido, 'enGeneral':enGeneral} only %}
  65.                                     {% endif %}
  66.                                 {% elseif contenido.tipus.slug == 'menu_pestanyes' %}
  67.                                     {% include 'menuPestanyesContenido.html.twig' with {'contenido': contenido, 'slug': app.request.attributes.get('_slug')} only %}
  68.                                 {% else %}
  69.                                     {#{ dump(contenido)}#}
  70.                                     {#% include 'AppBundle::sliderContenido.html.twig' with {'slider': contenido.imagenes,'carouselId':contenido.id} only %#}
  71.                                 {% endif %}
  72.                             {% endif %}
  73.                         </div>
  74.                         {%if anchoTotal>=12%}
  75.                             {%set anchoTotal=0%}
  76.                         {%endif%}
  77.                         {% if loop.last %}
  78.                             {%if (anchoTotal<0)%}
  79.                             {%endif%}
  80.                         {% endif %} 
  81.                     {% endif%}
  82.                 {%endfor%}
  83.             </div>
  84.         </div>
  85.     </div>
  86.     <!--
  87.     {%if pagina.sidebar is not null %}
  88.         {% include 'sidebar.html.twig' with {'sidebar': pagina.sidebar} %}
  89.         {#{ dump(pagina.sidebar.blocs) }#}
  90.     {% endif %}  -->      
  91. </section>