%PDF-
%PDF-
Mini Shell
Mini Shell
<?php
/**
* Avada Options.
*
* @author ThemeFusion
* @copyright (c) Copyright by ThemeFusion
* @link https://classic.avada.com
* @package Avada
* @subpackage Core
* @since 4.0.0
*/
// Do not allow directly accessing this file.
if ( ! defined( 'ABSPATH' ) ) {
exit( 'Direct script access denied.' );
}
/**
* Lightbox
*
* @param array $sections An array of our sections.
* @return array
*/
function avada_options_section_lightbox( $sections ) {
$sections['lightbox'] = [
'label' => esc_html__( 'Lightbox', 'Avada' ),
'id' => 'heading_lightbox',
'is_panel' => true,
'priority' => 21,
'icon' => 'el-icon-info-circle',
'alt_icon' => 'fusiona-uniF602',
'fields' => [
'lightbox_general_section' => [
'label' => esc_html__( 'General', 'Avada' ),
'id' => 'lightbox_general_section',
'icon' => true,
'type' => 'sub-section',
'fields' => [
'status_lightbox' => [
'label' => esc_html__( 'Lightbox', 'Avada' ),
'description' => esc_html__( 'Turn on to enable the lightbox throughout the theme.', 'Avada' ),
'id' => 'status_lightbox',
'default' => '1',
'type' => 'switch',
],
'status_lightbox_single' => [
'label' => esc_html__( 'Lightbox For Featured Images On Single Post Pages', 'Avada' ),
'description' => esc_html__( 'Turn on to enable the lightbox on single blog and portfolio posts for the main featured images.', 'Avada' ),
'id' => 'status_lightbox_single',
'default' => '1',
'type' => 'switch',
'required' => [
[
'setting' => 'status_lightbox',
'operator' => '==',
'value' => '1',
],
],
],
'lightbox_behavior' => [
'label' => esc_html__( 'Lightbox Behavior', 'Avada' ),
'description' => esc_html__( 'Controls what the lightbox displays for single blog and portfolio posts.', 'Avada' ),
'id' => 'lightbox_behavior',
'default' => 'all',
'type' => 'select',
'choices' => [
'all' => esc_html__( 'First featured image of every post', 'Avada' ),
'individual' => esc_html__( 'Only featured images of individual post', 'Avada' ),
],
'required' => [
[
'setting' => 'status_lightbox',
'operator' => '==',
'value' => '1',
],
],
],
'lightbox_devices' => [
'label' => esc_html__( 'Lightbox Screen Sizes', 'Avada' ),
'description' => esc_html__( 'Choose the screen sizes the lightbox opens on, using the breakpoints of the visibility options. On other screen sizes, lightbox links open like normal links.', 'Avada' ),
'id' => 'lightbox_devices',
'default' => [ 'small', 'medium', 'large' ],
'type' => 'select',
'choices' => [
'small' => esc_html__( 'Small Screens', 'Avada' ),
'medium' => esc_html__( 'Medium Screens', 'Avada' ),
'large' => esc_html__( 'Large Screens', 'Avada' ),
],
'multi' => true,
'required' => [
[
'setting' => 'status_lightbox',
'operator' => '==',
'value' => '1',
],
],
'output' => [
[
'element' => 'helperElement',
'property' => 'dummy',
'js_callback' => [
'fusionGlobalScriptSet',
[
'globalVar' => 'awbLightboxVars',
'id' => 'lightbox_devices',
],
],
'sanitize_callback' => '__return_empty_string',
],
],
],
'lightbox_post_images' => [
'label' => esc_html__( 'Show Post Images in Lightbox', 'Avada' ),
'description' => esc_html__( 'Turn on to display post images in the lightbox that are inside the post content area.', 'Avada' ),
'id' => 'lightbox_post_images',
'default' => '1',
'type' => 'switch',
'required' => [
[
'setting' => 'status_lightbox',
'operator' => '==',
'value' => '1',
],
],
'output' => [
[
'element' => 'helperElement',
'property' => 'dummy',
'js_callback' => [
'fusionGlobalScriptSet',
[
'globalVar' => 'awbLightboxVars',
'id' => 'lightbox_post_images',
],
],
'sanitize_callback' => '__return_empty_string',
],
],
],
'lightbox_deeplinking' => [
'label' => esc_html__( 'Deeplinking', 'Avada' ),
'description' => esc_html__( 'Turn on to deeplink images in the lightbox.', 'Avada' ),
'id' => 'lightbox_deeplinking',
'default' => '1',
'type' => 'switch',
'required' => [
[
'setting' => 'status_lightbox',
'operator' => '==',
'value' => '1',
],
],
'output' => [
[
'element' => 'helperElement',
'property' => 'dummy',
'js_callback' => [
'fusionGlobalScriptSet',
[
'globalVar' => 'awbLightboxVars',
'id' => 'lightbox_deeplinking',
],
],
'sanitize_callback' => '__return_empty_string',
],
],
],
'lightbox_loop' => [
'label' => esc_html__( 'Loop Lightbox Gallery', 'Avada' ),
'description' => esc_html__( 'Turn on to loop the lightbox gallery.', 'Avada' ),
'id' => 'lightbox_loop',
'default' => '0',
'type' => 'switch',
'required' => [
[
'setting' => 'status_lightbox',
'operator' => '==',
'value' => '1',
],
],
'output' => [
[
'element' => 'helperElement',
'property' => 'dummy',
'js_callback' => [
'fusionGlobalScriptSet',
[
'globalVar' => 'awbLightboxVars',
'id' => 'lightbox_loop',
],
],
'sanitize_callback' => '__return_empty_string',
],
],
],
'lightbox_autoplay' => [
'label' => esc_html__( 'Autoplay the Lightbox Gallery', 'Avada' ),
'description' => esc_html__( 'Turn on to autoplay the lightbox gallery.', 'Avada' ),
'id' => 'lightbox_autoplay',
'default' => '0',
'type' => 'switch',
'required' => [
[
'setting' => 'status_lightbox',
'operator' => '==',
'value' => '1',
],
],
'output' => [
[
'element' => 'helperElement',
'property' => 'dummy',
'js_callback' => [
'fusionGlobalScriptSet',
[
'globalVar' => 'awbLightboxVars',
'id' => 'lightbox_autoplay',
],
],
'sanitize_callback' => '__return_empty_string',
],
],
],
'lightbox_slideshow_speed' => [
'label' => esc_html__( 'Slideshow Speed', 'Avada' ),
'description' => esc_html__( 'Controls the slideshow speed if autoplay is turned on. ex: 1000 = 1 second.', 'Avada' ),
'id' => 'lightbox_slideshow_speed',
'default' => '5000',
'type' => 'slider',
'choices' => [
'min' => '1000',
'max' => '20000',
'step' => '50',
],
'required' => [
[
'setting' => 'status_lightbox',
'operator' => '==',
'value' => '1',
],
],
'output' => [
[
'element' => 'helperElement',
'property' => 'dummy',
'js_callback' => [
'fusionGlobalScriptSet',
[
'globalVar' => 'awbLightboxVars',
'id' => 'lightbox_slideshow_speed',
],
],
'sanitize_callback' => '__return_empty_string',
],
],
],
'lightbox_mousewheel' => [
'label' => esc_html__( 'Mouse Wheel', 'Avada' ),
'description' => esc_html__( 'Controls what the mouse wheel does in the lightbox: move to the next or previous item, or zoom into the image. Pinching on a trackpad always zooms.', 'Avada' ),
'id' => 'lightbox_mousewheel',
'default' => 'navigate',
'type' => 'radio-buttonset',
'choices' => [
'navigate' => esc_html__( 'Navigate', 'Avada' ),
'zoom' => esc_html__( 'Zoom', 'Avada' ),
],
'required' => [
[
'setting' => 'status_lightbox',
'operator' => '==',
'value' => '1',
],
],
'output' => [
[
'element' => 'helperElement',
'property' => 'dummy',
'js_callback' => [
'fusionGlobalScriptSet',
[
'globalVar' => 'awbLightboxVars',
'id' => 'lightbox_mousewheel',
],
],
'sanitize_callback' => '__return_empty_string',
],
],
],
'lightbox_close_on_click' => [
'label' => esc_html__( 'Close on Background Click', 'Avada' ),
'description' => esc_html__( 'Turn on to close the lightbox when clicking next to the image or video.', 'Avada' ),
'id' => 'lightbox_close_on_click',
'default' => '1',
'type' => 'switch',
'required' => [
[
'setting' => 'status_lightbox',
'operator' => '==',
'value' => '1',
],
],
'output' => [
[
'element' => 'helperElement',
'property' => 'dummy',
'js_callback' => [
'fusionGlobalScriptSet',
[
'globalVar' => 'awbLightboxVars',
'id' => 'lightbox_close_on_click',
],
],
'sanitize_callback' => '__return_empty_string',
],
],
],
'lightbox_swipe_close' => [
'label' => esc_html__( 'Swipe to Close', 'Avada' ),
'description' => esc_html__( 'Turn on to close the lightbox on touch devices by swiping the image away: up or down, or sideways with the vertical slide direction.', 'Avada' ),
'id' => 'lightbox_swipe_close',
'default' => '1',
'type' => 'switch',
'required' => [
[
'setting' => 'status_lightbox',
'operator' => '==',
'value' => '1',
],
],
'output' => [
[
'element' => 'helperElement',
'property' => 'dummy',
'js_callback' => [
'fusionGlobalScriptSet',
[
'globalVar' => 'awbLightboxVars',
'id' => 'lightbox_swipe_close',
],
],
'sanitize_callback' => '__return_empty_string',
],
],
],
'lightbox_idle_hide' => [
'label' => esc_html__( 'Auto-Hide Controls', 'Avada' ),
'description' => esc_html__( 'Turn on to fade out the toolbar, arrows and thumbnails after a few seconds without activity. Moving the mouse, pressing a key or tapping the image brings them back.', 'Avada' ),
'id' => 'lightbox_idle_hide',
'default' => '0',
'type' => 'switch',
'required' => [
[
'setting' => 'status_lightbox',
'operator' => '==',
'value' => '1',
],
],
'output' => [
[
'element' => 'helperElement',
'property' => 'dummy',
'js_callback' => [
'fusionGlobalScriptSet',
[
'globalVar' => 'awbLightboxVars',
'id' => 'lightbox_idle_hide',
],
],
'sanitize_callback' => '__return_empty_string',
],
],
],
],
],
'lightbox_appearance_section' => [
'label' => esc_html__( 'Appearance', 'Avada' ),
'id' => 'lightbox_appearance_section',
'icon' => true,
'type' => 'sub-section',
'fields' => [
'lightbox_skin' => [
'label' => esc_html__( 'Lightbox Color Scheme', 'Avada' ),
'description' => esc_html__( 'Controls the lightbox colors. Light and Dark take them from the global color palette: Color 1 for the background, Color 8 for text and icons, Color 5 for accents; Dark swaps the first two. Custom Colors lets you set the three colors yourself.', 'Avada' ),
'id' => 'lightbox_skin',
'default' => 'light',
'type' => 'radio-buttonset',
'choices' => [
'light' => esc_html__( 'Light', 'Avada' ),
'dark' => esc_html__( 'Dark', 'Avada' ),
'colors' => esc_html__( 'Custom Colors', 'Avada' ),
],
'required' => [
[
'setting' => 'status_lightbox',
'operator' => '==',
'value' => '1',
],
],
'output' => [
[
'element' => 'helperElement',
'property' => 'dummy',
'js_callback' => [
'fusionGlobalScriptSet',
[
'globalVar' => 'awbLightboxVars',
'id' => 'lightbox_skin',
],
],
'sanitize_callback' => '__return_empty_string',
],
],
],
'lightbox_background_color' => [
'label' => esc_html__( 'Lightbox Background Color', 'Avada' ),
'description' => esc_html__( 'Controls the background color of the lightbox. The Background Opacity below applies to it.', 'Avada' ),
'id' => 'lightbox_background_color',
'default' => 'var(--awb-color1)',
'type' => 'color-alpha',
'required' => [
[
'setting' => 'status_lightbox',
'operator' => '==',
'value' => '1',
],
[
'setting' => 'lightbox_skin',
'operator' => '==',
'value' => 'colors',
],
],
'css_vars' => [
[
'name' => '--lightbox_background_color',
'callback' => [ 'sanitize_color' ],
],
],
],
'lightbox_text_color' => [
'label' => esc_html__( 'Lightbox Text & Icon Color', 'Avada' ),
'description' => esc_html__( 'Controls the color of text and icons in the lightbox. Button backgrounds and hover states are light tints of it.', 'Avada' ),
'id' => 'lightbox_text_color',
'default' => 'var(--awb-color8)',
'type' => 'color-alpha',
'required' => [
[
'setting' => 'status_lightbox',
'operator' => '==',
'value' => '1',
],
[
'setting' => 'lightbox_skin',
'operator' => '==',
'value' => 'colors',
],
],
'css_vars' => [
[
'name' => '--lightbox_text_color',
'callback' => [ 'sanitize_color' ],
],
],
],
'lightbox_accent_color' => [
'label' => esc_html__( 'Lightbox Accent Color', 'Avada' ),
'description' => esc_html__( 'Controls the accent color: the active thumbnail border, the slideshow progress bar, the loading spinner and the video consent button.', 'Avada' ),
'id' => 'lightbox_accent_color',
'default' => 'var(--awb-color5)',
'type' => 'color-alpha',
'required' => [
[
'setting' => 'status_lightbox',
'operator' => '==',
'value' => '1',
],
[
'setting' => 'lightbox_skin',
'operator' => '==',
'value' => 'colors',
],
],
'css_vars' => [
[
'name' => '--lightbox_accent_color',
'callback' => [ 'sanitize_color' ],
],
],
],
'lightbox_opacity' => [
'label' => esc_html__( 'Background Opacity', 'Avada' ),
'description' => esc_html__( 'Controls the opacity level for the background behind the lightbox.', 'Avada' ),
'id' => 'lightbox_opacity',
'default' => '0.9',
'type' => 'slider',
'choices' => [
'min' => '0.1',
'max' => '1',
'step' => '0.01',
],
'required' => [
[
'setting' => 'status_lightbox',
'operator' => '==',
'value' => '1',
],
],
'output' => [
[
'element' => 'helperElement',
'property' => 'dummy',
'js_callback' => [
'fusionGlobalScriptSet',
[
'globalVar' => 'awbLightboxVars',
'id' => 'lightbox_opacity',
],
],
'sanitize_callback' => '__return_empty_string',
],
],
],
'lightbox_backdrop_blur' => [
'label' => esc_html__( 'Backdrop Blur', 'Avada' ),
'description' => esc_html__( 'Set the blur of the page behind the lightbox in pixels, e.g. for frosted glass effects together with a lower background opacity. Set to 0 for no blur.', 'Avada' ),
'id' => 'lightbox_backdrop_blur',
'default' => '8',
'type' => 'slider',
'choices' => [
'min' => '0',
'max' => '40',
'step' => '1',
],
'required' => [
[
'setting' => 'status_lightbox',
'operator' => '==',
'value' => '1',
],
],
'css_vars' => [
[
'name' => '--lightbox_backdrop_blur',
'callback' => [ 'maybe_append_px', '' ],
],
],
],
'lightbox_opening_speed' => [
'label' => esc_html__( 'Opening Speed', 'Avada' ),
'description' => esc_html__( 'Controls how long the lightbox takes to open, in milliseconds. Images zoom from the clicked thumbnail where the browser supports it. Set to 0 to open instantly.', 'Avada' ),
'id' => 'lightbox_opening_speed',
'default' => '400',
'type' => 'slider',
'choices' => [
'min' => '0',
'max' => '1500',
'step' => '50',
],
'required' => [
[
'setting' => 'status_lightbox',
'operator' => '==',
'value' => '1',
],
],
'output' => [
[
'element' => 'helperElement',
'property' => 'dummy',
'js_callback' => [
'fusionGlobalScriptSet',
[
'globalVar' => 'awbLightboxVars',
'id' => 'lightbox_opening_speed',
],
],
'sanitize_callback' => '__return_empty_string',
],
],
],
'lightbox_transition' => [
'label' => esc_html__( 'Transition Effect', 'Avada' ),
'description' => esc_html__( 'Controls how the lightbox moves to another item with the arrows, keys, thumbnails or the slideshow. Swiping always slides.', 'Avada' ),
'id' => 'lightbox_transition',
'default' => 'slide',
'type' => 'radio-buttonset',
'choices' => [
'slide' => esc_html__( 'Slide', 'Avada' ),
'fade' => esc_html__( 'Fade', 'Avada' ),
'zoom' => esc_html__( 'Zoom', 'Avada' ),
],
'required' => [
[
'setting' => 'status_lightbox',
'operator' => '==',
'value' => '1',
],
],
'output' => [
[
'element' => 'helperElement',
'property' => 'dummy',
'js_callback' => [
'fusionGlobalScriptSet',
[
'globalVar' => 'awbLightboxVars',
'id' => 'lightbox_transition',
],
],
'sanitize_callback' => '__return_empty_string',
],
],
],
'lightbox_direction' => [
'label' => esc_html__( 'Slide Direction', 'Avada' ),
'description' => esc_html__( 'Controls whether items follow each other horizontally or vertically: the arrows, keys, swipes and the slide transition go that way.', 'Avada' ),
'id' => 'lightbox_direction',
'default' => 'horizontal',
'type' => 'radio-buttonset',
'choices' => [
'horizontal' => esc_html__( 'Horizontal', 'Avada' ),
'vertical' => esc_html__( 'Vertical', 'Avada' ),
],
'required' => [
[
'setting' => 'status_lightbox',
'operator' => '==',
'value' => '1',
],
],
'output' => [
[
'element' => 'helperElement',
'property' => 'dummy',
'js_callback' => [
'fusionGlobalScriptSet',
[
'globalVar' => 'awbLightboxVars',
'id' => 'lightbox_direction',
],
],
'sanitize_callback' => '__return_empty_string',
],
],
],
'lightbox_slide_speed' => [
'label' => esc_html__( 'Slide Transition Speed', 'Avada' ),
'description' => esc_html__( 'Controls how long moving to another item takes, in milliseconds, with the arrows, keys, thumbnails or the slideshow. Swiping follows the finger. Set to 0 to switch instantly.', 'Avada' ),
'id' => 'lightbox_slide_speed',
'default' => '400',
'type' => 'slider',
'choices' => [
'min' => '0',
'max' => '1500',
'step' => '50',
],
'required' => [
[
'setting' => 'status_lightbox',
'operator' => '==',
'value' => '1',
],
],
'output' => [
[
'element' => 'helperElement',
'property' => 'dummy',
'js_callback' => [
'fusionGlobalScriptSet',
[
'globalVar' => 'awbLightboxVars',
'id' => 'lightbox_slide_speed',
],
],
'sanitize_callback' => '__return_empty_string',
],
],
],
'lightbox_zoom' => [
'label' => esc_html__( 'Lightbox Image Zoom', 'Avada' ),
'description' => esc_html__( 'Controls the maximum zoom for images. Clicking or double-tapping the image zooms to it; pinching and the mouse wheel zoom anywhere up to it. Set to 1 to disable zoom.', 'Avada' ),
'id' => 'lightbox_zoom',
'default' => '2',
'type' => 'slider',
'choices' => [
'min' => '1',
'max' => '4',
'step' => '0.05',
],
'required' => [
[
'setting' => 'status_lightbox',
'operator' => '==',
'value' => '1',
],
],
'output' => [
[
'element' => 'helperElement',
'property' => 'dummy',
'js_callback' => [
'fusionGlobalScriptSet',
[
'globalVar' => 'awbLightboxVars',
'id' => 'lightbox_zoom',
],
],
'sanitize_callback' => '__return_empty_string',
],
],
],
'lightbox_slideshow_progress' => [
'label' => esc_html__( 'Slideshow Progress Bar', 'Avada' ),
'description' => esc_html__( 'Controls whether a progress bar shows at the top or the bottom of the lightbox while the slideshow runs.', 'Avada' ),
'id' => 'lightbox_slideshow_progress',
'default' => 'off',
'type' => 'radio-buttonset',
'choices' => [
'off' => esc_html__( 'Off', 'Avada' ),
'top' => esc_html__( 'Top', 'Avada' ),
'bottom' => esc_html__( 'Bottom', 'Avada' ),
],
'required' => [
[
'setting' => 'status_lightbox',
'operator' => '==',
'value' => '1',
],
],
'output' => [
[
'element' => 'helperElement',
'property' => 'dummy',
'js_callback' => [
'fusionGlobalScriptSet',
[
'globalVar' => 'awbLightboxVars',
'id' => 'lightbox_slideshow_progress',
],
],
'sanitize_callback' => '__return_empty_string',
],
],
],
'lightbox_scale_controls' => [
'label' => esc_html__( 'Scale Controls on Smaller Screens', 'Avada' ),
'description' => esc_html__( 'Turn on to scale the toolbar, arrows and thumbnails down gradually on screens narrower than 1280px, so large sizes set in the sections below still fit on phones. They never get smaller than the default sizes.', 'Avada' ),
'id' => 'lightbox_scale_controls',
'default' => '1',
'type' => 'switch',
'required' => [
[
'setting' => 'status_lightbox',
'operator' => '==',
'value' => '1',
],
],
'output' => [
[
'element' => 'helperElement',
'property' => 'dummy',
'js_callback' => [
'fusionGlobalScriptSet',
[
'globalVar' => 'awbLightboxVars',
'id' => 'lightbox_scale_controls',
],
],
'sanitize_callback' => '__return_empty_string',
],
],
],
],
],
'lightbox_toolbar_section' => [
'label' => esc_html__( 'Toolbar', 'Avada' ),
'id' => 'lightbox_toolbar_section',
'icon' => true,
'type' => 'sub-section',
'fields' => [
'lightbox_toolbar_position' => [
'label' => esc_html__( 'Toolbar Position', 'Avada' ),
'description' => esc_html__( 'Controls where the toolbar buttons sit at the top of the lightbox. The image counter takes the other side. In right-to-left languages, left and right swap.', 'Avada' ),
'id' => 'lightbox_toolbar_position',
'default' => 'right',
'type' => 'radio-buttonset',
'choices' => [
'left' => esc_html__( 'Left', 'Avada' ),
'center' => esc_html__( 'Center', 'Avada' ),
'right' => esc_html__( 'Right', 'Avada' ),
],
'required' => [
[
'setting' => 'status_lightbox',
'operator' => '==',
'value' => '1',
],
],
'output' => [
[
'element' => 'helperElement',
'property' => 'dummy',
'js_callback' => [
'fusionGlobalScriptSet',
[
'globalVar' => 'awbLightboxVars',
'id' => 'lightbox_toolbar_position',
],
],
'sanitize_callback' => '__return_empty_string',
],
],
],
'lightbox_counter' => [
'label' => esc_html__( 'Image Counter', 'Avada' ),
'description' => esc_html__( 'Turn on to display the position of the current item in a gallery, e.g. 2 / 8.', 'Avada' ),
'id' => 'lightbox_counter',
'default' => '1',
'type' => 'switch',
'required' => [
[
'setting' => 'status_lightbox',
'operator' => '==',
'value' => '1',
],
],
'output' => [
[
'element' => 'helperElement',
'property' => 'dummy',
'js_callback' => [
'fusionGlobalScriptSet',
[
'globalVar' => 'awbLightboxVars',
'id' => 'lightbox_counter',
],
],
'sanitize_callback' => '__return_empty_string',
],
],
],
'lightbox_gallery' => [
'label' => esc_html__( 'Gallery Start/Stop Button', 'Avada' ),
'description' => esc_html__( 'Turn on to display the gallery start and stop button.', 'Avada' ),
'id' => 'lightbox_gallery',
'default' => '1',
'type' => 'switch',
'required' => [
[
'setting' => 'status_lightbox',
'operator' => '==',
'value' => '1',
],
],
'output' => [
[
'element' => 'helperElement',
'property' => 'dummy',
'js_callback' => [
'fusionGlobalScriptSet',
[
'globalVar' => 'awbLightboxVars',
'id' => 'lightbox_gallery',
],
],
'sanitize_callback' => '__return_empty_string',
],
],
],
'lightbox_fullscreen' => [
'label' => esc_html__( 'Fullscreen Button', 'Avada' ),
'description' => esc_html__( 'Turn on to display the fullscreen button. It only shows in browsers that support fullscreen.', 'Avada' ),
'id' => 'lightbox_fullscreen',
'default' => '1',
'type' => 'switch',
'required' => [
[
'setting' => 'status_lightbox',
'operator' => '==',
'value' => '1',
],
],
'output' => [
[
'element' => 'helperElement',
'property' => 'dummy',
'js_callback' => [
'fusionGlobalScriptSet',
[
'globalVar' => 'awbLightboxVars',
'id' => 'lightbox_fullscreen',
],
],
'sanitize_callback' => '__return_empty_string',
],
],
],
'lightbox_download' => [
'label' => esc_html__( 'Download Button', 'Avada' ),
'description' => esc_html__( 'Turn on to display a button that downloads the current image or self-hosted video.', 'Avada' ),
'id' => 'lightbox_download',
'default' => '0',
'type' => 'switch',
'required' => [
[
'setting' => 'status_lightbox',
'operator' => '==',
'value' => '1',
],
],
'output' => [
[
'element' => 'helperElement',
'property' => 'dummy',
'js_callback' => [
'fusionGlobalScriptSet',
[
'globalVar' => 'awbLightboxVars',
'id' => 'lightbox_download',
],
],
'sanitize_callback' => '__return_empty_string',
],
],
],
'lightbox_social' => [
'label' => esc_html__( 'Social Sharing', 'Avada' ),
'description' => esc_html__( 'Turn on to display social sharing buttons on lightbox.', 'Avada' ),
'id' => 'lightbox_social',
'default' => '1',
'type' => 'switch',
'required' => [
[
'setting' => 'status_lightbox',
'operator' => '==',
'value' => '1',
],
],
'output' => [
[
'element' => 'helperElement',
'property' => 'dummy',
'js_callback' => [
'fusionGlobalScriptSet',
[
'globalVar' => 'awbLightboxVars',
'id' => 'lightbox_social',
],
],
'sanitize_callback' => '__return_empty_string',
],
],
],
'lightbox_social_style' => [
'label' => esc_html__( 'Social Sharing Style', 'Avada' ),
'description' => esc_html__( 'Controls how the sharing options show: a dropdown list with icons and names, or a grid of icons.', 'Avada' ),
'id' => 'lightbox_social_style',
'default' => 'list',
'type' => 'radio-buttonset',
'choices' => [
'list' => esc_html__( 'Dropdown List', 'Avada' ),
'grid' => esc_html__( 'Icon Grid', 'Avada' ),
],
'required' => [
[
'setting' => 'status_lightbox',
'operator' => '==',
'value' => '1',
],
[
'setting' => 'lightbox_social',
'operator' => '==',
'value' => '1',
],
],
'output' => [
[
'element' => 'helperElement',
'property' => 'dummy',
'js_callback' => [
'fusionGlobalScriptSet',
[
'globalVar' => 'awbLightboxVars',
'id' => 'lightbox_social_style',
],
],
'sanitize_callback' => '__return_empty_string',
],
],
],
'lightbox_toolbar_background' => [
'label' => esc_html__( 'Toolbar Button Background', 'Avada' ),
'description' => esc_html__( 'Turn on to display the toolbar buttons with a background. Turn off to show only the icons.', 'Avada' ),
'id' => 'lightbox_toolbar_background',
'default' => '1',
'type' => 'switch',
'required' => [
[
'setting' => 'status_lightbox',
'operator' => '==',
'value' => '1',
],
],
'css_vars' => [
[
'name' => '--lightbox_toolbar_background',
],
],
],
'lightbox_toolbar_icon_size' => [
'label' => esc_html__( 'Toolbar Icon Size', 'Avada' ),
'description' => esc_html__( 'Controls the size of the toolbar icons in pixels. The buttons grow with them.', 'Avada' ),
'id' => 'lightbox_toolbar_icon_size',
'default' => '18',
'type' => 'slider',
'choices' => [
'min' => '10',
'max' => '75',
'step' => '1',
],
'required' => [
[
'setting' => 'status_lightbox',
'operator' => '==',
'value' => '1',
],
],
'css_vars' => [
[
'name' => '--lightbox_toolbar_icon_size',
'callback' => [ 'maybe_append_px', '' ],
],
],
],
'lightbox_toolbar_spacing' => [
'label' => esc_html__( 'Toolbar Icon Spacing', 'Avada' ),
'description' => esc_html__( 'Controls the space between the toolbar buttons in pixels. Set to 0 to join the buttons into one bar, with the border radius only on its outer corners.', 'Avada' ),
'id' => 'lightbox_toolbar_spacing',
'default' => '6',
'type' => 'slider',
'choices' => [
'min' => '0',
'max' => '50',
'step' => '1',
],
'required' => [
[
'setting' => 'status_lightbox',
'operator' => '==',
'value' => '1',
],
],
'css_vars' => [
[
'name' => '--lightbox_toolbar_spacing',
'callback' => [ 'maybe_append_px', '' ],
],
],
],
'lightbox_toolbar_radius' => [
'label' => esc_html__( 'Toolbar Button Border Radius', 'Avada' ),
'description' => esc_html__( 'Controls the corner radius of the toolbar buttons in pixels. Set to 0 for square buttons; high values make them round.', 'Avada' ),
'id' => 'lightbox_toolbar_radius',
'default' => '50',
'type' => 'slider',
'choices' => [
'min' => '0',
'max' => '75',
'step' => '1',
],
'required' => [
[
'setting' => 'status_lightbox',
'operator' => '==',
'value' => '1',
],
],
'css_vars' => [
[
'name' => '--lightbox_toolbar_radius',
'callback' => [ 'maybe_append_px', '' ],
],
],
],
],
],
'lightbox_arrows_section' => [
'label' => esc_html__( 'Arrows', 'Avada' ),
'id' => 'lightbox_arrows_section',
'icon' => true,
'type' => 'sub-section',
'fields' => [
'lightbox_arrows' => [
'label' => esc_html__( 'Arrows', 'Avada' ),
'description' => esc_html__( 'Turn on to display arrows in the lightbox', 'Avada' ),
'id' => 'lightbox_arrows',
'default' => '1',
'type' => 'switch',
'required' => [
[
'setting' => 'status_lightbox',
'operator' => '==',
'value' => '1',
],
],
'output' => [
[
'element' => 'helperElement',
'property' => 'dummy',
'js_callback' => [
'fusionGlobalScriptSet',
[
'globalVar' => 'awbLightboxVars',
'id' => 'lightbox_arrows',
],
],
'sanitize_callback' => '__return_empty_string',
],
],
],
'lightbox_arrow_position' => [
'label' => esc_html__( 'Arrow Position', 'Avada' ),
'description' => esc_html__( 'Controls whether the arrows sit beside the items, or on the image, so images can use that space and display larger. Videos keep the arrows beside them. Keep the arrow button background on, so the arrows stay visible on bright images.', 'Avada' ),
'id' => 'lightbox_arrow_position',
'default' => 'beside',
'type' => 'radio-buttonset',
'choices' => [
'beside' => esc_html__( 'Beside', 'Avada' ),
'overlay' => esc_html__( 'Overlay', 'Avada' ),
],
'required' => [
[
'setting' => 'status_lightbox',
'operator' => '==',
'value' => '1',
],
[
'setting' => 'lightbox_arrows',
'operator' => '==',
'value' => '1',
],
],
'output' => [
[
'element' => 'helperElement',
'property' => 'dummy',
'js_callback' => [
'fusionGlobalScriptSet',
[
'globalVar' => 'awbLightboxVars',
'id' => 'lightbox_arrow_position',
],
],
'sanitize_callback' => '__return_empty_string',
],
],
],
'lightbox_arrow_background' => [
'label' => esc_html__( 'Arrow Button Background', 'Avada' ),
'description' => esc_html__( 'Turn on to display the previous and next buttons with a background. Turn off to show only the arrows.', 'Avada' ),
'id' => 'lightbox_arrow_background',
'default' => '1',
'type' => 'switch',
'required' => [
[
'setting' => 'status_lightbox',
'operator' => '==',
'value' => '1',
],
[
'setting' => 'lightbox_arrows',
'operator' => '==',
'value' => '1',
],
],
'css_vars' => [
[
'name' => '--lightbox_arrow_background',
],
],
],
'lightbox_arrow_icon_size' => [
'label' => esc_html__( 'Arrow Icon Size', 'Avada' ),
'description' => esc_html__( 'Controls the size of the previous and next arrows in pixels. The buttons grow with them.', 'Avada' ),
'id' => 'lightbox_arrow_icon_size',
'default' => '28',
'type' => 'slider',
'choices' => [
'min' => '10',
'max' => '100',
'step' => '1',
],
'required' => [
[
'setting' => 'status_lightbox',
'operator' => '==',
'value' => '1',
],
[
'setting' => 'lightbox_arrows',
'operator' => '==',
'value' => '1',
],
],
'css_vars' => [
[
'name' => '--lightbox_arrow_icon_size',
'callback' => [ 'maybe_append_px', '' ],
],
],
],
'lightbox_arrow_radius' => [
'label' => esc_html__( 'Arrow Button Border Radius', 'Avada' ),
'description' => esc_html__( 'Controls the corner radius of the previous and next buttons in pixels. Set to 0 for square buttons; high values make them round.', 'Avada' ),
'id' => 'lightbox_arrow_radius',
'default' => '50',
'type' => 'slider',
'choices' => [
'min' => '0',
'max' => '75',
'step' => '1',
],
'required' => [
[
'setting' => 'status_lightbox',
'operator' => '==',
'value' => '1',
],
[
'setting' => 'lightbox_arrows',
'operator' => '==',
'value' => '1',
],
],
'css_vars' => [
[
'name' => '--lightbox_arrow_radius',
'callback' => [ 'maybe_append_px', '' ],
],
],
],
],
],
'lightbox_thumbs_section' => [
'label' => esc_html__( 'Thumbnails', 'Avada' ),
'id' => 'lightbox_thumbs_section',
'icon' => true,
'type' => 'sub-section',
'fields' => [
'lightbox_thumbs_position' => [
'label' => esc_html__( 'Thumbnails Position', 'Avada' ),
'description' => esc_html__( 'Controls where the thumbnails of a gallery show. On small screens, thumbnails on the left or right move to the bottom.', 'Avada' ),
'id' => 'lightbox_thumbs_position',
'default' => 'right',
'type' => 'radio-buttonset',
'choices' => [
'top' => esc_html__( 'Top', 'Avada' ),
'right' => esc_html__( 'Right', 'Avada' ),
'bottom' => esc_html__( 'Bottom', 'Avada' ),
'left' => esc_html__( 'Left', 'Avada' ),
'none' => esc_html__( 'None', 'Avada' ),
],
'required' => [
[
'setting' => 'status_lightbox',
'operator' => '==',
'value' => '1',
],
],
'output' => [
[
'element' => 'helperElement',
'property' => 'dummy',
'js_callback' => [
'fusionGlobalScriptSet',
[
'globalVar' => 'awbLightboxVars',
'id' => 'lightbox_thumbs_position',
],
],
'sanitize_callback' => '__return_empty_string',
],
],
],
'lightbox_thumbs_size' => [
'label' => esc_html__( 'Thumbnail Size', 'Avada' ),
'description' => esc_html__( 'Controls the width and height of the thumbnails in pixels.', 'Avada' ),
'id' => 'lightbox_thumbs_size',
'default' => '64',
'type' => 'slider',
'choices' => [
'min' => '32',
'max' => '160',
'step' => '1',
],
'required' => [
[
'setting' => 'status_lightbox',
'operator' => '==',
'value' => '1',
],
[
'setting' => 'lightbox_thumbs_position',
'operator' => '!=',
'value' => 'none',
],
],
'css_vars' => [
[
'name' => '--lightbox_thumbs_size',
'callback' => [ 'maybe_append_px', '' ],
],
],
],
'lightbox_thumbs_radius' => [
'label' => esc_html__( 'Thumbnail Border Radius', 'Avada' ),
'description' => esc_html__( 'Controls the corner radius of the thumbnails in pixels.', 'Avada' ),
'id' => 'lightbox_thumbs_radius',
'default' => '6',
'type' => 'slider',
'choices' => [
'min' => '0',
'max' => '80',
'step' => '1',
],
'required' => [
[
'setting' => 'status_lightbox',
'operator' => '==',
'value' => '1',
],
[
'setting' => 'lightbox_thumbs_position',
'operator' => '!=',
'value' => 'none',
],
],
'css_vars' => [
[
'name' => '--lightbox_thumbs_radius',
'callback' => [ 'maybe_append_px', '' ],
],
],
],
],
],
'lightbox_captions_section' => [
'label' => esc_html__( 'Title & Caption', 'Avada' ),
'id' => 'lightbox_captions_section',
'icon' => true,
'type' => 'sub-section',
'fields' => [
'lightbox_title' => [
'label' => esc_html__( 'Title', 'Avada' ),
'description' => esc_html__( 'Turn on to display the image title in the lightbox.', 'Avada' ),
'id' => 'lightbox_title',
'default' => '1',
'type' => 'switch',
'required' => [
[
'setting' => 'status_lightbox',
'operator' => '==',
'value' => '1',
],
],
'output' => [
[
'element' => 'helperElement',
'property' => 'dummy',
'js_callback' => [
'fusionGlobalScriptSet',
[
'globalVar' => 'awbLightboxVars',
'id' => 'lightbox_title',
],
],
'sanitize_callback' => '__return_empty_string',
],
],
],
'lightbox_title_typography' => [
'label' => esc_html__( 'Title Typography', 'Avada' ),
'description' => esc_html__( 'These settings control the typography of the lightbox title. The color comes from the lightbox color scheme.', 'Avada' ),
'id' => 'lightbox_title_typography',
'default' => [
'font-family' => 'var(--awb-typography4-font-family)',
'font-size' => '15px',
'font-weight' => '600',
'line-height' => 'var(--awb-typography4-line-height)',
'letter-spacing' => 'var(--awb-typography4-letter-spacing)',
],
'type' => 'typography',
'global' => true,
'choices' => [
'font-family' => true,
'font-size' => true,
'font-weight' => true,
'line-height' => true,
'letter-spacing' => true,
],
'required' => [
[
'setting' => 'status_lightbox',
'operator' => '==',
'value' => '1',
],
[
'setting' => 'lightbox_title',
'operator' => '==',
'value' => '1',
],
],
'css_vars' => [
[
'name' => '--lightbox_title_typography-font-family',
'choice' => 'font-family',
'callback' => [ 'combined_font_family', 'lightbox_title_typography' ],
],
[
'name' => '--lightbox_title_typography-font-size',
'choice' => 'font-size',
],
[
'name' => '--lightbox_title_typography-font-weight',
'choice' => 'font-weight',
'callback' => [ 'font_weight_no_regular', '' ],
],
[
'name' => '--lightbox_title_typography-font-style',
'choice' => 'font-style',
],
[
'name' => '--lightbox_title_typography-line-height',
'choice' => 'line-height',
],
[
'name' => '--lightbox_title_typography-letter-spacing',
'choice' => 'letter-spacing',
'callback' => [ 'maybe_append_px', '' ],
],
],
],
'lightbox_desc' => [
'label' => esc_html__( 'Caption', 'Avada' ),
'description' => esc_html__( 'Turn on to display the image caption in the lightbox.', 'Avada' ),
'id' => 'lightbox_desc',
'default' => '1',
'type' => 'switch',
'required' => [
[
'setting' => 'status_lightbox',
'operator' => '==',
'value' => '1',
],
],
'output' => [
[
'element' => 'helperElement',
'property' => 'dummy',
'js_callback' => [
'fusionGlobalScriptSet',
[
'globalVar' => 'awbLightboxVars',
'id' => 'lightbox_desc',
],
],
'sanitize_callback' => '__return_empty_string',
],
],
],
'lightbox_caption_typography' => [
'label' => esc_html__( 'Caption Typography', 'Avada' ),
'description' => esc_html__( 'These settings control the typography of the lightbox caption. The color comes from the lightbox color scheme.', 'Avada' ),
'id' => 'lightbox_caption_typography',
'default' => [
'font-family' => 'var(--awb-typography4-font-family)',
'font-size' => '14px',
'font-weight' => 'var(--awb-typography4-font-weight)',
'line-height' => 'var(--awb-typography4-line-height)',
'letter-spacing' => 'var(--awb-typography4-letter-spacing)',
],
'type' => 'typography',
'global' => true,
'choices' => [
'font-family' => true,
'font-size' => true,
'font-weight' => true,
'line-height' => true,
'letter-spacing' => true,
],
'required' => [
[
'setting' => 'status_lightbox',
'operator' => '==',
'value' => '1',
],
[
'setting' => 'lightbox_desc',
'operator' => '==',
'value' => '1',
],
],
'css_vars' => [
[
'name' => '--lightbox_caption_typography-font-family',
'choice' => 'font-family',
'callback' => [ 'combined_font_family', 'lightbox_caption_typography' ],
],
[
'name' => '--lightbox_caption_typography-font-size',
'choice' => 'font-size',
],
[
'name' => '--lightbox_caption_typography-font-weight',
'choice' => 'font-weight',
'callback' => [ 'font_weight_no_regular', '' ],
],
[
'name' => '--lightbox_caption_typography-font-style',
'choice' => 'font-style',
],
[
'name' => '--lightbox_caption_typography-line-height',
'choice' => 'line-height',
],
[
'name' => '--lightbox_caption_typography-letter-spacing',
'choice' => 'letter-spacing',
'callback' => [ 'maybe_append_px', '' ],
],
],
],
'lightbox_caption_position' => [
'label' => esc_html__( 'Title & Caption Layout', 'Avada' ),
'description' => esc_html__( 'Controls whether the title and caption show outside the image, or over it.', 'Avada' ),
'id' => 'lightbox_caption_position',
'default' => 'outside',
'type' => 'radio-buttonset',
'choices' => [
'outside' => esc_html__( 'Outside', 'Avada' ),
'overlay' => esc_html__( 'Overlay', 'Avada' ),
],
'required' => [
[
'setting' => 'status_lightbox',
'operator' => '==',
'value' => '1',
],
],
'output' => [
[
'element' => 'helperElement',
'property' => 'dummy',
'js_callback' => [
'fusionGlobalScriptSet',
[
'globalVar' => 'awbLightboxVars',
'id' => 'lightbox_caption_position',
],
],
'sanitize_callback' => '__return_empty_string',
],
],
],
'lightbox_caption_background' => [
'label' => esc_html__( 'Title & Caption Overlay Background', 'Avada' ),
'description' => esc_html__( 'Controls what keeps overlay titles and captions readable: a fade of the background color, a frosted glass panel, or only a soft glow behind the letters.', 'Avada' ),
'id' => 'lightbox_caption_background',
'default' => 'gradient',
'type' => 'radio-buttonset',
'choices' => [
'gradient' => esc_html__( 'Fade', 'Avada' ),
'glass' => esc_html__( 'Glass', 'Avada' ),
'none' => esc_html__( 'None', 'Avada' ),
],
'required' => [
[
'setting' => 'status_lightbox',
'operator' => '==',
'value' => '1',
],
[
'setting' => 'lightbox_caption_position',
'operator' => '==',
'value' => 'overlay',
],
],
'output' => [
[
'element' => 'helperElement',
'property' => 'dummy',
'js_callback' => [
'fusionGlobalScriptSet',
[
'globalVar' => 'awbLightboxVars',
'id' => 'lightbox_caption_background',
],
],
'sanitize_callback' => '__return_empty_string',
],
],
],
'lightbox_caption_placement' => [
'label' => esc_html__( 'Title & Caption Position', 'Avada' ),
'description' => esc_html__( 'Controls whether the title and caption show at the top or the bottom of the image.', 'Avada' ),
'id' => 'lightbox_caption_placement',
'default' => 'bottom',
'type' => 'radio-buttonset',
'choices' => [
'top' => esc_html__( 'Top', 'Avada' ),
'bottom' => esc_html__( 'Bottom', 'Avada' ),
],
'required' => [
[
'setting' => 'status_lightbox',
'operator' => '==',
'value' => '1',
],
],
'output' => [
[
'element' => 'helperElement',
'property' => 'dummy',
'js_callback' => [
'fusionGlobalScriptSet',
[
'globalVar' => 'awbLightboxVars',
'id' => 'lightbox_caption_placement',
],
],
'sanitize_callback' => '__return_empty_string',
],
],
],
'lightbox_caption_align' => [
'label' => esc_html__( 'Title & Caption Alignment', 'Avada' ),
'description' => esc_html__( 'Controls the alignment of the title and caption, along the edges of the image. In right-to-left languages, left and right swap.', 'Avada' ),
'id' => 'lightbox_caption_align',
'default' => 'center',
'type' => 'radio-buttonset',
'choices' => [
'left' => esc_html__( 'Left', 'Avada' ),
'center' => esc_html__( 'Center', 'Avada' ),
'right' => esc_html__( 'Right', 'Avada' ),
],
'required' => [
[
'setting' => 'status_lightbox',
'operator' => '==',
'value' => '1',
],
],
'output' => [
[
'element' => 'helperElement',
'property' => 'dummy',
'js_callback' => [
'fusionGlobalScriptSet',
[
'globalVar' => 'awbLightboxVars',
'id' => 'lightbox_caption_align',
],
],
'sanitize_callback' => '__return_empty_string',
],
],
],
'lightbox_caption_hover' => [
'label' => esc_html__( 'Show Title & Caption on Hover Only', 'Avada' ),
'description' => esc_html__( 'Turn on to show overlay titles and captions only while the mouse is over the image. On touch screens, they show when the image is tapped. Without this, a tap on the image hides them.', 'Avada' ),
'id' => 'lightbox_caption_hover',
'default' => '0',
'type' => 'switch',
'required' => [
[
'setting' => 'status_lightbox',
'operator' => '==',
'value' => '1',
],
[
'setting' => 'lightbox_caption_position',
'operator' => '==',
'value' => 'overlay',
],
],
'output' => [
[
'element' => 'helperElement',
'property' => 'dummy',
'js_callback' => [
'fusionGlobalScriptSet',
[
'globalVar' => 'awbLightboxVars',
'id' => 'lightbox_caption_hover',
],
],
'sanitize_callback' => '__return_empty_string',
],
],
],
],
],
'lightbox_video_section' => [
'label' => esc_html__( 'Video', 'Avada' ),
'id' => 'lightbox_video_section',
'icon' => true,
'type' => 'sub-section',
'fields' => [
'lightbox_video_dimensions' => [
'label' => esc_html__( 'Slideshow Video Dimensions', 'Avada' ),
'description' => esc_html__( 'Controls the width and height for videos inside the lightbox.', 'Avada' ),
'id' => 'lightbox_video_dimensions',
'default' => [
'width' => '1280px',
'height' => '720px',
],
'type' => 'dimensions',
'units' => false,
'required' => [
[
'setting' => 'status_lightbox',
'operator' => '==',
'value' => '1',
],
],
'output' => [
[
'element' => 'helperElement',
'property' => 'dummy',
'js_callback' => [
'fusionGlobalScriptSet',
[
'globalVar' => 'awbLightboxVars',
'id' => 'lightbox_video_width',
'choice' => 'width',
],
],
'sanitize_callback' => '__return_empty_string',
],
[
'element' => 'helperElement',
'property' => 'dummy',
'js_callback' => [
'fusionGlobalScriptSet',
[
'globalVar' => 'awbLightboxVars',
'id' => 'lightbox_video_height',
'choice' => 'height',
],
],
'sanitize_callback' => '__return_empty_string',
],
],
],
'lightbox_video_autoplay' => [
'label' => esc_html__( 'Autoplay Videos', 'Avada' ),
'description' => esc_html__( 'Turn on to start videos as soon as they show in the lightbox.', 'Avada' ),
'id' => 'lightbox_video_autoplay',
'default' => '1',
'type' => 'switch',
'required' => [
[
'setting' => 'status_lightbox',
'operator' => '==',
'value' => '1',
],
],
'output' => [
[
'element' => 'helperElement',
'property' => 'dummy',
'js_callback' => [
'fusionGlobalScriptSet',
[
'globalVar' => 'awbLightboxVars',
'id' => 'lightbox_video_autoplay',
],
],
'sanitize_callback' => '__return_empty_string',
],
],
],
],
],
],
];
return $sections;
}
Zerion Mini Shell 1.0
Page not found – Jefferson County Republican Party
Skip to content
Page load link