Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/21/2011 08:28:31 AM (15 years ago)
Author:
johnjamesjacoby
Message:

Rearrange forum loop elements to feel more naturally like forum topics.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/forums/forums-loop.php

    r4301 r4749  
    3737                <thead>
    3838                        <tr>
    39                                 <th id="th-title"><?php _e( 'Topic Title', 'buddypress' ); ?></th>
    40 
    41                                 <?php if ( bp_is_directory() || bp_is_user_forums() ) : ?>
    42 
    43                                         <th id="th-group"><?php _e( 'Forum', 'buddypress' ); ?></th>
    44 
    45                                 <?php endif; ?>
    46 
    47                                 <th id="th-poster"><?php _e( 'Latest Poster', 'buddypress' ); ?></th>
     39                                <th id="th-title"><?php _e( 'Topic', 'buddypress' ); ?></th>
    4840                                <th id="th-postcount"><?php _e( 'Posts', 'buddypress' ); ?></th>
    4941                                <th id="th-freshness"><?php _e( 'Freshness', 'buddypress' ); ?></th>
    … …  
    6557
    6658                                        </a>
    67                                 </td>
    6859
    69                                 <?php if ( bp_is_directory() || bp_is_user_forums() ) : ?>
     60                                        <?php if ( bp_is_directory() || bp_is_user_forums() ) : ?>
    7061
    71                                         <td class="td-group">
    72                                                 <a href="<?php bp_the_topic_object_permalink(); ?>"><?php bp_the_topic_object_avatar( 'type=thumb&width=20&height=20' ); ?></a>
    73                                                 <div class="object-name"><a href="<?php bp_the_topic_object_permalink(); ?>" title="<?php bp_the_topic_object_name(); ?>"><?php bp_the_topic_object_name(); ?></a></div>
    74                                         </td>
     62                                                <p class="topic-meta">
     63                                                        <span class="topic-in">
    7564
    76                                 <?php endif; ?>
     65                                                                <?php _e( 'in', 'buddypress' ); ?>
    7766
    78                                 <td class="td-poster">
    79                                         <a href="<?php bp_the_topic_permalink(); ?>"><?php bp_the_topic_last_poster_avatar( 'type=thumb&width=20&height=20' ); ?></a>
    80                                         <div class="poster-name"><?php bp_the_topic_last_poster_name(); ?></div>
     67                                                                <a href="<?php bp_the_topic_object_permalink(); ?>"><?php bp_the_topic_object_avatar( 'type=thumb&width=20&height=20' ); ?></a>
     68                                                                <a href="<?php bp_the_topic_object_permalink(); ?>" title="<?php bp_the_topic_object_name(); ?>"><?php bp_the_topic_object_name(); ?></a></div>
     69                                                        </span>
     70                                                </p>
     71
     72                                        <?php endif; ?>
     73
    8174                                </td>
    8275                                <td class="td-postcount">
    83 
    8476                                        <?php bp_the_topic_total_posts(); ?>
    85 
    8677                                </td>
    8778                                <td class="td-freshness">
    8879                                        <?php bp_the_topic_time_since_last_post(); ?>
     80                                        <p class="topic-meta">
     81                                                <span class="freshness-author">
     82                                                        <a href="<?php bp_the_topic_permalink(); ?>"><?php bp_the_topic_last_poster_avatar( 'type=thumb&width=20&height=20' ); ?></a>
     83                                                        <?php bp_the_topic_last_poster_name(); ?>
     84                                                </span>
     85                                        </p>
    8986                                </td>
    9087
Note: See TracChangeset for help on using the changeset viewer.