custom/plugins/TcinnThemeWareClean/src/Resources/views/storefront/themeware/widgets/twt-location-include.html.twig line 1

Open in your IDE?
  1. {# ThemeWare "Location" widget #}
  2. {#
  3.     Create "Location" widget and add content
  4.     @Storefront/storefront/themeware/widgets/twt-location-include.html.twig
  5. #}
  6. {# TODO: Blöcke prüfen... #}
  7. {# ---------------- START: SET TEMPLATE VARS ---------------- #}
  8. {# ThemeWare: Set theme variables #}
  9. {% set twtWidgetLocationRouteButtonShow = theme_config('twt-widget-location-route-button-show') %}
  10. {# ---------------- END: SET TEMPLATE VARS ---------------- #}
  11. {% block twt_widget_location %}
  12.     <div class="twt-widget-location twt-location">
  13.         {% block twt_widget_location_content %}
  14.             {{ "twt.widget.location.content"|trans|raw }}
  15.         {% endblock %}
  16.         {% block twt_widget_location_route %}
  17.             {% if twtWidgetLocationRouteButtonShow == 2 %}
  18.                 <a class="btn btn-route" href="{{ "twt.widget.location.route.link"|trans|sw_sanitize }}" target="_blank" rel="noopener">
  19.                     {% sw_icon 'map' %} {{ "twt.widget.location.route.name"|trans|sw_sanitize }}
  20.                 </a>
  21.             {% endif %}
  22.         {% endblock %}
  23.     </div>
  24. {% endblock %}