'', 'class' => '', 'visibility' => '', 'company' => '', 'stars' => '5', 'font_size' => '', 'text_align' => '', 'image' => '', 'image_width' => '80', 'pos' => 'left', 'link' => '', ), $atts)); ob_start(); $classes = array('testimonial-box'); $classes_img = array('icon-box-img','testimonial-image','circle'); $classes[] = 'icon-box-'.$pos; if ( $class ) $classes[] = $class; if ( $visibility ) $classes[] = $visibility; if($pos == 'center') $classes[] = 'text-center'; if($pos == 'left' || $pos == 'top') $classes[] = 'text-left'; if($pos == 'right') $classes[] = 'text-right'; if($font_size) $classes[] = 'is-'.$font_size; if($image_width) $image_width = 'width: '.intval($image_width).'px'; $star_width = array( '1' => 25, '2' => 35, '3' => 55, '4' => 75, '5' => 100, ); $star_row = ''; if ( isset( $star_width[ $stars ] ) ) { $star_row = sprintf('
', /* translators: %d is the star rating from 1-5. */ esc_attr( sprintf( __( 'Rated %d out of 5', 'flatsome' ), $stars ) ), $star_width[ $stars ], ); } $classes = implode(" ", $classes); $classes_img = implode(" ", $classes_img); ?>