{% extends '@nucleus/partials/particle.html.twig' %} {% block stylesheets %} {% if particle.particle_title_color or particle.particle_title_fontsize or particle.offcanvas_width or particle.customize_bar_background or particle.customize_nav_color or particle.customize_content_color or particle.customize_content_fontsize or particle.color_fallback or particle.social_bg_color or particle.social_color or particle.social_bg_hcolor or particle.social_hcolor %} {% endif %} {% endblock %} {# Set Animation #} {% set animation %} {% if particle.animation != 'inherit' %} jl-scrollspy="cls: jl-animation-{{particle.animation|e}};{% if particle.animation_repeat == 'enabled' %} repeat: true;{% endif %}{% if particle.animation_delay %} delay: {{particle.animation_delay|e}};{% endif %}"{% endif %} {% endset %} {# Set Max-Width Content #} {% set content_maxwidth %} {% if particle.g_maxwidth != 'inherit' %} jl-width-{{particle.g_maxwidth}}{% if particle.g_maxwidth_breakpoint != 'always' %}@{{particle.g_maxwidth_breakpoint}}{% endif %}{% if particle.g_maxwidth_alignment == 'left' %}{% elseif particle.g_maxwidth_alignment == 'center' %} jl-margin-auto{% else %} jl-margin-auto-left{% endif %}{% endif %} {% endset %} {# Set Particle Alignment #} {% set particle_alignment %} {% if particle.align != 'inherit' %} jl-text-{{particle.align|e}}{% if particle.breakpoint != 'always' %}@{{particle.breakpoint|e}}{% endif %}{% endif %}{% if particle.align != 'inherit' and particle.breakpoint != 'always' %}{% if particle.fallback != 'inherit' %} jl-text-{{particle.fallback|e}}{% endif %}{% endif %} {% endset %} {# Set Button Class #} {% set button_cls %} {% if particle.buttonclass == 'link' %}jl-link{% elseif particle.buttonclass == 'link-muted' or particle.buttonclass == 'link-text' %}jl-{{particle.buttonclass|e}}{% else %}jl-button jl-button-{{particle.buttonclass|e}}{% endif %} {% endset %} {# Set Button Size #} {% set button_size %} {% if particle.buttonclass == 'link' or particle.buttonclass == 'link-muted' or particle.buttonclass == 'link-text' or particle.buttonclass == 'text' %}{% else %}{% if particle.link_button_size != 'default' %} jl-button-{{particle.link_button_size|e}}{% endif %}{% endif %} {% endset %} {# set Particle Title Style #} {% set particle_title_style %} {% if particle.particle_title %} <{{particle.particle_title_element|e}} id="{{ id }}" class="g5-particle-title{% if particle.particle_title_align != 'inherit' %} jl-text-{{particle.particle_title_align|e}}{% endif %}{% if particle.particle_predefined_color != 'default' %} jl-text-{{particle.particle_predefined_color|e}}{% endif %}{% if particle.particle_title_style != 'default' %} jl-{{particle.particle_title_style|e}}{% endif %}{% if particle.particle_title_decoration != 'none' %} jl-heading-{{particle.particle_title_decoration|e}}{% endif %}"> {% if particle.particle_title_decoration == 'line' %} {{particle.particle_title|raw}} {% else %} {{particle.particle_title|raw}} {% endif %} {% endif %} {% endset %} {# Set Offcanvas Menu items #} {% set menuitems %} {% endset %} {# Set Offcanvas Content #} {% set offcavanscontent %} {% if particle.content %}
{{particle.content|raw}}
{% endif %} {% endset %} {# Set Social Items #} {% set socialicons %}
{% for social_item in particle.social_items %}
{% endfor %}
{% endset %} {% set divider_nav %} {% if particle.show_divider %} {% endif %} {% endset %} {% block particle %} {% if particle.enabled %} {{parallaxbackground}} {{particle_title_style}}
{% if particle.close_button %}{% endif %} {% if particle.content_order == '1' %} {{menuitems}} {{divider_nav}} {{offcavanscontent}} {{divider_nav}} {{socialicons}} {% endif %} {% if particle.content_order == '2' %} {{menuitems}} {{divider_nav}} {{socialicons}} {{divider_nav}} {{offcavanscontent}} {% endif %} {% if particle.content_order == '3' %} {{offcavanscontent}} {{divider_nav}} {{menuitems}} {{divider_nav}} {{socialicons}} {% endif %} {% if particle.content_order == '4' %} {{socialicons}} {{divider_nav}} {{menuitems}} {{divider_nav}} {{offcavanscontent}} {% endif %} {% if particle.content_order == '5' %} {{socialicons}} {{divider_nav}} {{offcavanscontent}} {{divider_nav}} {{menuitems}} {% endif %} {% if particle.content_order == '6' %} {{offcavanscontent}} {{divider_nav}} {{socialicons}} {{divider_nav}} {{menuitems}} {% endif %}
{% if particle.toggle_item_type == 'button' %} {% else %} {{particle.toggle_item_text|e}} {% endif %}
{{endparallaxbackground}} {% endif %} {% endblock %}