| Server IP : 172.67.191.97 / Your IP : 104.23.197.208 Web Server : Apache/2.4.63 (Ubuntu) System : Linux adminpruebas-Virtual-Machine 6.14.0-37-generic #37-Ubuntu SMP PREEMPT_DYNAMIC Fri Nov 14 22:10:32 UTC 2025 x86_64 User : www-data ( 33) PHP Version : 8.4.5 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/acreditacion/media/gantry5/engines/nucleus/templates/content/ |
Upload File : |
{% try %}
{% set in_particle = (in_particle ?? 0) + 1 %}
{% if in_particle > 5 %}
{% throw 500 'Particle loop detected' %}
{% endif %}
{% 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 %}<!-- START PARTICLE {{ id }} -->{% endif %}
{% if ajax is not defined %}<div id="{{ id }}-particle" class="{{ classes }}">{% endif %}
{{ html|raw }}
{% if ajax is not defined %}</div>{% endif %}
{% if gantry.debug %}<!-- END PARTICLE {{ id }} -->{% endif %}
{%- endif -%}
{% catch %}
<div class="alert alert-error"><strong>Error</strong> while rendering {{ segment.subtype }} particle.</div>
{% endtry %}