Skip to:
Content

BuddyPress.org


Ignore:
File:
1 edited

Legend:

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

    r2895 r3111  
    44
    55        <div id="post-count" class="pag-count">
    6             <?php if ( bp_is_group_forum() && is_user_logged_in() ) : ?>
    7                 <a href="#post-new" class="button"><?php _e( 'New Topic', 'buddypress' ) ?></a> &nbsp;
    8             <?php endif; ?>
    9 
    106            <?php bp_forum_pagination_count() ?>
    117        </div>
     
    1915    <?php do_action( 'bp_before_directory_forums_list' ) ?>
    2016
    21     <table class="forum">
     17    <table class="forum zebra">
     18        <thead>
     19            <tr>
     20                <th id="th-title"><?php _e( 'Topic Title', 'buddypress' ) ?></th>
     21                <th id="th-poster"><?php _e( 'Latest Poster', 'buddypress' ) ?></th>
    2222
    23         <tr>
    24             <th id="th-title"><?php _e( 'Topic Title', 'buddypress' ) ?></th>
    25             <th id="th-poster"><?php _e( 'Latest Poster', 'buddypress' ) ?></th>
     23                <?php if ( !bp_is_group_forum() ) : ?>
     24                    <th id="th-group"><?php _e( 'Posted In Group', 'buddypress' ) ?></th>
     25                <?php endif; ?>
    2626
    27             <?php if ( !bp_is_group_forum() ) : ?>
    28                 <th id="th-group"><?php _e( 'Posted In Group', 'buddypress' ) ?></th>
    29             <?php endif; ?>
     27                <th id="th-postcount"><?php _e( 'Posts', 'buddypress' ) ?></th>
     28                <th id="th-freshness"><?php _e( 'Freshness', 'buddypress' ) ?></th>
    3029
    31             <th id="th-postcount"><?php _e( 'Posts', 'buddypress' ) ?></th>
    32             <th id="th-freshness"><?php _e( 'Freshness', 'buddypress' ) ?></th>
     30                <?php do_action( 'bp_directory_forums_extra_cell_head' ) ?>
    3331
    34             <?php do_action( 'bp_directory_forums_extra_cell_head' ) ?>
     32            </tr>
     33        </thead>
    3534
    36         </tr>
     35        <tbody>
    3736
    38         <?php while ( bp_forum_topics() ) : bp_the_forum_topic(); ?>
     37            <?php while ( bp_forum_topics() ) : bp_the_forum_topic(); ?>
    3938
    40         <tr class="<?php bp_the_topic_css_class() ?>">
    41             <td class="td-title">
    42                 <a class="topic-title" href="<?php bp_the_topic_permalink() ?>" title="<?php bp_the_topic_title() ?> - <?php _e( 'Permalink', 'buddypress' ) ?>">
    43                     <?php bp_the_topic_title() ?>
    44                 </a>
    45             </td>
    46             <td class="td-poster">
    47                 <a href="<?php bp_the_topic_permalink() ?>"><?php bp_the_topic_last_poster_avatar( 'type=thumb&width=20&height=20' ) ?></a>
    48                 <div class="poster-name"><?php bp_the_topic_last_poster_name() ?></div>
    49             </td>
     39            <tr class="<?php bp_the_topic_css_class() ?>">
     40                <td class="td-title">
     41                    <a class="topic-title" href="<?php bp_the_topic_permalink() ?>" title="<?php bp_the_topic_title() ?> - <?php _e( 'Permalink', 'buddypress' ) ?>">
     42                        <?php bp_the_topic_title() ?>
     43                    </a>
     44                </td>
     45                <td class="td-poster">
     46                    <a href="<?php bp_the_topic_permalink() ?>"><?php bp_the_topic_last_poster_avatar( 'type=thumb&width=20&height=20' ) ?></a>
     47                    <div class="poster-name"><?php bp_the_topic_last_poster_name() ?></div>
     48                </td>
    5049
    51             <?php if ( !bp_is_group_forum() ) : ?>
    52                 <td class="td-group">
    53                     <a href="<?php bp_the_topic_object_permalink() ?>"><?php bp_the_topic_object_avatar( 'type=thumb&width=20&height=20' ) ?></a>
    54                     <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>
     50                <?php if ( !bp_is_group_forum() ) : ?>
     51                    <td class="td-group">
     52                        <a href="<?php bp_the_topic_object_permalink() ?>"><?php bp_the_topic_object_avatar( 'type=thumb&width=20&height=20' ) ?></a>
     53                        <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>
     54                    </td>
     55                <?php endif; ?>
     56
     57                <td class="td-postcount">
     58                    <?php bp_the_topic_total_posts() ?>
    5559                </td>
    56             <?php endif; ?>
     60                <td class="td-freshness">
     61                    <?php bp_the_topic_time_since_last_post() ?>
     62                </td>
    5763
    58             <td class="td-postcount">
    59                 <?php bp_the_topic_total_posts() ?>
    60             </td>
    61             <td class="td-freshness">
    62                 <?php bp_the_topic_time_since_last_post() ?>
    63             </td>
     64                <?php do_action( 'bp_directory_forums_extra_cell' ) ?>
     65            </tr>
    6466
    65             <?php do_action( 'bp_directory_forums_extra_cell' ) ?>
    66         </tr>
     67            <?php do_action( 'bp_directory_forums_extra_row' ) ?>
    6768
    68         <?php do_action( 'bp_directory_forums_extra_row' ) ?>
     69            <?php endwhile; ?>
    6970
    70         <?php endwhile; ?>
    71 
     71        </tbody>
    7272    </table>
    7373
Note: See TracChangeset for help on using the changeset viewer.