templates/__design/v2023/components/seo-article.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. {# {{ dump({'top': isTop, 'bottom': isBottom , 'noindex': noindex})}} #}
  7. {# {% if isTop %}
  8.     {% if seo_top() %}
  9.         {% if noindex %}<noindex>{% endif %}
  10.             <div class="additional-content">
  11.                 {{ seo_top()|trans|raw }}
  12.             </div>
  13.         {% if noindex %}</noindex>{% endif %}
  14.     {% endif %}
  15. {% endif %}
  16. {% if isBottom %}
  17.     {% if seo_footer() %}
  18.         {% if noindex %}<noindex>{% endif %}
  19.         <div class="additional-content">
  20.             {{ seo_footer()|trans|raw }}
  21.         </div>
  22.         {% if noindex %}</noindex>{% endif %}
  23.     {% endif %}
  24. {% endif %} #}
  25. {%- if text -%}
  26.     {% if noindex %}<noindex>{% endif %}
  27.         <div class="additional-content">{{ text|trans|raw }}</div>
  28.     {% if noindex %}</noindex>{% endif %}
  29. {%- endif -%}