Berita Popular

$control_ops = array( ‘id_base’ => ‘wpzoom-popular-views’ );

/* Create the widget. */
parent::__construct( ‘wpzoom-popular-views’, ‘WPZOOM: Most Viewed’, $widget_ops, $control_ops );

}

function widget( $args, $instance ) {

extract( $args );

/* User-selected settings. */
$title = apply_filters(‘widget_title’, $instance[‘title’] );
$show_count = $instance[‘show_count’];

/* Before widget (defined by themes). */
echo $before_widget;

/* Title of widget (before and after defined by themes). */
if ( $title )
echo $before_title . $title . $after_title;

?>

 

 


$instance = wp_parse_args( (array) $instance, $defaults );

?>



get_field_id( ‘show_count’ ); ?>” name=”” value=”” type=”text” size=”2″ /> posts

add_action( ‘widgets_init’, function () {
register_widget( “Wpzoom_Popular_Views” );
} );
} else {
add_action( ‘widgets_init’, create_function( ”, ‘register_widget(“Wpzoom_Popular_Views”);’ ) );
}

0 Shares