__( 'Only for page builder.', 'maskitto-light' ), 'panels_icon' => 'dashicons dashicons-businessman', 'panels_groups' => 'theme-widgets' ) ); } /* Front-end display of widget. */ public function widget( $args, $instance ) { $testimonials = wp_count_posts( 'testimonials' ); $title = isset( $instance['title'] ) ? esc_attr( $instance['title'] ) : ''; $subtitle = isset( $instance['subtitle'] ) ? esc_attr( $instance['subtitle'] ) : ''; $remove_border = isset( $instance['remove_border'] ) ? intval( $instance['remove_border'] ) : ''; $limit = isset( $instance['limit'] ) ? intval( $instance['limit'] ) : ''; $widget_group = ( isset( $instance['widget_group'] ) ) ? esc_attr( $instance['widget_group'] ) : ''; if( isset( $testimonials->publish ) && $testimonials->publish > 0){ if( !isset($instance['limit']) || !$instance['limit']) : $limit = 3; endif; ?>

'testimonials', 'posts_per_page' => $limit, ); if( isset( $widget_group ) && $widget_group != '' ) : $loop_array2 = array( 'tax_query' => array( array( 'taxonomy' => 'testimonials-group', 'field' => 'slug', 'terms' => $widget_group, ), ), ); $loop_array = array_merge( $loop_array, $loop_array2 ); endif; $loop = new WP_Query( $loop_array ); while ( $loop->have_posts() ) : $loop->the_post(); $quote = esc_attr( get_post_meta( get_the_ID(), 'wpcf-quote', true )); $author_descr = esc_attr( get_post_meta( get_the_ID(), 'wpcf-author-description', true )); $image = esc_url( get_post_meta( get_the_ID(), 'wpcf-quote-image', true )); ?>

Types plugin XML file from our documentation to access this option.', 'maskitto-light' ); ?>