sbrajesh

Brajesh Singh

Sep 19th, 2010
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.88 KB | None | 0 0
  1.  /*Show a bulleted list of recently created blogs */
  2.  function bpdev_show_recent_updated_blogs($number_blogs=5,$description=true)
  3.  {
  4.  $recent_blogs=bpdev_get_recent_updated_blogs($number_blogs);
  5.                    
  6. foreach($recent_blogs as $recent_blog):
  7. $my_blog_id=3;//change it to the blog id you want to hide
  8. if($recent_blog->blog_id==$my_blog_id)
  9.     continue;
  10.                     $blog_url="";
  11.                 if( defined( "VHOST" ) && constant( "VHOST" ) == 'yes' )
  12.                     $blog_url="http://".$recent_blog->domain.$recent_blog->path;
  13.                     else
  14.                     $blog_url="http://".$recent_blog->domain.$recent_blog->path;
  15.                     $blog_name=get_blog_option($recent_blog->blog_id,"blogname");
  16. ?>
  17.  <li>
  18.         <a href="<?php echo $blog_url;?>"><?php _e( $blog_name)?> </a>
  19.     <?php if($description):?>
  20.     <span><?php _e( get_blog_option($recent_blog->blog_id,"blogdescription"));?></span>
  21.     <?php endif;?>
  22. </li>
  23.  <?php endforeach;?>
  24. <?php
  25.  }
Add Comment
Please, Sign In to add comment