Файловый менеджер - Редактировать - /home/lmsyaran/public_html/templates/g5_hydrogen/custom/particles/jlcontenttoggle.html.twig
Назад
{% extends '@nucleus/partials/particle.html.twig' %} {% block stylesheets %} <style> {% if particle.particle_title_color or particle.particle_title_fontsize %} #{{ id }}.g5-particle-title { {% if particle.particle_title_color %}color: {{ particle.particle_title_color }};{% endif %}{% if particle.particle_title_fontsize %} font-size: {{particle.particle_title_fontsize}}px;{% endif %} } {% endif %} {% if particle.customize_toggle_color %} #{{ id }} .tm-tg-slider:before{ {% if particle.customize_toggle_color %}background-color: {{particle.customize_toggle_color}};{% endif %} } {% endif %} {% if particle.customize_toggle_background %} #{{ id }} .tm-tg-slider.tm-tg-round { {% if particle.customize_toggle_background %} background-color: {{particle.customize_toggle_background}};{% endif %} } {% endif %} {% if particle.customize_title_color or particle.customize_title_fontsize %} #{{ id }} .tm-title { {% if particle.customize_title_color %}color: {{particle.customize_title_color}};{% endif %}{% if particle.customize_title_fontsize %} font-size: {{particle.customize_title_fontsize}}px;{% endif %} } {% endif %} {% if particle.customize_content_color or particle.customize_content_fontsize %} #{{ id }} .tm-content { {% if particle.customize_content_color %}color: {{particle.customize_content_color}};{% endif %}{% if particle.customize_content_fontsize %} font-size: {{particle.customize_content_fontsize}}px;{% endif %} } {% endif %} {% if particle.toggle_border or particle.toggle_background_border %} #{{ id }} .tm-tg-slider:before { border-radius: {{ particle.toggle_border|default('50')|e }}%; } #{{ id }} .tm-tg-slider.tm-tg-round { border-radius: {{ particle.toggle_background_border|default('30')|e }} px; } {% endif %} #{{ id }} .jl-table { border: none; } </style> {% 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 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 ? '<div class="jl-position-cover" style="background-color: '~ particle.parallax_bg_overlay ~';"></div>') %} {% 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 %} <div data-src="{{ url(particle.parallax_image)|e }}" class="jl-background-norepeat{{ particle.parallax_bg_overlay ? ' jl-position-relative' : '' }}{{padding}} jl-background-{{particle.background_image_position|e}}{% if particle.background_image_size != 'auto' %} jl-background-{{particle.background_image_size|e}}{% endif %}{% if particle.parallax_bg_visibility != 'always' %} jl-background-image@{{particle.parallax_bg_visibility|e}}{% endif %}{% if particle.vertical_alignment != 'none' %} jl-flex jl-flex-{{particle.vertical_alignment|e}}{% endif %}{% if particle.parallax_text_color != 'default' %} jl-{{particle.parallax_text_color|e}}{% endif %}{% if particle.blendmode != 'inherit' %} jl-background-blend-{{particle.blendmode|e}}{% endif %}" {{parallax_bg_color|default('')|raw}}{% if particle.horizontal_start or particle.horizontal_end or particle.vertical_start or particle.vertical_end or particle.parallax_easing %} jl-parallax="{% if particle.horizontal_start or particle.horizontal_end %}bgx: {{particle.horizontal_start|e}},{{particle.horizontal_end|e}};{% endif %}{% if particle.vertical_start or particle.vertical_end %}bgy: {{particle.vertical_start|e}},{{particle.vertical_end|e}};{% endif %}{% if particle.parallax_bg_breakpoint != 'always' %} media: @{{particle.parallax_bg_breakpoint|e}};{% endif %}{{parallax_easing}}" {% endif %} jl-img {{viewport_height|raw}}> {{parallax_overlay|raw}} {% if particle.container_maxwidth != 'none' %} <div class="{{container_maxwidth}}"> {% endif %} {% endif %} {% endset %} {# End Parallax Background #} {% set endparallaxbackground %} {% if particle.parallax_image %} {% if particle.container_maxwidth != 'none' %} </div> {% endif %} </div> {% 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 Animation #} {% set animation %} {% if particle.animation != 'inherit' and particle.animation != 'parallax' %} 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 %}" {% 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' %} <span>{{particle.particle_title|raw}}</span> {% else %} {{particle.particle_title|raw}} {% endif %} </{{particle.particle_title_element|e}}> {% endif %} {% endset %} {# Set Title Before #} {% set title_before %} {% if particle.title_before %} <{{particle.title_element|e}} class="tm-title jl-margin-remove-bottom{% 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' %} <span>{{ particle.title_before|raw }}</span> {% else %} {{ particle.title_before|raw }} {% endif %} </{{particle.title_element|e}}> {% endif %} {% endset %} {# Set Title After #} {% set title_after %} {% if particle.title_after %} <{{particle.title_element|e}} class="tm-title jl-margin-remove-bottom{% 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' %} <span>{{ particle.title_after|raw }}</span> {% else %} {{ particle.title_after|raw }} {% endif %} </{{particle.title_element|e}}> {% endif %} {% endset %} {# Set Button Class #} {% set button_cls %} {% if particle.button_styles == 'link' %}jl-link{% elseif particle.button_styles == 'link-muted' or particle.button_styles == 'link-text' %}jl-{{particle.button_styles|e}}{% else %}jl-button jl-button-{{particle.button_styles|e}}{% endif %} {% endset %} {# Set Button Size #} {% set button_size %} {% if particle.button_styles == 'link' or particle.button_styles == 'link-muted' or particle.button_styles == 'link-text' or particle.button_styles == 'text' %}{% else %}{% if particle.link_button_size != 'default' %} jl-button-{{particle.link_button_size|e}}{% endif %}{% endif %} {% endset %} {# Set Toggle #} {% set toggle %} {% if particle.toggle_type == 'switcher' %} <div class="jl-flex jl-flex-middle{% if particle.toggle_align != 'inherit' %} jl-flex-{{particle.toggle_align|e}}{% if particle.toggle_breakpoint != 'always' %}@{{particle.toggle_breakpoint|e}}{% endif %}{% endif %}{% if particle.toggle_fallback != 'inherit' %} jl-flex-{{particle.toggle_fallback|e}}{% endif %}{% if particle.toggle_margin_top == 'default' %} jl-margin-top{% else %} jl-margin-{{ particle.toggle_margin_top|e }}-top{% endif %}"> {% if particle.title_before %}<div class="tm-sc-left">{{title_before}}</div>{% endif %} <div class="jl-margin-small-left jl-margin-small-right"> <label class="tm-tg-switch-label"> <input class="tm-tg-switch" type="checkbox" jl-toggle="target: .{% if particle.toggle_class %}{{particle.toggle_class}}{% else %}js-{{id}}{% endif %}; queued: true; animation: jl-animation-{{particle.toggle_animation}};"> <span class="tm-tg-slider tm-tg-round"></span> </label> </div> {% if particle.title_after %}<div class="tm-sc-right">{{title_after}}</div>{% endif %} </div> {% else %} <div class="{% if particle.link_margin_top == 'default' %}jl-margin-top{% else %}jl-margin-{{ particle.link_margin_top|e }}-top{% endif %}"> <button class="{{button_cls}}{{button_size}}" type="button" jl-toggle="target: #js-{{id}}; queued: true; animation: jl-animation-{{particle.toggle_animation}}">{{ particle.title_before|raw }}</button> </div> {% endif %} {% endset %} {% block particle %} {% if particle.enabled %} {{parallaxbackground}} {{particle_title_style}} <div id="{{ id }}" class="tm-content-wrapper{{content_maxwidth}}{% if particle.class %} {{ particle.class }}{% endif %}{{particle_alignment}}{% if particle.margin == 'inherit' %}{% elseif particle.margin == 'default' %} jl-margin{% else %} jl-margin-{{particle.margin|e}}{% endif %}{% if particle.visibility != 'inherit' %} jl-visible@{{particle.visibility|e}}{% endif %}"{{animation}}> {% if particle.toggle_position == 'top' %} {{toggle}} {% endif %} {% if not particle.toggle_class %} {% if particle.cardstyle == 'blank' %} {# Card Blank #} <div class="js-{{id}} jl-panel jl-margin-remove-first-child{% if particle.card_margin_top == 'default' %} jl-margin-top{% else %} jl-margin-{{ particle.card_margin_top|e }}-top{% endif %}"> {% if particle.content_before %} <div class="jl-panel tm-content before{% if particle.content_margin_top == 'default' %} jl-margin-top{% else %} jl-margin-{{ particle.content_margin_top|e }}-top{% endif %}{% if particle.content_style != 'default' %} jl-text-{{ particle.content_style|e }}{% endif %}{% if particle.content_text_color != 'default' %} jl-text-{{ particle.content_text_color|e }}{% endif %}"> {% set content_before = particle.twig ? gantry.theme.compile(particle.content_before) : particle.content_before %} {{ (particle.filter ? gantry.platform.filter(content_before) : content_before)|html|raw }} </div> {% endif %} </div> <div id="js-{{id}}" class="js-{{id}} jl-panel jl-margin-remove-first-child{% if particle.card_margin_top == 'default' %} jl-margin-top{% else %} jl-margin-{{ particle.card_margin_top|e }}-top{% endif %}" hidden> {% if particle.content_after %} <div class="jl-panel tm-content after{% if particle.content_margin_top == 'default' %} jl-margin-top{% else %} jl-margin-{{ particle.content_margin_top|e }}-top{% endif %}{% if particle.content_style != 'default' %} jl-text-{{ particle.content_style|e }}{% endif %}{% if particle.content_text_color != 'default' %} jl-text-{{ particle.content_text_color|e }}{% endif %}"> {% set content_after = particle.twig_after ? gantry.theme.compile(particle.content_after) : particle.content_after %} {{ (particle.filter_after ? gantry.platform.filter(content_after) : content_after)|html|raw }} </div> {% endif %} </div> {# End Card Blank #} {% else %} {# Card styles #} <div class="js-{{id}} jl-card jl-card-{{ particle.cardstyle }} jl-card-body{% if particle.cardsize != 'default' %} jl-card-{{ particle.cardsize }}{% endif %} jl-margin-remove-first-child{% if particle.card_margin_top == 'default' %} jl-margin-top{% else %} jl-margin-{{ particle.card_margin_top|e }}-top{% endif %}"> {% if particle.content_before %} <div class="jl-panel tm-content before{% if particle.content_margin_top == 'default' %} jl-margin-top{% else %} jl-margin-{{ particle.content_margin_top|e }}-top{% endif %}{% if particle.content_style != 'default' %} jl-text-{{ particle.content_style|e }}{% endif %}{% if particle.content_text_color != 'default' %} jl-text-{{ particle.content_text_color|e }}{% endif %}"> {% set content_before = particle.twig ? gantry.theme.compile(particle.content_before) : particle.content_before %} {{ (particle.filter ? gantry.platform.filter(content_before) : content_before)|html|raw }} </div> {% endif %} </div> <div id="js-{{id}}" class="js-{{id}} jl-card jl-card-{{ particle.cardstyle }} jl-card-body{% if particle.cardsize != 'default' %} jl-card-{{ particle.cardsize }}{% endif %} jl-margin-remove-first-child{% if particle.card_margin_top == 'default' %} jl-margin-top{% else %} jl-margin-{{ particle.card_margin_top|e }}-top{% endif %}" hidden> {% if particle.content_after %} <div class="jl-panel tm-content after{% if particle.content_margin_top == 'default' %} jl-margin-top{% else %} jl-margin-{{ particle.content_margin_top|e }}-top{% endif %}{% if particle.content_style != 'default' %} jl-text-{{ particle.content_style|e }}{% endif %}{% if particle.content_text_color != 'default' %} jl-text-{{ particle.content_text_color|e }}{% endif %}"> {% set content_after = particle.twig_after ? gantry.theme.compile(particle.content_after) : particle.content_after %} {{ (particle.filter_after ? gantry.platform.filter(content_after) : content_after)|html|raw }} </div> {% endif %} </div> {# End card style #} {% endif %} {% endif %} {% if particle.toggle_position == 'bottom' %} {{toggle}} {% endif %} </div> {{endparallaxbackground}} {% endif %} {% endblock %}
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Генерация страницы: 0.1 |
proxy
|
phpinfo
|
Настройка