%9$s
%8$s
%12$s
%13$s
%7$s
',
$multi_view_testimonial_content,
et_core_esc_previously( $author ),
$this->module_id(),
$this->module_classname( $render_slug ),
et_core_esc_previously( $testimonials_metas_string ), // #5
'', // Deprecated
$portrait_image,
$video_background,
$parallax_image_background,
et_core_esc_previously( $data_background_layout ), // #10
et_core_esc_previously( $multi_view_icon_off_data_attr ),
et_core_esc_previously( $this->background_pattern() ), // #12
et_core_esc_previously( $this->background_mask() ) // #13
);
return $output;
}
/**
* 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 ) {
$context = et_()->array_get( $args, 'context', '' );
$name = et_()->array_get( $args, 'name', '' );
$mode = et_()->array_get( $args, 'mode', '' );
$url = $this->props['url'];
$link_target = 'on' === $this->props['url_new_window'] ? 'target="_blank"' : '';
$fields_need_escape = array(
'author',
'job_title',
'company_name',
);
if ( ! $raw_value ) {
return $raw_value;
}
if ( $raw_value && 'content' === $context && in_array( $name, $fields_need_escape, true ) ) {
$raw_value = $this->_esc_attr( $multi_view->get_name_by_mode( $name, $mode ), 'none', $raw_value );
if ( $url && $raw_value ) {
if ( 'author' === $name && ! $this->_esc_attr( $multi_view->get_name_by_mode( 'company_name', $mode ) ) ) {
$raw_value = sprintf(
'