print_render_attribute_string( $wrapper_attribute_string ); ?>>
print_render_attribute_string( '_background_overlay' ); ?>>
print_render_attribute_string( '_widget_wrapper' ); ?>>
experiments->is_feature_active( 'e_dom_optimization' ) ) { ?>
get_html_tag(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>>
get_data( 'isInner' );
$column_type = ! empty( $is_inner ) ? 'inner' : 'top';
$settings = $this->get_settings();
$this->add_render_attribute(
'_wrapper', 'class', [
'elementor-column',
'elementor-col-' . $settings['_column_size'],
'elementor-' . $column_type . '-column',
]
);
parent::add_render_attributes();
}
/**
* Get default child type.
*
* Retrieve the column child type based on element data.
*
* @since 1.0.0
* @access protected
*
* @param array $element_data Element ID.
*
* @return Element_Base|false Column default child type.
*/
protected function _get_default_child_type( array $element_data ) {
if ( 'section' === $element_data['elType'] ) {
return Plugin::$instance->elements_manager->get_element_types( 'section' );
}
if ( 'container' === $element_data['elType'] ) {
return Plugin::$instance->elements_manager->get_element_types( 'container' );
}
// If the element doesn't exists (disabled element, experiment, etc.), return false to prevent errors.
if ( empty( $element_data['widgetType'] ) ) {
return false;
}
return Plugin::$instance->widgets_manager->get_widget_types( $element_data['widgetType'] );
}
/**
* Get HTML tag.
*
* Retrieve the column element HTML tag.
*
* @since 1.5.3
* @access private
*
* @return string Column HTML tag.
*/
private function get_html_tag() {
$html_tag = $this->get_settings( 'html_tag' );
if ( empty( $html_tag ) ) {
$html_tag = 'div';
}
return Utils::validate_html_tag( $html_tag );
}
}