Changeset 218 for trunk/wp-content/themes/xpress_mu_home/home.php
- Timestamp:
- May 20, 2009, 5:59:07 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/xpress_mu_home/home.php
r217 r218 24 24 echo "</ul>\n"; 25 25 ?> 26 <br /> 26 <br /> 27 28 <?php 29 $date_format = get_settings('date_format'); 30 $blog_count = get_blog_count(); 31 if ($blog_count > 1){ 32 echo '<h3>' . __('New Entries', 'xpress') . "</h3>\n"; 33 34 $blog_list = get_blog_list(); 35 echo "<ul>\n"; 36 for ($i = 0; $i < $blog_count; $i++){ 37 $blog_id = $blog_list[$i]['blog_id']; 38 if ($blog_id == 1) continue; 39 $output_blogs = '<li><a href="' . 40 get_blog_option($blog_id,'siteurl') . '">' . 41 get_blog_option($blog_id,'blogname') . 42 '</a></li>'; 43 echo $output_blogs; 44 45 $wpdb->set_blog_id($blog_id); 46 query_posts("showposts=3&post_status=publish"); 47 if (have_posts()){ 48 echo "<ul>\n"; 49 while(have_posts()){ 50 the_post(); 51 echo '<li>'; 52 echo '<a href="' . $post->guid . '">' . $post->post_title . "</a>\n("; 53 the_time($date_format); 54 echo ")</li>\n"; 55 } 56 echo "</ul>\n"; 57 } 58 } 59 $wpdb->set_blog_id(1); 60 61 echo "</ul>\n"; 62 } 63 ?> 64 27 65 <h3><?php _e('Updated Blogs', 'xpress'); ?></h3> 28 66 <?php
Note: See TracChangeset
for help on using the changeset viewer.