esc_html__( 'Aadi Testimonial Slider Section', 'aadi' ),array(300,300) ) );
}
/* Displays the Widget in the front-end */
function widget($args, $instance){
extract($args);
global $post;
$title = apply_filters('widget_title', empty($instance['title']) ? ' ' : $instance['title']);
$cat= $instance['cat'];
$posts_number = empty($instance['posts_number']) ? '' : $instance['posts_number'];
?>
$post_type,'category_name'=>$cat);
$queryObject = new WP_Query($query);
if ($queryObject->have_posts()):
while ($queryObject->have_posts()):
$queryObject->the_post();
$post=get_post(get_the_ID());
?>
post_title;?>
'What People Says', 'posts_number'=>'4', 'cat'=>'testimonial') );
$title = htmlspecialchars($instance['title']);
$cat = $instance['cat'];
$posts_number = (int) $instance['posts_number'];
# Title
echo '';
echo '';
echo '';
} }// end ShowPosts class
function aadi_ShowTestimonialSliderInit() {
register_widget('Aadi_TestimonialSlider');
}
add_action('widgets_init', 'aadi_ShowTestimonialSliderInit');
?>