<?php do_action('bp_before_group_forum_edit_form'); ?> <?php if (bp_has_forum_topic_posts()) { ?> <form action="<?php bp_forum_topic_action(); ?> " method="post" id="forum-topic-form" class="standard-form"> <div class="item-list-tabs" id="subnav" role="navigation"> <ul> <li> <a href="#post-topic-reply"><?php _e('Reply', 'buddypress'); ?> </a> </li> <?php if (bp_forums_has_directory()) { ?> <li> <a href="<?php bp_forums_directory_permalink(); ?>
<?php do_action( 'bp_before_group_forum_topic' ) ?> <?php if ( bp_has_forum_topic_posts() ) : ?> <form action="<?php bp_forum_topic_action() ?>" method="post" id="forum-topic-form" class="standard-form"> <div class="pagination no-ajax"> <div id="post-count" class="pag-count"> <?php bp_the_topic_pagination_count() ?> </div> <div class="pagination-links" id="topic-pag"> <?php bp_the_topic_pagination() ?> </div> </div> <div id="topic-meta"> <h3><?php bp_the_topic_title() ?> (<?php bp_the_topic_total_post_count() ?>)</h3> <a class="button" href="<?php bp_forum_permalink() ?>/">← <?php _e( 'Group Forum', 'buddypress' ) ?></a> <a class="button" href="<?php bp_forum_directory_permalink() ?>/"><?php _e( 'Group Forum Directory', 'buddypress') ?></a> <div class="admin-links"> <?php if ( bp_group_is_admin() || bp_group_is_mod() || bp_get_the_topic_is_mine() ) : ?> <?php bp_the_topic_admin_links() ?> <?php endif; ?> <?php do_action( 'bp_group_forum_topic_meta' ); ?> </div> </div>
/** * bp_forums_add_forum_topic_to_page_title( $title ) * * Append forum topic to page title * * @global object $bp * @param string $title New page title; see bp_modify_page_title() * @param string $title Original page title * @param string $sep How to separate the various items within the page title. * @param string $seplocation Direction to display title * @return string * @see bp_modify_page_title() */ function bp_forums_add_forum_topic_to_page_title($title, $original_title, $sep, $seplocation) { global $bp; if (bp_is_current_action('forum') && bp_is_action_variable('topic', 0)) { if (bp_has_forum_topic_posts()) { $title .= bp_get_the_topic_title() . " {$sep} "; } } return $title; }
/** * bp_forums_add_forum_topic_to_page_title( $title ) * * Append forum topic to page title * * @global object $bp * @param string $title * @return string */ function bp_forums_add_forum_topic_to_page_title( $title ) { global $bp; if ( $bp->current_action == 'forum' && $bp->action_variables[0] == 'topic' ) { if ( bp_has_forum_topic_posts() ) { $title .= ' | ' . bp_get_the_topic_title(); } } return $title; }