'online-news-tab-section', 'description' => __( 'A widget that displays posts in tab section', 'online-news') ); parent::__construct('online-news-news-tab', __('Online News: Categories Tab', 'online-news'), $widget_ops); $this->alt_option_name = 'widget_blif'; } function form($instance) { $category_frist = !empty($instance['category_frist']) ? $instance['category_frist'] : ''; $category_second = !empty($instance['category_second']) ? $instance['category_second'] : ''; $number = !empty($instance['number']) ? $instance['number'] : 4; ?>

$number, 'no_found_rows' => true, 'post_status' => 'publish', 'cat' => $category_frist, 'ignore_sticky_posts' => true ); $online_news_tab_query = new WP_Query($online_news_cat_post_args); if ($online_news_tab_query->have_posts()) :?>
have_posts() ) :$online_news_tab_query->the_post(); ?>

$number, 'no_found_rows' => true, 'post_status' => 'publish', 'cat' => $category_second, 'ignore_sticky_posts' => true ); $online_news_tab_query = new WP_Query($online_news_cat_post_args); if ($online_news_tab_query->have_posts()) :?>
have_posts() ) :$online_news_tab_query->the_post(); ?>

'online-news-section', 'description' => __( 'A widget that displays posts.', 'online-news') ); parent::__construct('online-news-news-section', __('Online News: News Section', 'online-news'), $widget_ops); $this->alt_option_name = 'widget_blif'; } function form($instance) { $category = !empty($instance['category']) ? $instance['category'] : ''; $number = !empty($instance['number']) ? $instance['number'] : 4; $radio_buttons = !empty($instance['radio_buttons']) ? $instance['radio_buttons'] : 'radio_option_1'; ?>


$number, 'no_found_rows' => true, 'post_status' => 'publish', 'cat' => $category, 'ignore_sticky_posts' => true ); $online_news_tab_query = new WP_Query($online_news_cat_post_args); if ($online_news_tab_query->have_posts()) :?>

have_posts() ) :$online_news_tab_query->the_post(); ?>
$number, 'no_found_rows' => true, 'post_status' => 'publish', 'cat' => $category, 'ignore_sticky_posts' => true ); $online_news_tab_query = new WP_Query($online_news_cat_post_args); if ($online_news_tab_query->have_posts()) :?>

have_posts() ) :$online_news_tab_query->the_post(); ?>
$number, 'no_found_rows' => true, 'post_status' => 'publish', 'cat' => $category, 'ignore_sticky_posts' => true ); $online_news_tab_query = new WP_Query($online_news_cat_post_args); if ($online_news_tab_query->have_posts()) :?>

'online-news-article-section', 'description' => __( 'A widget that displays article.', 'online-news') ); parent::__construct('online-news-article-section', __('Online News: Article Section', 'online-news'), $widget_ops); $this->alt_option_name = 'widget_blif'; } function form($instance) { $category = !empty($instance['category']) ? $instance['category'] : ''; $number = !empty($instance['number']) ? $instance['number'] : 4; ?>

$number, 'no_found_rows' => true, 'post_status' => 'publish', 'cat' => $category, 'ignore_sticky_posts' => true ); $online_news_tab_query = new WP_Query($online_news_cat_post_args); if ($online_news_tab_query->have_posts()) :?>