热门纯音

'loo_imglist', 'description' => '图文展示(最新文章+热门文章+随机文章)' );
$this->WP_Widget( 'loo_imglist', 'Loome-图文展示', $widget_ops, $control_ops );
}

function widget( $args, $instance ) {
extract( $args );

$title = apply_filters('widget_name', $instance['title']);
$limit = $instance['limit'];
$cat = $instance['cat'];
$orderby = $instance['orderby'];
$img = $instance['img'];

$style='';
echo $before_widget;
echo $before_title.$title.$after_title;
echo '

    ';
    echo ltheme_posts_list( $orderby,$limit,$cat,$height);
    echo '

';
echo $after_widget;
}

function form( $instance ) {
?>

DESC,
'cat' => $cat,
'orderby' => $orderby,
'showposts' => $limit,
'caller_get_posts' => 1
);
query_posts($args);
while (have_posts()) : the_post();
?>

  •