Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*Show a bulleted list of recently created blogs */
- function bpdev_show_recent_updated_blogs($number_blogs=5,$description=true)
- {
- $recent_blogs=bpdev_get_recent_updated_blogs($number_blogs);
- foreach($recent_blogs as $recent_blog):
- $my_blog_id=3;//change it to the blog id you want to hide
- if($recent_blog->blog_id==$my_blog_id)
- continue;
- $blog_url="";
- if( defined( "VHOST" ) && constant( "VHOST" ) == 'yes' )
- $blog_url="http://".$recent_blog->domain.$recent_blog->path;
- else
- $blog_url="http://".$recent_blog->domain.$recent_blog->path;
- $blog_name=get_blog_option($recent_blog->blog_id,"blogname");
- ?>
- <li>
- <a href="<?php echo $blog_url;?>"><?php _e( $blog_name)?> </a>
- <?php if($description):?>
- <span><?php _e( get_blog_option($recent_blog->blog_id,"blogdescription"));?></span>
- <?php endif;?>
- </li>
- <?php endforeach;?>
- <?php
- }
Add Comment
Please, Sign In to add comment