Making WordPress.org


Ignore:
Timestamp:
12/16/2024 07:53:28 PM (15 months ago)
Author:
johnjamesjacoby
Message:

BuddyPress/bbPress: enfreshen the bb-base theme

See: https://buddypress.trac.wordpress.org/ticket/9262

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/bbpress/content-single-topic-lead.php

    r4164 r14281  
    2222                <?php do_action( 'bbp_theme_before_topic_author_details' ); ?>
    2323
    24                 <?php bbp_topic_author_link( array( 'sep' => '<br />', 'show_role' => true, 'size' => 100 ) ); ?>
     24                <?php bbp_topic_author_link( array( 'sep' => '', 'type' => 'avatar', 'show_role' => false, 'size' => 80 ) ); ?>
    2525
    26                 <?php bbp_user_nicename( bbp_get_topic_author_id(), array( 'before' => '<p class="bbp-user-nicename">@', 'after' => '</p>' ) ); ?>
     26                <div class="bbp-topic-author-info">
     27
     28                    <?php bbp_user_nicename( bbp_get_topic_author_id(), array( 'before' => '<p class="bbp-user-nicename">@', 'after' => '</p>' ) ); ?>
     29
     30                    <?php bbp_topic_author_role( array( 'topic_id' => bbp_get_topic_id() ) ); ?>
     31
     32                    <?php if ( is_super_admin() ) : ?>
     33
     34                        <?php do_action( 'bbp_theme_before_topic_author_admin_details' ); ?>
     35
     36                        <div class="bbp-topic-ip"><?php bbp_author_ip( bbp_get_topic_id() ); ?></div>
     37
     38                        <?php do_action( 'bbp_theme_after_topic_author_admin_details' ); ?>
     39
     40                    <?php endif; ?>
     41
     42                </div>
    2743
    2844                <p class="bbp-topic-post-date"><a href="<?php bbp_topic_permalink(); ?>" title="#<?php bbp_topic_id(); ?>" class="bbp-topic-permalink"><?php bbp_topic_post_date( bbp_get_topic_id(), true ); ?></a></p>
    29 
    30                 <?php if ( is_super_admin() ) : ?>
    31 
    32                     <?php do_action( 'bbp_theme_before_topic_author_admin_details' ); ?>
    33 
    34                     <div class="bbp-topic-ip"><?php bbp_author_ip( bbp_get_topic_id() ); ?></div>
    35 
    36                     <?php do_action( 'bbp_theme_after_topic_author_admin_details' ); ?>
    37 
    38                 <?php endif; ?>
    3945
    4046                <?php do_action( 'bbp_theme_after_topic_author_details' ); ?>
Note: See TracChangeset for help on using the changeset viewer.