{% extends '@nucleus/partials/particle.html.twig' %} {% block stylesheets %} {% endblock %} {# Set JS #} {% block javascript_footer %} {% endblock %} {# Set Viewport Height #} {% if particle.viewport_height == 'full' %} {% set viewport_height = 'jl-height-viewport="offset-top: true;"' %} {% elseif particle.viewport_height == 'percent' %} {% set viewport_height = 'jl-height-viewport="offset-top: true; offset-bottom: 20;"' %} {% elseif particle.viewport_height == 'section' %} {% set viewport_height = 'jl-height-viewport="offset-top: true; offset-bottom: 50;"' %} {% elseif particle.viewport_height == 'expand' %} {% set viewport_height = 'jl-height-viewport="expand: true;"' %} {% endif %} {# Set Padding #} {% if particle.padding == 'default' %} {% set padding = ' jl-section' %} {% elseif particle.padding == 'none' %} {% set padding = ' jl-section jl-padding-remove-vertical' %} {% else %} {% set padding = ' jl-section jl-section-' ~ particle.padding|e ~ '' %} {% endif %} {# Set Title/Meta/Content Text Transform #} {% set title_text_transform = particle.title_text_transform ? ' jl-text-' ~ particle.title_text_transform|e ~ '' %} {% set meta_text_transform = particle.meta_text_transform ? ' jl-text-' ~ particle.meta_text_transform|e ~ '' %} {% set content_text_transform = particle.content_text_transform ? ' jl-text-' ~ particle.content_text_transform|e ~ '' %} {# Set Background color #} {% set parallax_bg_color = particle.parallax_bg_color ? 'style="background-color: ' ~ particle.parallax_bg_color ~ ';"' %} {% set parallax_overlay = (particle.parallax_bg_overlay ? '
') %} {% set parallax_easing = particle.parallax_easing ? 'easing:' ~ particle.parallax_easing / 10 ~ '' %} {# Set Max-Width Content Section #} {% set container_maxwidth %} {% if particle.container_maxwidth == 'default' %}jl-container{% else %}jl-container jl-container-{{particle.container_maxwidth|e}}{% 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 Parallax Background #} {% set parallaxbackground %} {% if particle.parallax_image %}
{{parallax_overlay|raw}} {% if particle.container_maxwidth != 'none' %}
{% endif %} {% endif %} {% endset %} {# End Parallax Background #} {% set endparallaxbackground %} {% if particle.parallax_image %} {% if particle.container_maxwidth != 'none' %}
{% endif %}
{% endif %} {% endset %} {# Set Horizontal #} {% set pahorizontal %} {% if particle.pa_horizontal_start or particle.pa_horizontal_end %}x: {% if particle.pa_horizontal_start == '' %}0{% else %}{{particle.pa_horizontal_start }}{% endif %},{% if particle.pa_horizontal_end == '' %}0{% else %}{{particle.pa_horizontal_end }}{% endif %};{% endif %} {% endset %} {# Set Vertical #} {% set pavertical %} {% if particle.pa_vertical_start or particle.pa_vertical_end %}y: {% if particle.pa_vertical_start == '' %}0{% else %}{{particle.pa_vertical_start }}{% endif %},{% if particle.pa_vertical_end == '' %}0{% else %}{{particle.pa_vertical_end }}{% endif %};{% endif %} {% endset %} {# Set Scale #} {% set scale %} {% if particle.scale_start or particle.scale_end %}scale: {% if particle.scale_start == '' %}1{% else %}{{particle.scale_start / 100 }}{% endif %},{% if particle.scale_end == '' %}1{% else %} {{particle.scale_end / 100 }}{% endif %};{% endif %} {% endset %} {# Set Rotate #} {% set rotate %}{% if particle.rotate_start or particle.rotate_end %} rotate: {% if particle.rotate_start == '' %}0{% else %}{{particle.rotate_start}}{% endif %},{% if particle.rotate_end == '' %}0{% else %}{{particle.rotate_end}}{% endif %};{% endif %} {% endset %} {# Set Opacity #} {% set opacity %} {% if particle.opacity_start or particle.opacity_end %}opacity: {% if particle.opacity_start == '' %}1{% else %}{{particle.opacity_start / 100 }}{% endif %},{% if particle.opacity_end == '' %}1{% else %}{{particle.opacity_end / 100 }}{% endif %};{% endif %} {% endset %} {# Set Scrollspy Animation #} {% set scrollspy_cls = particle.animation != 'inherit' and particle.animation != 'parallax' ? ' jl-scrollspy-class' %} {# Set Animation #} {% set animation %} {% if particle.animation != 'inherit' and particle.animation != 'parallax' %} jl-scrollspy="target: [jl-scrollspy-class]; cls: jl-animation-{{particle.animation|e}};{% if particle.animation_repeat == 'enabled' %} repeat: true;{% endif %} delay:{% if particle.delay_element_animations %} {{particle.animation_delay|default('200')|e}};{% else %} false;{% endif %}" {% elseif particle.animation == 'parallax' %} {% if particle.pa_horizontal_start or particle.pa_horizontal_end or particle.pa_vertical_start or particle.pa_vertical_end or particle.scale_start or particle.scale_end or particle.rotate_start or particle.rotate_end or particle.opacity_start or particle.opacity_end or particle.easing or particle.pa_viewport or particle.pa_breakpoint %} jl-parallax="{{pahorizontal}}{{pavertical}}{{scale}}{{rotate}}{{opacity}}{% if particle.easing == '' %}{% else %}easing: {{ particle.easing / 100 }};{% endif %}{% if particle.pa_viewport != '' %}viewport:{{ particle.pa_viewport / 100 }};{% endif %}{% if particle.pa_breakpoint != 'always' %}media: @{{particle.pa_breakpoint|e}}{% endif %}"{% 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 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 slider_animation_set = particle.slider_animation_set == 'enabled' ? 'sets: true;' %} {% set slider_animation_center = particle.slider_animation_center == 'enabled' ? 'center: true;' %} {% set slider_animation_finite = particle.slider_animation_finite == 'enabled' ? 'finite: true;' %} {% set slider_animation_autoplay = particle.slider_animation_autoplay == 'enabled' ? 'autoplay: true;' %} {% set slider_animation_interval = (particle.slider_animation_autoplay == 'enabled' and particle.slider_animation_interval) ? 'autoplay-interval:' ~ particle.slider_animation_interval * 1000 ~ ';' %} {% set slider_pause_onhover = particle.slider_pause_onhover == 'disabled' ? 'pauseOnHover: false;' %} {% set velocity = particle.slider_velocity ? 'velocity:' ~ particle.slider_velocity / 100 ~ ';' %} {% set imagewidth = particle.image_width ? 'width="' ~ particle.image_width ~ '"' %} {% set imageheight = particle.image_height ? 'height="' ~ particle.image_height ~ '"' %} {# Set Masonry #} {% set grid_masonry = particle.grid_masonry ? 'masonry: 1;' %} {# Set Transition for title/meta/content if overlay on hover is set #} {% if particle.overlay_hover == '1' %} {% set title_transition = particle.title_transition != 'none' ? ' jl-transition-' ~ particle.title_transition|e ~ '' %} {% set meta_transition = particle.meta_transition != 'none' ? ' jl-transition-' ~ particle.meta_transition|e ~ '' %} {% set content_transition = particle.content_transition != 'none' ? ' jl-transition-' ~ particle.content_transition|e ~ '' %} {% set link_transition = particle.link_transition != 'none' ? ' jl-transition-' ~ particle.link_transition|e ~ '' %} {% set overlay_transition = ' jl-transition-' ~ particle.overlay_transition|e ~ '' %} {% endif %} {% set tab_transition = particle.overlay_hover or particle.image_transition != 'none' ? ' tabindex="0"' %} {% set toggle_transition = particle.overlay_hover or particle.image_transition != 'none' ? ' jl-transition-toggle' %} {# Image Transition #} {% set image_transition = particle.image_transition != 'none' ? ' jl-transition-' ~ particle.image_transition|e ~ ' jl-transition-opaque' %} {# Image Box Shadow #} {% set image_boxshadow = particle.box_shadow != 'none' ? ' jl-box-shadow-' ~ particle.box_shadow|e ~ '' %} {% set image_boxshadow_hover = particle.box_shadow_hover != 'none' ? ' jl-box-shadow-hover-' ~ particle.box_shadow_hover|e ~ '' %} {# Set Item Max Width Class #} {% set item_maxwidth_cls = particle.item_maxwidth != 'none' ? ' jl-margin-auto jl-width-' ~ particle.item_maxwidth|e ~ '' %} {% set grid_parallax = particle.grid_parallax ? ' parallax: ' ~ particle.grid_parallax ~ ';' %} {# Set Item Content #} {% set item_content %} {% for item in particle.items %} {# Set Meta Content #} {% set item_meta %} {% if item.meta %}
{{item.meta|raw}}
{% endif %} {% endset %} {% if particle.grid_type == 'slider' %}
  • {% else %}
    {% endif %}
    {% if particle.overlay_mode == 'cover' or particle.overlay_mode == 'caption' %}
    {% if item.image_thumbnail %} {{ item.image_alt|e }} {% else %} {% if item.image %}{{ item.image_alt|e }}{% endif %} {% endif %} {# Load Overlay Style #} {% if particle.overlay_style == 'none' %}
    {% else %} {% if particle.overlay_mode == 'cover' %}
    {% endif %}
    {% if particle.overlay_mode == 'cover' %}
    {% else %}
    {% endif %} {% endif %} {% if particle.meta_alignment == 'top' %} {{item_meta}} {% endif %} {% if item.title %} <{{particle.title_element|e}} class="tm-title jl-margin-remove-bottom{{title_text_transform}}{% if particle.title_margin_top == 'default' %} jl-margin-top{% else %} jl-margin-{{ particle.title_margin_top|e }}-top{% endif %}{% if particle.title_color != 'default' %} jl-text-{{particle.title_color|e}}{% endif %}{% if particle.title_style != 'default' %} jl-{{particle.title_style|e}}{% endif %}{% if particle.title_decoration != 'none' %} jl-heading-{{particle.title_decoration|e}}{% endif %}"> {% if particle.title_decoration == 'line' %} {{ item.title|raw }} {% else %} {{ item.title|raw }} {% endif %} {% endif %} {% if particle.meta_alignment == 'bottom' %} {{item_meta}} {% endif %} {% if item.caption %}
    {{ item.caption|raw }}
    {% endif %} {% if particle.meta_alignment == 'content' %} {{item_meta}} {% endif %}
    {# End Overlay Style #}
    {% else %} {% if item.image_thumbnail %} {{ item.image_alt|e }} {% else %} {% if item.image %}{{ item.image_alt|e }}{% endif %} {% endif %} {% if particle.meta_alignment == 'top' %} {{item_meta}} {% endif %} {% if item.title %} <{{particle.title_element|e}} class="tm-title jl-margin-remove-bottom{{title_text_transform}}{% if particle.title_margin_top == 'default' %} jl-margin-top{% else %} jl-margin-{{ particle.title_margin_top|e }}-top{% endif %}{% if particle.title_color != 'default' %} jl-text-{{particle.title_color|e}}{% endif %}{% if particle.title_style != 'default' %} jl-{{particle.title_style|e}}{% endif %}{% if particle.title_decoration != 'none' %} jl-heading-{{particle.title_decoration|e}}{% endif %}"> {% if particle.title_decoration == 'line' %} {{ item.title|raw }} {% else %} {{ item.title|raw }} {% endif %} {% endif %} {% if particle.meta_alignment == 'bottom' %} {{item_meta}} {% endif %} {% if item.caption %}
    {{ item.caption|raw }}
    {% endif %} {% if particle.meta_alignment == 'content' %} {{item_meta}} {% endif %} {% endif %}
    {% if particle.grid_type == 'slider' %}
  • {% else %} {% endif %} {% endfor %} {% endset %} {% set grid_column_gap = particle.grid_column_gap != 'default' ? ' jl-grid-column-' ~ particle.grid_column_gap ~ '' %} {% set grid_row_gap = particle.grid_row_gap != 'default' ? ' jl-grid-row-' ~ particle.grid_row_gap ~ '' %} {% if ( particle.grid_column_gap == particle.grid_row_gap ) and not (particle.grid_column_gap == 'default' and particle.grid_row_gap == 'default') %} {% set grid_cr_gap = ' jl-grid-' ~ particle.grid_column_gap ~ '' %} {% else %} {% set grid_cr_gap = grid_column_gap ~ grid_row_gap %} {% endif %} {% set center_columns = particle.center_columns ? ' jl-flex-center' %} {% set center_rows = particle.center_rows ? ' jl-flex-middle' %} {% block particle %} {% if particle.enabled %} {{parallaxbackground}} {{particle_title_style}} {% if particle.grid_type == 'slider' %}
    {# Load Outside container #} {% if particle.slidenav_position == 'outside' %}
    {% endif %} {# End outside #}
      {{item_content}}
    {% if particle.slidenav_position == 'outside' %}
    {% endif %} {% if particle.slidenav_icon_left and particle.slidenav_icon_right %} {% set slidenav_icon_left = '' %} {% set slidenav_icon_right = '' %} {% else %} {% set slidenav_large_style = particle.slidenav_large_style ? ' jl-slidenav-large' %} {% set slidenav_next = 'jl-slidenav-next' %} {% set slidenav_prev = 'jl-slidenav-previous' %} {% endif %} {% set slidenav_text_color = particle.slideshow_text_color != 'default' ? ' jl-' ~ particle.slideshow_text_color ~ '' %} {# Slidenav #} {% if particle.slidenav_position != 'none' %} {% if particle.slidenav_position == 'default' %} {% elseif particle.slidenav_position == 'outside' %} {% else %} {% endif %} {% endif %} {# End Slidenav #}
    {# Navigation #} {% if particle.navigation == 'enabled' %} {% if particle.navigation_color != 'default' %}
    {% endif %} {% if particle.navigation_color != 'default' %}
    {% endif %} {% endif %} {# End Navigation #}
    {% else %}
    {{item_content}}
    {% endif %} {{endparallaxbackground}} {% endif %} {% endblock %}