Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/24/2011 02:45:58 PM (14 years ago)
Author:
johnjamesjacoby
Message:

Normalize single topic and topic/post edit templates, and clean up associated CSS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/groups/single/forum/topic.php

    r3771 r3912  
    1 <?php do_action( 'bp_before_group_forum_topic' ) ?>
     1<?php do_action( 'bp_before_group_forum_topic' ); ?>
    22
    33<?php if ( bp_has_forum_topic_posts() ) : ?>
     
    55    <form action="<?php bp_forum_topic_action() ?>" method="post" id="forum-topic-form" class="standard-form">
    66
    7         <div class="pagination no-ajax">
     7        <div class="item-list-tabs" id="subnav" role="navigation">
     8            <ul>
     9                <li>
     10                    <a href="#post-topic-reply">&darr; <?php _e( 'Reply', 'buddypress' ) ?></a>
     11                </li>
    812
    9             <div id="post-count" class="pag-count">
    10                 <?php bp_the_topic_pagination_count() ?>
    11             </div>
     13                <?php if ( !bp_forum_directory_is_disabled() ) : ?>
    1214
    13             <div class="pagination-links" id="topic-pag">
    14                 <?php bp_the_topic_pagination() ?>
    15             </div>
     15                    <li>
     16                        <a href="<?php bp_forum_directory_permalink() ?>"><?php _e( 'Forum Directory', 'buddypress') ?></a>
     17                    </li>
    1618
     19                <?php endif; ?>
     20
     21            </ul>
    1722        </div>
    1823
    1924        <div id="topic-meta">
    2025            <h3><?php bp_the_topic_title() ?> (<?php bp_the_topic_total_post_count() ?>)</h3>
    21             <a class="button" href="<?php bp_forum_permalink() ?>/">&larr; <?php _e( 'Group Forum', 'buddypress' ) ?></a> &nbsp; <?php if ( !bp_forum_directory_is_disabled() ) : ?><a class="button" href="<?php bp_forum_directory_permalink() ?>/"><?php _e( 'Group Forum Directory', 'buddypress') ?></a><?php endif; ?>
    2226
    23             <div class="admin-links">
    24                 <?php if ( bp_group_is_admin() || bp_group_is_mod() || bp_get_the_topic_is_mine() ) : ?>
     27            <?php if ( bp_group_is_admin() || bp_group_is_mod() || bp_get_the_topic_is_mine() ) : ?>
     28
     29                <div class="last admin-links">
     30
    2531                    <?php bp_the_topic_admin_links() ?>
    26                 <?php endif; ?>
    2732
    28                 <?php do_action( 'bp_group_forum_topic_meta' ); ?>
     33                </div>
     34
     35            <?php endif; ?>
     36
     37            <?php do_action( 'bp_group_forum_topic_meta' ); ?>
     38
     39        </div>
     40
     41        <div class="pagination no-ajax">
     42
     43            <div id="post-count" class="pag-count">
     44
     45                <?php bp_the_topic_pagination_count() ?>
     46
    2947            </div>
     48
     49            <div class="pagination-links" id="topic-pag">
     50
     51                <?php bp_the_topic_pagination() ?>
     52
     53            </div>
     54
    3055        </div>
    3156
     
    116141
    117142    </form><!-- #forum-topic-form -->
     143
    118144<?php else: ?>
    119145
Note: See TracChangeset for help on using the changeset viewer.