templates/default/magnesium.html.twig line 1

Open in your IDE?
  1. {% extends "layout.html.twig" %}
  2. {#
  3.     {% use AppBundle/Helper/Apik %}
  4. #}
  5. {% block content %}
  6. {{ pimcore_areablock("myAreablock") }}
  7. <!-- #main -->
  8. <main id="main" role="main">
  9. {{ pimcore_areablock('contentTop') }}
  10. <div class="apk-magnesium"><!-- start magnesium -->
  11.     {% if editmode %}<!-- start section 1 -->
  12.     <div class="uk-container apk-container-1400">
  13.         <div uk-alert>
  14.             <h1 class="uk-h1">Banner Magnésium</h1>
  15.         </div>
  16.         <ul uk-tab>
  17.             <li><a href="#">Configurations</a></li>
  18.             <li class="uk-active"><a href="#">Content Edit</a></li>
  19.         </ul>
  20.         <ul class="uk-switcher uk-margin">
  21.             <li class="apk-size-20 uk-grid-small" uk-grid>
  22.                 <div class="uk-width-1-2@m" uk-margin>
  23.                     <div>Afficher un scroll ?</div>
  24.                     {{ pimcore_select("scroll", {
  25.                         "store" : [
  26.                             ['', 'Aucun'],
  27.                             ['apk-scroll', 'SCROLL'],
  28.                             ['apk-top', 'TOP']
  29.                         ],
  30.                         "defaultValue" : "apk-scroll"
  31.                     }) }}
  32.                     
  33.                 </div>
  34.             </li>
  35.         
  36.             <li class="uk-active">
  37.                 <div class="uk-margin-large-bottom">
  38.                     <div class="uk-margin-small-bottom"><strong>Image de background</strong></div>
  39.                     {{ pimcore_image('bg-image') }}
  40.                     <div class="uk-margin"><strong>Titre de la banner</strong></div>
  41.                     <h2 class="uk-h2">
  42.                         {{ pimcore_textarea("content-title",{
  43.                             "nl2br" : true
  44.                         }) }}
  45.                     </h2>
  46.                     <div class="uk-margin"><strong>Texte de la banner</strong></div>
  47.                     {{ pimcore_wysiwyg("content") }}
  48.                 </div>
  49.             </li>
  50.         </ul>
  51.     </div>
  52.     {% else %}
  53.     <section class="apk-banner-magnesium">
  54.         <div class="uk-margin-medium-bottom">
  55.             <div class="uk-cover-container uk-flex uk-flex-middle">
  56.                 {% if pimcore_image('bg-image').src %}
  57.                     {{ pimcore_image('bg-image').thumbnail('full-background').html({'imgAttributes' : {'uk-cover' : null}})|raw }}    
  58.                 {% endif %}
  59.                 <div class="uk-container apk-container-1400">
  60.                     <div class="uk-position-relative uk-height-1-1">
  61.                         <div class="uk-margin-left uk-margin-right">
  62.                             <h1>{{ pimcore_textarea("content-title", {"nl2br" : true})|raw }}</h1>
  63.                             <div class="apk-content">
  64.                                 {{ pimcore_wysiwyg("content") }}
  65.                             </div>
  66.                         </div>
  67.                 
  68.                     </div>
  69.                 </div>
  70.             </div>
  71.         
  72.             {# Scroll géré dans le main.js #}
  73.             {% if pimcore_select("scroll").data == "apk-scroll" or pimcore_select("scroll").data == "apk-top" %}
  74.             <div class="apk-scroll-container">
  75.                 <div class="uk-container apk-container-1400">
  76.                     <div class="uk-position-relative">
  77.                     {% if pimcore_select("scroll").data == "apk-scroll" %}
  78.                         <div class="apk-scroll">
  79.                             {{ "SCROLL"|trans }}
  80.                         </div>
  81.                     {% elseif pimcore_select("scroll").data == "apk-top" %}
  82.                         <div class="apk-scroll apk-top">
  83.                             {{ "TOP"|trans }}
  84.                         </div>
  85.                     {% endif %}
  86.                     </div>
  87.                 </div>
  88.             </div>
  89.             {% endif %}
  90.         </div>
  91.     </section>
  92.     {% endif %}<!-- end section 1 -->
  93.     <!-- start section 2 -->
  94.     <div class="apk-section-grid uk-margin-large-top uk-margin-large-bottom">
  95.         <div class="uk-container apk-container-1400 uk-text-center">
  96.             <h2 class="uk-margin-medium-top">{{ pimcore_textarea("sectiontwo-title", {"nl2br" : true})|raw }}</h2>
  97.             <h3>{{ pimcore_textarea("sectiontwo-subtitle", {"nl2br" : true})|raw }}</h3>
  98.             <div class="uk-child-width-1-4@m uk-child-width-1-2@s uk-text-center" uk-grid>
  99.                 {% for i in pimcore_block('sectiontwo').iterator %}
  100.                     <div class="apk-content-section-grid">
  101.                         {{ pimcore_image('sectiontwo-image') }}
  102.                         {{ pimcore_wysiwyg("sectiontwo-content") }}
  103.                     </div>
  104.                 {% endfor %}
  105.             </div>
  106.             <div class="apk-content-sentence uk-text-left uk-margin-large-top uk-margin-bottom">{{ pimcore_textarea("sectiontwo-sentence", {"nl2br" : true})|raw }}</div>
  107.         </div>
  108.     </div>
  109.     <!-- end section 2 -->
  110.     {% if editmode %}<!-- start section 3 -->
  111.     <div class="uk-container apk-container-1400">
  112.         <div uk-alert>
  113.             <h1 class="uk-h1">Section 3</h1>
  114.         </div>
  115.         <ul uk-tab>
  116.             <li><a href="#">Configurations</a></li>
  117.             <li class="uk-active"><a href="#">Content Edit</a></li>
  118.         </ul>
  119.         <ul class="uk-switcher uk-margin">
  120.             <li class="apk-size-20 uk-grid-small" uk-grid>
  121.                 <div class="uk-width-1-2@m" uk-margin>
  122.                     <div>Afficher un scroll ?</div>
  123.                     {{ pimcore_select("scrolltwo", {
  124.                         "store" : [
  125.                             ['', 'Aucun'],
  126.                             ['apk-scroll', 'SCROLL'],
  127.                             ['apk-top', 'TOP']
  128.                         ],
  129.                         "defaultValue" : "apk-scroll"
  130.                     }) }}
  131.                     
  132.                 </div>
  133.             </li>
  134.         
  135.             <li class="uk-active">
  136.                 <div class="uk-margin-large-bottom">
  137.                     <div class="uk-margin-small-bottom"><strong>Image de background</strong></div>
  138.                     {{ pimcore_image('sectionthree-image') }}
  139.                     <div class="uk-margin-small-bottom"><strong>Image de background (mobile)</strong></div>
  140.                     {{ pimcore_image('sectionthree-image-mobile', {'width' : 200}) }}
  141.                     <div class="uk-margin"><strong>Titre de la banner</strong></div>
  142.                     <h2 class="uk-h2">
  143.                         {{ pimcore_textarea("sectionthree-title",{
  144.                             "nl2br" : true
  145.                         }) }}
  146.                         {{ pimcore_textarea("sectionthree-subtitle",{
  147.                             "nl2br" : true
  148.                         }) }}
  149.                     </h2>
  150.                     <div class="uk-margin"><strong>Texte de la banner</strong></div>
  151.                     {{ pimcore_wysiwyg("sectionthree-content") }}
  152.                     <div class="uk-margin"><strong>Petite phrase</strong></div>
  153.                     {{ pimcore_textarea("sectionthree-sentence", {"nl2br" : true})|raw }}
  154.                 </div>
  155.             </li>
  156.         </ul>
  157.     </div>
  158.     {% else %}
  159.     <section>
  160.         <div class="apk-section-wysiwyg">
  161.             <div class="uk-cover-container uk-flex uk-flex-middle">
  162.                 {% if pimcore_image('sectionthree-image').src %}
  163.                     {{ pimcore_image('sectionthree-image').thumbnail('full-background').html({'imgAttributes' : {'uk-cover' : null}})|raw }}    
  164.                 {% endif %}
  165.                 {% if pimcore_image('sectionthree-image-mobile').src %}
  166.                     {{ pimcore_image('sectionthree-image-mobile').thumbnail('full-background').html({'imgAttributes' : {'uk-cover' : null, 'class': 'uk-hidden@m'}})|raw }}    
  167.                 {% endif %}
  168.                 <div class="uk-container apk-container-1400">
  169.                     <div class="uk-position-relative uk-height-1-1">
  170.                         <div class="uk-child-width-1-2@m" uk-grid>
  171.                             <div>
  172.                             </div>
  173.                             <div>
  174.                                 <h2 class="uk-margin-remove-bottom">{{ pimcore_textarea("sectionthree-title", {"nl2br" : true})|raw }}</h2>
  175.                                 <h2 class="uk-margin-small-top"><span>{{ pimcore_textarea("sectionthree-subtitle", {"nl2br" : true})|raw }}</span></h2>
  176.                                 <div class="uk-margin-large-top uk-margin-medium-bottom apk-content">
  177.                                     {{ pimcore_wysiwyg("sectionthree-content") }}
  178.                                 </div>
  179.                                 <div class="apk-content-sentence uk-margin-xlarge-top uk-text-left">{{ pimcore_textarea("sectionthree-sentence", {"nl2br" : true})|raw }}</div>
  180.                             </div>
  181.                         </div>
  182.                 
  183.                     </div>
  184.                 </div>
  185.             </div>
  186.             {# Scroll géré dans le main.js #}
  187.             {% if pimcore_select("scrolltwo").data == "apk-scroll" or pimcore_select("scroll").data == "apk-top" %}
  188.             <div class="apk-scroll-container">
  189.                 <div class="uk-container apk-container-1400">
  190.                     <div class="uk-position-relative">
  191.                     {% if pimcore_select("scrolltwo").data == "apk-scroll" %}
  192.                         <div class="apk-scroll">
  193.                             {{ "SCROLL"|trans }}
  194.                         </div>
  195.                     {% elseif pimcore_select("scrolltwo").data == "apk-top" %}
  196.                         <div class="apk-scroll apk-top">
  197.                             {{ "TOP"|trans }}
  198.                         </div>
  199.                     {% endif %}
  200.                     </div>
  201.                 </div>
  202.             </div>
  203.             {% endif %}
  204.         </div>
  205.     </section>
  206.     {% endif %}<!-- end section 3 -->
  207.     <!-- start section 4 -->
  208.     <div class="apk-section-hexagone">
  209.         <div class="uk-container apk-container-1200">
  210.             <div class="apk-container-hexagone">
  211.                 <div class="uk-child-width-1-2@m" uk-grid>
  212.                     <div>
  213.                         <h2 class="uk-margin-medium-top uk-margin-remove-bottom">{{ pimcore_textarea("sectionfour-title", {"nl2br" : true})|raw }}</h2>
  214.                         <h2 class="uk-margin-small-top"><span>{{ pimcore_textarea("sectionfour-subtitle", {"nl2br" : true})|raw }}</span></h2>
  215.                         <div class="uk-margin-top apk-content">
  216.                             {{ pimcore_wysiwyg("sectionfour-content", {"nl2br" : true})|raw }}
  217.                         </div>
  218.                         <div class="apk-content-sentence uk-margin-large-top uk-text-left">{{ pimcore_textarea("sectionfour-sentence", {"nl2br" : true})|raw }}</div>
  219.                     </div>
  220.                     <div class="uk-background-contain uk-height-large uk-panel uk-flex uk-flex-center uk-flex-middle uk-padding-remove" style="background-image: url('/static/img/pictos/hexagone.svg');">
  221.                         <div class="apk-section-hexagone-image">{{ pimcore_image('sectionfour-image') }}</div>
  222.                     </div>
  223.                 </div>
  224.             </div>
  225.         </div>
  226.     </div>
  227.     <!-- end section 4 -->
  228.     {% if editmode %}<!-- start section 5 -->
  229.     <div class="uk-container apk-container-1400">
  230.         <div uk-alert>
  231.             <h1 class="uk-h1">Section 5</h1>
  232.         </div>
  233.         <ul uk-tab>
  234.             <li><a href="#">Configurations</a></li>
  235.             <li class="uk-active"><a href="#">Content Edit</a></li>
  236.         </ul>
  237.         <ul class="uk-switcher uk-margin">
  238.             <li class="apk-size-20 uk-grid-small" uk-grid>
  239.                 <div class="uk-width-1-2@m" uk-margin>
  240.                     <div>Afficher un scroll ?</div>
  241.                     {{ pimcore_select("scrollthree", {
  242.                         "store" : [
  243.                             ['', 'Aucun'],
  244.                             ['apk-scroll', 'SCROLL'],
  245.                             ['apk-top', 'TOP']
  246.                         ],
  247.                         "defaultValue" : "apk-scroll"
  248.                     }) }}
  249.                     
  250.                 </div>
  251.             </li>
  252.         
  253.             <li class="uk-active">
  254.                 <div class="uk-margin"><strong>Titre</strong></div>
  255.                 <h2 class="uk-h2">
  256.                     {{ pimcore_textarea("sectionfive-title",{
  257.                         "nl2br" : true
  258.                     }) }}
  259.                 </h2>
  260.                 {% for i in pimcore_block('sectionfive').iterator %}
  261.                 <div class="uk-margin-large-bottom">
  262.                     <div class="uk-margin-small-bottom"><strong>Image hexagonale</strong></div>
  263.                     {{ pimcore_image('sectionfive-hexagone') }}
  264.                     <div class="uk-margin"><strong>Sous-titre</strong></div>
  265.                     <h3>
  266.                         {{ pimcore_textarea("sectionfive-subtitle",{
  267.                             "nl2br" : true
  268.                         }) }}
  269.                     </h3>
  270.                     <div class="uk-margin-small-bottom"><strong>Image</strong></div>
  271.                     {{ pimcore_image('sectionfive-image') }}
  272.                     <div class="uk-margin"><strong>Texte</strong></div>
  273.                     {{ pimcore_wysiwyg("sectionfive-content") }}
  274.                 </div>
  275.                 {% endfor %}
  276.                 <div class="uk-margin"><strong>Petite phrase</strong></div>
  277.                 {{ pimcore_textarea("sectionfive-sentence", {"nl2br" : true})|raw }}
  278.             </li>
  279.         </ul>
  280.     </div>
  281.     {% else %}
  282.     <section>
  283.         <div class="apk-section-grid-hexagone" uk-height-match="target: .apk-border-heading">
  284.             
  285.             <div class="uk-container apk-container-1400">
  286.                 <h2 class="uk-text-center">
  287.                     {{ pimcore_textarea("sectionfive-title",{
  288.                         "nl2br" : true
  289.                     }) }}
  290.                 </h2>
  291.                 <div class="uk-grid-large uk-child-width-1-2@m uk-child-width-1-3@m uk-text-center" uk-grid uk-height-match="target: .apk-border">
  292.                     {% for i in pimcore_block('sectionfive').iterator %}
  293.                     <div class="apk-content">
  294.                         <div class="apk-border uk-position-relative">
  295.                             <div class="apk-hexagone-absolute">{{ pimcore_image('sectionfive-hexagone') }}</div>
  296.                             <h3 class="apk-border-heading">
  297.                                 {{ pimcore_textarea("sectionfive-subtitle",{
  298.                                     "nl2br" : true
  299.                                 }) }}
  300.                             </h3>
  301.                             
  302.                             {{ pimcore_image('sectionfive-image') }}
  303.                             {{ pimcore_wysiwyg("sectionfive-content") }}
  304.                         </div>
  305.                     </div>
  306.                     {% endfor %}
  307.                 </div>
  308.                 <p class="apk-content-sentence uk-margin-medium-bottom">{{ pimcore_textarea("sectionfive-sentence", {"nl2br" : true})|raw }}</p>
  309.             </div>
  310.             {# Scroll géré dans le main.js #}
  311.             {% if pimcore_select("scrollthree").data == "apk-scroll" or pimcore_select("scrollthree").data == "apk-top" %}
  312.             <div class="apk-scroll-container">
  313.                 <div class="uk-container apk-container-1400">
  314.                     <div class="uk-position-relative">
  315.                     {% if pimcore_select("scrollthree").data == "apk-scroll" %}
  316.                         <div class="apk-scroll">
  317.                             {{ "SCROLL"|trans }}
  318.                         </div>
  319.                     {% elseif pimcore_select("scrollthree").data == "apk-top" %}
  320.                         <div class="apk-scroll apk-top">
  321.                             {{ "TOP"|trans }}
  322.                         </div>
  323.                     {% endif %}
  324.                     </div>
  325.                 </div>
  326.             </div>
  327.             {% endif %}
  328.         </div>
  329.     </section>
  330.     {% endif %}<!-- end section 5 -->
  331.     {% if editmode %}<!-- start section 6 -->
  332.     
  333.     <div class="uk-container apk-container-1400">
  334.         <div uk-alert>
  335.             <h1 class="uk-h1">Section 6</h1>
  336.         </div>
  337.         <ul uk-tab>
  338.             <li><a href="#">Configurations</a></li>
  339.             <li class="uk-active"><a href="#">Content Edit</a></li>
  340.         </ul>
  341.         <ul class="uk-switcher uk-margin">
  342.             <li class="apk-size-20 uk-grid-small" uk-grid>
  343.                 <div class="uk-width-1-2@m" uk-margin>
  344.                     <div>Afficher un scroll ?</div>
  345.                     {{ pimcore_select("scrollsix", {
  346.                         "store" : [
  347.                             ['', 'Aucun'],
  348.                             ['apk-scroll', 'SCROLL'],
  349.                             ['apk-top', 'TOP']
  350.                         ],
  351.                         "defaultValue" : "apk-scroll"
  352.                     }) }}
  353.                     
  354.                 </div>
  355.             </li>
  356.         
  357.             <li class="uk-active">
  358.                 <div class="uk-margin"><strong>Titre</strong></div>
  359.                 <div class="uk-margin-large-bottom">
  360.                     <div class="uk-margin-small-bottom"><strong>Image</strong></div>
  361.                     {{ pimcore_image('sectionsix-image') }}
  362.                     <div class="uk-margin"><strong>Titre</strong></div>
  363.                     <h2 class="uk-margin-medium-top uk-margin-remove-bottom">{{ pimcore_textarea("sectionsix-title", {"nl2br" : true})|raw }}</h2>
  364.                     <hr>
  365.                     <h2 class="uk-margin-small-top"><span>{{ pimcore_textarea("sectionsix-subtitle", {"nl2br" : true})|raw }}</span></h2>
  366.                     <div class="uk-margin"><strong>Texte</strong></div>
  367.                     {{ pimcore_wysiwyg("sectionsix-content") }}
  368.                     <div class="uk-margin"><strong>Lien</strong></div>
  369.                     {{ pimcore_link("sectionsix-link", {"class" : "uk-button"}) }}
  370.                 </div>
  371.             </li>
  372.         </ul>
  373.     </div>
  374.     {% else %}
  375.     <section>
  376.         <div class="apk-section-grid-half">
  377.             <div class="uk-child-width-1-2@m apk-margin-section" uk-grid>
  378.                 <div>
  379.                     <div class="uk-container apk-container-700 uk-margin-medium-top">
  380.                         
  381.                         <h2 class="uk-margin-large-top uk-margin-remove-bottom uk-visible@m">{{ pimcore_textarea("sectionsix-title", {"nl2br" : true})|raw }}</h2>
  382.                         <h2 class="uk-margin-small-top uk-visible@m"><span>{{ pimcore_textarea("sectionsix-subtitle", {"nl2br" : true})|raw }}</span></h2>
  383.                         <div class="uk-margin-medium-top apk-content">
  384.                             {{ pimcore_wysiwyg("sectionsix-content", {"nl2br" : true})|raw }}
  385.                             {{ pimcore_link("sectionsix-link", {"class" : "uk-button"}) }}
  386.                         </div>
  387.                     </div>
  388.                 </div>
  389.                 <div class="uk-flex-first uk-flex-last@m">
  390.                     <div class="uk-background-cover uk-height-1-1 uk-panel uk-flex uk-flex-center uk-flex-middle uk-visible@m" style="background-image: url({{ pimcore_image('sectionsix-image').getSrc() }});">
  391.                     </div>
  392.                     <div class="uk-hidden@m">
  393.                         <div class="uk-margin-left">
  394.                             <h2 class="uk-margin-large-top uk-margin-remove-bottom">{{ pimcore_textarea("sectionsix-title", {"nl2br" : true})|raw }}</h2>
  395.                             <h2 class="uk-margin-small-top uk-margin-medium-bottom"><span>{{ pimcore_textarea("sectionsix-subtitle", {"nl2br" : true})|raw }}</span></h2>
  396.                         </div>
  397.                         {{ pimcore_image('sectionsix-image') }}
  398.                     </div>
  399.                 </div>
  400.             </div>
  401.             
  402.             {# Scroll géré dans le main.js #}
  403.             {% if pimcore_select("scrollsix").data == "apk-scroll" or pimcore_select("scrollsix").data == "apk-top" %}
  404.             <div class="apk-scroll-container">
  405.                 <div class="uk-container apk-container-1400">
  406.                     <div class="uk-position-relative">
  407.                     {% if pimcore_select("scrollsix").data == "apk-scroll" %}
  408.                         <div class="apk-scroll">
  409.                             {{ "SCROLL"|trans }}
  410.                         </div>
  411.                     {% elseif pimcore_select("scrollsix").data == "apk-top" %}
  412.                         <div class="apk-scroll apk-top">
  413.                             {{ "TOP"|trans }}
  414.                         </div>
  415.                     {% endif %}
  416.                     </div>
  417.                 </div>
  418.             </div>
  419.             {% endif %}
  420.         </div><!-- end section 6 -->
  421.     </section>
  422.     
  423.     {% endif %}
  424. </div><!-- end magnesium -->
  425. {{ pimcore_areablock('contentBottom') }}
  426. </main><!-- end #main -->
  427. {% endblock %}
  428. {% block inlinescripts %}
  429.         
  430. {% endblock inlinescripts %}