bundles/Alea/AreabricksBundle/Resources/views/areas/cta/view.html.twig line 1

Open in your IDE?
  1. {% set iconPos = pimcore_select('iconPos').getData() %}
  2. {% set ctaColor = pimcore_select('ctaColor').getData() %}
  3. {# mobile - padding #}
  4. {% set pm = pimcore_select('pm').getData() %}       {# all 4 sides #}
  5. {% set psm = pimcore_select('psm').getData() %}     {# left #}
  6. {% set ptm = pimcore_select('ptm').getData() %}     {# top #}
  7. {% set pem = pimcore_select('pem').getData() %}     {# right #}
  8. {% set pbm = pimcore_select('pbm').getData() %}     {# bottom #}
  9. {# desktop - padding #}
  10. {% set pd = pimcore_select('pd').getData() %}
  11. {% set psd = pimcore_select('psd').getData() %}
  12. {% set ptd = pimcore_select('ptd').getData() %}
  13. {% set ped = pimcore_select('ped').getData() %}
  14. {% set pbd = pimcore_select('pbd').getData() %}
  15. <div class="text-center 
  16.                     {% if pm and pm != '' %} p-{{pm}} {% endif %}
  17.                     {% if pd and pd != '' %} p-{{pd}} {% endif %}
  18.                     {% if psm and psm != '' %} ps-{{psm}} {% endif %}
  19.                     {% if psd and psd != '' %} ps-lg-{{psd}} {% endif %}
  20.                     {% if ptm and ptm != '' %} pt-{{ptm}} {% endif %}
  21.                     {% if ptd and ptd != '' %} pt-lg-{{ptd}} {% endif %}
  22.                     {% if pem and pem != '' %} pe-{{pem}} {% endif %}
  23.                     {% if ped and ped != '' %} pe-lg-{{ped}} {% endif %}
  24.                     {% if pbm and pbm != '' %} pb-{{pbm}} {% endif %}
  25.                     {% if pbd and pbd != '' %} pb-lg-{{pbd}}{% endif %}">
  26.     <h2>
  27.         {{ pimcore_input("title",{
  28.             "width": '100%',
  29.             "placeholder": "Titolo"
  30.         }) }}
  31.     </h2>
  32.     <p class="fs-25">
  33.         {{ pimcore_textarea("description",{
  34.             "width": '100%',
  35.             "placeholder": "descrizione"
  36.         }) }}
  37.     </p>
  38.     {% if editmode %}
  39.         {{ pimcore_link('link') }}
  40.     {% else %}
  41.         {%  set link = pimcore_link('link') %}
  42.         <a href="{{ link.getHref() ?: '#' }}" class="link fw-bold fs-20 text-{{ ctaColor }}">{% if iconPos != "none" and iconPos =="left" %}<i class="fa fa-arrow-left-long"></i>{% endif %} {{ link.getText() }} {% if iconPos != "none" and iconPos =="right" %}<i class="fa fa-arrow-right-long"></i>{% endif %}</a>
  43.     {% endif %}
  44. </div>