- Timestamp:
- Mar 11, 2010, 11:49:11 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/wp-content/themes/xpress_default/multi_blog.php
r525 r536 27 27 28 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"; 29 echo '<h3>' . __('New Entries', 'xpress') . "</h3>\n"; 30 $data_array = xpress_grobal_recent_posts(); 31 echo "<ul>\n"; 32 foreach($data_array as $data){ 33 echo '<li>'; 34 printf(__('%1$s wrote %2$s in %3$s.','xpress'), $data->post_author,$data->title_link,$data->blog_link); 35 echo "</li>\n"; 62 36 } 37 echo "</ul>\n"; 63 38 ?> 64 39 … … 104 79 echo "</ul>\n"; 105 80 } 106 107 81 ?> 108 82
Note: See TracChangeset
for help on using the changeset viewer.