Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/06/2010 04:24:57 PM (16 years ago)
Author:
apeatling
Message:

Merging 1.2 branch with trunk

File:
1 edited

Legend:

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

    r2925 r3232  
     1<?php /* Querystring is set via AJAX in _inc/ajax.php - bp_dtheme_object_filter() */ ?>
     2
     3<?php do_action( 'bp_before_forums_loop' ) ?>
     4
    15<?php if ( bp_has_forum_topics( bp_ajax_querystring( 'forums' ) ) ) : ?>
    26
    3         <div class="pagination">
     7        <div id="pag-top" class="pagination">
    48
    5                 <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 
     9                <div class="pag-count" id="topic-count-top">
    1010                        <?php bp_forum_pagination_count() ?>
    1111                </div>
    1212
    13                 <div class="pagination-links" id="topic-pag">
     13                <div class="pagination-links" id="topic-pag-top">
    1414                        <?php bp_forum_pagination() ?>
    1515                </div>
     
    1919        <?php do_action( 'bp_before_directory_forums_list' ) ?>
    2020
    21         <table class="forum">
     21        <table class="forum zebra">
     22                <thead>
     23                        <tr>
     24                                <th id="th-title"><?php _e( 'Topic Title', 'buddypress' ) ?></th>
     25                                <th id="th-poster"><?php _e( 'Latest Poster', 'buddypress' ) ?></th>
    2226
    23                 <tr>
    24                         <th id="th-title"><?php _e( 'Topic Title', 'buddypress' ) ?></th>
    25                         <th id="th-poster"><?php _e( 'Latest Poster', 'buddypress' ) ?></th>
     27                                <?php if ( !bp_is_group_forum() ) : ?>
     28                                        <th id="th-group"><?php _e( 'Posted In Group', 'buddypress' ) ?></th>
     29                                <?php endif; ?>
    2630
    27                         <?php if ( !bp_is_group_forum() ) : ?>
    28                                 <th id="th-group"><?php _e( 'Posted In Group', 'buddypress' ) ?></th>
    29                         <?php endif; ?>
     31                                <th id="th-postcount"><?php _e( 'Posts', 'buddypress' ) ?></th>
     32                                <th id="th-freshness"><?php _e( 'Freshness', 'buddypress' ) ?></th>
    3033
    31                         <th id="th-postcount"><?php _e( 'Posts', 'buddypress' ) ?></th>
    32                         <th id="th-freshness"><?php _e( 'Freshness', 'buddypress' ) ?></th>
     34                                <?php do_action( 'bp_directory_forums_extra_cell_head' ) ?>
    3335
    34                         <?php do_action( 'bp_directory_forums_extra_cell_head' ) ?>
     36                        </tr>
     37                </thead>
    3538
    36                 </tr>
     39                <tbody>
    3740
    38                 <?php while ( bp_forum_topics() ) : bp_the_forum_topic(); ?>
     41                        <?php while ( bp_forum_topics() ) : bp_the_forum_topic(); ?>
    3942
    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>
     43                        <tr class="<?php bp_the_topic_css_class() ?>">
     44                                <td class="td-title">
     45                                        <a class="topic-title" href="<?php bp_the_topic_permalink() ?>" title="<?php bp_the_topic_title() ?> - <?php _e( 'Permalink', 'buddypress' ) ?>">
     46                                                <?php bp_the_topic_title() ?>
     47                                        </a>
     48                                </td>
     49                                <td class="td-poster">
     50                                        <a href="<?php bp_the_topic_permalink() ?>"><?php bp_the_topic_last_poster_avatar( 'type=thumb&width=20&height=20' ) ?></a>
     51                                        <div class="poster-name"><?php bp_the_topic_last_poster_name() ?></div>
     52                                </td>
    5053
    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>
     54                                <?php if ( !bp_is_group_forum() ) : ?>
     55                                        <td class="td-group">
     56                                                <a href="<?php bp_the_topic_object_permalink() ?>"><?php bp_the_topic_object_avatar( 'type=thumb&width=20&height=20' ) ?></a>
     57                                                <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>
     58                                        </td>
     59                                <?php endif; ?>
     60
     61                                <td class="td-postcount">
     62                                        <?php bp_the_topic_total_posts() ?>
    5563                                </td>
    56                         <?php endif; ?>
     64                                <td class="td-freshness">
     65                                        <?php bp_the_topic_time_since_last_post() ?>
     66                                </td>
    5767
    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>
     68                                <?php do_action( 'bp_directory_forums_extra_cell' ) ?>
     69                        </tr>
    6470
    65                         <?php do_action( 'bp_directory_forums_extra_cell' ) ?>
    66                 </tr>
     71                        <?php do_action( 'bp_directory_forums_extra_row' ) ?>
    6772
    68                 <?php do_action( 'bp_directory_forums_extra_row' ) ?>
     73                        <?php endwhile; ?>
    6974
    70                 <?php endwhile; ?>
    71 
     75                </tbody>
    7276        </table>
    7377
    7478        <?php do_action( 'bp_after_directory_forums_list' ) ?>
     79
     80        <div id="pag-bottom" class="pagination">
     81
     82                <div class="pag-count" id="topic-count-bottom">
     83                        <?php bp_forum_pagination_count() ?>
     84                </div>
     85
     86                <div class="pagination-links" id="topic-pag-bottom">
     87                        <?php bp_forum_pagination() ?>
     88                </div>
     89
     90        </div>
    7591
    7692<?php else: ?>
     
    8197
    8298<?php endif;?>
     99
     100<?php do_action( 'bp_after_forums_loop' ) ?>
Note: See TracChangeset for help on using the changeset viewer.