__('Display Recent posts on your sites', 'awada'),) // Args ); } public function widget($args, $instance) { $title = !empty($instance['title']) ? apply_filters('widget_title', $instance['title']) : 'Receent Posts'; $number_of_posts = !empty($instance['number_of_posts']) ? apply_filters('widget_title', $instance['number_of_posts']) : 5; $rmp_url = !empty($instance['rmp_url']) ? apply_filters('rmp_url', $instance['rmp_url']) : '#'; echo $args['before_widget']; if (!empty($title)) echo $args['before_title'] . $title . $args['after_title']; ?> 'post', 'showposts' => $number_of_posts, 'ignore_sticky_posts' => 1)); if ($loop->have_posts()) : ?>

"/>

__('This widget shows Recent Posts,Recent Comments & Popular Posts', 'awada')) ); } function widget($args, $instance) { extract($args); $popular_posts_num = apply_filters('widget_title', $instance['popular_posts_num']); $recent_posts_num = apply_filters('widget_title', $instance['recent_posts_num']); $recent_comment_num = apply_filters('widget_title', $instance['recent_comment_num']); echo $before_widget; ?>
'post', 'showposts' => $popular_posts_num, 'orderby' => 'comment_count', 'ignore_sticky_posts' => 1)); if ($pop->have_posts()): ?>
    have_posts()) : $pop->the_post(); ?>
'post', 'showposts' => $recent_posts_num)); if ($loop->have_posts()) :?>
    have_posts()) : $loop->the_post(); ?>
    $recent_comment_num, ); $comments = get_comments($args); foreach ($comments as $comment) { ?>
  • comment_post_ID); ?>

__('Awada Archieves Widget', 'awada')) ); } function widget($args, $instance) { extract($args); $title = apply_filters('widget_title', $instance['title']); if ($title != "") { echo $before_title . $title . $after_title; } else { echo $before_title . 'Archives' . $after_title; } echo $before_widget; ?>