1dollarplug.com | displays all blogs in a multisite environment (tip: Visit the widgets section to activate this widget).
Version: 1.1
Author: Peter scheepens
Author URI: http://1dollarplug.com
*/
add_action( 'widgets_init', 'func_dp1_1' );
function func_dp1_1() { register_widget( 'widget_dp1_1' );}
class widget_dp1_1 extends WP_Widget
{
function widget_dp1_1()
{
$widget_ops = array( 'classname' => 'dp1_1', 'description' => __('Show all blogs in a network environment as a linked blogname (optionally with amount of posts).', 'dp1_1') );
$control_ops = array( 'width' => 200, 'height' => 300, 'id_base' => 'dp1_1-widget' );
$this->WP_Widget( 'dp1_1-widget', __('* 1dolllarplug.com - nework blogs
', 'dp1_1'), $widget_ops, $control_ops );
}
function widget( $args, $instance )
{
extract( $args );
$title = apply_filters('widget_title', $instance['title'] );
$show_num = isset( $instance['show_num'] ) ? $instance['show_num'] : false;
echo $before_widget;
if ( $title ) echo $before_title . $title . $after_title;
// begin on screen info
if ( is_multisite() )
{
?>