Changeset 3810 for trunk/bp-themes/bp-default/forums/index.php
- Timestamp:
- 01/22/2011 10:13:25 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-themes/bp-default/forums/index.php
r3771 r3810 1 <?php get_header() ?> 1 <?php 2 3 /** 4 * BuddyPress - Forums Directory 5 * 6 * @package BuddyPress 7 * @subpackage bp-default 8 */ 9 10 ?> 11 12 <?php get_header(); ?> 13 14 <?php do_action( 'bp_before_directory_forums_content' ); ?> 2 15 3 16 <div id="content"> 4 17 <div class="padder"> 5 18 6 <?php do_action( 'bp_before_directory_forums' ) ?>19 <?php do_action( 'bp_before_directory_forums' ); ?> 7 20 8 21 <form action="" method="post" id="forums-search-form" class="dir-form"> 9 22 10 <h3><?php _e( 'Group Forums Directory', 'buddypress' ) ?><?php if ( is_user_logged_in() ) : ?> <a class="button" href="#new-topic" id="new-topic-button"><?php _e( 'New Topic', 'buddypress' ) ?></a><?php endif; ?></h3> 11 12 <?php do_action( 'bp_before_directory_forums_content' ) ?> 23 <h3><?php _e( 'Group Forums Directory', 'buddypress' ); ?><?php if ( is_user_logged_in() ) : ?> <a class="button" href="#new-topic" id="new-topic-button"><?php _e( 'New Topic', 'buddypress' ); ?></a><?php endif; ?></h3> 13 24 14 25 <div id="forums-dir-search" class="dir-search" role="search"> 15 <?php bp_directory_forums_search_form() ?> 26 27 <?php bp_directory_forums_search_form(); ?> 28 16 29 </div> 17 30 </form> 18 31 32 <?php do_action( 'bp_before_new_topic_form' ); ?> 33 19 34 <div id="new-topic-post"> 35 20 36 <?php if ( is_user_logged_in() ) : ?> 21 37 … … 27 43 28 44 <a name="post-new"></a> 29 <h5><?php _e( 'Post a New Topic:', 'buddypress' ) ?></h5>45 <h5><?php _e( 'Post a New Topic:', 'buddypress' ); ?></h5> 30 46 31 <label><?php _e( 'Title:', 'buddypress' ) ?></label>47 <label><?php _e( 'Title:', 'buddypress' ); ?></label> 32 48 <input type="text" name="topic_title" id="topic_title" value="" /> 33 49 34 <label><?php _e( 'Content:', 'buddypress' ) ?></label>50 <label><?php _e( 'Content:', 'buddypress' ); ?></label> 35 51 <textarea name="topic_text" id="topic_text"></textarea> 36 52 37 <label><?php _e( 'Tags (comma separated):', 'buddypress' ) ?></label>53 <label><?php _e( 'Tags (comma separated):', 'buddypress' ); ?></label> 38 54 <input type="text" name="topic_tags" id="topic_tags" value="" /> 39 55 40 <label><?php _e( 'Post In Group Forum:', 'buddypress' ) ?></label>56 <label><?php _e( 'Post In Group Forum:', 'buddypress' ); ?></label> 41 57 <select id="topic_group_id" name="topic_group_id"> 42 58 … … 47 63 <?php if ( bp_group_is_forum_enabled() && 'public' == bp_get_group_status() ) : ?> 48 64 49 <option value="<?php bp_group_id() ?>"><?php bp_group_name()?></option>65 <option value="<?php bp_group_id(); ?>"><?php bp_group_name(); ?></option> 50 66 51 67 <?php endif; ?> … … 55 71 </select><!-- #topic_group_id --> 56 72 57 <?php do_action( 'groups_forum_new_topic_after' ) ?>73 <?php do_action( 'groups_forum_new_topic_after' ); ?> 58 74 59 75 <div class="submit"> 60 <input type="submit" name="submit_topic" id="submit" value="<?php _e( 'Post Topic', 'buddypress' ) ?>" />61 <input type="button" name="submit_topic_cancel" id="submit_topic_cancel" value="<?php _e( 'Cancel', 'buddypress' ) ?>" />76 <input type="submit" name="submit_topic" id="submit" value="<?php _e( 'Post Topic', 'buddypress' ); ?>" /> 77 <input type="button" name="submit_topic_cancel" id="submit_topic_cancel" value="<?php _e( 'Cancel', 'buddypress' ); ?>" /> 62 78 </div> 63 79 64 <?php wp_nonce_field( 'bp_forums_new_topic' ) ?>80 <?php wp_nonce_field( 'bp_forums_new_topic' ); ?> 65 81 66 82 </form><!-- #forum-topic-form --> … … 69 85 70 86 <div id="message" class="info"> 87 71 88 <p><?php printf( __( "You are not a member of any groups so you don't have any group forums you can post in. To start posting, first find a group that matches the topic subject you'd like to start. If this group does not exist, why not <a href='%s'>create a new group</a>? Once you have joined or created the group you can post your topic in that group's forum.", 'buddypress' ), site_url( BP_GROUPS_SLUG . '/create/' ) ) ?></p> 89 72 90 </div> 73 91 … … 77 95 </div><!-- #new-topic-post --> 78 96 97 <?php do_action( 'bp_before_topics' ); ?> 98 79 99 <form action="" method="post" id="forums-directory-form" class="dir-form"> 80 100 81 101 <div class="item-list-tabs" role="navigation"> 82 102 <ul> 83 <li class="selected" id="forums-all"><a href="<?php bp_root_domain() ?>"><?php printf( __( 'All Topics (%s)', 'buddypress' ), bp_get_forum_topic_count() )?></a></li>103 <li class="selected" id="forums-all"><a href="<?php bp_root_domain(); ?>"><?php printf( __( 'All Topics (%s)', 'buddypress' ), bp_get_forum_topic_count() ); ?></a></li> 84 104 85 105 <?php if ( is_user_logged_in() && bp_get_forum_topic_count_for_user( bp_loggedin_user_id() ) ) : ?> 86 <li id="forums-personal"><a href="<?php echo bp_loggedin_user_domain() . BP_GROUPS_SLUG . '/' ?>"><?php printf( __( 'My Topics (%s)', 'buddypress' ), bp_get_forum_topic_count_for_user( bp_loggedin_user_id() ) ) ?></a></li> 106 107 <li id="forums-personal"><a href="<?php echo trailingslashit( bp_loggedin_user_domain() . bp_get_groups_slug() ); ?>"><?php printf( __( 'My Topics (%s)', 'buddypress' ), bp_get_forum_topic_count_for_user( bp_loggedin_user_id() ) ); ?></a></li> 108 87 109 <?php endif; ?> 88 110 89 <?php do_action( 'bp_forums_directory_group_types' ) ?> 111 <?php do_action( 'bp_forums_directory_group_types' ); ?> 112 113 </ul> 114 </div> 115 116 <div class="item-list-tabs" id="subnav" role="navigation"> 117 <ul> 118 119 <?php do_action( 'bp_forums_directory_group_sub_types' ); ?> 90 120 91 121 <li id="forums-order-select" class="last filter"> 92 122 93 <?php _e( 'Order By:', 'buddypress' ) ?> 123 <?php _e( 'Order By:', 'buddypress' ); ?> 124 94 125 <select> 95 <option value="active"><?php _e( 'Last Active', 'buddypress' ) ?></option>96 <option value="popular"><?php _e( 'Most Posts', 'buddypress' ) ?></option>97 <option value="unreplied"><?php _e( 'Unreplied', 'buddypress' ) ?></option>126 <option value="active"><?php _e( 'Last Active', 'buddypress' ); ?></option> 127 <option value="popular"><?php _e( 'Most Posts', 'buddypress' ); ?></option> 128 <option value="unreplied"><?php _e( 'Unreplied', 'buddypress' ); ?></option> 98 129 99 <?php do_action( 'bp_forums_directory_order_options' ) ?> 130 <?php do_action( 'bp_forums_directory_order_options' ); ?> 131 100 132 </select> 101 133 </li> … … 103 135 </div> 104 136 105 <?php do_action( 'bp_before_directory_forums_list' ) ?>137 <?php do_action( 'bp_before_directory_forums_list' ); ?> 106 138 107 139 <div id="forums-dir-list" class="forums dir-list" role="main"> 108 <?php locate_template( array( 'forums/forums-loop.php' ), true ) ?> 140 141 <?php locate_template( array( 'forums/forums-loop.php' ), true ); ?> 142 109 143 </div> 110 144 111 <?php do_action( 'bp_directory_forums_content' ) ?>145 <?php do_action( 'bp_directory_forums_content' ); ?> 112 146 113 <?php wp_nonce_field( 'directory_forums', '_wpnonce-forums-filter' ) ?> 114 115 <?php do_action( 'bp_after_directory_forums_content' ) ?> 147 <?php wp_nonce_field( 'directory_forums', '_wpnonce-forums-filter' ); ?> 116 148 117 149 </form> 118 150 119 <?php do_action( 'bp_after_directory_forums' ) ?>151 <?php do_action( 'bp_after_directory_forums' ); ?> 120 152 121 153 </div><!-- .padder --> 122 154 </div><!-- #content --> 123 155 124 <?php get_sidebar()?>156 <?php do_action( 'bp_after_directory_forums_content' ); ?> 125 157 126 <?php get_footer() ?> 158 <?php get_sidebar(); ?> 159 <?php get_footer(); ?>
Note: See TracChangeset
for help on using the changeset viewer.