experiments->is_feature_active( 'e_dom_optimization' ) ) { ?>
experiments->is_feature_active( 'e_dom_optimization' ) ) { ?>
get_html_tag(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
?>>
get_data( 'isInner' ) ? 'inner' : 'top';
$this->add_render_attribute(
'_wrapper', 'class', [
'elementor-section',
'elementor-' . $section_type . '-section',
]
);
parent::add_render_attributes();
}
/**
* Get default child type.
*
* Retrieve the section child type based on element data.
*
* @since 1.0.0
* @access protected
*
* @param array $element_data Element ID.
*
* @return Element_Base Section default child type.
*/
protected function _get_default_child_type( array $element_data ) {
return Plugin::$instance->elements_manager->get_element_types( 'column' );
}
/**
* Get HTML tag.
*
* Retrieve the section element HTML tag.
*
* @since 1.5.3
* @access private
*
* @return string Section HTML tag.
*/
protected function get_html_tag() {
$html_tag = $this->get_settings( 'html_tag' );
if ( empty( $html_tag ) ) {
$html_tag = 'section';
}
return Utils::validate_html_tag( $html_tag );
}
/**
* Print section shape divider.
*
* Used to generate the shape dividers HTML.
*
* @since 1.3.0
* @access private
*
* @param string $side Shape divider side, used to set the shape key.
*/
protected function print_shape_divider( $side ) {
$settings = $this->get_active_settings();
$base_setting_key = "shape_divider_$side";
$negative = ! empty( $settings[ $base_setting_key . '_negative' ] );
$shape_path = Shapes::get_shape_path( $settings[ $base_setting_key ], $negative );
if ( ! is_file( $shape_path ) || ! is_readable( $shape_path ) ) {
return;
}
?>