{% try %} {% set id = segment.id %} {% if not particle %} {% if noConfig %} {% set enabled = true %} {% set particle = segment.attributes %} {% else %} {% set enabled = gantry.config.get('particles.' ~ segment.subtype ~ '.enabled', 1) %} {% set particle = gantry.config.getJoined('particles.' ~ segment.subtype, segment.attributes) %} {% endif %} {% endif %} {% set html %} {% if enabled and (segment.attributes.enabled is null or segment.attributes.enabled) %} {% include ['particles/' ~ segment.subtype ~ '.html.twig', '@particles/' ~ segment.subtype ~ '.html.twig', '@nucleus/content/missing.html.twig'] %} {% endif %} {% endset %} {% set html = html|trim %} {% set classes = ((not inContent ? 'g-content g-particle ' : 'g-particle ') ~ segment.classes|join(' '))|trim %} {%- if html -%} {% if gantry.debug %}{% endif %} {% if ajax is not defined %}
{% endif %} {{ html|raw }} {% if ajax is not defined %}
{% endif %} {% if gantry.debug %}{% endif %} {%- endif -%} {% catch %}
Error while rendering {{ segment.subtype }} particle.
{% endtry %}