esc_html__('Displays the random posts from your site.', 'the-newsmag'), 'classname' => 'widget-entry-meta the-newsmag-random-posts-widget clear') // Arguments of the widget, here it is provided with the description ); } function form($instance) { $number = !empty($instance['number']) ? $instance['number'] : 5; $title = !empty($instance['title']) ? $instance['title'] : ''; ?>
esc_html__('Displays the popular posts, recent posts and the recent comments in the tabs.', 'the-newsmag'), 'classname' => 'widget-entry-meta the-newsmag-tabbed-widget clear') // Arguments of the widget, here it is provided with the description ); } function form($instance) { $number = !empty($instance['number']) ? $instance['number'] : 5; ?>
id_base) || is_customize_preview()) { wp_enqueue_script('jquery-ui-tabs'); } $number = !empty($instance['number']) ? $instance['number'] : 5; echo $args['before_widget']; ?>
id_base) || is_customize_preview()) { wp_enqueue_script('jquery-bxslider'); } $number = !empty($instance['number']) ? $instance['number'] : 4; $type = isset($instance['type']) ? $instance['type'] : 'latest'; $category = isset($instance['category']) ? $instance['category'] : ''; echo $args['before_widget']; ?> $number, 'post_type' => 'post', 'ignore_sticky_posts' => true, 'no_found_rows' => true )); } else { $category_posts_slider = new WP_Query(array( 'posts_per_page' => $number, 'post_type' => 'post', 'ignore_sticky_posts' => true, 'category__in' => $category, 'no_found_rows' => true )); } ?> esc_html__('Displays the latest posts or posts from certain category chosen to be used in beside the slider area.', 'the-newsmag'), 'classname' => 'widget-entry-meta the-newsmag-posts-grid-widget clear') // Arguments of the widget, here it is provided with the description ); } function form($instance) { $number = !empty($instance['number']) ? $instance['number'] : 4; $type = !empty($instance['type']) ? $instance['type'] : 'latest'; $category = !empty($instance['category']) ? $instance['category'] : ''; ?>
$number, 'post_type' => 'post', 'ignore_sticky_posts' => true, 'no_found_rows' => true )); } else { $category_posts_grid = new WP_Query(array( 'posts_per_page' => $number, 'post_type' => 'post', 'ignore_sticky_posts' => true, 'category__in' => $category, 'no_found_rows' => true )); } ?>
$number, 'post_type' => 'post', 'ignore_sticky_posts' => true, 'no_found_rows' => true )); } else { $category_column_one = new WP_Query(array( 'posts_per_page' => $number, 'post_type' => 'post', 'ignore_sticky_posts' => true, 'category__in' => $category, 'no_found_rows' => true )); } ?> ' . esc_html($title) . ''; } if (!empty($text)) { ?>
$number, 'post_type' => 'post', 'ignore_sticky_posts' => true, 'no_found_rows' => true )); } else { $category_column_two = new WP_Query(array( 'posts_per_page' => $number, 'post_type' => 'post', 'ignore_sticky_posts' => true, 'category__in' => $category, 'no_found_rows' => true )); } ?> ' . esc_html($title) . ''; } if (!empty($text)) { ?>
$number, 'post_type' => 'post', 'ignore_sticky_posts' => true, 'no_found_rows' => true )); } else { $category_extended = new WP_Query(array( 'posts_per_page' => $number, 'post_type' => 'post', 'ignore_sticky_posts' => true, 'category__in' => $category, 'no_found_rows' => true )); } ?> ' . esc_html($title) . ''; } if (!empty($text)) { ?> esc_html__('Add the required 728 x 90 advertisement in your site with the help of the image.', 'the-newsmag'), 'classname' => 'widget-entry-meta the-newsmag-728x90-widget clear') // Arguments of the widget, here it is provided with the description ); } function form($instance) { $title = !empty($instance['title']) ? $instance['title'] : ''; $image_link = !empty($instance['image_link']) ? $instance['image_link'] : ''; $image_url = !empty($instance['image_url']) ? $instance['image_url'] : ''; ?>
' . strip_tags(substr(apply_filters('get_comment_text', $comment->comment_content), 0, '50')) . '…
' . esc_html__('No Comments', 'the-newsmag') . '
'; endif; $commented .= '