{% extends '@nucleus/partials/particle.html.twig' %} {% block stylesheets %} {% 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 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 Max-Width Content Section #} {% set container_maxwidth = particle.container_maxwidth != 'default' ? 'jl-container jl-container-' ~ particle.container_maxwidth|e ~ '' : 'jl-container' %} {# 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 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 #} {% 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: 1;' %} {% set slider_animation_center = particle.slider_animation_center == 'enabled' ? 'center: 1;' %} {% set slider_animation_finite = particle.slider_animation_finite == 'enabled' ? 'finite: 1;' %} {% set slider_animation_autoplay = particle.slider_animation_autoplay == 'enabled' ? 'autoplay: 1;' %} {% 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 Image Width/Height #} {% set imagewidth = particle.image_width ? ' width="' ~ particle.image_width ~ '"' %} {% set imageheight = particle.image_height ? ' height="' ~ particle.image_height ~ '"' %} {# Set Masonry/Parallax #} {% set grid_masonry = particle.grid_masonry ? 'masonry: 1;' %} {% set grid_parallax = particle.grid_parallax ? 'parallax: ' ~ particle.grid_parallax ~ '' %} {# 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 Image Margin Top Class #} {% if particle.ic_alignment == 'bottom' or particle.ic_alignment == 'between' %} {% set image_top_cls = particle.image_margin_top != 'default' ? ' jl-margin-' ~ particle.image_margin_top|e ~ '-top' : ' jl-margin-top' %} {% endif %} {# Set Image Border Class #} {% set image_border_cls = particle.image_border != 'none' ? ' jl-border-' ~ particle.image_border|e ~ '' %} {# Set Card Max Width Class #} {% set card_maxwidth_cls = particle.card_maxwidth != 'none' ? ' jl-margin-auto jl-width-' ~ particle.card_maxwidth|e ~ '' %} {% set title_hover = (particle.title_hover ? ' class="jl-link-'~ particle.title_hover ~'"') %} {% set image_grid_column_gap = particle.image_grid_column_gap != 'default' ? ' jl-grid-column-' ~ particle.image_grid_column_gap ~ '' %} {% set image_grid_row_gap = particle.image_grid_row_gap != 'default' ? ' jl-grid-row-' ~ particle.image_grid_row_gap ~ '' %} {% if ( particle.image_grid_column_gap == particle.image_grid_row_gap ) and not (particle.image_grid_column_gap == 'default' and particle.image_grid_row_gap == 'default') %} {% set image_grid_cr_gap = ' jl-grid-' ~ particle.image_grid_column_gap ~ '' %} {% else %} {% set image_grid_cr_gap = image_grid_column_gap ~ image_grid_row_gap %} {% endif %} {# Set Item Content #} {% set item_content %} {% for item in particle.items %} {% if item.bgimage %} {% set item_blendmode = item.background_blendmode != 'inherit' ? ' jl-background-blend-' ~ item.background_blendmode|e ~ ' jl-background-primary jl-background-cover' %} {% set item_bgposition = item.background_position != 'auto' ? ' jl-background-' ~ item.background_position|e ~ '' %} {% set item_bgimage = ' style="background-image: url(' ~ item.bgimage|e ~ ');"' %} {% endif %} {# Set Link Scroll #} {% set linkscroll = item.buttonlink|e matches '/#/' ? ' jl-scroll' %} {# Set Image Content #} {% set item_media %} {% if particle.link_image and particle.link_card == false %}{% endif %} {% if item.icon %} {% else %} {% if item.image %}{% endif %} {% endif %} {% if particle.link_image and particle.link_card == false %}{% endif %} {% endset %} {# Set Title #} {% set item_title %} {% 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' %} {% endif %} {% if particle.link_title and particle.link_card == false %} {{ item.title|raw }} {% else %} {{ item.title|raw }} {% endif %} {% if particle.title_decoration == 'line' %} {% endif %} {% endif %} {% endset %} {# Set Meta #} {% set item_meta %} {% if item.meta %}
{{item.meta|raw}}
{% endif %} {% endset %} {# Set Button #} {% set item_button %} {% if item.buttonlink and item.buttontext %} {% if particle.link_card %} {% else %} {% endif %} {% endif %} {% endset %} {% if particle.grid_type == 'slider' %} {% if item.bgcolor != '' %}
  • {% else %}
  • {% endif %} {% else %} {% if item.bgcolor != '' %}
    {% else %}
  • {% 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.larger_slidenav ? ' jl-slidenav-large' %} {% set slidenav_next = 'jl-slidenav-next' %} {% set slidenav_prev = 'jl-slidenav-previous' %} {% endif %} {% set slidenav_text_color = particle.slidenav_color != 'default' ? ' jl-' ~ particle.slidenav_color ~ '' %} {# Set 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 %}