templates/areas/apk-banner-text-absolute/view.html.twig line 1

Open in your IDE?
  1. {% if editmode %}
  2. <div class="uk-container apk-container-1400">
  3.     <div uk-alert>
  4.         <h1 class="uk-h1">APK BANNER TEXT ABSOLUTE</h1>
  5.     </div>
  6.     
  7.     <div class="uk-margin-large-bottom">
  8.         
  9.         <div>Slideshow</div>
  10.         {% for i in pimcore_block('contentblock').iterator %}
  11.             <div uk-alert>
  12.                 <div class="uk-text-bold">Image Desktop (Obligatoire)</div>
  13.                 {{ pimcore_image('banner-image', {width: 400, height: 400}) }}
  14.                 <div class="uk-text-bold">Image Mobile</div>
  15.                 {{ pimcore_image('banner-image-mobile', {width: 400, height: 400}) }}
  16.                 <div class="uk-text-bold">Lien</div>
  17.                 {{ pimcore_link("banner-link", {"class" : "uk-button"}) }}
  18.             </div>
  19.         {% endfor %}
  20.         {#
  21.         <p>{{ pimcore_textarea("absolute-subtitle",{"nl2br" : true}) }}</p>
  22.         {{ pimcore_link("absolute-link") }}
  23.         {{ pimcore_link("absolute-btn", {"class" : "uk-button"}) }}
  24.         #}<hr>
  25.         
  26.         <div class="uk-alert uk-alert-default" uk-alert>
  27.             <div>Contenu en absolute</div>
  28.             <h2>{{ pimcore_textarea("absolute-title",{"nl2br" : true, "placeholder" : "Titre de la box"}) }}</h2>
  29.             <p>{{ pimcore_textarea("absolute-content-top",{"nl2br" : true, "placeholder" : "Sous-titre de la box"}) }}</p>
  30.             <hr/>
  31.             <p>{{ pimcore_textarea("absolute-subtitle-deux",{"nl2br" : true, "placeholder" : "Titre en dessous"}) }}</p>
  32.             {% if document.property('companyPhone') %}
  33.             <div class="apk-phone">
  34.                 <a href="tel:{{ convert_phone_to_url(document.getProperty('companyPhone')) }}">
  35.                     <span>{{ document.property('companyPhone') }}</span>
  36.                 </a>
  37.             </div>
  38.             {% endif %}
  39.         </div>
  40.         
  41.     </div>
  42. </div>
  43. {% else %}
  44. <div class="apk-banner-text-absolute-container uk-position-relative">
  45.     <div class="apk-container-slideshow">
  46.         <div class="uk-position-relative uk-visible-toggle uk-light" tabindex="-1" uk-slideshow="animation: push; autoplay: true; finite: false; autoplay-interval: 6000;">
  47.             <div class="uk-slideshow-items">
  48.                 {% for i in pimcore_block('contentblock').iterator %}
  49.                 <div>
  50.                     <div class="uk-visible@m">
  51.                         {% if not pimcore_link("banner-link").isEmpty() %}
  52.                             <a href="{{ pimcore_link("banner-link").getHref() }}" target="{{ pimcore_link("banner-link").getTarget() }}">{{ pimcore_image('banner-image').thumbnail('full-background').html({'imgAttributes' : {'uk-cover' : null}})|raw }}</a>
  53.                         {% else %}
  54.                             {{ pimcore_image('banner-image').thumbnail('full-background').html({'imgAttributes' : {'uk-cover' : null}})|raw }}
  55.                         {% endif %}
  56.                     </div>
  57.                     <div class="uk-hidden@m">
  58.                         {% if not pimcore_link("banner-link").isEmpty() %}
  59.                             <a href="{{ pimcore_link("banner-link").getHref() }}" target="{{ pimcore_link("banner-link").getTarget() }}">
  60.                             {% if not pimcore_image("banner-image-mobile").isEmpty() %}
  61.                                 {{ pimcore_image('banner-image-mobile').thumbnail('full-background').html({'imgAttributes' : {'uk-cover' : null}})|raw }}
  62.                             {% else %}
  63.                                 {{ pimcore_image('banner-image').thumbnail('full-background').html({'imgAttributes' : {'uk-cover' : null}})|raw }}
  64.                             {% endif %}
  65.                             </a>
  66.                         {% else %}
  67.                             {% if not pimcore_image("banner-image-mobile").isEmpty() %}
  68.                                 {{ pimcore_image('banner-image-mobile').thumbnail('full-background').html({'imgAttributes' : {'uk-cover' : null}})|raw }}
  69.                             {% else %}
  70.                                 {{ pimcore_image('banner-image').thumbnail('full-background').html({'imgAttributes' : {'uk-cover' : null}})|raw }}
  71.                             {% endif %}
  72.                         {% endif %}
  73.                     </div>
  74.                 </div>
  75.                 {% endfor %}
  76.             </div>
  77.             
  78.             <div class="uk-visible@s">
  79.                 <a class="uk-position-center-left uk-position-small" href uk-slidenav-previous uk-slideshow-item="previous"></a>
  80.                 <a class="uk-position-center-right uk-position-small" href uk-slidenav-next uk-slideshow-item="next"></a>
  81.             </div>
  82.             <div class="uk-hidden@s">
  83.                 <a class="uk-position-bottom-left uk-position-small" href uk-slidenav-previous uk-slideshow-item="previous"></a>
  84.                 <a class="uk-position-bottom-right uk-position-small" href uk-slidenav-next uk-slideshow-item="next"></a>
  85.             </div>
  86.         </div>
  87.     </div>
  88.     <div class="uk-container apk-container-1400 uk-position-relative">
  89.         <div class="uk-grid-large uk-position-relative" uk-grid>
  90.             <div class="uk-width-2-5@s">
  91.                 <div class="uk-text-center apk-content-absolute">
  92.                     
  93.                     {% if not pimcore_textarea("absolute-title").isEmpty %}
  94.                         <h2>{{ pimcore_textarea("absolute-title",{"nl2br" : true}) }}</h2>    
  95.                     {% endif %}
  96.                     {% if not pimcore_textarea("absolute-content-top").isEmpty %}
  97.                         <p class="uk-margin-remove-bottom">{{ pimcore_textarea("absolute-content-top",{"nl2br" : true}) }}</p>
  98.                     {% endif %}
  99.                     
  100.                     {% if false %}
  101.                     {#% if pimcore_website_config('akimediaActivate') %#}
  102.                             
  103.                         <form method="get" action="{{ path("searchPlasma") }}">
  104.                             <input style="display: none;" type="checkbox" id="plasma-checkbox" name="plasma" checked>
  105.                             <div class="section-form-don-question">
  106.                                 <label class="uk-form-label" for="form-stacked-text">{{ "Entrez votre code postal :"|trans }}</label>
  107.                                 <div class="uk-margin">
  108.                                     <input class="uk-input" type="text" id="cp" name="cp"
  109.                                         placeholder="{{ "1000…"|trans }}">
  110.                                 </div>
  111.                             </div>
  112.                             <label class="uk-form-label"
  113.                                 for="form-stacked-text">{{ "Entrez vos disponibilités :"|trans }}</label>
  114.                             <div class="uk-margin">
  115.                                 <div class="uk-grid-small" uk-grid>
  116.                                     <div class="uk-width-auto date-to-date">
  117.                                         <span>{{ "Du"|trans }}</span>
  118.                                     </div>
  119.                                     <div class="uk-width-expand">
  120.                                         <div class="uk-inline">
  121.                                         <span class="uk-form-icon uk-form-icon-flip triggerDatepicker" id="triggerDatepickerDu"><img
  122.                                                 src="/static/img/icons/calendar-icon.svg" alt=""/></span>
  123.                                             <input class="uk-input" id="du" name="du"
  124.                                                 value="{{ "now"|date("d/m/Y") }}"
  125.                                                 placeholder="{{ "jj/mm/aaaa"|trans }}"
  126.                                             data-toggle="datepicker" data-trigger="#triggerDatepickerDu" autocomplete="false">
  127.                                         </div>
  128.                                     </div>
  129.                                 </div>
  130.                             </div>
  131.                             <div class="uk-margin">
  132.                                 <div class="uk-grid-small" uk-grid>
  133.                                     <div class="uk-width-auto date-to-date">
  134.                                         <span>{{ "Au"|trans }}</span>
  135.                                     </div>
  136.                                     <div class="uk-width-expand">
  137.                                         <div class="uk-inline">
  138.                                         <span class="uk-form-icon uk-form-icon-flip triggerDatepicker" id="triggerDatepickerAu"><img
  139.                                                 src="/static/img/icons/calendar-icon.svg" alt=""/></span>
  140.                                             {% set minCanc = pimcore_website_config('nbjours', 1) %}
  141.                                             {% set nowDateStart = "now"|date_modify('+' ~ minCanc ~ 'day')|date('d/m/Y') %}
  142.                                             <input class="uk-input" id="au" name="au"
  143.                                                 value="{{ nowDateStart }}"
  144.                                                 placeholder="{{ "jj/mm/aaaa"|trans }}"
  145.                                             data-toggle="datepicker" data-trigger="#triggerDatepickerAu" autocomplete="false">
  146.                                         </div>
  147.                                     </div>
  148.                                 </div>
  149.                             </div>
  150.                             <div class="uk-margin-remove-bottom" uk-grid>
  151.                                 <div class="uk-margin-remove-bottom uk-align-center">
  152.                                     <input class="uk-button" value="{{ "Rechercher"|trans }}"
  153.                                     type="submit">
  154.                                 </div>
  155.                             </div>
  156.                         </form>
  157.                         {% else %}
  158.                             <div class="uk-margin-medium-bottom {{ not pimcore_textarea("absolute-title").isEmpty or not pimcore_textarea("absolute-content-top").isEmpty ? "uk-margin-medium-top" : "" }}">
  159.                                 <a class="uk-button" href="{{ document.property('listeCentresPlasma') }}">
  160.                                     {{ "Je prends rendez-vous"|trans }}
  161.                                 </a>
  162.                             </div>
  163.                         {% endif %}
  164.                         
  165.                     {#
  166.                     <hr>
  167.                     <p class="uk-margin-remove-bottom">{{ pimcore_textarea("absolute-subtitle",{"nl2br" : true}) }}</p>
  168.                     {{ pimcore_link("absolute-link", {"class" : "apk-link"}) }}
  169.                     <div class="uk-margin-small-top">
  170.                         {{ pimcore_link("absolute-btn", {"class" : "uk-button"}) }}
  171.                     </div>
  172.                     #}
  173.                     <hr>
  174.                     <p>{{ pimcore_textarea("absolute-subtitle-deux",{"nl2br" : true}) }}</p>
  175.                     {% if document.property('companyPhone') %}
  176.                     <div class="apk-phone">
  177.                         <a href="tel:{{ convert_phone_to_url(document.getProperty('companyPhone')) }}">
  178.                             <span>{{ document.property('companyPhone') }}</span>
  179.                         </a>
  180.                     </div>
  181.                     {% endif %}
  182.                 </div>
  183.             </div>
  184.             <div class="uk-width-3-5@s uk-flex-first@s">
  185.                 <div class="apk-content">
  186.                     <div class="uk-grid-large" uk-grid>
  187.                         <div class="uk-width-expand@s">
  188.                             <div class="apk-text-barometre">
  189.                                 <h2>{{"Baromètre Plasma"|trans}}</h2>
  190.                                 <p>{{"Il reste"|trans}} <span id="plasma-plages" class="is-big"></span> {{"plages de rendez-vous possibles sur les 14 prochains jours."|trans}}</p>
  191.                                 <p>{{"Vous voulez nous aider et donner votre plasma,"|trans}}</br> {{"prenez_rendez-vous_plasma"|trans|raw}} {{"dans le site de collecte près de chez vous."|trans}}</p>
  192.                             </div>
  193.                         </div>
  194.                         <div class="uk-width-auto@s apk-image uk-text-center">
  195.                             <div style="display: none;" id="goutte-tres-critique">
  196.                                 <img src="/static/img/barometre/goutte-plasma-vide-new.svg">
  197.                             </div>
  198.                             <div style="display: none;" id="goutte-critique">
  199.                                 <img src="/static/img/barometre/goutte-plasma-presque-vide.svg">
  200.                             </div>
  201.                             <div style="display: none;" id="goutte-tres-fragile">
  202.                                 <img src="/static/img/barometre/goutte-plasma-moitie-pleine.svg">
  203.                             </div>
  204.                             <div style="display: none;" id="goutte-fragile">
  205.                                 <img src="/static/img/barometre/goutte-plasma-presque-pleine.svg">
  206.                             </div>
  207.                             <div style="display: none;" id="goutte-stable">
  208.                                 <img src="/static/img/barometre/goutte-plasma-pleine.svg">
  209.                             </div>
  210.                             <h4 class="uk-margin-small-top uk-text-center" id="meteo-type-goutte"></h4>
  211.                         </div>
  212.                     </div>
  213.                 </div>
  214.             </div>
  215.         </div>
  216.     </div>
  217. </div>
  218. {% endif %}