'post_comment_tag', 'description' => __('A widget for Posts, Comments and Tags.', 'freemium') ); $freemium_control_ops = array( 'width' => 300, 'height' => 350, 'id_base' => 'post-comment-tag-widget' ); parent::__construct( 'post-comment-tag-widget', __('Posts Comments and Tags', 'freemium'), $freemium_widget_ops, $freemium_control_ops ); } function widget( $args, $instance ) { extract( $args ); //Our variables from the widget settings. $freemium_title = apply_filters('widget_title', $instance['title'] ); $freemium_show_info = isset( $instance['show_info'] ) ? $instance['show_info'] : false; echo $before_widget; // Display the widget title if ( $freemium_title ) { ?>
    5, 'orderby' => 'post_date', 'order' => 'DESC', 'post_type' => 'post', 'post_status' => 'publish' ); $freemium_single_post = new WP_Query( $freemium_args ); while ( $freemium_single_post->have_posts() ) { $freemium_single_post->the_post(); ?>
30, 'status' => 'approve', 'post_status' => 'publish' ) ) ); echo ''; ?>
'; wp_tag_cloud( apply_filters('widget_tag_cloud_args', array('taxonomy' => 'post_tag') ) ); echo "
\n"; ?>
__('post_comment_tag', 'freemium'), 'name' => __('Posts Comments and Tags', 'freemium'), 'show_info' => true ); $instance = wp_parse_args( (array) $instance, $freemium_defaults ); ?>