( ◞≼☸≽◟ ._ゝ◞≼☸≽◟)zcsdf吖 $this->applyFilter('./element.php', ['path']), 'name' => 'section', 'title' => 'Section', 'container' => true, 'width' => 500, 'defaults' => [ 'style' => 'default', 'width' => 'default', 'vertical_align' => 'middle', 'title_position' => 'top-left', 'title_rotation' => 'left', 'title_breakpoint' => 'xl', 'image_position' => 'center-center' ], 'templates' => [ 'render' => $this->applyFilter('./templates/template.php', ['path']), 'content' => $this->applyFilter('./templates/content.php', ['path']) ], 'fields' => [ 'style' => [ 'label' => 'Style', 'type' => 'select', 'options' => [ 'Default' => 'default', 'Muted' => 'muted', 'Primary' => 'primary', 'Secondary' => 'secondary' ] ], 'overlap' => [ 'description' => 'Sections will only overlap each other, if it\'s supported by the style. Otherwise it has no visual effect.', 'type' => 'checkbox', 'text' => 'Overlap the following section' ], 'image' => [ 'label' => 'Image', 'description' => 'Upload a background image.', 'type' => 'image', 'show' => '!video' ], 'video' => [ 'label' => 'Video', 'description' => 'Select a video file or enter a link from YouTube or Vimeo.', 'type' => 'video', 'show' => '!image' ], '_media' => [ 'type' => 'button-panel', 'panel' => 'builder-section-media', 'text' => 'Edit Settings', 'show' => 'image || video' ], 'preserve_color' => [ 'label' => 'Text Color', 'description' => 'Disable automatic text recoloring, for example when you use cards inside sections.', 'type' => 'checkbox', 'text' => 'Preserve color', 'show' => 'style == \'primary\' || style == \'secondary\'' ], 'text_color' => [ 'label' => 'Text Color', 'description' => 'Set light or dark color mode for text, buttons and controls.', 'type' => 'select', 'default' => '', 'options' => [ 'None' => '', 'Light' => 'light', 'Dark' => 'dark' ], 'show' => 'style != \'primary\' && style != \'secondary\' && (image || video)' ], 'width' => [ 'label' => 'Max Width', 'description' => 'Set the maximum content width.', 'type' => 'select', 'options' => [ 'Default' => 'default', 'XSmall' => 'xsmall', 'Small' => 'small', 'Large' => 'large', 'Expand' => 'expand', 'None' => '' ] ], 'width_expand' => [ 'label' => 'Expand One Side', 'description' => 'Expand the width of one side to the left or right while the other side keeps within the constraints of the max width.', 'type' => 'select', 'default' => '', 'options' => [ 'Don\'t expand' => '', 'To left' => 'left', 'To right' => 'right' ], 'show' => '$match(width, \'^(default|small|large)$\')' ], 'height' => [ 'label' => 'Height', 'description' => 'Enabling viewport height on a section that directly follows the header will subtract the header\'s height from it. On short pages, a section can be expanded to fill the browser window.', 'type' => 'select', 'default' => '', 'options' => [ 'None' => '', 'Viewport' => 'full', 'Viewport (Minus 20%)' => 'percent', 'Viewport (Minus the following section)' => 'section', 'Expand' => 'expand' ] ], 'vertical_align' => [ 'label' => 'Vertical Alignment', 'description' => 'Align the section content vertically, if the section height is larger than the content itself.', 'type' => 'select', 'default' => '', 'options' => [ 'Top' => '', 'Middle' => 'middle', 'Bottom' => 'bottom' ], 'show' => 'height == \'full\' || height == \'percent\' || height == \'section\'' ], 'padding' => [ 'label' => 'Padding', 'description' => 'Set the vertical padding.', 'type' => 'select', 'default' => '', 'options' => [ 'Default' => '', 'X-Small' => 'xsmall', 'Small' => 'small', 'Large' => 'large', 'X-Large' => 'xlarge', 'None' => 'none' ] ], 'padding_remove_top' => [ 'type' => 'checkbox', 'text' => 'Remove top padding', 'enable' => 'padding != \'none\'' ], 'padding_remove_bottom' => [ 'type' => 'checkbox', 'text' => 'Remove bottom padding', 'enable' => 'padding != \'none\'' ], 'header_transparent' => [ 'label' => 'Transparent Header', 'type' => 'select', 'default' => '', 'options' => [ 'None' => '', 'Overlay (Light)' => 'light', 'Overlay (Dark)' => 'dark' ] ], 'header_transparent_noplaceholder' => [ 'description' => 'Make the header transparent and overlay the section background. Select dark or light text. Note: This only applies, if the section directly follows the header.', 'type' => 'checkbox', 'text' => 'Pull content beneath navbar', 'enable' => 'header_transparent' ], 'animation' => [ 'label' => 'Animation', 'type' => 'select', 'default' => '', 'options' => [ 'None' => '', 'Fade' => 'fade', 'Scale Up' => 'scale-up', 'Scale Down' => 'scale-down', 'Slide Top Small' => 'slide-top-small', 'Slide Bottom Small' => 'slide-bottom-small', 'Slide Left Small' => 'slide-left-small', 'Slide Right Small' => 'slide-right-small', 'Slide Top Medium' => 'slide-top-medium', 'Slide Bottom Medium' => 'slide-bottom-medium', 'Slide Left Medium' => 'slide-left-medium', 'Slide Right Medium' => 'slide-right-medium', 'Slide Top 100%' => 'slide-top', 'Slide Bottom 100%' => 'slide-bottom', 'Slide Left 100%' => 'slide-left', 'Slide Right 100%' => 'slide-right' ] ], 'animation_delay' => [ 'description' => 'Apply an animation to elements once they enter the viewport. Slide animations can come into effect with a fixed offset or at 100% of the element\'s own size.', 'type' => 'checkbox', 'text' => 'Delay element animations.', 'enable' => 'animation', 'divider' => true ], 'title' => [ 'label' => 'Text', 'description' => 'Add an optional section title.' ], 'title_position' => [ 'label' => 'Position', 'description' => 'Define the title\'s position within the section.', 'type' => 'select', 'options' => [ 'Left Top' => 'top-left', 'Left Center' => 'center-left', 'Left Bottom' => 'bottom-left', 'Right Top' => 'top-right', 'Right Center' => 'center-right', 'Right Bottom' => 'bottom-right' ], 'enable' => 'title' ], 'title_rotation' => [ 'label' => 'Rotation', 'description' => 'Rotate the title 90 degrees clockwise or counterclockwise.', 'type' => 'select', 'options' => [ 'Left' => 'left', 'Right' => 'right' ], 'enable' => 'title' ], 'title_breakpoint' => [ 'label' => 'Breakpoint', 'description' => 'The section title will be displayed on the defined screen size and larger.', 'type' => 'select', 'options' => [ 'Always' => '', 'Small (Phone Landscape)' => 's', 'Medium (Tablet Landscape)' => 'm', 'Large (Desktop)' => 'l', 'X-Large (Large Screens)' => 'xl' ], 'enable' => 'title' ], 'status' => [ 'label' => 'Status', 'description' => 'Disable your section and publish it later. It will only be shown to the editor while the customizer is open.', 'type' => 'checkbox', 'text' => 'Disable section', 'attrs' => [ 'true-value' => 'disabled', 'false-value' => '' ] ], 'name' => $this->get('builder.name'), 'id' => $this->get('builder.id'), 'class' => $this->get('builder.cls'), 'css' => [ 'label' => 'CSS', 'description' => 'Enter your own custom CSS. The following selectors will be prefixed automatically for this element: .el-section', 'type' => 'editor', 'editor' => 'code', 'mode' => 'css', 'attrs' => [ 'debounce' => 500 ] ] ], 'fieldset' => [ 'default' => [ 'type' => 'tabs', 'fields' => [[ 'title' => 'Settings', 'fields' => ['style', 'overlap', 'image', 'video', '_media', 'preserve_color', 'text_color', 'width', 'width_expand', 'height', 'vertical_align', 'padding', 'padding_remove_top', 'padding_remove_bottom', 'header_transparent', 'header_transparent_noplaceholder', 'animation', 'animation_delay', [ 'label' => 'Title', 'type' => 'group', 'fields' => ['title', 'title_position', 'title_rotation', 'title_breakpoint'] ]] ], $this->get('builder.advanced')] ] ], 'panels' => [ 'builder-section-media' => [ 'title' => 'Image/Video', 'width' => 500, 'fields' => [ 'image_width' => [ 'label' => 'Width', 'attrs' => [ 'placeholder' => 'auto' ] ], 'image_height' => [ 'label' => 'Height', 'attrs' => [ 'placeholder' => 'auto' ] ], 'image_size' => [ 'label' => 'Image Size', 'description' => 'Determine whether the image will fit the section dimensions by clipping it or by filling the empty areas with the background color.', 'type' => 'select', 'default' => '', 'options' => [ 'Auto' => '', 'Cover' => 'cover', 'Contain' => 'contain' ], 'show' => 'image && !video' ], 'image_position' => [ 'label' => 'Image Position', 'description' => 'Set the initial background position, relative to the section layer.', 'type' => 'select', 'options' => [ 'Top Left' => 'top-left', 'Top Center' => 'top-center', 'Top Right' => 'top-right', 'Center Left' => 'center-left', 'Center Center' => 'center-center', 'Center Right' => 'center-right', 'Bottom Left' => 'bottom-left', 'Bottom Center' => 'bottom-center', 'Bottom Right' => 'bottom-right' ], 'show' => 'image && !video' ], 'image_effect' => [ 'label' => 'Image Effect', 'description' => 'Add a parallax effect or fix the background with regard to the viewport while scrolling.', 'type' => 'select', 'default' => '', 'options' => [ 'None' => '', 'Parallax' => 'parallax', 'Fixed' => 'fixed' ], 'show' => 'image && !video' ], 'image_parallax_bgx_start' => [ 'label' => 'Horizontal Start', 'type' => 'range', 'attrs' => [ 'min' => -600, 'max' => 600, 'step' => 10 ] ], 'image_parallax_bgx_end' => [ 'label' => 'Horizontal End', 'type' => 'range', 'attrs' => [ 'min' => -600, 'max' => 600, 'step' => 10 ] ], 'image_parallax_bgy_start' => [ 'label' => 'Vertical Start', 'type' => 'range', 'attrs' => [ 'min' => -600, 'max' => 600, 'step' => 10 ] ], 'image_parallax_bgy_end' => [ 'label' => 'Vertical End', 'type' => 'range', 'attrs' => [ 'min' => -600, 'max' => 600, 'step' => 10 ] ], 'image_parallax_easing' => [ 'label' => 'Parallax Easing', 'description' => 'Set the animation easing. Zero transitions at an even speed, a positive value starts off quickly while a negative value starts off slowly.', 'type' => 'range', 'attrs' => [ 'min' => -2, 'max' => 2, 'step' => 0.1000000000000000055511151231257827021181583404541015625 ], 'show' => 'image_effect == \'parallax\' && image && !video' ], 'image_parallax_breakpoint' => [ 'label' => 'Parallax Breakpoint', 'description' => 'Display the parallax effect only on this device width and larger.', 'type' => 'select', 'default' => '', 'options' => [ 'Always' => '', 'Small (Phone Landscape)' => 's', 'Medium (Tablet Landscape)' => 'm', 'Large (Desktop)' => 'l', 'X-Large (Large Screens)' => 'xl' ], 'show' => 'image_effect == \'parallax\' && image && !video' ], 'image_visibility' => [ 'label' => 'Image Visibility', 'description' => 'Display the image only on this device width and larger.', 'type' => 'select', 'default' => '', 'options' => [ 'Always' => '', 'Small (Phone Landscape)' => 's', 'Medium (Tablet Landscape)' => 'm', 'Large (Desktop)' => 'l', 'X-Large (Large Screens)' => 'xl' ], 'show' => 'image && !video' ], 'video_width' => [ 'label' => 'Width', 'default' => '' ], 'video_height' => [ 'label' => 'Height', 'default' => '' ], 'media_background' => [ 'label' => 'Background Color', 'description' => 'Use the background color in combination with blend modes, a transparent image or to fill the area, if the image doesn\'t cover the whole section.', 'type' => 'color' ], 'media_blend_mode' => [ 'label' => 'Blend Mode', 'description' => 'Determine how the image or video will blend with the background color.', 'type' => 'select', 'default' => '', 'options' => [ 'Normal' => '', 'Multiply' => 'multiply', 'Screen' => 'screen', 'Overlay' => 'overlay', 'Darken' => 'darken', 'Lighten' => 'lighten', 'Color-dodge' => 'color-dodge', 'Color-burn' => 'color-burn', 'Hard-light' => 'hard-light', 'Soft-light' => 'soft-light', 'Difference' => 'difference', 'Exclusion' => 'exclusion', 'Hue' => 'hue', 'Saturation' => 'saturation', 'Color' => 'color', 'Luminosity' => 'luminosity' ] ], 'media_overlay' => [ 'label' => 'Overlay Color', 'description' => 'Set an additional transparent overlay to soften the image or video.', 'type' => 'gradient', 'internal' => 'media_overlay_gradient' ] ], 'fieldset' => [ 'default' => [ 'fields' => [[ 'description' => 'Set the width and height in pixels (e.g. 600). Setting just one value preserves the original proportions. The image will be resized and cropped automatically.', 'name' => '_image_dimension', 'type' => 'grid', 'width' => '1-2', 'show' => 'image && !video', 'fields' => ['image_width', 'image_height'] ], 'image_size', 'image_position', 'image_effect', [ 'name' => '_image_parallax_bgx', 'type' => 'grid', 'width' => '1-2', 'show' => 'image_effect == \'parallax\' && image && !video', 'fields' => ['image_parallax_bgx_start', 'image_parallax_bgx_end'] ], [ 'name' => '_image_parallax_bgy', 'type' => 'grid', 'width' => '1-2', 'show' => 'image_effect == \'parallax\' && image && !video', 'fields' => ['image_parallax_bgy_start', 'image_parallax_bgy_end'] ], 'image_parallax_easing', 'image_parallax_breakpoint', 'image_visibility', [ 'description' => 'Set the video dimensions.', 'name' => '_video_dimension', 'type' => 'grid', 'width' => '1-2', 'show' => 'video && !image', 'fields' => ['video_width', 'video_height'] ], 'media_background', 'media_blend_mode', 'media_overlay'] ] ] ] ] ];