WordPress.org

Ready to get started?Download WordPress

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Difference between revisions of "WPMU List New Blogs Widget"

(remove stub)
(remove new page created)
 
Line 20: Line 20:
 
?>
 
?>
 
</pre>
 
</pre>
[[Category:WPMU Widget]]
 
 
[[Category:WPMU]]
 
[[Category:WPMU]]
[[Category:New_page_created]]
 

Latest revision as of 21:11, 4 January 2008

(untested)

 <?php
 function widget_list_newest_blogs($args) {
        extract($args);

        if(function_exists(fimii_wpmu_newest_blogs)) {
                 echo $before_widget;

                 echo $before_title . 'Recently Created Blogs' . $after_title;
                        echo "<ul>\n";
                        fimii_wpmu_newest_blogs(5);
                        echo "</ul>\n";
                 echo $after_widget;
        } else {
                echo "Error - function list_all_wpmu_blogs not found";
        }
 }
 register_sidebar_widget('List Newest Blogs', 'widget_list_newest_blogs');
 ?>