__('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', 'awada'); $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()) : ?>

"/>

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