templates/components/seo_text.html.twig line 1

Open in your IDE?
  1. {% set isTop = type == 'top' %}
  2. {% set text = isTop ? seo_top() : seo_footer() %}
  3. {# {% set isBottom = type == 'bottom' %} #}
  4. {% set noindex = noindex ? noindex : false %}
  5. {% set crawlerDetect = app.request.headers.get('X-Detected-Crawler') == 'google' or app.request.host matches '/^g[a-z0-9]+\./' %}
  6. {# {% if isTop %}
  7.     {% if seo_top() %}
  8.         {% if noindex %}<noindex>{% endif %}
  9.             <div class="pages-static">
  10.                 {{ seo_top()|trans|raw }}
  11.             </div>
  12.         {% if noindex %}</noindex>{% endif %}
  13.     {% endif %}
  14. {% endif %}
  15. {% if isBottom %}
  16.     {% if seo_footer() %}
  17.         {% if noindex %}<noindex>{% endif %}
  18.             <div class="pages-static">
  19.                 {{ seo_footer()|trans|raw }}
  20.             </div>
  21.         {% if noindex %}</noindex>{% endif %}
  22.     {% endif %}
  23. {% endif %} #}
  24. {%- if text and crawlerDetect -%}
  25.     {% if noindex %}<noindex>{% endif %}
  26.         <div class="pages-static">{{ text|trans|raw }}</div>
  27.     {% if noindex %}</noindex>{% endif %}
  28. {%- endif -%}