&nbsp;<a class="button show-hide-new" href="#new-topic" id="new-topic-button"><?php 
    _e('New Topic', 'buddypress');
    ?>
</a><?php 
}
?>
</h3>

				<?php 
do_action('bp_before_directory_forums_content');
?>

				<div id="forums-dir-search" class="dir-search" role="search">

					<?php 
bp_directory_forums_search_form();
?>

				</div>
			</form>

			<?php 
do_action('bp_before_topics');
?>

			<form action="" method="post" id="forums-directory-form" class="dir-form">

				<div class="item-list-tabs" role="navigation">
					<ul>
						<li class="selected" id="forums-all"><a href="<?php 
echo trailingslashit(bp_get_root_domain() . '/' . bp_get_forums_root_slug());
Example #2
0
<?php get_header() ?>

	<div id="content">
		<div class="padder">

		<form action="" method="post" id="forums-search-form" class="dir-form">

			<h3><?php _e( 'Group Forums Directory', 'buddypress' ) ?><?php if ( is_user_logged_in() ) : ?> &nbsp;<a class="button" href="#new-topic" id="new-topic-button"><?php _e( 'New Topic', 'buddypress' ) ?></a><?php endif; ?></h3>

			<?php do_action( 'bp_before_directory_forums_content' ) ?>

			<div id="forums-dir-search" class="dir-search">
				<?php bp_directory_forums_search_form() ?>
			</div>
		</form>

		<div id="new-topic-post">
			<?php if ( is_user_logged_in() ) : ?>

				<?php if ( bp_has_groups( 'user_id=' . bp_loggedin_user_id() . '&type=alphabetical&max=100&per_page=100' ) ) : ?>

					<form action="" method="post" id="forum-topic-form" class="standard-form">

						<?php do_action( 'groups_forum_new_topic_before' ) ?>

						<a name="post-new"></a>
						<h5><?php _e( 'Post a New Topic:', 'buddypress' ) ?></h5>

						<label><?php _e( 'Title:', 'buddypress' ) ?></label>
						<input type="text" name="topic_title" id="topic_title" value="" />