Esempio n. 1
0
function widget_sideblogwidget($args, $number = 1)
{
    global $registered_widgets;
    extract($args);
    $options = get_option('widget_sideblog');
    $title = $options[$number]['title'];
    $category = $options[$number]['category'];
    if (empty($title)) {
        $title = ' ';
    }
    echo $before_widget . $before_title . $title . $after_title . "<ul>";
    sideblog($category);
    echo "</ul>" . $after_widget;
}
Esempio n. 2
0
	function widget($args, $instance){

		extract($args);

		$title = $instance['title'];
		$category = $instance['category'];

		$title = trim($title);

		echo $before_widget;
		if(!empty($title)){
			echo $before_title . $title . $after_title;
		}
		echo "<ul>";
		sideblog($category);
		echo "</ul>" . $after_widget;		
	}