' . $stars_html . '
';
}
private function print_icon( $slide, $element_key ) {
$migration_allowed = Icons_Manager::is_migration_allowed();
if ( ! isset( $slide['social_icon'] ) && ! $migration_allowed ) {
// add old default
$slide['social_icon'] = 'fa fa-twitter';
}
if ( empty( $slide['social_icon'] ) && empty( $slide['selected_social_icon'] ) ) {
return '';
}
$migrated = isset( $slide['__fa4_migrated']['selected_social_icon'] );
$is_new = empty( $slide['social_icon'] ) && $migration_allowed;
$social = '';
if ( $is_new || $migrated ) {
ob_start();
Icons_Manager::render_icon( $slide['selected_social_icon'], [ 'aria-hidden' => 'true' ] );
$icon = ob_get_clean();
} else {
$icon = 'get_render_attribute_string( 'icon_wrapper_' . $element_key ) . '>' . $icon . '
'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
}
protected function print_slide( array $slide, array $settings, $element_key ) {
$lazyload = 'yes' === $this->get_settings( 'lazyload' );
$this->add_render_attribute( $element_key . '-testimonial', [
'class' => 'elementor-testimonial',
] );
$this->add_render_attribute( $element_key . '-testimonial', [
'class' => 'elementor-repeater-item-' . $slide['_id'],
] );
if ( ! empty( $slide['image']['url'] ) ) {
$img_src = $this->get_slide_image_url( $slide, $settings );
if ( $lazyload ) {
$img_attribute['class'] = 'swiper-lazy';
$img_attribute['data-src'] = $img_src;
} else {
$img_attribute['src'] = $img_src;
}
$img_attribute['alt'] = $this->get_slide_image_alt_attribute( $slide );
$this->add_render_attribute( $element_key . '-image', $img_attribute );
}
?>
print_render_attribute_string( $element_key . '-testimonial' ); ?>>
add_render_attribute( $header_element, 'class', 'elementor-testimonial__header' );
if ( ! empty( $link_url ) ) {
$this->add_link_attributes( $header_element, $slide['link'] );
}
?>
< print_render_attribute_string( $header_element ); ?>>
print_render_attribute_string( $element_key . '-image' ); ?>>
print_cite( $slide, $settings ); ?>
print_icon( $slide, $element_key ); ?>
>
print_slider();
}
public function get_group_name() {
return 'carousel';
}
}