Commits

Doug Stewart  committed 97abd5e

bbPress support files, as pulled from bbp-twentyten template.

  • Participants
  • Parent commits 58caef6

Comments (0)

Files changed (54)

File archive-forum.php

+<?php
+
+/**
+ * bbPress - Forum Archive
+ *
+ * @package bbPress
+ * @subpackage Theme
+ */
+
+?>
+
+<?php get_header(); ?>
+
+<?php get_template_part( 'bbp-wrapper-header' ); ?>
+
+				<?php do_action( 'bbp_template_notices' ); ?>
+
+				<div id="forum-front" class="bbp-forum-front">
+					<h1 class="entry-title"><?php _e( 'Forums', 'bbpress' ); ?></h1>
+					<div class="entry-content">
+
+						<?php do_action( 'bbp_template_before_forums_index' ); ?>
+
+						<?php if ( bbp_has_forums() ) : ?>
+
+							<?php bbp_get_template_part( 'bbpress/loop', 'forums' ); ?>
+
+						<?php else : ?>
+
+							<?php bbp_get_template_part( 'bbpress/no',   'forums' ); ?>
+
+						<?php endif; ?>
+
+						<?php do_action( 'bbp_template_after_forums_index' ); ?>
+
+					</div>
+				</div><!-- #forum-front -->
+
+<?php get_template_part( 'bbp-wrapper-footer' ); ?>

File archive-topic.php

+<?php
+
+/**
+ * bbPress - Topic Archive
+ *
+ * @package bbPress
+ * @subpackage Theme
+ */
+
+?>
+
+<?php get_header(); ?>
+
+<?php get_template_part( 'bbp-wrapper-header' ); ?>
+
+				<?php do_action( 'bbp_template_notices' ); ?>
+
+				<?php while ( have_posts() ) : the_post(); ?>
+
+					<div id="topics-front" class="bbp-topics-front">
+						<h1 class="entry-title"><?php the_title(); ?></h1>
+						<div class="entry-content">
+
+							<?php bbp_breadcrumb(); ?>
+
+							<?php do_action( 'bbp_template_before_topics_index' ); ?>
+
+							<?php if ( bbp_has_topics() ) : ?>
+
+								<?php bbp_get_template_part( 'bbpress/pagination', 'topics' ); ?>
+
+								<?php bbp_get_template_part( 'bbpress/loop',       'topics' ); ?>
+
+								<?php bbp_get_template_part( 'bbpress/pagination', 'topics' ); ?>
+
+							<?php else : ?>
+
+								<?php bbp_get_template_part( 'bbpress/no', 'topics' ); ?>
+
+							<?php endif; ?>
+
+							<?php do_action( 'bbp_template_after_topics_index' ); ?>
+
+						</div>
+					</div><!-- #topics-front -->
+
+				<?php endwhile; ?>
+
+<?php get_template_part( 'bbp-wrapper-footer' ); ?>

File bbp-wrapper-footer.php

+		</div><!-- #lb-content -->
+	</div><!-- #wrapper -->
+	
+	<?php get_sidebar(); ?>
+	
+</div><!-- #allwrapper -->
+
+<?php get_footer(); ?>

File bbp-wrapper-header.php

+<div id="allwrapper">
+	<div id="wrapper">
+		<div id="lb-content" role="main">

File bbpress/action-edit.php

+<?php
+
+/**
+ * Edit handler for topics and replies
+ *
+ * @package bbPress
+ * @subpackage Theme
+ */
+
+?>
+
+<?php get_header(); ?>
+
+<?php get_template_part( 'bbp-wrapper-header' ); ?>
+
+				<?php while ( have_posts() ) the_post(); ?>
+
+					<div id="bbp-edit-page" class="bbp-edit-page">
+						<h1 class="entry-title"><?php the_title(); ?></h1>
+						<div class="entry-content">
+
+							<?php bbp_breadcrumb(); ?>
+
+							<?php if ( bbp_is_reply_edit() ) : ?>
+
+								<?php bbp_get_template_part( 'bbpress/form', 'reply' ); ?>
+
+							<?php elseif ( bbp_is_topic_edit() ) : ?>
+
+								<?php bbp_get_template_part( 'bbpress/form', 'topic' ); ?>
+
+							<?php endif; ?>
+
+						</div>
+					</div><!-- #bbp-edit-page -->
+
+<?php get_template_part( 'bbp-wrapper-footer' ); ?>

File bbpress/action-split-merge.php

+<?php
+
+/**
+ * Split/merge topic page
+ *
+ * @package bbPress
+ * @subpackage Theme
+ */
+
+?>
+
+<?php get_header(); ?>
+
+<?php get_template_part( 'bbp-wrapper-header' ); ?>
+
+				<?php do_action( 'bbp_template_notices' ); ?>
+
+				<?php while ( have_posts() ) the_post(); ?>
+
+					<div id="bbp-edit-page" class="bbp-edit-page">
+						<h1 class="entry-title"><?php the_title(); ?></h1>
+						<div class="entry-content">
+
+							<?php bbp_breadcrumb(); ?>
+
+							<?php if ( bbp_is_topic_merge() ) : ?>
+
+								<?php bbp_get_template_part( 'bbpress/form', 'merge' ); ?>
+
+							<?php elseif ( bbp_is_topic_split() ) : ?>
+
+								<?php bbp_get_template_part( 'bbpress/form', 'split' ); ?>
+
+							<?php endif; ?>
+
+						</div>
+					</div><!-- #bbp-edit-page -->
+
+<?php get_template_part( 'bbp-wrapper-footer' ); ?>

File bbpress/css/bbpress-rtl.css

+/**
+ * bbPress specific CSS
+ *
+ * @package bbPress
+ * @subpackage Theme
+ */
+
+/* =bbPress Style
+-------------------------------------------------------------- */
+
+#content hr,
+#container hr {
+	margin: 0 0 24px 0;
+}
+#entry-author-info {
+	margin: 10px 0 0 0;
+	border-bottom: 1px solid #fff;
+}
+
+#content table.bbp-topics,
+#content table.bbp-forums,
+#content table.bbp-replies,
+
+#container table.bbp-topics,
+#container table.bbp-forums,
+#container table.bbp-replies,
+
+#main table.bbp-topics,
+#main table.bbp-forums,
+#main table.bbp-replies {
+	clear: right;
+}
+
+/* =Breadcrumb and Tags
+-------------------------------------------------------------- */
+
+div.bbp-breadcrumb {
+	float: right;
+}
+
+div.bbp-breadcrumb,
+div.bbp-topic-tags {
+	font-size: 12px;
+}
+
+#content div.bbp-breadcrumb p,
+#content div.bbp-topic-tags p {
+	margin-bottom: 10px
+}
+
+div.bbp-topic-tags {
+	float: left;
+}
+
+/* =Tables
+-------------------------------------------------------------- */
+
+#content table tbody tr.even td {
+	background-color: #fff;
+}
+#content table tbody tr.odd td {
+	background-color: #fbfbfb;
+}
+
+#content table tbody tr.status-trash.even td,
+#content table tbody tr.status-spam.even td {
+	background-color: #fee;
+}
+#content table tbody tr.status-trash.odd td,
+#content table tbody tr.status-spam.odd td {
+	background-color: #fdd;
+}
+
+#content table.bbp-topics tbody tr.status-closed td,
+#content table.bbp-topics tbody tr.status-closed td a {
+	color: #ccc;
+}
+
+table.bbp-topic tbody tr td,
+table.bbp-replies tbody tr td {
+	background-color: #fff;
+}
+
+table.bbp-forums th, table.bbp-topics th,
+table.bbp-topic th, table.bbp-replies th {
+	background-color: #f3f3f3;
+}
+table.bbp-forums th span, table.bbp-topics th span,
+table.bbp-topic th span, table.bbp-replies th span {
+	float: left;
+}
+#content th.bbp-topic-author,
+#content th.bbp-reply-author {
+	text-align: center;
+}
+#content th.bbp-topic-content,
+#content th.bbp-reply-content {
+	text-align: left;
+	padding: 9px 15px 9px 10px;
+}
+#content table.bbp-forums tfoot td, #content table.bbp-topics tfoot td,
+#content table.bbp-topic tfoot td, #content table.bbp-replies tfoot td,
+#content table.bbp-replies tr.bbp-reply-header td,
+#content table.bbp-topic tr.bbp-topic-header td {
+	background-color: #fafafa;
+	color: #888;
+	font-size: 12px;
+	font-weight: bold;
+	font-family: 'Helvetica Neue', Arial, Helvetica, 'Nimbus Sans L', sans-serif;
+	padding: 4px 10px;
+}
+
+span.bbp-author-ip {
+	font-family: 'Helvetica Neue', Arial, Helvetica, 'Nimbus Sans L', sans-serif;
+	font-size: 11px;
+	font-weight: bold;
+	color: #aaa;
+}
+
+#content .bbp-forum-topic-count,
+#content .bbp-forum-reply-count,
+#content .bbp-topic-reply-count,
+#content .bbp-topic-voice-count,
+#content .bbp-topic-action {
+	width: 10%;
+	text-align: center;
+	padding: 6px 0px;
+}
+#content .bbp-topic-author,
+#content .bbp-reply-author {
+	padding: 20px 0 20px 20px
+	width: 90px;
+	text-align: center;
+	vertical-align: top;
+}
+.bbp-topic-freshness,
+.bbp-forum-freshness {
+	text-align: center;
+	width: 20%;
+}
+
+#content tbody .bbp-topic-content,
+#content tbody .bbp-reply-content {
+	vertical-align: top;
+	padding: 15px 15px 10px 10px;
+}
+
+#content .bbp-topic-content img,
+#content .bbp-reply-content img {
+	max-width: 100%;
+}
+
+/* =Admin Links
+-------------------------------------------------------------- */
+
+span.bbp-admin-links {
+	float: left;
+	color: #ddd;
+}
+span.bbp-admin-links a {
+	color: #bbb;
+	font-weight: normal;
+	font-size: 10px;
+	text-transform: uppercase;
+	text-decoration: none;
+}
+fieldset span.bbp-admin-links {
+	float: right;
+}
+tr td span.bbp-admin-links a:hover {
+	color: #ff4b33;
+}
+td.bbp-topic-admin-links,
+td.bbp-topic-counts {
+	width: 50%;
+}
+
+a.bbp-reply-permalink {
+	float: left;
+	margin-right: 10px;
+	color: #ccc;
+}
+
+/* =Toggles
+-------------------------------------------------------------- */
+
+.bbp-topic-action #favorite-toggle a {
+	text-decoration: none;
+	padding: 0px 3px 1px;
+	color: #7c7;
+	border: 1px solid #aca;
+	background-color: #dfd;
+	font-weight: bold;
+	font-size: 13px;
+	-moz-border-radius: 8px;
+	-webkit-border-radius: 8px;
+	}
+	.bbp-topic-action #favorite-toggle a:hover {
+		color: #5a5;
+		border-color: #7c7;
+		background-color: #beb;
+	}
+	.bbp-topic-action #favorite-toggle span.is-favorite a {
+		color: #faa;
+		border: 1px solid #faa;
+		background-color: #fee;
+		-moz-border-radius: 5px;
+		-webkit-border-radius: 5px;
+		}
+		.bbp-topic-action #favorite-toggle span.is-favorite a:hover {
+			color: #c88;
+			border-color: #c88;
+			background-color: #fdd;
+		}
+
+.bbp-topic-action #subscription-toggle a {
+	text-decoration: none;
+	padding: 0px 3px 1px;
+	color: #7c7;
+	border: 1px solid #aca;
+	background-color: #dfd;
+	font-weight: bold;
+	font-size: 13px;
+	-moz-border-radius: 8px;
+	-webkit-border-radius: 8px;
+	}
+	.bbp-topic-action #subscription-toggle a:hover {
+		color: #5a5;
+		border-color: #7c7;
+		background-color: #beb;
+	}
+	.bbp-topic-action #subscription-toggle span.is-subscribed a {
+		color: #faa;
+		border: 1px solid #faa;
+		background-color: #fee;
+		-moz-border-radius: 5px;
+		-webkit-border-radius: 5px;
+		}
+		.bbp-topic-action #subscription-toggle span.is-subscribed a:hover {
+			color: #c88;
+			border-color: #c88;
+			background-color: #fdd;
+		}
+
+#content p.bbp-topic-meta {
+	margin-bottom: 0;
+	font-size: 11px;
+}
+
+#content p.bbp-topic-meta span {
+	white-space: nowrap;
+}
+
+/* =Forums
+-------------------------------------------------------------- */
+
+#content table tbody tr .bbp-forum-description p {
+	margin-bottom: 0;
+	font-size: 13px;
+	font-style: italic;
+}
+#content table tbody tr ul.bbp-forums {
+	list-style: none;
+	font-size: 12px;
+	margin: 0 0 0 10px;
+	padding: 0 0 0 10px;
+	border-right: 1px solid #aaa;
+}
+#content table tbody tr ul.bbp-forums li {
+	display: inline;
+}
+
+/* =Pagination
+-------------------------------------------------------------- */
+
+.bbp-pagination-count {
+	float: right;
+}
+.bbp-pagination-links {
+	float: left;
+}
+.bbp-pagination {
+	float: right;
+	width: 100%;
+	margin-bottom: 20px;
+}
+
+.bbp-topic-pagination {
+	display: inline-block;
+	margin-right: 5px;
+	margin-bottom: 2px;
+	}
+	.bbp-topic-pagination a {
+		font-size: 10px;
+		line-height: 10px;
+		padding: 1px 3px;
+		border: 1px solid #ddd;
+		text-decoration: none;
+	}
+
+/* =Forms
+-------------------------------------------------------------- */
+#content fieldset.bbp-form,
+#container fieldset.bbp-form,
+#wrapper fieldset.bbp-form {
+	clear: right;
+}
+
+#content fieldset.bbp-form,
+#container fieldset.bbp-form,
+#wrapper fieldset.bbp-form {
+	border: 1px solid #eee;
+	padding: 10px 20px;
+}
+
+#content fieldset.bbp-form legend,
+#container fieldset.bbp-form legend,
+#wrapper fieldset.bbp-form legend {
+	padding: 5px;
+}
+
+#content fieldset.bbp-form label,
+#container fieldset.bbp-form label,
+#wrapper fieldset.bbp-form label {
+	width: 250px;
+	display: inline-block;
+}
+
+#bbp-edit-topic-tag.bbp-form fieldset.bbp-form label,
+#bbp-login fieldset label,
+#bbp-register fieldset label,
+#bbp-lost-pass fieldset label {
+	width: 100px;
+}
+
+#content fieldset.bbp-form p,
+#container fieldset.bbp-form p,
+#wrapper fieldset.bbp-form p,
+#content fieldset.bbp-form textarea,
+#container fieldset.bbp-form textarea,
+#wrapper fieldset.bbp-form textarea,
+#content fieldset.bbp-form select,
+#container fieldset.bbp-form select,
+#wrapper fieldset.bbp-form select,
+#content fieldset.bbp-form input,
+#container fieldset.bbp-form input,
+#wrapper fieldset.bbp-form input {
+	margin: 0px 0px 10px;
+}
+
+.bbp-topic-form,
+.bbp-reply-form,
+.bbp-topic-tag-form {
+	clear: right;
+}
+body.topic-edit .bbp-topic-form div.avatar img,
+body.reply-edit .bbp-reply-form div.avatar img,
+body.single-forum .bbp-topic-form div.avatar img,
+body.single-reply .bbp-reply-form div.avatar img {
+	margin-left: 0;
+	padding: 10px;
+	border: 1px solid #ddd;
+	line-height: 0;
+	background-color: #efefef;
+}
+
+body.page .bbp-reply-form code,
+body.page .bbp-topic-form code,
+body.single-topic .bbp-reply-form code,
+body.single-forum .bbp-topic-form code,
+body.topic-edit .bbp-topic-form code,
+body.reply-edit .bbp-reply-form code {
+	font-size: 10px;
+	background-color: #f0fff8;
+	border: 1px solid #CEEFE1;
+	display: block;
+	padding: 8px;
+	margin-top: 5px;
+	width: 369px;
+}
+
+#merge_tag,
+#delete_tag {
+	display: inline;
+}
+
+div.bbp-submit-wrapper {
+	float: left;
+}
+
+p.form-allowed-tags {
+	width: 462px;
+}
+
+input[type="password"] {
+	background: #f9f9f9;
+	border: 1px solid #ccc;
+	box-shadow: inset 1px 1px 1px rgba(0,0,0,0.1);
+	-moz-box-shadow: inset 1px 1px 1px rgba(0,0,0,0.1);
+	-webkit-box-shadow: inset 1px 1px 1px rgba(0,0,0,0.1);
+	padding: 2px;
+}
+
+/* =Edit User
+-------------------------------------------------------------- */
+
+#bbp-your-profile fieldset {
+	margin-top: 20px;
+	padding: 20px 20px 0 20px;
+}
+	#bbp-your-profile fieldset div {
+		margin-bottom: 20px;
+		float: right;
+		width: 100%;
+		clear: right;
+	}
+	#bbp-your-profile fieldset select {
+		margin-bottom: 0;
+	}
+	#bbp-your-profile fieldset input,
+	#bbp-your-profile fieldset textarea {
+		margin-bottom: 0;
+		width: 400px;
+		background: #f9f9f9;
+		border: 1px solid #ccc;
+		box-shadow: inset 1px 1px 1px rgba(0,0,0,0.1);
+		-moz-box-shadow: inset 1px 1px 1px rgba(0,0,0,0.1);
+		-webkit-box-shadow: inset 1px 1px 1px rgba(0,0,0,0.1);
+		padding: 2px;
+	}
+	#bbp-your-profile fieldset legend {
+		display: none;
+	}
+	#bbp-your-profile fieldset label {
+		float: right;
+		width: 150px;
+		padding-left: 20px;
+		text-align: left;
+	}
+	#bbp-your-profile fieldset span.description {
+		margin: 5px 0 0 170px;
+		font-size: 12px;
+		font-style: italic;
+		float: right;
+		clear: right;
+		width: 383px;
+		padding: 5px 10px;
+		border: #cee1ef 1px solid;
+		background-color: #f0f8ff;
+	}
+
+	#bbp-your-profile fieldset fieldset {
+		margin: 0;
+		width: 260px;
+		border: none;
+		padding: 0;
+	}
+	#bbp-your-profile fieldset fieldset span.description {
+		margin-right: 0;
+		margin-bottom: 20px;
+	}
+
+	#bbp-your-profile fieldset.submit button {
+		float: left;
+	}
+
+/* =Notices
+-------------------------------------------------------------- */
+
+div.bbp-template-notice {
+	border-width: 1px;
+	border-style: solid;
+	padding: 0 0.6em;
+	margin: 5px 0 15px;
+	-moz-border-radius: 3px;
+	-khtml-border-radius: 3px;
+	-webkit-border-radius: 3px;
+	border-radius: 3px;
+	background-color: #ffffe0;
+	border-color: #e6db55;
+	color: #000;
+	clear: both;
+}
+div.bbp-template-notice a {
+	color: #555;
+	text-decoration: none;
+}
+	div.bbp-template-notice a:hover {
+		color: #000;
+	}
+	div.bbp-template-notice.info {
+		border: #cee1ef 1px solid;
+		background-color: #f0f8ff;
+	}
+	div.bbp-template-notice.important {
+		border: #e6db55 1px solid;
+		background-color: #fffbcc;
+	}
+	div.bbp-template-notice.error,
+	div.bbp-template-notice.warning {
+		background-color: #ffebe8;
+		border-color: #c00;
+	}
+	div.bbp-template-notice.error a,
+	div.bbp-template-notice.warning a {
+		color: #c00;
+	}
+	div.bbp-template-notice p {
+		margin: 0.5em 0 6px 0 !important;
+		padding: 2px;
+		font-size: 12px;
+		line-height: 140%;
+	}
+
+/* =Stickies
+-------------------------------------------------------------- */
+
+.bbp-topics-front tr.super-sticky td,
+.bbp-topics tr.super-sticky td,
+.bbp-topics tr.sticky td,
+.bbp-forum-info tr.sticky td {
+	background-color: #ffffe0 !important;
+	font-size: 1.1em;
+}
+
+/* =Revisions
+-------------------------------------------------------------- */
+#content .bbp-topic-revision-log,
+#content .bbp-reply-revision-log,
+
+#main .bbp-topic-revision-log,
+#main .bbp-reply-revision-log,
+
+#container .bbp-topic-revision-log,
+#container .bbp-reply-revision-log {
+	border-top: 1px dotted #ddd;
+	list-style: none;
+	width: 100%;
+	margin: 0;
+	padding: 8px 0 0 0;
+	font-size: 11px;
+	color: #aaa;
+}
+
+/* =Widgets
+-------------------------------------------------------------- */
+
+.widget-area .bbp-login-form fieldset legend {
+	display: none;
+}
+
+.widget-area .bbp-login-form .bbp-username label,
+.widget-area .bbp-login-form .bbp-password label {
+	width: 70px;
+	display: inline-block;
+}
+.widget-area .bbp-login-form .bbp-username,
+.widget-area .bbp-login-form .bbp-password,
+.widget-area .bbp-login-form .bbp-remember-me,
+.widget-area .bbp-login-form .bbp-submit-wrapper {
+	margin-top: 10px;
+}
+
+.widget-area .bbp-login-form .bbp-remember-me {
+	float: right;
+}
+
+.widget-area .bbp-login-form .bbp-submit-wrapper {
+	float: left;
+}
+
+.widget-area .bbp-logged-in img.avatar {
+	float: right;
+	margin-left: 15px;
+}
+
+.widget-area .bbp-logged-in h4 {
+	font-weight: bold;
+	font-size: 1.3em;
+	display: inline;
+	clear: none;
+}
+
+.widget-area .bbp-logged-in a.logout-link {
+	display: block;
+}
+
+/* =Avatars
+-------------------------------------------------------------- */
+
+#content p.bbp-topic-meta img.avatar,
+#content ul.bbp-reply-revision-log img.avatar,
+#content ul.bbp-topic-revision-log img.avatar,
+#content div.bbp-template-notice img.avatar,
+#content .widget_display_topics img.avatar,
+#content .widget_display_replies img.avatar,
+#content p.bbp-topic-meta img.avatar,
+
+#main ul.bbp-reply-revision-log img.avatar,
+#main ul.bbp-topic-revision-log img.avatar,
+#main div.bbp-template-notice img.avatar,
+#main .widget_display_topics img.avatar,
+#main .widget_display_replies img.avatar,
+#main p.bbp-topic-meta img.avatar,
+
+#container ul.bbp-reply-revision-log img.avatar,
+#container ul.bbp-topic-revision-log img.avatar,
+#container div.bbp-template-notice img.avatar,
+#container .widget_display_topics img.avatar,
+#container .widget_display_replies img.avatar {
+	float: none;
+	margin-bottom: -7px;
+	border: 3px double #ddd;
+}
+
+fieldset div.avatar {
+	float: left;
+}

File bbpress/css/bbpress.css

+/**
+ * bbPress specific CSS
+ *
+ * @package bbPress
+ * @subpackage Theme
+ */
+
+/* =bbPress Style
+-------------------------------------------------------------- */
+
+#content hr,
+#container hr {
+	margin: 0 0 24px 0;
+}
+#entry-author-info {
+	margin: 10px 0 0 0;
+	border-bottom: 1px solid #fff;
+}
+
+#content table.bbp-topics,
+#content table.bbp-forums,
+#content table.bbp-replies,
+
+#container table.bbp-topics,
+#container table.bbp-forums,
+#container table.bbp-replies,
+
+#main table.bbp-topics,
+#main table.bbp-forums,
+#main table.bbp-replies {
+	clear: left;
+}
+
+/* =Breadcrumb and Tags
+-------------------------------------------------------------- */
+
+div.bbp-breadcrumb {
+	float: left;
+}
+
+div.bbp-breadcrumb,
+div.bbp-topic-tags {
+	font-size: 12px;
+}
+
+#content div.bbp-breadcrumb p,
+#content div.bbp-topic-tags p {
+	margin-bottom: 10px
+}
+
+div.bbp-topic-tags {
+	float: right;
+}
+
+/* =Tables
+-------------------------------------------------------------- */
+
+#content table tbody tr.even td {
+	background-color: #fff;
+}
+#content table tbody tr.odd td {
+	background-color: #fbfbfb;
+}
+
+#content table tbody tr.status-trash.even td,
+#content table tbody tr.status-spam.even td {
+	background-color: #fee;
+}
+#content table tbody tr.status-trash.odd td,
+#content table tbody tr.status-spam.odd td {
+	background-color: #fdd;
+}
+
+#content table.bbp-topics tbody tr.status-closed td,
+#content table.bbp-topics tbody tr.status-closed td a {
+	color: #ccc;
+}
+
+table.bbp-topic tbody tr td,
+table.bbp-replies tbody tr td {
+	background-color: #fff;
+}
+
+table.bbp-forums th, table.bbp-topics th,
+table.bbp-topic th, table.bbp-replies th {
+	background-color: #f3f3f3;
+}
+table.bbp-forums th span, table.bbp-topics th span,
+table.bbp-topic th span, table.bbp-replies th span {
+	float: right;
+}
+#content th.bbp-topic-author,
+#content th.bbp-reply-author {
+	text-align: center;
+}
+#content th.bbp-topic-content,
+#content th.bbp-reply-content {
+	text-align: left;
+	padding: 9px 10px 9px 15px;
+}
+#content table.bbp-forums tfoot td, #content table.bbp-topics tfoot td,
+#content table.bbp-topic tfoot td, #content table.bbp-replies tfoot td,
+#content table.bbp-replies tr.bbp-reply-header td,
+#content table.bbp-topic tr.bbp-topic-header td {
+	background-color: #fafafa;
+	color: #888;
+	font-size: 12px;
+	font-weight: bold;
+	font-family: 'Helvetica Neue', Arial, Helvetica, 'Nimbus Sans L', sans-serif;
+	padding: 4px 10px;
+}
+
+span.bbp-author-ip {
+	font-family: 'Helvetica Neue', Arial, Helvetica, 'Nimbus Sans L', sans-serif;
+	font-size: 11px;
+	font-weight: bold;
+	color: #aaa;
+}
+
+#content .bbp-forum-topic-count,
+#content .bbp-forum-reply-count,
+#content .bbp-topic-reply-count,
+#content .bbp-topic-voice-count,
+#content .bbp-topic-action {
+	width: 10%;
+	text-align: center;
+	padding: 6px 0px;
+}
+#content td.bbp-topic-author,
+#content td.bbp-reply-author {
+	padding: 20px 0 20px 20px;
+	width: 90px;
+	text-align: center;
+	vertical-align: top;
+}
+.bbp-topic-freshness,
+.bbp-forum-freshness {
+	text-align: center;
+	width: 20%;
+}
+
+#content tbody .bbp-topic-content,
+#content tbody .bbp-reply-content {
+	vertical-align: top;
+	padding: 15px 10px 10px 15px;
+}
+
+#content .bbp-topic-content img,
+#content .bbp-reply-content img {
+	max-width: 100%;
+}
+
+/* =Admin Links
+-------------------------------------------------------------- */
+
+span.bbp-admin-links {
+	float: right;
+	color: #ddd;
+}
+span.bbp-admin-links a {
+	color: #bbb;
+	font-weight: normal;
+	font-size: 10px;
+	text-transform: uppercase;
+	text-decoration: none;
+}
+fieldset span.bbp-admin-links {
+	float: left;
+}
+tr td span.bbp-admin-links a:hover {
+	color: #ff4b33;
+}
+td.bbp-topic-admin-links,
+td.bbp-topic-counts {
+	width: 50%;
+}
+
+a.bbp-topic-permalink,
+a.bbp-reply-permalink {
+	float: right;
+	margin-left: 10px;
+	color: #ccc;
+}
+
+/* =Toggles
+-------------------------------------------------------------- */
+
+.bbp-topic-action #favorite-toggle a {
+	text-decoration: none;
+	padding: 0px 3px 1px;
+	color: #7c7;
+	border: 1px solid #aca;
+	background-color: #dfd;
+	font-weight: bold;
+	font-size: 13px;
+	-moz-border-radius: 8px;
+	-webkit-border-radius: 8px;
+	}
+	.bbp-topic-action #favorite-toggle a:hover {
+		color: #5a5;
+		border-color: #7c7;
+		background-color: #beb;
+	}
+	.bbp-topic-action #favorite-toggle span.is-favorite a {
+		color: #faa;
+		border: 1px solid #faa;
+		background-color: #fee;
+		-moz-border-radius: 5px;
+		-webkit-border-radius: 5px;
+		}
+		.bbp-topic-action #favorite-toggle span.is-favorite a:hover {
+			color: #c88;
+			border-color: #c88;
+			background-color: #fdd;
+		}
+
+.bbp-topic-action #subscription-toggle a {
+	text-decoration: none;
+	padding: 0px 3px 1px;
+	color: #7c7;
+	border: 1px solid #aca;
+	background-color: #dfd;
+	font-weight: bold;
+	font-size: 13px;
+	-moz-border-radius: 8px;
+	-webkit-border-radius: 8px;
+	}
+	.bbp-topic-action #subscription-toggle a:hover {
+		color: #5a5;
+		border-color: #7c7;
+		background-color: #beb;
+	}
+	.bbp-topic-action #subscription-toggle span.is-subscribed a {
+		color: #faa;
+		border: 1px solid #faa;
+		background-color: #fee;
+		-moz-border-radius: 5px;
+		-webkit-border-radius: 5px;
+		}
+		.bbp-topic-action #subscription-toggle span.is-subscribed a:hover {
+			color: #c88;
+			border-color: #c88;
+			background-color: #fdd;
+		}
+
+#content p.bbp-topic-meta {
+	margin-bottom: 0;
+	font-size: 11px;
+}
+
+#content p.bbp-topic-meta span {
+	white-space: nowrap;
+}
+
+/* =Forums
+-------------------------------------------------------------- */
+
+#content table tbody tr .bbp-forum-description p {
+	margin-bottom: 0;
+	font-size: 13px;
+	font-style: italic;
+}
+#content table tbody tr ul.bbp-forums {
+	list-style: none;
+	font-size: 12px;
+	margin: 0 0 0 10px;
+	padding: 0 0 0 10px;
+	border-left: 1px solid #aaa;
+}
+#content table tbody tr ul.bbp-forums li {
+	display: inline;
+}
+
+/* =Pagination
+-------------------------------------------------------------- */
+
+.bbp-pagination-count {
+	float: left;
+}
+.bbp-pagination-links {
+	float: right;
+}
+.bbp-pagination {
+	float: left;
+	width: 100%;
+	margin-bottom: 20px;
+}
+
+.bbp-topic-pagination {
+	display: inline-block;
+	margin-left: 5px;
+	margin-bottom: 2px;
+	}
+	.bbp-topic-pagination a {
+		font-size: 10px;
+		line-height: 10px;
+		padding: 1px 3px;
+		border: 1px solid #ddd;
+		text-decoration: none;
+	}
+
+/* =Forms
+-------------------------------------------------------------- */
+#content fieldset.bbp-form,
+#container fieldset.bbp-form,
+#wrapper fieldset.bbp-form {
+	clear: left;
+}
+
+#content fieldset.bbp-form,
+#container fieldset.bbp-form,
+#wrapper fieldset.bbp-form {
+	border: 1px solid #eee;
+	padding: 10px 20px;
+}
+
+#content fieldset.bbp-form legend,
+#container fieldset.bbp-form legend,
+#wrapper fieldset.bbp-form legend {
+	padding: 5px;
+}
+
+#content fieldset.bbp-form label,
+#container fieldset.bbp-form label,
+#wrapper fieldset.bbp-form label {
+	width: 250px;
+	display: inline-block;
+}
+
+#bbp-edit-topic-tag.bbp-form fieldset.bbp-form label,
+#bbp-login fieldset label,
+#bbp-register fieldset label,
+#bbp-lost-pass fieldset label {
+	width: 100px;
+}
+
+#content fieldset.bbp-form p,
+#container fieldset.bbp-form p,
+#wrapper fieldset.bbp-form p,
+#content fieldset.bbp-form textarea,
+#container fieldset.bbp-form textarea,
+#wrapper fieldset.bbp-form textarea,
+#content fieldset.bbp-form select,
+#container fieldset.bbp-form select,
+#wrapper fieldset.bbp-form select,
+#content fieldset.bbp-form input,
+#container fieldset.bbp-form input,
+#wrapper fieldset.bbp-form input {
+	margin: 0px 0px 10px;
+}
+
+.bbp-topic-form,
+.bbp-reply-form,
+.bbp-topic-tag-form {
+	clear: left;
+}
+body.topic-edit .bbp-topic-form div.avatar img,
+body.reply-edit .bbp-reply-form div.avatar img,
+body.single-forum .bbp-topic-form div.avatar img,
+body.single-reply .bbp-reply-form div.avatar img {
+	margin-right: 0;
+	padding: 10px;
+	border: 1px solid #ddd;
+	line-height: 0;
+	background-color: #efefef;
+}
+
+body.page .bbp-reply-form code,
+body.page .bbp-topic-form code,
+body.single-topic .bbp-reply-form code,
+body.single-forum .bbp-topic-form code,
+body.topic-edit .bbp-topic-form code,
+body.reply-edit .bbp-reply-form code {
+	font-size: 10px;
+	background-color: #f0fff8;
+	border: 1px solid #CEEFE1;
+	display: block;
+	padding: 8px;
+	margin-top: 5px;
+	width: 369px;
+}
+
+#merge_tag,
+#delete_tag {
+	display: inline;
+}
+
+div.bbp-submit-wrapper {
+	float: right;
+}
+
+p.form-allowed-tags {
+	width: 462px;
+}
+
+input[type="password"] {
+	background: #f9f9f9;
+	border: 1px solid #ccc;
+	box-shadow: inset 1px 1px 1px rgba(0,0,0,0.1);
+	-moz-box-shadow: inset 1px 1px 1px rgba(0,0,0,0.1);
+	-webkit-box-shadow: inset 1px 1px 1px rgba(0,0,0,0.1);
+	padding: 2px;
+}
+
+/* =Edit User
+-------------------------------------------------------------- */
+
+#bbp-your-profile fieldset {
+	margin-top: 20px;
+	padding: 20px 20px 0 20px;
+}
+	#bbp-your-profile fieldset div {
+		margin-bottom: 20px;
+		float: left;
+		width: 100%;
+		clear: left;
+	}
+	#bbp-your-profile fieldset select {
+		margin-bottom: 0;
+	}
+	#bbp-your-profile fieldset input,
+	#bbp-your-profile fieldset textarea {
+		margin-bottom: 0;
+		width: 400px;
+		background: #f9f9f9;
+		border: 1px solid #ccc;
+		box-shadow: inset 1px 1px 1px rgba(0,0,0,0.1);
+		-moz-box-shadow: inset 1px 1px 1px rgba(0,0,0,0.1);
+		-webkit-box-shadow: inset 1px 1px 1px rgba(0,0,0,0.1);
+		padding: 2px;
+	}
+	#bbp-your-profile fieldset legend {
+		display: none;
+	}
+	#bbp-your-profile fieldset label {
+		float: left;
+		width: 150px;
+		padding-right: 20px;
+		text-align: right;
+	}
+	#bbp-your-profile fieldset span.description {
+		margin: 5px 0 0 170px;
+		font-size: 12px;
+		font-style: italic;
+		float: left;
+		clear: left;
+		width: 383px;
+		padding: 5px 10px;
+		border: #cee1ef 1px solid;
+		background-color: #f0f8ff;
+	}
+
+	#bbp-your-profile fieldset fieldset {
+		margin: 0;
+		width: 260px;
+		border: none;
+		padding: 0;
+	}
+	#bbp-your-profile fieldset fieldset span.description {
+		margin-left: 0;
+		margin-bottom: 20px;
+	}
+
+	#bbp-your-profile fieldset.submit button {
+		float: right;
+	}
+
+/* =Notices
+-------------------------------------------------------------- */
+
+div.bbp-template-notice {
+	border-width: 1px;
+	border-style: solid;
+	padding: 0 0.6em;
+	margin: 5px 0 15px;
+	-moz-border-radius: 3px;
+	-khtml-border-radius: 3px;
+	-webkit-border-radius: 3px;
+	border-radius: 3px;
+	background-color: #ffffe0;
+	border-color: #e6db55;
+	color: #000;
+	clear: both;
+}
+div.bbp-template-notice a {
+	color: #555;
+	text-decoration: none;
+}
+	div.bbp-template-notice a:hover {
+		color: #000;
+	}
+	div.bbp-template-notice.info {
+		border: #cee1ef 1px solid;
+		background-color: #f0f8ff;
+	}
+	div.bbp-template-notice.important {
+		border: #e6db55 1px solid;
+		background-color: #fffbcc;
+	}
+	div.bbp-template-notice.error,
+	div.bbp-template-notice.warning {
+		background-color: #ffebe8;
+		border-color: #c00;
+	}
+	div.bbp-template-notice.error a,
+	div.bbp-template-notice.warning a {
+		color: #c00;
+	}
+	div.bbp-template-notice p {
+		margin: 0.5em 0 6px 0 !important;
+		padding: 2px;
+		font-size: 12px;
+		line-height: 140%;
+	}
+
+/* =Stickies
+-------------------------------------------------------------- */
+
+.bbp-topics-front tr.super-sticky td,
+.bbp-topics tr.super-sticky td,
+.bbp-topics tr.sticky td,
+.bbp-forum-info tr.sticky td {
+	background-color: #ffffe0 !important;
+	font-size: 1.1em;
+}
+
+/* =Revisions
+-------------------------------------------------------------- */
+#content .bbp-topic-revision-log,
+#content .bbp-reply-revision-log,
+
+#main .bbp-topic-revision-log,
+#main .bbp-reply-revision-log,
+
+#container .bbp-topic-revision-log,
+#container .bbp-reply-revision-log {
+	border-top: 1px dotted #ddd;
+	list-style: none;
+	width: 100%;
+	margin: 0;
+	padding: 8px 0 0 0;
+	font-size: 11px;
+	color: #aaa;
+}
+
+/* =Widgets
+-------------------------------------------------------------- */
+
+.widget-area .bbp-login-form fieldset legend {
+	display: none;
+}
+
+.widget-area .bbp-login-form .bbp-username label,
+.widget-area .bbp-login-form .bbp-password label {
+	width: 70px;
+	display: inline-block;
+}
+.widget-area .bbp-login-form .bbp-username,
+.widget-area .bbp-login-form .bbp-password,
+.widget-area .bbp-login-form .bbp-remember-me,
+.widget-area .bbp-login-form .bbp-submit-wrapper {
+	margin-top: 10px;
+}
+
+.widget-area .bbp-login-form .bbp-remember-me {
+	float: left;
+}
+
+.widget-area .bbp-login-form .bbp-submit-wrapper {
+	float: right;
+}
+
+.widget-area .bbp-logged-in img.avatar {
+	float: left;
+	margin-right: 15px;
+}
+
+.widget-area .bbp-logged-in h4 {
+	font-weight: bold;
+	font-size: 1.3em;
+	display: inline;
+	clear: none;
+}
+
+.widget-area .bbp-logged-in a.logout-link {
+	display: block;
+}
+
+/* =Avatars
+-------------------------------------------------------------- */
+
+#content p.bbp-topic-meta img.avatar,
+#content ul.bbp-reply-revision-log img.avatar,
+#content ul.bbp-topic-revision-log img.avatar,
+#content div.bbp-template-notice img.avatar,
+#content .widget_display_topics img.avatar,
+#content .widget_display_replies img.avatar,
+#content p.bbp-topic-meta img.avatar,
+
+#main ul.bbp-reply-revision-log img.avatar,
+#main ul.bbp-topic-revision-log img.avatar,
+#main div.bbp-template-notice img.avatar,
+#main .widget_display_topics img.avatar,
+#main .widget_display_replies img.avatar,
+#main p.bbp-topic-meta img.avatar,
+
+#container ul.bbp-reply-revision-log img.avatar,
+#container ul.bbp-topic-revision-log img.avatar,
+#container div.bbp-template-notice img.avatar,
+#container .widget_display_topics img.avatar,
+#container .widget_display_replies img.avatar {
+	float: none;
+	margin-bottom: -7px;
+	border: 3px double #ddd;
+}
+
+fieldset div.avatar {
+	float: right;
+}

File bbpress/form-anonymous.php

+<?php
+
+/**
+ * Anonymous User
+ *
+ * @package bbPress
+ * @subpackage Theme
+ */
+
+?>
+
+<?php if ( bbp_is_anonymous() || ( bbp_is_topic_edit() && bbp_is_topic_anonymous() ) || ( bbp_is_reply_edit() && bbp_is_reply_anonymous() ) ) : ?>
+
+	<fieldset class="bbp-form">
+		<legend><?php ( bbp_is_topic_edit() || bbp_is_reply_edit() ) ? _e( 'Author information', 'bbpress' ) : _e( 'Your information:', 'bbpress' ); ?></legend>
+		<p>
+			<label for="bbp_anonymous_author"><?php _e( 'Name (required):', 'bbpress' ); ?></label><br />
+			<input type="text" id="bbp_anonymous_author" value="<?php bbp_is_topic_edit() ? bbp_topic_author() : bbp_is_reply_edit() ? bbp_reply_author() : bbp_current_anonymous_user_data( 'name' ); ?>" tabindex="<?php bbp_tab_index(); ?>" size="40" name="bbp_anonymous_name" />
+		</p>
+
+		<p>
+			<label for="bbp_anonymous_email"><?php _e( 'Mail (will not be published) (required):', 'bbpress' ); ?></label><br />
+			<input type="text" id="bbp_anonymous_email" value="<?php echo ( bbp_is_topic_edit() || bbp_is_reply_edit() ) ? get_post_meta( $post->ID, '_bbp_anonymous_email', true ) : bbp_get_current_anonymous_user_data( 'email' ); ?>" tabindex="<?php bbp_tab_index(); ?>" size="40" name="bbp_anonymous_email" />
+		</p>
+
+		<p>
+			<label for="bbp_anonymous_website"><?php _e( 'Website:', 'bbpress' ); ?></label><br />
+			<input type="text" id="bbp_anonymous_website" value="<?php bbp_is_topic_edit() ? bbp_topic_author_url() : bbp_is_reply_edit() ? bbp_reply_author_url() : bbp_current_anonymous_user_data( 'website' ); ?>" tabindex="<?php bbp_tab_index(); ?>" size="40" name="bbp_anonymous_website" />
+		</p>
+	</fieldset>
+
+<?php endif; ?>

File bbpress/form-merge.php

+<?php
+
+/**
+ * Merge Topic
+ *
+ * @package bbPress
+ * @subpackage Theme
+ */
+
+?>
+
+<?php if ( is_user_logged_in() && current_user_can( 'edit_topic', bbp_get_topic_id() ) ) : ?>
+
+	<div id="merge-topic-<?php bbp_topic_id(); ?>" class="bbp-topic-merge">
+
+		<form id="merge_topic" name="merge_topic" method="post" action="">
+
+			<fieldset class="bbp-form">
+
+				<legend><?php printf( __( 'Merge topic "%s"', 'bbpress' ), bbp_get_topic_title() ); ?></legend>
+
+				<div>
+
+					<div class="bbp-template-notice info">
+						<p><?php _e( 'Select the topic to merge this one into. The destination topic will remain the lead topic, and this one will change into a reply.', 'bbpress' ); ?></p>
+						<p><?php _e( 'To keep this topic as the lead, go to the other topic and use the merge tool from there instead.', 'bbpress' ); ?></p>
+					</div>
+
+					<div class="bbp-template-notice">
+						<p><?php _e( 'All replies within both topics will be merged chronologically. The order of the merged replies is based on the time and date they were posted. If the destination topic was created after this one, it\'s post date will be updated to second earlier than this one.', 'bbpress' ); ?></p>
+					</div>
+
+					<fieldset class="bbp-form">
+						<legend><?php _e( 'Destination', 'bbpress' ); ?></legend>
+						<div>
+							<?php if ( bbp_has_topics( array( 'show_stickies' => false, 'post_parent' => bbp_get_topic_forum_id( bbp_get_topic_id() ), 'post__not_in' => array( bbp_get_topic_id() ) ) ) ) : ?>
+
+								<label for="bbp_destination_topic"><?php _e( 'Merge with this topic:', 'bbpress' ); ?></label>
+
+								<?php
+									bbp_dropdown( array(
+										'post_type'   => bbp_get_topic_post_type(),
+										'post_parent' => bbp_get_topic_forum_id( bbp_get_topic_id() ),
+										'selected'    => -1,
+										'exclude'     => bbp_get_topic_id(),
+										'select_id'   => 'bbp_destination_topic',
+										'none_found'  => __( 'No topics were found to which the topic could be merged to!', 'bbpress' )
+									) );
+								?>
+
+							<?php else : ?>
+
+								<label><?php _e( 'There are no other topics in this forum to merge with.', 'bbpress' ); ?></label>
+
+							<?php endif; ?>
+
+						</div>
+					</fieldset>
+
+					<fieldset class="bbp-form">
+						<legend><?php _e( 'Topic Extras', 'bbpress' ); ?></legend>
+
+						<div>
+
+							<?php if ( bbp_is_subscriptions_active() ) : ?>
+
+								<input name="bbp_topic_subscribers" id="bbp_topic_subscribers" type="checkbox" value="1" checked="checked" tabindex="<?php bbp_tab_index(); ?>" />
+								<label for="bbp_topic_subscribers"><?php _e( 'Merge topic subscribers', 'bbpress' ); ?></label><br />
+
+							<?php endif; ?>
+
+							<input name="bbp_topic_favoriters" id="bbp_topic_favoriters" type="checkbox" value="1" checked="checked" tabindex="<?php bbp_tab_index(); ?>" />
+							<label for="bbp_topic_favoriters"><?php _e( 'Merge topic favoriters', 'bbpress' ); ?></label><br />
+
+							<input name="bbp_topic_tags" id="bbp_topic_tags" type="checkbox" value="1" checked="checked" tabindex="<?php bbp_tab_index(); ?>" />
+							<label for="bbp_topic_tags"><?php _e( 'Merge topic tags', 'bbpress' ); ?></label><br />
+
+						</div>
+					</fieldset>
+
+					<div class="bbp-template-notice error">
+						<p><?php _e( '<strong>WARNING:</strong> This process cannot be undone.', 'bbpress' ); ?></p>
+					</div>
+
+					<div class="bbp-submit-wrapper">
+						<button type="submit" tabindex="<?php bbp_tab_index(); ?>" id="bbp_merge_topic_submit" name="bbp_merge_topic_submit"><?php _e( 'Submit', 'bbpress' ); ?></button>
+					</div>
+				</div>
+
+				<?php bbp_merge_topic_form_fields(); ?>
+
+			</fieldset>
+		</form>
+	</div>
+
+<?php else : ?>
+
+	<div id="no-topic-<?php bbp_topic_id(); ?>" class="bbp-no-topic">
+		<div class="entry-content"><?php is_user_logged_in() ? _e( 'You do not have the permissions to edit this topic!', 'bbpress' ) : _e( 'You cannot edit this topic.', 'bbpress' ); ?></div>
+	</div>
+
+
+<?php endif; ?>

File bbpress/form-protected.php

+<?php
+
+/**
+ * Password Protected
+ *
+ * @package bbPress
+ * @subpackage Theme
+ */
+
+// Make sure we're back where we started
+wp_reset_postdata();
+
+?>
+
+	<fieldset class="bbp-form" id="bbp-protected">
+		<Legend><?php _e( 'Protected', 'bbpress' ); ?></legend>
+
+		<?php echo get_the_password_form(); ?>
+
+	</fieldset>

File bbpress/form-reply.php

+<?php
+
+/**
+ * New/Edit Reply
+ *
+ * @package bbPress
+ * @subpackage Theme
+ */
+
+// Make sure we're back where we started
+wp_reset_postdata();
+
+?>
+
+<?php if ( bbp_is_reply_edit() || bbp_is_topic_open() || current_user_can( 'edit_topic', bbp_get_topic_id() ) ) : ?>
+
+	<?php if ( ( bbp_is_reply_edit() && current_user_can( 'edit_reply', bbp_get_reply_id() ) ) || ( current_user_can( 'publish_topics' ) || bbp_allow_anonymous() ) ) : ?>
+
+		<div id="new-reply-<?php bbp_topic_id(); ?>" class="bbp-reply-form">
+
+			<form id="new-post" name="new-post" method="post" action="">
+				<fieldset class="bbp-form">
+					<legend><?php printf( __( 'Reply to: &ldquo;%s&rdquo;', 'bbpress' ), bbp_get_topic_title() ); ?></legend>
+
+					<?php if ( !bbp_is_topic_open() && !bbp_is_reply_edit() ) : ?>
+
+						<div class="bbp-template-notice">
+							<p><?php _e( 'This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.', 'bbpress' ); ?></p>
+						</div>
+
+					<?php endif; ?>
+
+					<?php if ( current_user_can( 'unfiltered_html' ) ) : ?>
+
+						<div class="bbp-template-notice">
+							<p><?php _e( 'Your account has the ability to post unrestricted HTML content.', 'bbpress' ); ?></p>
+						</div>
+
+					<?php endif; ?>
+
+					<?php do_action( 'bbp_template_notices' ); ?>
+
+					<div>
+
+						<div class="avatar">
+
+							<?php bbp_is_reply_edit() ? bbp_reply_author_avatar( bbp_get_reply_id(), 120 ) : bbp_current_user_avatar( 120 ); ?>
+
+						</div>
+
+						<?php bbp_get_template_part( 'bbpress/form', 'anonymous' ); ?>
+
+						<p>
+							<label for="bbp_reply_content"><?php _e( 'Reply:', 'bbpress' ); ?></label><br />
+							<textarea id="bbp_reply_content" tabindex="<?php bbp_tab_index(); ?>" name="bbp_reply_content" cols="51" rows="6"><?php bbp_form_reply_content(); ?></textarea>
+						</p>
+
+						<?php if ( !current_user_can( 'unfiltered_html' ) ) : ?>
+
+							<p class="form-allowed-tags">
+								<label><?php _e( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:','bbpress' ); ?></label><br />
+								<code><?php bbp_allowed_tags(); ?></code>
+							</p>
+
+						<?php endif; ?>
+
+						<p>
+							<label for="bbp_topic_tags"><?php _e( 'Tags:', 'bbpress' ); ?></label><br />
+							<input id="bbp_topic_tags" type="text" value="<?php bbp_form_topic_tags(); ?>" tabindex="<?php bbp_tab_index(); ?>" size="40" name="bbp_topic_tags" />
+						</p>
+
+						<?php if ( bbp_is_subscriptions_active() && !bbp_is_anonymous() && ( !bbp_is_reply_edit() || ( bbp_is_reply_edit() && !bbp_is_reply_anonymous() ) ) ) : ?>
+
+							<p>
+
+								<input name="bbp_topic_subscription" id="bbp_topic_subscription" type="checkbox" value="bbp_subscribe"<?php bbp_form_topic_subscribed(); ?> tabindex="<?php bbp_tab_index(); ?>" />
+
+								<?php if ( bbp_is_reply_edit() && $post->post_author != bbp_get_current_user_id() ) : ?>
+
+									<label for="bbp_topic_subscription"><?php _e( 'Notify the author of follow-up replies via email', 'bbpress' ); ?></label>
+
+								<?php else : ?>
+
+									<label for="bbp_topic_subscription"><?php _e( 'Notify me of follow-up replies via email', 'bbpress' ); ?></label>
+
+								<?php endif; ?>
+
+							</p>
+
+						<?php endif; ?>
+
+						<?php if ( bbp_is_reply_edit() ) : ?>
+
+							<fieldset class="bbp-form">
+								<legend><?php _e( 'Revision', 'bbpress' ); ?></legend>
+								<div>
+									<input name="bbp_log_reply_edit" id="bbp_log_reply_edit" type="checkbox" value="1" <?php bbp_form_reply_log_edit(); ?> tabindex="<?php bbp_tab_index(); ?>" />
+									<label for="bbp_log_reply_edit"><?php _e( 'Keep a log of this edit:', 'bbpress' ); ?></label><br />
+								</div>
+
+								<div>
+									<label for="bbp_reply_edit_reason"><?php printf( __( 'Optional reason for editing:', 'bbpress' ), bbp_get_current_user_name() ); ?></label><br />
+									<input type="text" value="<?php bbp_form_reply_edit_reason(); ?>" tabindex="<?php bbp_tab_index(); ?>" size="40" name="bbp_reply_edit_reason" id="bbp_reply_edit_reason" />
+								</div>
+							</fieldset>
+
+						<?php else : ?>
+
+							<?php bbp_topic_admin_links(); ?>
+
+						<?php endif; ?>
+
+						<div class="bbp-submit-wrapper">
+							<button type="submit" tabindex="<?php bbp_tab_index(); ?>" id="bbp_reply_submit" name="bbp_reply_submit"><?php _e( 'Submit', 'bbpress' ); ?></button>
+						</div>
+					</div>
+
+					<?php bbp_reply_form_fields(); ?>
+
+				</fieldset>
+			</form>
+		</div>
+
+	<?php else : ?>
+
+		<div id="no-reply-<?php bbp_topic_id(); ?>" class="bbp-no-reply">
+			<div class="bbp-template-notice">
+				<p><?php is_user_logged_in() ? _e( 'You cannot reply to this topic.', 'bbpress' ) : _e( 'You must be logged in to reply to this topic.', 'bbpress' ); ?></p>
+			</div>
+		</div>
+
+	<?php endif; ?>
+
+<?php else : ?>
+
+	<div id="no-reply-<?php bbp_topic_id(); ?>" class="bbp-no-reply">
+		<div class="bbp-template-notice">
+			<p><?php _e( 'This topic has been closed to new replies.', 'bbpress' ); ?></p>
+		</div>
+	</div>
+
+<?php endif; ?>

File bbpress/form-split.php

+<?php
+
+/**
+ * Split Topic
+ *
+ * @package bbPress
+ * @subpackage Theme
+ */
+
+?>
+
+<?php if ( is_user_logged_in() && current_user_can( 'edit_topic', bbp_get_topic_id() ) ) : ?>
+
+	<div id="split-topic-<?php bbp_topic_id(); ?>" class="bbp-topic-split">
+
+		<form id="split_topic" name="split_topic" method="post" action="">
+
+			<fieldset class="bbp-form">
+
+				<legend><?php printf( __( 'Split topic "%s"', 'bbpress' ), bbp_get_topic_title() ); ?></legend>
+
+				<div>
+
+					<div class="bbp-template-notice info">
+						<p><?php _e( 'When you split a topic, you are slicing it in half starting with the reply you just selected. Choose to use that reply as a new topic with a new title, or merge those replies into an existing topic.', 'bbpress' ); ?></p>
+					</div>
+
+					<div class="bbp-template-notice">
+						<p><?php _e( 'If you use the existing topic option, replies within both topics will be merged chronologically. The order of the merged replies is based on the time and date they were posted.', 'bbpress' ); ?></p>
+					</div>
+
+					<fieldset class="bbp-form">
+						<legend><?php _e( 'Split Method', 'bbpress' ); ?></legend>
+
+						<div>
+							<input name="bbp_topic_split_option" id="bbp_topic_split_option_reply" type="radio" checked="checked" value="reply" tabindex="<?php bbp_tab_index(); ?>" />
+							<label for="bbp_topic_split_option_reply"><?php printf( __( 'New topic in <strong>%s</strong> titled:', 'bbpress' ), bbp_get_forum_title( bbp_get_topic_forum_id( bbp_get_topic_id() ) ) ); ?></label>
+							<input type="text" id="bbp_topic_split_destination_title" value="<?php printf( __( 'Split: %s', 'bbpress' ), bbp_get_topic_title() ); ?>" tabindex="<?php bbp_tab_index(); ?>" size="35" name="bbp_topic_split_destination_title" />
+						</div>
+
+						<?php if ( bbp_has_topics( array( 'show_stickies' => false, 'post_parent' => bbp_get_topic_forum_id( bbp_get_topic_id() ), 'post__not_in' => array( bbp_get_topic_id() ) ) ) ) : ?>
+
+							<div>
+								<input name="bbp_topic_split_option" id="bbp_topic_split_option_existing" type="radio" value="existing" tabindex="<?php bbp_tab_index(); ?>" />
+								<label for="bbp_topic_split_option_existing"><?php _e( 'Use an existing topic in this forum:', 'bbpress' ); ?></label>
+
+								<?php
+									bbp_dropdown( array(
+										'post_type'   => bbp_get_topic_post_type(),
+										'post_parent' => bbp_get_topic_forum_id( bbp_get_topic_id() ),
+										'selected'    => -1,
+										'exclude'     => bbp_get_topic_id(),
+										'select_id'   => 'bbp_destination_topic',
+										'none_found'  => __( 'No other topics found!', 'bbpress' )
+									) );
+								?>
+
+							</div>
+
+						<?php endif; ?>
+
+					</fieldset>
+
+					<fieldset class="bbp-form">
+						<legend><?php _e( 'Topic Extras', 'bbpress' ); ?></legend>
+
+						<div>
+
+							<?php if ( bbp_is_subscriptions_active() ) : ?>
+
+								<input name="bbp_topic_subscribers" id="bbp_topic_subscribers" type="checkbox" value="1" checked="checked" tabindex="<?php bbp_tab_index(); ?>" />
+								<label for="bbp_topic_subscribers"><?php _e( 'Copy subscribers to the new topic', 'bbpress' ); ?></label><br />
+
+							<?php endif; ?>
+
+							<input name="bbp_topic_favoriters" id="bbp_topic_favoriters" type="checkbox" value="1" checked="checked" tabindex="<?php bbp_tab_index(); ?>" />
+							<label for="bbp_topic_favoriters"><?php _e( 'Copy favoriters to the new topic', 'bbpress' ); ?></label><br />
+
+							<input name="bbp_topic_tags" id="bbp_topic_tags" type="checkbox" value="1" checked="checked" tabindex="<?php bbp_tab_index(); ?>" />
+							<label for="bbp_topic_tags"><?php _e( 'Copy topic tags to the new topic', 'bbpress' ); ?></label><br />
+
+						</div>
+					</fieldset>
+
+					<div class="bbp-template-notice error">
+						<p><?php _e( '<strong>WARNING:</strong> This process cannot be undone.', 'bbpress' ); ?></p>
+					</div>
+
+					<div class="bbp-submit-wrapper">
+						<button type="submit" tabindex="<?php bbp_tab_index(); ?>" id="bbp_merge_topic_submit" name="bbp_merge_topic_submit"><?php _e( 'Submit', 'bbpress' ); ?></button>
+					</div>
+				</div>
+
+				<?php bbp_split_topic_form_fields(); ?>
+
+			</fieldset>
+		</form>
+	</div>
+
+<?php else : ?>
+
+	<div id="no-topic-<?php bbp_topic_id(); ?>" class="bbp-no-topic">
+		<div class="entry-content"><?php is_user_logged_in() ? _e( 'You do not have the permissions to edit this topic!', 'bbpress' ) : _e( 'You cannot edit this topic.', 'bbpress' ); ?></div>
+	</div>
+
+<?php endif; ?>

File bbpress/form-topic-tag.php

+<?php
+
+/**
+ * Edit Topic Tag
+ *
+ * @package bbPress
+ * @subpackage Theme
+ */
+
+?>
+
+<?php if ( current_user_can( 'edit_topic_tags' ) ) : ?>
+
+	<div id="edit-topic-tag-<?php bbp_topic_tag_id(); ?>" class="bbp-topic-tag-form">
+
+		<fieldset class="bbp-form" id="bbp-edit-topic-tag">
+
+			<legend><?php printf( __( 'Manage Tag: "%s"', 'bbpress' ), bbp_get_topic_tag_name() ); ?></legend>
+
+			<fieldset class="bbp-form" id="tag-rename">
+
+				<legend><?php _e( 'Rename', 'bbpress' ); ?></legend>
+
+				<div class="bbp-template-notice info">
+					<p><?php _e( 'Leave the slug empty to have one automatically generated.', 'bbpress' ); ?></p>
+				</div>
+
+				<div class="bbp-template-notice">
+					<p><?php _e( 'Changing the slug affects its permalink. Any links to the old slug will stop working.', 'bbpress' ); ?></p>
+				</div>
+
+				<form id="rename_tag" name="rename_tag" method="post" action="">
+
+					<div>
+						<label for="tag-name"><?php _e( 'Name:', 'bbpress' ); ?></label>
+						<input type="text" name="tag-name" size="20" maxlength="40" tabindex="<?php bbp_tab_index(); ?>" value="<?php echo esc_attr( bbp_get_topic_tag_slug() ); ?>" />
+					</div>
+
+					<div>
+						<label for="tag-name"><?php _e( 'Slug:', 'bbpress' ); ?></label>
+						<input type="text" name="tag-slug" size="20" maxlength="40" tabindex="<?php bbp_tab_index(); ?>" value="<?php echo esc_attr( apply_filters( 'editable_slug', bbp_get_topic_tag_slug() ) ); ?>" />
+					</div>
+
+					<div class="bbp-submit-wrapper">
+						<input type="submit" name="submit" tabindex="<?php bbp_tab_index(); ?>" value="<?php esc_attr_e( 'Update', 'bbpress' ); ?>" /><br />
+
+						<input type="hidden" name="tag-id" value="<?php bbp_get_topic_tag_id(); ?>" />
+						<input type="hidden" name="action" value="bbp-update-topic-tag" />
+
+						<?php wp_nonce_field( 'update-tag_' . bbp_get_topic_tag_id() ); ?>
+
+					</div>
+				</form>
+
+			</fieldset>
+
+			<fieldset class="bbp-form" id="tag-merge">
+
+				<legend><?php _e( 'Merge', 'bbpress' ); ?></legend>
+
+				<div class="bbp-template-notice">
+					<p><?php _e( 'Merging tags together cannot be undone.', 'bbpress' ); ?></p>
+				</div>
+
+				<form id="merge_tag" name="merge_tag" method="post" action="">
+
+					<div>
+						<label for="tag-name"><?php _e( 'Existing tag:', 'bbpress' ); ?></label>
+						<input type="text" name="tag-name" size="22" tabindex="<?php bbp_tab_index(); ?>" maxlength="40" />
+					</div>
+
+					<div class="bbp-submit-wrapper">
+						<input type="submit" name="submit" tabindex="<?php bbp_tab_index(); ?>" value="<?php esc_attr_e( 'Merge', 'bbpress' ); ?>"
+							onclick="return confirm('<?php echo esc_js( sprintf( __( 'Are you sure you want to merge the "%s" tag into the tag you specified?', 'bbpress' ), bbp_get_topic_tag_name() ) ); ?>');" />
+
+						<input type="hidden" name="tag-id" value="<?php bbp_topic_tag_id(); ?>" />
+						<input type="hidden" name="action" value="bbp-merge-topic-tag" />
+
+						<?php wp_nonce_field( 'merge-tag_' . bbp_get_topic_tag_id() ); ?>
+					</div>
+				</form>
+
+			</fieldset>
+
+			<?php if ( current_user_can( 'delete_topic_tags' ) ) : ?>
+
+				<fieldset class="bbp-form" id="delete-tag">
+
+					<legend><?php _e( 'Delete', 'bbpress' ); ?></legend>
+
+					<div class="bbp-template-notice info">
+						<p><?php _e( 'This does not delete your topics. Only the tag itself is deleted.', 'bbpress' ); ?></p>
+					</div>
+					<div class="bbp-template-notice">
+						<p><?php _e( 'Deleting a tag cannot be undone.', 'bbpress' ); ?></p>
+						<p><?php _e( 'Any links to this tag will no longer function.', 'bbpress' ); ?></p>
+					</div>
+
+					<form id="delete_tag" name="delete_tag" method="post" action="">
+
+						<div class="bbp-submit-wrapper">
+							<input type="submit" name="submit" tabindex="<?php bbp_tab_index(); ?>" value="<?php _e( 'Delete', 'bbpress' ); ?>"
+								onclick="return confirm('<?php echo esc_js( sprintf( __( 'Are you sure you want to delete the "%s" tag? This is permanent and cannot be undone.', 'bbpress' ), bbp_get_topic_tag_name() ) ); ?>');" />
+
+							<input type="hidden" name="tag-id" value="<?php bbp_topic_tag_id(); ?>" />
+							<input type="hidden" name="action" value="bbp-delete-topic-tag" />
+
+							<?php wp_nonce_field( 'delete-tag_' . bbp_get_topic_tag_id() ); ?>
+						</div>
+					</form>
+
+				</fieldset>
+
+			<?php endif; ?>
+
+		</fieldset>
+	</div>
+
+<?php endif; ?>

File bbpress/form-topic.php

+<?php
+
+/**
+ * New/Edit Topic
+ *
+ * @package bbPress
+ * @subpackage Theme
+ */
+
+// Make sure we're back where we started
+wp_reset_postdata();
+
+?>
+
+	<?php if ( bbp_current_user_can_access_create_topic_form() ) : ?>
+
+		<div id="new-topic-<?php bbp_topic_id(); ?>" class="bbp-topic-form">
+
+			<form id="new-post" name="new-post" method="post" action="">
+				<fieldset class="bbp-form">
+					<legend>
+
+						<?php
+							if ( bbp_is_topic_edit() )
+								printf( __( 'Edit topic "%s"', 'bbpress' ), bbp_get_topic_title() );
+							else
+								bbp_is_forum() ? printf( __( 'Create new topic in: &ldquo;%s&rdquo;', 'bbpress' ), bbp_get_forum_title() ) : _e( 'Create new topic', 'bbpress' );
+						?>
+
+					</legend>
+
+					<?php if ( !bbp_is_topic_edit() && bbp_is_forum_closed() ) : ?>
+
+						<div class="bbp-template-notice">
+							<p><?php _e( 'This forum is marked as closed to new topics, however your posting capabilities still allow you to do so.', 'bbpress' ); ?></p>
+						</div>
+
+					<?php endif; ?>
+
+					<?php if ( current_user_can( 'unfiltered_html' ) ) : ?>
+
+						<div class="bbp-template-notice">
+							<p><?php _e( 'Your account has the ability to post unrestricted HTML content.', 'bbpress' ); ?></p>
+						</div>
+
+					<?php endif; ?>
+
+					<?php do_action( 'bbp_template_notices' ); ?>
+
+					<div>
+						<div class="avatar">
+
+							<?php bbp_is_topic_edit() ? bbp_topic_author_avatar( bbp_get_topic_id(), 120 ) : bbp_current_user_avatar( 120 ); ?>
+
+						</div>
+
+						<?php bbp_get_template_part( 'bbpress/form', 'anonymous' ); ?>
+
+						<p>
+							<label for="bbp_topic_title"><?php _e( 'Topic Title:', 'bbpress' ); ?></label><br />
+							<input type="text" id="bbp_topic_title" value="<?php bbp_form_topic_title(); ?>" tabindex="<?php bbp_tab_index(); ?>" size="40" name="bbp_topic_title" />
+						</p>
+
+						<p>
+							<label for="bbp_topic_content"><?php _e( 'Topic Description:', 'bbpress' ); ?></label><br />
+							<textarea id="bbp_topic_content" tabindex="<?php bbp_tab_index(); ?>" name="bbp_topic_content" cols="51" rows="6"><?php bbp_form_topic_content(); ?></textarea>
+						</p>
+
+						<?php if ( !current_user_can( 'unfiltered_html' ) ) : ?>
+
+							<p class="form-allowed-tags">
+								<label><?php _e( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:','bbpress' ); ?></label><br />
+								<code><?php bbp_allowed_tags(); ?></code>
+							</p>
+
+						<?php endif; ?>
+
+						<p>
+							<label for="bbp_topic_tags"><?php _e( 'Topic Tags:', 'bbpress' ); ?></label><br />
+							<input type="text" value="<?php bbp_form_topic_tags(); ?>" tabindex="<?php bbp_tab_index(); ?>" size="40" name="bbp_topic_tags" id="bbp_topic_tags" />
+						</p>
+
+						<?php if ( !bbp_is_forum() ) : ?>
+
+							<p>
+								<label for="bbp_forum_id"><?php _e( 'Forum:', 'bbpress' ); ?></label><br />
+								<?php bbp_dropdown( array( 'selected' => bbp_get_form_topic_forum() ) ); ?>
+							</p>
+
+						<?php endif; ?>
+