summaryrefslogtreecommitdiffstats
path: root/wp-content/themes
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-08-01 17:14:06 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-08-01 17:14:06 +0000
commit8a0f5fc158bcd43251486dff98524753fc11f74b (patch)
treef2be926c859d61f7f946bd8e7bc6ab13b5eae87b /wp-content/themes
parent503214a304ab0ce46df6feae4c052abcd941af98 (diff)
downloadwordpress-mu-8a0f5fc158bcd43251486dff98524753fc11f74b.tar.gz
wordpress-mu-8a0f5fc158bcd43251486dff98524753fc11f74b.tar.xz
wordpress-mu-8a0f5fc158bcd43251486dff98524753fc11f74b.zip
WP Merge
Display newest updated blogs on home page Sidebar and footer: added links to signup and main blog git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@713 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-content/themes')
-rw-r--r--wp-content/themes/default/footer.php3
-rw-r--r--wp-content/themes/default/sidebar.php3
-rw-r--r--wp-content/themes/home/home.php27
3 files changed, 25 insertions, 8 deletions
diff --git a/wp-content/themes/default/footer.php b/wp-content/themes/default/footer.php
index a6cfd87..c95b405 100644
--- a/wp-content/themes/default/footer.php
+++ b/wp-content/themes/default/footer.php
@@ -1,9 +1,10 @@
+<?php $current_site = get_current_site(); ?>
<hr />
<div id="footer">
<p>
<?php bloginfo('name'); ?> is proudly powered by
- <a href="http://wordpress.org/">WordPress</a>
+ <a href="http://mu.wordpress.org/">WordPress MU</a> running on <a href="http://<?php echo $current_site->domain . $current_site->path ?>"><?php echo $current_site->site_name ?></a>. <a href="http://<?php echo $current_site->domain . $current_site->path ?>wp-signup.php" title="Create a new blog">Create a new blog</a> and join in the fun!
<br /><a href="feed:<?php bloginfo('rss2_url'); ?>">Entries (RSS)</a>
and <a href="feed:<?php bloginfo('comments_rss2_url'); ?>">Comments (RSS)</a>.
<!-- <?php echo get_num_queries(); ?> queries. <?php timer_stop(1); ?> seconds. -->
diff --git a/wp-content/themes/default/sidebar.php b/wp-content/themes/default/sidebar.php
index 0ce9b38..3dc24b1 100644
--- a/wp-content/themes/default/sidebar.php
+++ b/wp-content/themes/default/sidebar.php
@@ -58,6 +58,9 @@
<li><a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional">Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li>
<li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
<li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li>
+ <?php $current_site = get_current_site(); ?>
+ <li><a href="http://<?php echo $current_site->domain . $current_site->path ?>wp-signup.php" title="Create a new blog">New Blog</a></li>
+ <li><a href="http://<?php echo $current_site->domain . $current_site->path ?>" title="<?php echo $current_site->site_name ?>"><?php echo $current_site->site_name ?></a></li>
<?php wp_meta(); ?>
</ul>
</li>
diff --git a/wp-content/themes/home/home.php b/wp-content/themes/home/home.php
index 358f4a1..ac4754c 100644
--- a/wp-content/themes/home/home.php
+++ b/wp-content/themes/home/home.php
@@ -1,20 +1,33 @@
<?php get_header(); ?>
- <div id="content" class="widecolumn">
+<div id="content" class="widecolumn">
- <h2>WordPress &micro;</h2>
- <p>This is a <a href="http://mu.wordpress.org/">WordPress Mu</a> powered site.</p>
- <p>You can: <ul><li> <a href="wp-login.php">Login</a> </li><li> <a href="wp-signup.php">Create a new blog</a></li><li> Edit this file at <code>wp-content/themes/home/home.php</code> with your favourite text editor and customize this screen.</li></ul></p>
-<h3>News Blog</h3>
-
+<h2>WordPress &micro;</h2>
+<p>This is a <a href="http://mu.wordpress.org/">WordPress Mu</a> powered site.</p>
+<p>You can: <ul><li> <a href="wp-login.php">Login</a> </li><li> <a href="wp-signup.php">Create a new blog</a></li><li> Edit this file at <code>wp-content/themes/home/home.php</code> with your favourite text editor and customize this screen.</li></ul></p>
+<h3>The Latest News</h3>
<ul>
+<strong>Site News</strong>
<?php
query_posts('showposts=7');
if (have_posts()) : ?><?php while (have_posts()) : the_post(); ?>
<li><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title();?> </a></li>
<?php endwhile; ?><?php endif; ?>
</ul>
-
+<?php
+$blogs = get_last_updated();
+if( is_array( $blogs ) ) {
+ ?>
+ <ul>
+ <strong>Updated Blogs</strong>
+ <?php foreach( $blogs as $details ) {
+ ?><li><a href="http://<?php echo $details[ 'domain' ] . $details[ 'path' ] ?>"><?php echo get_blog_option( $details[ 'blog_id' ], 'blogname' ) ?></a></li><?php
+ }
+ ?>
+ </ul>
+ <?php
+}
+?>
</div>
<?php get_footer(); ?>