%9$s
%8$s
%12$s
%13$s
%2$s
%5$s
%6$s
%1$s
%7$s
',
$content,
et_core_esc_previously( $image ),
$this->module_id(),
$this->module_classname( $render_slug ),
et_core_esc_previously( $name ), // #5
et_core_esc_previously( $position ),
$social_links,
$video_background,
$parallax_image_background,
et_core_esc_previously( $data_background_layout ), // #10
et_core_esc_previously( $muti_view_data_attr ),
et_core_esc_previously( $this->background_pattern() ), // #12
et_core_esc_previously( $this->background_mask() ) // #13
);
return $output;
}
/**
* Check if image has svg extension
*
* @param string $image_url Image URL.
*
* @return bool
*/
public function is_svg( $image_url ) {
if ( ! $image_url ) {
return false;
}
$image_pathinfo = pathinfo( $image_url );
return isset( $image_pathinfo['extension'] ) ? 'svg' === $image_pathinfo['extension'] : false;
}
/**
* Filter multi view value.
*
* @since 3.27.1
*
* @see ET_Builder_Module_Helper_MultiViewOptions::filter_value
*
* @param mixed $raw_value Props raw value.
* @param array $args {
* Context data.
*
* @type string $context Context param: content, attrs, visibility, classes.
* @type string $name Module options props name.
* @type string $mode Current data mode: desktop, hover, tablet, phone.
* @type string $attr_key Attribute key for attrs context data. Example: src, class, etc.
* @type string $attr_sub_key Attribute sub key that availabe when passing attrs value as array such as styes. Example: padding-top, margin-botton, etc.
* }
* @param ET_Builder_Module_Helper_MultiViewOptions $multi_view Multiview object instance.
*
* @return mixed
*/
public function multi_view_filter_value( $raw_value, $args, $multi_view ) {
$name = et_()->array_get( $args, 'name', '' );
$mode = et_()->array_get( $args, 'mode', '' );
$context = et_()->array_get( $args, 'context', '' );
$fields_need_escape = array(
'name',
'position',
);
if ( $raw_value && in_array( $name, $fields_need_escape, true ) ) {
return $this->_esc_attr( $multi_view->get_name_by_mode( $name, $mode ), 'none', $raw_value );
}
if ( 'image_url' === $name && 'classes' === $context ) {
$raw_value = $raw_value ? $this->is_svg( $raw_value ) : false;
}
return $raw_value;
}
}
if ( et_builder_should_load_all_module_data() ) {
new ET_Builder_Module_Team_Member();
}