templates/areas/button/view.html.twig line 1

Open in your IDE?
  1. {% if editmode %}
  2. <div class="settings">
  3.     <div class="position-relative settings-button-border">
  4.         <strong class="settings-header">Settings</strong><button class="toggle-settings"><i class="fa fa-plus"></i></button>
  5.         <div class="settings_container">
  6.             <div class="row middle-lg middle-md middle-sm middle-xs">
  7.                 <div>Button Style</div>
  8.                 <div>
  9.                     {{ pimcore_select("buttonType", {
  10.                         "store": [
  11.                             ["dark", "Dark"], 
  12.                             ["dark-ghost", "Dark Ghost"], 
  13.                             ["light", "Light"], 
  14.                             ["light-ghost", "Light Ghost"],
  15.                         ],
  16.                         "defaultValue" : "dark",
  17.                         }) 
  18.                     }}
  19.                 </div>
  20.             </div>
  21.         </div>
  22.         <div style="position: absolute; top: 10px; right: 0; font-weight: bold; text-transform: uppercase;">
  23.             Button
  24.         </div>
  25.     </div>
  26. </div>
  27. {% endif %}
  28. {% set buttonType = pimcore_select("buttonType").getData()|raw %}
  29. {% switch buttonType %}
  30.     {% case "dark" %}
  31.     {% set buttonType = ' dark' %}
  32.     {% case "dark-ghost" %}
  33.     {% set buttonType = ' dark--ghost' %}
  34.     {% case "light" %}
  35.     {% set buttonType = ' light' %}
  36.     {% case "light-ghost" %}
  37.     {% set buttonType = ' light--ghost' %}
  38.     {% default %}
  39.     {% set buttonType = ' dark' %}
  40. {% endswitch %}
  41. {{ pimcore_link('buttonLink', {class: "btn" ~ buttonType }) }}