<#
}
if ( settings.background_video_link ) {
let videoAttributes = 'autoplay muted playsinline';
if ( ! settings.background_play_once ) {
videoAttributes += ' loop';
}
view.addRenderAttribute( 'background-video-container', 'class', 'elementor-background-video-container' );
if ( ! settings.background_play_on_mobile ) {
view.addRenderAttribute( 'background-video-container', 'class', 'elementor-hidden-phone' );
}
#>
<# } #>
<# if ( 'boxed' === settings.content_width ) { #>
<# } #>
get_settings_for_display();
if ( 'video' !== $settings['background_background'] ) {
return;
}
if ( ! $settings['background_video_link'] ) {
return;
}
$video_properties = Embed::get_video_properties( $settings['background_video_link'] );
$this->add_render_attribute( 'background-video-container', 'class', 'elementor-background-video-container' );
if ( ! $settings['background_play_on_mobile'] ) {
$this->add_render_attribute( 'background-video-container', 'class', 'elementor-hidden-phone' );
}
?>
render_video_background();
if ( ! empty( $settings['shape_divider_top'] ) ) {
$this->render_shape_divider( 'top' );
}
if ( ! empty( $settings['shape_divider_bottom'] ) ) {
$this->render_shape_divider( 'bottom' );
}
}
/**
* After rendering the Container content. (Print the closing tag, etc.)
*
* @return void
*/
public function after_render() {
$settings = $this->get_settings_for_display();
if ( $this->is_boxed_container( $settings ) ) { ?>
print_html_tag(); ?>>
elements_manager->get_element_types( 'container' );
}
return Plugin::$instance->widgets_manager->get_widget_types( $element_data['widgetType'] );
}
/**
* Register the Container's layout controls.
*
* @return void
*/
protected function register_container_layout_controls() {
$this->start_controls_section(
'section_layout_container',
[
'label' => esc_html__( 'Container', 'elementor' ),
'tab' => Controls_Manager::TAB_LAYOUT,
]
);
$active_breakpoints = Plugin::$instance->breakpoints->get_active_breakpoints();
if ( array_key_exists( Breakpoints_Manager::BREAKPOINT_KEY_MOBILE_EXTRA, $active_breakpoints ) ) {
$min_affected_device = Breakpoints_Manager::BREAKPOINT_KEY_MOBILE_EXTRA;
} else {
$min_affected_device = Breakpoints_Manager::BREAKPOINT_KEY_TABLET;
}
$this->add_control(
'content_width',
[
'label' => esc_html__( 'Content Width', 'elementor' ),
'type' => Controls_Manager::SELECT,
'default' => 'boxed',
'options' => [
'boxed' => esc_html__( 'Boxed', 'elementor' ),
'full' => esc_html__( 'Full Width', 'elementor' ),
],
'render_type' => 'template',
'prefix_class' => 'e-con-',
'frontend_available' => true,
]
);
$width_control_settings = [
'label' => esc_html__( 'Width', 'elementor' ),
'type' => Controls_Manager::SLIDER,
'size_units' => [ 'px', '%', 'em', 'rem', 'vw', 'custom' ],
'range' => [
'px' => [
'min' => 500,
'max' => 1600,
],
'%' => [
'min' => 0,
'max' => 100,
],
'vw' => [
'min' => 0,
'max' => 100,
],
],
'default' => [
'unit' => '%',
],
'min_affected_device' => [
Breakpoints_Manager::BREAKPOINT_KEY_DESKTOP => $min_affected_device,
Breakpoints_Manager::BREAKPOINT_KEY_LAPTOP => $min_affected_device,
Breakpoints_Manager::BREAKPOINT_KEY_TABLET_EXTRA => $min_affected_device,
Breakpoints_Manager::BREAKPOINT_KEY_TABLET => $min_affected_device,
Breakpoints_Manager::BREAKPOINT_KEY_MOBILE_EXTRA => $min_affected_device,
],
'separator' => 'none',
];
$this->add_responsive_control(
'width',
array_merge( $width_control_settings, [
'selectors' => [
'{{WRAPPER}}' => '--width: {{SIZE}}{{UNIT}};',
],
'condition' => [
'content_width' => 'full',
],
'device_args' => [
Breakpoints_Manager::BREAKPOINT_KEY_DESKTOP => [
'placeholder' => [
'size' => 100,
'unit' => '%',
],
],
Breakpoints_Manager::BREAKPOINT_KEY_MOBILE => [
// The mobile width is not inherited from the higher breakpoint width controls.
'placeholder' => [
'size' => 100,
'unit' => '%',
],
],
],
] )
);
$this->add_responsive_control(
'boxed_width',
array_merge( $width_control_settings, [
'selectors' => [
'{{WRAPPER}}' => '--content-width: {{SIZE}}{{UNIT}};',
],
'condition' => [
'content_width' => 'boxed',
],
'default' => [
'unit' => 'px',
],
'device_args' => [
Breakpoints_Manager::BREAKPOINT_KEY_DESKTOP => [
// Use the default width from the kit as a placeholder.
'placeholder' => $this->active_kit->get_settings_for_display( 'container_width' ),
],
Breakpoints_Manager::BREAKPOINT_KEY_MOBILE => [
// The mobile width is not inherited from the higher breakpoint width controls.
'placeholder' => [
'size' => 100,
'unit' => '%',
],
],
],
] )
);
$this->add_responsive_control(
'min_height',
[
'label' => esc_html__( 'Min Height', 'elementor' ),
'type' => Controls_Manager::SLIDER,
'size_units' => [ 'px', 'em', 'rem', 'vh', 'custom' ],
'range' => [
'px' => [
'min' => 0,
'max' => 1440,
],
'vh' => [
'min' => 0,
'max' => 100,
],
],
'description' => sprintf(
esc_html__( 'To achieve full height Container use %s.', 'elementor' ),
'100vh'
),
'selectors' => [
'{{WRAPPER}}' => '--min-height: {{SIZE}}{{UNIT}};',
],
]
);
$this->add_group_control(
Group_Control_Flex_Container::get_type(),
[
'name' => 'flex',
'selector' => '{{WRAPPER}}',
'fields_options' => [
'gap' => [
'label' => esc_html_x( 'Gap between elements', 'Flex Container Control', 'elementor' ),
'device_args' => [
Breakpoints_Manager::BREAKPOINT_KEY_DESKTOP => [
// Use the default gap from the kit as a placeholder.
'placeholder' => $this->active_kit->get_settings_for_display( 'space_between_widgets' ),
],
],
],
],
]
);
$this->end_controls_section();
}
/**
* Register the Container's items layout controls.
*
* @return void
*/
protected function register_items_layout_controls() {
$this->start_controls_section(
'section_layout_additional_options',
[
'label' => esc_html__( 'Additional Options', 'elementor' ),
'tab' => Controls_Manager::TAB_LAYOUT,
]
);
$this->add_control(
'overflow',
[
'label' => esc_html__( 'Overflow', 'elementor' ),
'type' => Controls_Manager::SELECT,
'default' => '',
'options' => [
'' => esc_html__( 'Default', 'elementor' ),
'hidden' => esc_html__( 'Hidden', 'elementor' ),
'auto' => esc_html__( 'Auto', 'elementor' ),
],
'selectors' => [
'{{WRAPPER}}' => '--overflow: {{VALUE}}',
],
]
);
$possible_tags = [
'div' => 'div',
'header' => 'header',
'footer' => 'footer',
'main' => 'main',
'article' => 'article',
'section' => 'section',
'aside' => 'aside',
'nav' => 'nav',
'a' => 'a ' . esc_html__( '(link)', 'elementor' ),
];
$options = [
'' => esc_html__( 'Default', 'elementor' ),
] + $possible_tags;
$this->add_control(
'html_tag',
[
'label' => esc_html__( 'HTML Tag', 'elementor' ),
'type' => Controls_Manager::SELECT,
'options' => $options,
]
);
$this->add_control(
'link_note',
[
'type' => Controls_Manager::RAW_HTML,
'content_classes' => 'elementor-panel-alert elementor-panel-alert-warning',
'raw' => esc_html__( 'Don’t add links to elements nested in this container - it will break the layout.', 'elementor' ),
'condition' => [
'html_tag' => 'a',
],
]
);
$this->add_control(
'link',
[
'label' => esc_html__( 'Link', 'elementor' ),
'type' => Controls_Manager::URL,
'dynamic' => [
'active' => true,
],
'placeholder' => esc_html__( 'https://your-link.com', 'elementor' ),
'condition' => [
'html_tag' => 'a',
],
]
);
$this->end_controls_section();
}
/**
* Register the Container's layout tab.
*
* @return void
*/
protected function register_layout_tab() {
$this->register_container_layout_controls();
$this->register_items_layout_controls();
}
/**
* Register the Container's background controls.
*
* @return void
*/
protected function register_background_controls() {
$this->start_controls_section(
'section_background',
[
'label' => esc_html__( 'Background', 'elementor' ),
'tab' => Controls_Manager::TAB_STYLE,
]
);
$this->start_controls_tabs( 'tabs_background' );
/**
* Normal.
*/
$this->start_controls_tab(
'tab_background_normal',
[
'label' => esc_html__( 'Normal', 'elementor' ),
]
);
$this->add_group_control(
Group_Control_Background::get_type(),
[
'name' => 'background',
'types' => [ 'classic', 'gradient', 'video', 'slideshow' ],
'fields_options' => [
'background' => [
'frontend_available' => true,
],
'image' => [
'background_lazyload' => [
'active' => true,
'keys' => [ 'background_image', 'url' ],
],
],
],
]
);
$this->end_controls_tab();
/**
* Hover.
*/
$this->start_controls_tab(
'tab_background_hover',
[
'label' => esc_html__( 'Hover', 'elementor' ),
]
);
$this->add_group_control(
Group_Control_Background::get_type(),
[
'name' => 'background_hover',
'selector' => '{{WRAPPER}}:hover',
]
);
$this->add_control(
'background_hover_transition',
[
'label' => esc_html__( 'Transition Duration', 'elementor' ),
'type' => Controls_Manager::SLIDER,
'default' => [
'size' => 0.3,
],
'render_type' => 'ui',
'separator' => 'before',
'selectors' => [
'{{WRAPPER}}' => '--background-transition: {{SIZE}}s;',
],
]
);
$this->end_controls_tab();
$this->end_controls_tabs();
$this->end_controls_section();
}
/**
* Register the Container's background overlay controls.
*
* @return void
*/
protected function register_background_overlay_controls() {
$this->start_controls_section(
'section_background_overlay',
[
'label' => esc_html__( 'Background Overlay', 'elementor' ),
'tab' => Controls_Manager::TAB_STYLE,
]
);
$this->start_controls_tabs( 'tabs_background_overlay' );
/**
* Normal.
*/
$this->start_controls_tab(
'tab_background_overlay',
[
'label' => esc_html__( 'Normal', 'elementor' ),
]
);
$background_overlay_selector = '{{WRAPPER}}::before, {{WRAPPER}} > .elementor-background-video-container::before, {{WRAPPER}} > .e-con-inner > .elementor-background-video-container::before, {{WRAPPER}} > .elementor-background-slideshow::before, {{WRAPPER}} > .e-con-inner > .elementor-background-slideshow::before, {{WRAPPER}} > .elementor-motion-effects-container > .elementor-motion-effects-layer::before';
$this->add_group_control(
Group_Control_Background::get_type(),
[
'name' => 'background_overlay',
'selector' => $background_overlay_selector,
'fields_options' => [
'background' => [
'selectors' => [
// Hack to set the `::before` content in order to render it only when there is a background overlay.
$background_overlay_selector => '--background-overlay: \'\';',
],
],
'image' => [
'background_lazyload' => [
'active' => true,
'keys' => [ 'background_overlay_image', 'url' ],
],
],
],
]
);
$this->add_responsive_control(
'background_overlay_opacity',
[
'label' => esc_html__( 'Opacity', 'elementor' ),
'type' => Controls_Manager::SLIDER,
'default' => [
'size' => .5,
],
'range' => [
'px' => [
'max' => 1,
'step' => 0.01,
],
],
'selectors' => [
'{{WRAPPER}}' => '--overlay-opacity: {{SIZE}};',
],
'condition' => [
'background_overlay_background' => [ 'classic', 'gradient' ],
],
]
);
$this->add_group_control(
Group_Control_Css_Filter::get_type(),
[
'name' => 'css_filters',
'selector' => '{{WRAPPER}}::before',
'conditions' => [
'relation' => 'or',
'terms' => [
[
'name' => 'background_overlay_image[url]',
'operator' => '!==',
'value' => '',
],
[
'name' => 'background_overlay_color',
'operator' => '!==',
'value' => '',
],
],
],
]
);
$this->add_control(
'overlay_blend_mode',
[
'label' => esc_html__( 'Blend Mode', 'elementor' ),
'type' => Controls_Manager::SELECT,
'options' => [
'' => esc_html__( 'Normal', 'elementor' ),
'multiply' => esc_html__( 'Multiply', 'elementor' ),
'screen' => esc_html__( 'Screen', 'elementor' ),
'overlay' => esc_html__( 'Overlay', 'elementor' ),
'darken' => esc_html__( 'Darken', 'elementor' ),
'lighten' => esc_html__( 'Lighten', 'elementor' ),
'color-dodge' => esc_html__( 'Color Dodge', 'elementor' ),
'saturation' => esc_html__( 'Saturation', 'elementor' ),
'color' => esc_html__( 'Color', 'elementor' ),
'luminosity' => esc_html__( 'Luminosity', 'elementor' ),
],
'selectors' => [
'{{WRAPPER}}' => '--overlay-mix-blend-mode: {{VALUE}}',
],
'conditions' => [
'relation' => 'or',
'terms' => [
[
'name' => 'background_overlay_image[url]',
'operator' => '!==',
'value' => '',
],
[
'name' => 'background_overlay_color',
'operator' => '!==',
'value' => '',
],
],
],
]
);
$this->end_controls_tab();
/**
* Hover.
*/
$this->start_controls_tab(
'tab_background_overlay_hover',
[
'label' => esc_html__( 'Hover', 'elementor' ),
]
);
$background_overlay_hover_selector = '{{WRAPPER}}:hover::before, {{WRAPPER}}:hover > .elementor-background-video-container::before, {{WRAPPER}}:hover > .e-con-inner > .elementor-background-video-container::before, {{WRAPPER}} > .elementor-background-slideshow:hover::before, {{WRAPPER}} > .e-con-inner > .elementor-background-slideshow:hover::before';
$this->add_group_control(
Group_Control_Background::get_type(),
[
'name' => 'background_overlay_hover',
'selector' => $background_overlay_hover_selector,
'fields_options' => [
'background' => [
'selectors' => [
// Hack to set the `::before` content in order to render it only when there is a background overlay.
$background_overlay_hover_selector => '--background-overlay: \'\';',
],
],
],
]
);
$this->add_responsive_control(
'background_overlay_hover_opacity',
[
'label' => esc_html__( 'Opacity', 'elementor' ),
'type' => Controls_Manager::SLIDER,
'default' => [
'size' => .5,
],
'range' => [
'px' => [
'max' => 1,
'step' => 0.01,
],
],
'selectors' => [
'{{WRAPPER}}:hover' => '--overlay-opacity: {{SIZE}};',
],
'condition' => [
'background_overlay_hover_background' => [ 'classic', 'gradient' ],
],
]
);
$this->add_group_control(
Group_Control_Css_Filter::get_type(),
[
'name' => 'css_filters_hover',
'selector' => '{{WRAPPER}}:hover::before',
]
);
$this->add_control(
'background_overlay_hover_transition',
[
'label' => esc_html__( 'Transition Duration', 'elementor' ),
'type' => Controls_Manager::SLIDER,
'range' => [
'px' => [
'max' => 3,
'step' => 0.1,
],
],
'render_type' => 'ui',
'separator' => 'before',
'selectors' => [
'{{WRAPPER}}, {{WRAPPER}}::before' => '--overlay-transition: {{SIZE}}s;',
],
]
);
$this->end_controls_tab();
$this->end_controls_tabs();
$this->end_controls_section();
}
/**
* Register the Container's border controls.
*
* @return void
*/
protected function register_border_controls() {
$this->start_controls_section(
'section_border',
[
'label' => esc_html__( 'Border', 'elementor' ),
'tab' => Controls_Manager::TAB_STYLE,
]
);
$this->start_controls_tabs( 'tabs_border' );
/**
* Normal.
*/
$this->start_controls_tab(
'tab_border',
[
'label' => esc_html__( 'Normal', 'elementor' ),
]
);
$this->add_group_control(
Group_Control_Border::get_type(),
[
'name' => 'border',
]
);
$this->add_responsive_control(
'border_radius',
[
'label' => esc_html__( 'Border Radius', 'elementor' ),
'type' => Controls_Manager::DIMENSIONS,
'size_units' => [ 'px', '%', 'em', 'rem', 'custom' ],
'selectors' => [
'{{WRAPPER}}' => '--border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
]
);
$this->add_group_control(
Group_Control_Box_Shadow::get_type(),
[
'name' => 'box_shadow',
]
);
$this->end_controls_tab();
/**
* Hover.
*/
$this->start_controls_tab(
'tab_border_hover',
[
'label' => esc_html__( 'Hover', 'elementor' ),
]
);
$this->add_group_control(
Group_Control_Border::get_type(),
[
'name' => 'border_hover',
'selector' => '{{WRAPPER}}:hover',
]
);
$this->add_responsive_control(
'border_radius_hover',
[
'label' => esc_html__( 'Border Radius', 'elementor' ),
'type' => Controls_Manager::DIMENSIONS,
'size_units' => [ 'px', '%', 'em', 'rem', 'custom' ],
'selectors' => [
'{{WRAPPER}}:hover' => '--border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
]
);
$this->add_group_control(
Group_Control_Box_Shadow::get_type(),
[
'name' => 'box_shadow_hover',
'selector' => '{{WRAPPER}}:hover',
]
);
$this->add_control(
'border_hover_transition',
[
'label' => esc_html__( 'Transition Duration', 'elementor' ),
'type' => Controls_Manager::SLIDER,
'separator' => 'before',
'default' => [
'size' => 0.3,
],
'range' => [
'px' => [
'max' => 3,
'step' => 0.1,
],
],
'conditions' => [
'relation' => 'or',
'terms' => [
[
'name' => 'background_background',
'operator' => '!==',
'value' => '',
],
[
'name' => 'border_border',
'operator' => '!==',
'value' => '',
],
],
],
'selectors' => [
'{{WRAPPER}}, {{WRAPPER}}::before' => '--border-transition: {{SIZE}}s;',
],
]
);
$this->end_controls_tab();
$this->end_controls_tabs();
$this->end_controls_section();
}
/**
* Register the Container's shape dividers controls.
* TODO: Copied from `section.php`.
*
* @return void
*/
protected function register_shape_dividers_controls() {
$this->start_controls_section(
'section_shape_divider',
[
'label' => esc_html__( 'Shape Divider', 'elementor' ),
'tab' => Controls_Manager::TAB_STYLE,
]
);
$this->start_controls_tabs( 'tabs_shape_dividers' );
$shapes_options = [
'' => esc_html__( 'None', 'elementor' ),
];
foreach ( Shapes::get_shapes() as $shape_name => $shape_props ) {
$shapes_options[ $shape_name ] = $shape_props['title'];
}
foreach ( [
'top' => esc_html__( 'Top', 'elementor' ),
'bottom' => esc_html__( 'Bottom', 'elementor' ),
] as $side => $side_label ) {
$base_control_key = "shape_divider_$side";
$this->start_controls_tab(
"tab_$base_control_key",
[
'label' => $side_label,
]
);
$this->add_control(
$base_control_key,
[
'label' => esc_html__( 'Type', 'elementor' ),
'type' => Controls_Manager::SELECT,
'options' => $shapes_options,
'render_type' => 'none',
'frontend_available' => true,
]
);
$this->add_control(
$base_control_key . '_color',
[
'label' => esc_html__( 'Color', 'elementor' ),
'type' => Controls_Manager::COLOR,
'condition' => [
"shape_divider_$side!" => '',
],
'selectors' => [
"{{WRAPPER}} > .elementor-shape-$side .elementor-shape-fill, {{WRAPPER}} > .e-con-inner > .elementor-shape-$side .elementor-shape-fill" => 'fill: {{UNIT}};',
],
]
);
$this->add_responsive_control(
$base_control_key . '_width',
[
'label' => esc_html__( 'Width', 'elementor' ),
'type' => Controls_Manager::SLIDER,
'default' => [
'unit' => '%',
],
'tablet_default' => [
'unit' => '%',
],
'mobile_default' => [
'unit' => '%',
],
'range' => [
'%' => [
'min' => 100,
'max' => 300,
],
],
'condition' => [
"shape_divider_$side" => array_keys( Shapes::filter_shapes( 'height_only', Shapes::FILTER_EXCLUDE ) ),
],
'selectors' => [
"{{WRAPPER}} > .elementor-shape-$side svg, {{WRAPPER}} > .e-con-inner > .elementor-shape-$side svg" => 'width: calc({{SIZE}}{{UNIT}} + 1.3px)',
],
]
);
$this->add_responsive_control(
$base_control_key . '_height',
[
'label' => esc_html__( 'Height', 'elementor' ),
'type' => Controls_Manager::SLIDER,
'range' => [
'px' => [
'max' => 500,
],
],
'condition' => [
"shape_divider_$side!" => '',
],
'selectors' => [
"{{WRAPPER}} > .elementor-shape-$side svg, {{WRAPPER}} > .e-con-inner > .elementor-shape-$side svg" => 'height: {{SIZE}}{{UNIT}};',
],
]
);
$this->add_control(
$base_control_key . '_flip',
[
'label' => esc_html__( 'Flip', 'elementor' ),
'type' => Controls_Manager::SWITCHER,
'condition' => [
"shape_divider_$side" => array_keys( Shapes::filter_shapes( 'has_flip' ) ),
],
'selectors' => [
"{{WRAPPER}} > .elementor-shape-$side svg, {{WRAPPER}} > .e-con-inner > .elementor-shape-$side svg" => 'transform: translateX(-50%) rotateY(180deg)',
],
]
);
$this->add_control(
$base_control_key . '_negative',
[
'label' => esc_html__( 'Invert', 'elementor' ),
'type' => Controls_Manager::SWITCHER,
'frontend_available' => true,
'condition' => [
"shape_divider_$side" => array_keys( Shapes::filter_shapes( 'has_negative' ) ),
],
'render_type' => 'none',
]
);
$this->add_control(
$base_control_key . '_above_content',
[
'label' => esc_html__( 'Bring to Front', 'elementor' ),
'type' => Controls_Manager::SWITCHER,
'selectors' => [
"{{WRAPPER}} > .elementor-shape-$side, {{WRAPPER}} > .e-con-inner > .elementor-shape-$side" => 'z-index: 2; pointer-events: none',
],
'condition' => [
"shape_divider_$side!" => '',
],
]
);
$this->end_controls_tab();
}
$this->end_controls_tabs();
$this->end_controls_section();
}
/**
* Register the Container's style tab.
*
* @return void
*/
protected function register_style_tab() {
$this->register_background_controls();
$this->register_background_overlay_controls();
$this->register_border_controls();
$this->register_shape_dividers_controls();
}
/**
* Register the Container's advanced style controls.
*
* @return void
*/
protected function register_advanced_controls() {
$this->start_controls_section(
'section_layout',
[
'label' => esc_html__( 'Layout', 'elementor' ),
'tab' => Controls_Manager::TAB_ADVANCED,
]
);
$this->add_responsive_control(
'margin',
[
'label' => esc_html__( 'Margin', 'elementor' ),
'type' => Controls_Manager::DIMENSIONS,
'size_units' => [ 'px', '%', 'em', 'rem', 'vw', 'custom' ],
'selectors' => [
'{{WRAPPER}}' => '--margin-top: {{TOP}}{{UNIT}}; --margin-right: {{RIGHT}}{{UNIT}}; --margin-bottom: {{BOTTOM}}{{UNIT}}; --margin-left:{{LEFT}}{{UNIT}};',
],
]
);
$this->add_responsive_control(
'padding',
[
'label' => esc_html__( 'Padding', 'elementor' ),
'type' => Controls_Manager::DIMENSIONS,
'size_units' => [ 'px', '%', 'em', 'rem', 'vw', 'custom' ],
'selectors' => [
'{{WRAPPER}}' => '--padding-top: {{TOP}}{{UNIT}}; --padding-right: {{RIGHT}}{{UNIT}}; --padding-bottom: {{BOTTOM}}{{UNIT}}; --padding-left: {{LEFT}}{{UNIT}};',
],
]
);
$this->add_group_control(
Group_Control_Flex_Item::get_type(),
[
'name' => '_flex',
'include' => [
'align_self',
'order',
'order_custom',
'size',
'grow',
'shrink',
],
'selector' => '{{WRAPPER}}.e-con', // Hack to increase specificity.
'separator' => 'before',
]
);
$this->add_control(
'position_description',
[
'raw' => '