Changeset 1021 for trunk/bp-blogs/bp-blogs-templatetags.php
- Timestamp:
- 02/06/2009 03:07:48 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/bp-blogs/bp-blogs-templatetags.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-blogs/bp-blogs-templatetags.php
r833 r1021 19 19 20 20 if ( !$user_id ) 21 $user_id = $bp ['current_userid'];21 $user_id = $bp->displayed_user->id; 22 22 23 23 $this->pag_page = isset( $_GET['fpage'] ) ? intval( $_GET['fpage'] ) : 1; … … 137 137 138 138 if ( !$user_id ) 139 $user_id = $bp ['current_userid'];139 $user_id = $bp->displayed_user->id; 140 140 141 141 $this->pag_page = isset( $_GET['fpage'] ) ? intval( $_GET['fpage'] ) : 1; … … 485 485 486 486 if ( !$user_id ) 487 $user_id = $bp ['current_userid'];487 $user_id = $bp->displayed_user->id; 488 488 489 489 $this->pag_page = isset( $_GET['fpage'] ) ? intval( $_GET['fpage'] ) : 1; … … 684 684 <p><?php _e("If you’re not going to use a great blog domain, leave it for a new user. Now have at it!", 'buddypress') ?></p> 685 685 686 <form id="setupform" method="post" action="<?php echo $bp ['loggedin_domain'] . $bp['blogs']['slug']. '/create-a-blog' ?>">686 <form id="setupform" method="post" action="<?php echo $bp->loggedin_user->domain . $bp->blogs->slug . '/create-a-blog' ?>"> 687 687 688 688 <input type="hidden" name="stage" value="gimmeanotherblog" /> … … 804 804 805 805 if ( bp_is_home() ) { 806 echo apply_filters( 'bp_create_blog_link', '<a href="' . $bp ['loggedin_domain'] . $bp['blogs']['slug']. '/create-a-blog">' . __('Create a Blog', 'buddypress') . '</a>' );806 echo apply_filters( 'bp_create_blog_link', '<a href="' . $bp->loggedin_user->domain . $bp->blogs->slug . '/create-a-blog">' . __('Create a Blog', 'buddypress') . '</a>' ); 807 807 } 808 808 } … … 815 815 return false; 816 816 817 $current_tab = $bp ['current_action'];817 $current_tab = $bp->current_action 818 818 ?> 819 819 <ul class="content-header-nav"> 820 <li<?php if ( $current_tab == 'my-blogs' || $current_tab == '' ) : ?> class="current"<?php endif; ?>><a href="<?php echo $bp ['current_domain'] . $bp['blogs']['slug'] ?>/my-blogs"><?php printf( __( "%s's Blogs", 'buddypress' ), $bp['current_fullname']) ?></a></li>821 <li<?php if ( $current_tab == 'recent-posts' ) : ?> class="current"<?php endif; ?>><a href="<?php echo $bp ['current_domain'] . $bp['blogs']['slug'] ?>/recent-posts"><?php printf( __( "%s's Recent Posts", 'buddypress' ), $bp['current_fullname']) ?></a></li>822 <li<?php if ( $current_tab == 'recent-comments' ) : ?> class="current"<?php endif; ?>><a href="<?php echo $bp ['current_domain'] . $bp['blogs']['slug'] ?>/recent-comments"><?php printf( __( "%s's Recent Comments", 'buddypress' ), $bp['current_fullname']) ?></a></li>820 <li<?php if ( $current_tab == 'my-blogs' || $current_tab == '' ) : ?> class="current"<?php endif; ?>><a href="<?php echo $bp->displayed_user->domain . $bp->blogs->slug ?>/my-blogs"><?php printf( __( "%s's Blogs", 'buddypress' ), $bp->displayed_user->fullname ) ?></a></li> 821 <li<?php if ( $current_tab == 'recent-posts' ) : ?> class="current"<?php endif; ?>><a href="<?php echo $bp->displayed_user->domain . $bp->blogs->slug ?>/recent-posts"><?php printf( __( "%s's Recent Posts", 'buddypress' ), $bp->displayed_user->fullname ) ?></a></li> 822 <li<?php if ( $current_tab == 'recent-comments' ) : ?> class="current"<?php endif; ?>><a href="<?php echo $bp->displayed_user->domain . $bp->blogs->slug ?>/recent-comments"><?php printf( __( "%s's Recent Comments", 'buddypress' ), $bp->displayed_user->fullname ) ?></a></li> 823 823 </ul> 824 824 <?php
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)