Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/06/2009 03:07:48 AM (17 years ago)
Author:
apeatling
Message:

Converted $bp as an array to $bp as an object. See this post for more info: http://buddypress.org/forums/topic.php?id=1125

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-blogs/directories/bp-blogs-directory-blogs.php

    r926 r1021  
    33        global $bp, $current_blog;
    44       
    5         if ( $bp['current_component'] == $bp['blogs']['slug'] && $bp['current_action'] == '' ) {
     5        if ( $bp->current_component == $bp->blogs->slug && $bp->current_action == '' ) {
    66                add_action( 'bp_template_content', 'bp_blogs_directory_blogs_content' );
    77                add_action( 'bp_template_sidebar', 'bp_blogs_directory_blogs_sidebar' );
     
    8888                        <div id="blog-dir-count" class="pag-count">
    8989                                <?php echo sprintf( __( 'Viewing blog %d to %d (%d total active blogs)', 'buddypress' ), $from_num, $to_num, $blogs['total'] ); ?> &nbsp;
    90                                 <img id="ajax-loader-blogs" src="<?php echo $bp['core']['image_base'] ?>/ajax-loader.gif" height="7" alt="<?php _e( "Loading", "buddypress" ) ?>" style="display: none;" />
     90                                <img id="ajax-loader-blogs" src="<?php echo $bp->core->image_base ?>/ajax-loader.gif" height="7" alt="<?php _e( "Loading", "buddypress" ) ?>" style="display: none;" />
    9191                        </div>
    9292                       
     
    9999                                <li>
    100100                                        <div class="item-avatar">
    101                                                 <img src="<?php echo 'http://www.gravatar.com/avatar/' . md5( $blog->blog_id . '.blogs@' . $bp['root_domain'] ) . '?d=identicon&amp;s=50'; ?>" class="avatar" alt="Blog Identicon" />
     101                                                <img src="<?php echo 'http://www.gravatar.com/avatar/' . md5( $blog->blog_id . '.blogs@' . $bp->root_domain ) . '?d=identicon&amp;s=50'; ?>" class="avatar" alt="Blog Identicon" />
    102102                                        </div>
    103103
     
    154154        <div class="widget">
    155155                <h2 class="widgettitle"><?php _e( 'Find Blogs', 'buddypress' ) ?></h2>
    156                 <form action="<?php echo site_url() . '/' . $bp['blogs']['slug']  . '/search/' ?>" method="post" id="search-blogs-form">
     156                <form action="<?php echo site_url() . '/' . $bp->blogs->slug  . '/search/' ?>" method="post" id="search-blogs-form">
    157157                        <label><input type="text" name="blogs_search" id="blogs_search" value="<?php if ( isset( $_GET['s'] ) ) { echo $_GET['s']; } else { _e('Search anything...', 'buddypress' ); } ?>"  onfocus="if (this.value == '<?php _e('Search anything...', 'buddypress' ) ?>') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e('Search anything...', 'buddypress' ) ?>';}" /></label>
    158158                        <input type="submit" id="blogs_search_submit" name="blogs_search_submit" value="Search" />
Note: See TracChangeset for help on using the changeset viewer.