Permalink
Browse files

Techozoic 2.1 RC

Changelog:
Performance increased by caching css generated by settings.
Added Twitter Feed widget.
Added new template tags to reduce repeated code.
Updated Posts page layout.
Responsive styling updated.
New touch enabled sliding menu in responsive view.
Updated Options Framework to latest version.
New layout for options page.
Removed unneeded meta description and keyword tags.
Minor styling updates.
Updated bbPress theme support to 2.2.
Code cleanup to follow WordPress coding standards.
  • Loading branch information...
1 parent 23803e1 commit bbc09373b3b6c598337415bd72ac83999112b167 @jeremyclark13 committed Nov 26, 2012
Showing with 4,161 additions and 4,666 deletions.
  1. +28 −24 archive-forum.php
  2. +23 −18 archive-topic.php
  3. +4 −52 archive.php
  4. +0 −254 bbpress/bbpress_functions.php
  5. +0 −26 bbpress/content-archive-forum.php
  6. +0 −30 bbpress/content-archive-topic.php
  7. +0 −46 bbpress/content-single-forum.php
  8. +0 −73 bbpress/content-single-topic-lead.php
  9. +0 −46 bbpress/content-single-topic.php
  10. +0 −20 bbpress/content-single-user-edit.php
  11. +0 −26 bbpress/content-single-user.php
  12. +0 −30 bbpress/content-single-view.php
  13. +0 −14 bbpress/feedback-logged-in.php
  14. +0 −19 bbpress/feedback-no-access.php
  15. +0 −14 bbpress/feedback-no-forums.php
  16. +0 −14 bbpress/feedback-no-topics.php
  17. +0 −42 bbpress/form-anonymous.php
  18. +0 −17 bbpress/form-protected.php
  19. +0 −178 bbpress/form-reply.php
  20. +0 −104 bbpress/form-topic-merge.php
  21. +0 −108 bbpress/form-topic-split.php
  22. +0 −119 bbpress/form-topic-tag.php
  23. +0 −219 bbpress/form-topic.php
  24. +0 −178 bbpress/form-user-edit.php
  25. +0 −41 bbpress/form-user-login.php
  26. +0 −33 bbpress/form-user-lost-pass.php
  27. +0 −42 bbpress/form-user-register.php
  28. +0 −41 bbpress/loop-forums.php
  29. +0 −69 bbpress/loop-replies.php
  30. +0 −59 bbpress/loop-single-forum.php
  31. +0 −60 bbpress/loop-single-reply.php
  32. +0 −103 bbpress/loop-single-topic.php
  33. +0 −41 bbpress/loop-topics.php
  34. +0 −28 bbpress/pagination-replies.php
  35. +0 −28 bbpress/pagination-topics.php
  36. +0 −36 bbpress/user-details.php
  37. +0 −34 bbpress/user-favorites.php
  38. +0 −42 bbpress/user-subscriptions.php
  39. +0 −34 bbpress/user-topics-created.php
  40. +486 −231 css/bbpress-rtl.css
  41. +1 −0 css/bbpress-rtl.min.css
  42. +478 −239 css/bbpress.css
  43. +1 −0 css/bbpress.min.css
  44. +106 −41 css/mobile.css
  45. +49 −167 functions.php
  46. +115 −33 functions/tech-comments-functions.php
  47. +31 −49 functions/tech-css.php
  48. +166 −0 functions/tech-template-tags.php
  49. +14 −0 functions/tech-twitter.php
  50. +12 −3 functions/tech-widget.php
  51. +2 −2 inc/css/optionsframework.css
  52. +4 −0 inc/options-framework.php
  53. +2 −8 index.php
  54. BIN languages/en_US.mo
  55. +1,299 −509 languages/en_US.po
  56. BIN languages/techozoic_fluid.mo
  57. +375 −318 languages/techozoic_fluid.pot
  58. +9 −20 loop.php
  59. +2 −3 nav.php
  60. +196 −65 options.php
  61. +27 −20 page-create-topic.php
  62. +85 −75 page-forum-statistics.php
  63. +28 −20 page-front-forums.php
  64. +30 −19 page-front-topics.php
  65. +33 −23 page-topic-tags.php
  66. +39 −29 page-topics-no-replies.php
  67. +34 −20 page-user-login.php
  68. +33 −20 page-user-lost-pass.php
  69. +34 −20 page-user-register.php
  70. +3 −3 page.php
  71. +11 −1 readme.txt
  72. +37 −0 single-forum-edit.php
  73. +32 −23 single-forum.php
  74. +27 −18 single-reply-edit.php
  75. +29 −56 single-reply.php
  76. +28 −18 single-topic-edit.php
  77. +17 −19 single-topic-merge.php
  78. +16 −18 single-topic-split.php
  79. +32 −23 single-topic.php
  80. +24 −15 single-user-edit.php
  81. +24 −15 single-user.php
  82. +27 −17 single-view.php
  83. +11 −14 single.php
  84. +50 −62 style.css
  85. +0 −14 style.php
  86. +23 −20 taxonomy-topic-tag-edit.php
  87. +24 −34 taxonomy-topic-tag.php
View
52 archive-forum.php
@@ -1,32 +1,36 @@
<?php
-
/**
* bbPress - Forum Archive
*
* @package bbPress
* @subpackage Theme
*/
-
+get_header();
+if ( of_get_option( 'forum_sidebar', '0' ) == "1" ) {
+ tech_show_sidebar( "l" );
+}
?>
-
-<?php get_header();
- if (of_get_option('forum_sidebar','0') == "1" ) { tech_show_sidebar("l");}
-?>
- <div id="content" class="<?php if (of_get_option('forum_sidebar','0') == "1" ) { echo "narrow"; }else {echo "wide";}?>column">
-
- <?php do_action( 'bbp_template_notices' ); ?>
-
- <div id="forum-front" class="bbp-forum-front">
- <h1 class="entry-title"><?php bbp_forum_archive_title(); ?></h1>
- <div class="entry-content">
-
- <?php bbp_get_template_part( 'bbpress/content', 'archive-forum' ); ?>
-
- </div>
- </div><!-- #forum-front -->
- </div><!-- #content -->
-
-<?php
- if (of_get_option('forum_sidebar','0') == "1" ) { tech_show_sidebar("r"); }
- get_footer();
-?>
+<div id="content" class="<?php if ( of_get_option( 'forum_sidebar', '0' ) == "1" ) {
+ echo "narrow";
+} else {
+ echo "wide";
+} ?>column">
+<?php do_action( 'bbp_before_main_content' ); ?>
+
+<?php do_action( 'bbp_template_notices' ); ?>
+
+ <div id="forum-front" class="bbp-forum-front">
+ <h1 class="entry-title"><?php bbp_forum_archive_title(); ?></h1>
+ <div class="entry-content">
+
+ <?php bbp_get_template_part( 'content', 'archive-forum' ); ?>
+
+ </div>
+ </div><!-- #forum-front -->
+
+<?php do_action( 'bbp_after_main_content' ); ?>
+</div><!-- #content -->
+<?php if ( of_get_option( 'forum_sidebar', '0' ) == "1" ) {
+ tech_show_sidebar( "r" );
+} ?>
+<?php get_footer(); ?>
View
41 archive-topic.php
@@ -1,33 +1,38 @@
<?php
-
/**
* bbPress - Topic Archive
*
* @package bbPress
* @subpackage Theme
*/
-
+get_header();
+if ( of_get_option( 'forum_sidebar', '0' ) == "1" ) {
+ tech_show_sidebar( "l" );
+}
?>
+<div id="content" class="<?php if ( of_get_option( 'forum_sidebar', '0' ) == "1" ) {
+ echo "narrow";
+} else {
+ echo "wide";
+} ?>column">
-<?php get_header();
- if (of_get_option('forum_sidebar','0') == "1" ) { tech_show_sidebar("l");}
-?>
- <div id="content" class="<?php if (of_get_option('forum_sidebar','0') == "1" ) { echo "narrow"; }else {echo "wide";}?>column">
+<?php do_action( 'bbp_before_main_content' ); ?>
- <?php do_action( 'bbp_template_notices' ); ?>
+<?php do_action( 'bbp_template_notices' ); ?>
- <div id="topic-front" class="bbp-topics-front">
- <h1 class="entry-title"><?php bbp_topic_archive_title(); ?></h1>
- <div class="entry-content">
+ <div id="topic-front" class="bbp-topics-front">
+ <h1 class="entry-title"><?php bbp_topic_archive_title(); ?></h1>
+ <div class="entry-content">
- <?php bbp_get_template_part( 'bbpress/content', 'archive-topic' ); ?>
+ <?php bbp_get_template_part( 'content', 'archive-topic' ); ?>
- </div>
- </div><!-- #topics-front -->
+ </div>
+ </div><!-- #topics-front -->
- </div><!-- #content -->
+<?php do_action( 'bbp_after_main_content' ); ?>
+</div><!-- #content -->
-<?php
- if (of_get_option('forum_sidebar','0') == "1" ) { tech_show_sidebar("r"); }
- get_footer();
-?>
+<?php if ( of_get_option( 'forum_sidebar', '0' ) == "1" ) {
+ tech_show_sidebar( "r" );
+} ?>
+<?php get_footer(); ?>
View
56 archive.php
@@ -7,61 +7,13 @@
<div id="content" class="<?php echo (of_get_option( 'home_sidebar', '1' ) != "1" || of_get_option( 'sidebar_pos', '3-col' ) == '1-col' ) ? "wide" : "narrow"; ?>column">
- <?php if ( have_posts() ) { ?>
-
- <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
- <?php
- /* If this is a category archive */
- if ( is_category() ) {
- ?>
- <h2 class="pagetitle"><?php printf( __( '%s Archive', 'techozoic' ), single_cat_title( '', false ) ); ?></h2>
-
- <?php
- /* If this is a daily archive */
- } elseif ( is_day() ) {
- ?>
- <h2 class="pagetitle"><?php printf( __( 'Archive for %s', 'techozoic' ), get_the_time( 'F jS, Y' ) ); ?></h2>
-
- <?php
- /* If this is a monthly archive */
- } elseif ( is_month() ) {
- ?>
- <h2 class="pagetitle"><?php printf( __( 'Archive for %s', 'techozoic' ), get_the_time( 'F, Y' ) ); ?></h2>
-
- <?php
- /* If this is a yearly archive */
- } elseif ( is_year() ) {
- ?>
- <h2 class="pagetitle"><?php printf( __( 'Archive for %s', 'techozoic' ), get_the_time( 'Y' ) ); ?></h2>
-
- <?php
- /* If this is a search */
- } elseif ( is_search() ) {
- ?>
- <h2 class="pagetitle"><?php _e( 'Search Results', 'techozoic' ) ?></h2>
-
- <?php
- /* If this is an author archive */
- } elseif ( is_author() ) {
- ?>
- <h2 class="pagetitle"><?php _e( 'Author Archive', 'techozoic' ) ?></h2>
-
- <?php
- /* If this is a paged archive */
- } elseif ( isset( $_GET['paged'] ) && !empty( $_GET['paged'] ) ) {
- ?>
- <h2 class="pagetitle"><?php _e( 'Blog Archives', 'techozoic' ) ?></h2>
-
- <?php
- }
+ <?php if ( have_posts() ) {
+ tech_archive_title();
}
?>
- <div class="navigation clear">
- <div class="alignleft"><?php next_posts_link( __( '&laquo; Older Entries', 'techozoic' ) ) ?></div>
- <div class="alignright"><?php previous_posts_link( __( 'Newer Entries &raquo;', 'techozoic' ) ) ?></div>
- </div>
+ <?php tech_nav_links(); ?>
<?php get_template_part( 'loop', 'archive' ); ?>
-
+ <?php tech_nav_links(); ?>
</div>
<?php
if ( of_get_option( 'home_sidebar', '1' ) == "1" ) {
View
254 bbpress/bbpress_functions.php
@@ -1,254 +0,0 @@
-<?php
-
-/**
- * Functions of bbPress's Twenty Ten theme
- *
- * @package bbPress
- */
-
-// Exit if accessed directly
-if ( !defined( 'ABSPATH' ) ) exit;
-
-// Enqueue theme CSS
-add_action( 'bbp_enqueue_scripts', 'tech_bbp_enqueue_styles' );
-
-// Enqueue theme JS
-add_action( 'bbp_enqueue_scripts', 'tech_bbp_enqueue_scripts' );
-
-// Enqueue theme script localization
-add_filter( 'bbp_enqueue_scripts', 'tech_bbp_localize_topic_script' );
-
-// Output some extra JS in the <head>
-add_action( 'bbp_head', 'tech_bbp_head_scripts' );
-
-// Handles the ajax favorite/unfavorite
-add_action( 'wp_ajax_dim-favorite', 'tech_bbp_ajax_favorite' );
-
-// Handles the ajax subscribe/unsubscribe
-add_action( 'wp_ajax_dim-subscription', 'tech_bbp_ajax_subscription' );
-
-/**
-* Load the theme CSS
-*
-* @since bbPress (r2652)
-*
-* @uses wp_enqueue_style() To enqueue the styles
-*/
-
-function tech_bbp_enqueue_styles() {
- // bbPress Version
- $version = '20110921';
-
- // Right to left
- if ( is_rtl() ) {
- // bbPress specific
- wp_enqueue_style( 'bbpress', get_stylesheet_directory_uri() . '/css/bbpress-rtl.css', 'twentyten-rtl', $version, 'screen' );
-
- // Left to right
- } else {
-
- // bbPress specific
- wp_enqueue_style( 'bbpress', get_stylesheet_directory_uri() . '/css/bbpress.css', 'twentyten', $version, 'screen' );
- }
-}
-
-/**
-* Enqueue the required Javascript files
-*
-* @since bbPress (r2652)
-*
-* @uses bbp_is_single_topic() To check if it's the topic page
-* @uses get_stylesheet_directory_uri() To get the stylesheet directory uri
-* @uses bbp_is_single_user_edit() To check if it's the profile edit page
-* @uses wp_enqueue_script() To enqueue the scripts
-*/
-
-function tech_bbp_enqueue_scripts() {
-
- // bbPress Version
- $version = '20110921';
-
- if ( bbp_is_single_topic() )
- wp_enqueue_script( 'bbp_topic', get_stylesheet_directory_uri() . '/js/topic.js', array( 'wp-lists' ), $version );
-
- if ( bbp_is_single_user_edit() )
- wp_enqueue_script( 'user-profile' );
-}
-
-/**
-* Put some scripts in the header, like AJAX url for wp-lists
-*
-* @since bbPress (r2652)
-*
-* @uses bbp_is_single_topic() To check if it's the topic page
-* @uses admin_url() To get the admin url
-* @uses bbp_is_single_user_edit() To check if it's the profile edit page
-*/
-function tech_bbp_head_scripts() {
- if ( bbp_is_single_topic() ) { ?>
-
- <script type='text/javascript'>
- /* <![CDATA[ */
- var ajaxurl = '<?php echo admin_url( 'admin-ajax.php' ); ?>';
- /* ]]> */
- </script>
-
- <?php } elseif ( bbp_is_single_user_edit() ) { ?>
-
- <script type="text/javascript" charset="utf-8">
- if ( window.location.hash == '#password' ) {
- document.getElementById('pass1').focus();
- }
- </script>
-
- <?php
- }
-}
-
-/**
-* Load localizations for topic script
-*
-* These localizations require information that may not be loaded even by init.
-*
-* @since bbPress (r2652)
-*
-* @uses bbp_is_single_topic() To check if it's the topic page
-* @uses is_user_logged_in() To check if user is logged in
-* @uses bbp_get_current_user_id() To get the current user id
-* @uses bbp_get_topic_id() To get the topic id
-* @uses bbp_get_favorites_permalink() To get the favorites permalink
-* @uses bbp_is_user_favorite() To check if the topic is in user's favorites
-* @uses bbp_is_subscriptions_active() To check if the subscriptions are active
-* @uses bbp_is_user_subscribed() To check if the user is subscribed to topic
-* @uses bbp_get_topic_permalink() To get the topic permalink
-* @uses wp_localize_script() To localize the script
-*/
-
-function tech_bbp_localize_topic_script() {
-
- // Bail if not viewing a single topic
- if ( !bbp_is_single_topic() )
- return;
-
- // Bail if user is not logged in
- if ( !is_user_logged_in() )
- return;
-
- $user_id = bbp_get_current_user_id();
-
- $localizations = array(
- 'currentUserId' => $user_id,
- 'topicId' => bbp_get_topic_id(),
- );
-
- // Favorites
- if ( bbp_is_favorites_active() ) {
- $localizations['favoritesActive'] = 1;
- $localizations['favoritesLink'] = bbp_get_favorites_permalink( $user_id );
- $localizations['isFav'] = (int) bbp_is_user_favorite( $user_id );
- $localizations['favLinkYes'] = __( 'favorites', 'bbpress' );
- $localizations['favLinkNo'] = __( '?', 'bbpress' );
- $localizations['favYes'] = __( 'This topic is one of your %favLinkYes% [%favDel%]', 'bbpress' );
- $localizations['favNo'] = __( '%favAdd% (%favLinkNo%)', 'bbpress' );
- $localizations['favDel'] = __( '&times;', 'bbpress' );
- $localizations['favAdd'] = __( 'Add this topic to your favorites', 'bbpress' );
- } else {
- $localizations['favoritesActive'] = 0;
- }
-
- // Subscriptions
- if ( bbp_is_subscriptions_active() ) {
- $localizations['subsActive'] = 1;
- $localizations['isSubscribed'] = (int) bbp_is_user_subscribed( $user_id );
- $localizations['subsSub'] = __( 'Subscribe', 'bbpress' );
- $localizations['subsUns'] = __( 'Unsubscribe', 'bbpress' );
- $localizations['subsLink'] = bbp_get_topic_permalink();
- } else {
- $localizations['subsActive'] = 0;
- }
-
- wp_localize_script( 'bbp_topic', 'bbpTopicJS', $localizations );
-}
-
-/**
-* Add or remove a topic from a user's favorites
-*
-* @since bbPress (r2652)
-*
-* @uses bbp_get_current_user_id() To get the current user id
-* @uses current_user_can() To check if the current user can edit the user
-* @uses bbp_get_topic() To get the topic
-* @uses check_ajax_referer() To verify the nonce & check the referer
-* @uses bbp_is_user_favorite() To check if the topic is user's favorite
-* @uses bbp_remove_user_favorite() To remove the topic from user's favorites
-* @uses bbp_add_user_favorite() To add the topic from user's favorites
-*/
-function tech_bbp_ajax_favorite() {
- $user_id = bbp_get_current_user_id();
- $id = intval( $_POST['id'] );
-
- if ( !current_user_can( 'edit_user', $user_id ) )
- die( '-1' );
-
- if ( !$topic = bbp_get_topic( $id ) )
- die( '0' );
-
- check_ajax_referer( 'toggle-favorite_' . $topic->ID );
-
- if ( bbp_is_user_favorite( $user_id, $topic->ID ) ) {
- if ( bbp_remove_user_favorite( $user_id, $topic->ID ) ) {
- die( '1' );
- }
- } else {
- if ( bbp_add_user_favorite( $user_id, $topic->ID ) ) {
- die( '1' );
- }
- }
-
- die( '0' );
-}
-
-/**
-* Subscribe/Unsubscribe a user from a topic
-*
-* @since bbPress (r2668)
-*
-* @uses bbp_is_subscriptions_active() To check if the subscriptions are active
-* @uses bbp_get_current_user_id() To get the current user id
-* @uses current_user_can() To check if the current user can edit the user
-* @uses bbp_get_topic() To get the topic
-* @uses check_ajax_referer() To verify the nonce & check the referer
-* @uses bbp_is_user_subscribed() To check if the topic is in user's
-* subscriptions
-* @uses bbp_remove_user_subscriptions() To remove the topic from user's
-* subscriptions
-* @uses bbp_add_user_subscriptions() To add the topic from user's subscriptions
-*/
-function tech_bbp_ajax_subscription() {
- if ( !bbp_is_subscriptions_active() )
- return;
-
- $user_id = bbp_get_current_user_id();
- $id = intval( $_POST['id'] );
-
- if ( !current_user_can( 'edit_user', $user_id ) )
- die( '-1' );
-
- if ( !$topic = bbp_get_topic( $id ) )
- die( '0' );
-
- check_ajax_referer( 'toggle-subscription_' . $topic->ID );
-
- if ( bbp_is_user_subscribed( $user_id, $topic->ID ) ) {
- if ( bbp_remove_user_subscription( $user_id, $topic->ID ) ) {
- die( '1' );
- }
- } else {
- if ( bbp_add_user_subscription( $user_id, $topic->ID ) ) {
- die( '1' );
- }
- }
-
- die( '0' );
-}
-?>
View
26 bbpress/content-archive-forum.php
@@ -1,26 +0,0 @@
-<?php
-
-/**
- * Archive Forum Content Part
- *
- * @package bbPress
- * @subpackage Theme
- */
-
-?>
-
- <?php bbp_breadcrumb(); ?>
-
- <?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/feedback', 'no-forums' ); ?>
-
- <?php endif; ?>
-
- <?php do_action( 'bbp_template_after_forums_index' ); ?>
View
30 bbpress/content-archive-topic.php
@@ -1,30 +0,0 @@
-<?php
-
-/**
- * Archive Topic Content Part
- *
- * @package bbPress
- * @subpackage Theme
- */
-
-?>
-
- <?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/feedback', 'no-topics' ); ?>
-
- <?php endif; ?>
-
- <?php do_action( 'bbp_template_after_topics_index' ); ?>
View
46 bbpress/content-single-forum.php
@@ -1,46 +0,0 @@
-<?php
-
-/**
- * Single Topic Content Part
- *
- * @package bbPress
- * @subpackage Theme
- */
-
-?>
-
- <?php bbp_breadcrumb(); ?>
-
- <?php if ( post_password_required() ) : ?>
-
- <?php bbp_get_template_part( 'bbpress/form', 'protected' ); ?>
-
- <?php else : ?>
-
- <?php bbp_single_forum_description(); ?>
-
- <?php if ( bbp_get_forum_subforum_count() && bbp_has_forums() ) : ?>
-
- <?php bbp_get_template_part( 'bbpress/loop', 'forums' ); ?>
-
- <?php endif; ?>
-
- <?php if ( !bbp_is_forum_category() && 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 bbp_get_template_part( 'bbpress/form', 'topic' ); ?>
-
- <?php elseif( !bbp_is_forum_category() ) : ?>
-
- <?php bbp_get_template_part( 'bbpress/feedback', 'no-topics' ); ?>
-
- <?php bbp_get_template_part( 'bbpress/form', 'topic' ); ?>
-
- <?php endif; ?>
-
- <?php endif; ?>
View
73 bbpress/content-single-topic-lead.php
@@ -1,73 +0,0 @@
-<?php
-
-/**
- * Single Topic Part
- *
- * @package bbPress
- * @subpackage Theme
- */
-
-?>
-
- <table class="bbp-topic" id="bbp-topic-<?php bbp_topic_id(); ?>">
- <thead>
- <tr>
- <th class="bbp-topic-author"><?php _e( 'Creator', 'bbpress' ); ?></th>
- <th class="bbp-topic-content">
-
- <?php _e( 'Topic', 'bbpress' ); ?>
-
- <?php bbp_user_subscribe_link(); ?>
-
- <?php bbp_user_favorites_link(); ?>
-
- </th>
- </tr>
- </thead>
-
- <tfoot>
- <tr>
- <td colspan="2">
-
- <?php bbp_topic_admin_links(); ?>
-
- </td>
- </tr>
- </tfoot>
-
- <tbody>
-
- <tr class="bbp-topic-header">
- <td colspan="2">
-
- <?php printf( __( '%1$s at %2$s', 'bbpress' ), get_the_date(), esc_attr( get_the_time() ) ); ?>
-
- <a href="#bbp-topic-<?php bbp_topic_id(); ?>" title="<?php bbp_topic_title(); ?>" class="bbp-topic-permalink">#<?php bbp_topic_id(); ?></a>
-
- </td>
- </tr>
-
- <tr id="post-<?php bbp_topic_id(); ?>" <?php post_class( 'bbp-forum-topic' ); ?>>
-
- <td class="bbp-topic-author">
-
- <?php bbp_topic_author_link( array( 'sep' => '<br />' ) ); ?>
-
- <?php if ( is_super_admin() ) : ?>
-
- <div class="bbp-topic-ip"><?php bbp_author_ip( bbp_get_topic_id() ); ?></div>
-
- <?php endif; ?>
-
- </td>
-
- <td class="bbp-topic-content">
-
- <?php bbp_topic_content(); ?>
-
- </td>
-
- </tr><!-- #post-<?php bbp_topic_id(); ?> -->
-
- </tbody>
- </table><!-- #bbp-topic-<?php bbp_topic_id(); ?> -->
View
46 bbpress/content-single-topic.php
@@ -1,46 +0,0 @@
-<?php
-
-/**
- * Single Topic Content Part
- *
- * @package bbPress
- * @subpackage Theme
- */
-
-?>
-
- <?php bbp_breadcrumb(); ?>
-
- <?php do_action( 'bbp_template_before_single_topic' ); ?>
-
- <?php if ( post_password_required() ) : ?>
-
- <?php bbp_get_template_part( 'bbpress/form', 'protected' ); ?>
-
- <?php else : ?>
-
- <?php bbp_topic_tag_list(); ?>
-
- <?php bbp_single_topic_description(); ?>
-
- <?php if ( bbp_show_lead_topic() ) : ?>
-
- <?php bbp_get_template_part( 'bbpress/content', 'single-topic-lead' ); ?>
-
- <?php endif; ?>
-
- <?php if ( bbp_get_query_name() || bbp_has_replies() ) : ?>
-
- <?php bbp_get_template_part( 'bbpress/pagination', 'replies' ); ?>
-
- <?php bbp_get_template_part( 'bbpress/loop', 'replies' ); ?>
-
- <?php bbp_get_template_part( 'bbpress/pagination', 'replies' ); ?>
-
- <?php endif; ?>
-
- <?php bbp_get_template_part( 'bbpress/form', 'reply' ); ?>
-
- <?php endif; ?>
-
- <?php do_action( 'bbp_template_after_single_topic' ); ?>
View
20 bbpress/content-single-user-edit.php
@@ -1,20 +0,0 @@
-<?php
-
-/**
- * Single User Edit Part
- *
- * @package bbPress
- * @subpackage Theme
- */
-
-?>
-
- <?php do_action( 'bbp_template_notices' );
-
- // Profile details
- bbp_get_template_part( 'bbpress/user', 'details' );
-
- // User edit form
- bbp_get_template_part( 'bbpress/form', 'user-edit' );
-
-?>
View
26 bbpress/content-single-user.php
@@ -1,26 +0,0 @@
-<?php
-
-/**
- * Single User Part
- *
- * @package bbPress
- * @subpackage Theme
- */
-
-?>
-
- <?php do_action( 'bbp_template_notices' );
-
- // Profile details
- bbp_get_template_part( 'bbpress/user', 'details' );
-
- // Subscriptions
- bbp_get_template_part( 'bbpress/user', 'subscriptions' );
-
- // Favorite topics
- bbp_get_template_part( 'bbpress/user', 'favorites' );
-
- // Topics created
- bbp_get_template_part( 'bbpress/user', 'topics-created' );
-
-?>
View
30 bbpress/content-single-view.php
@@ -1,30 +0,0 @@
-<?php
-
-/**
- * Single View Content Part
- *
- * @package bbPress
- * @subpackage Theme
- */
-
-?>
-
- <?php bbp_breadcrumb(); ?>
-
- <?php bbp_set_query_name( 'bbp_view' ); ?>
-
- <?php if ( bbp_view_query() ) : ?>
-
- <?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/feedback', 'no-topics' ); ?>
-
- <?php endif; ?>
-
- <?php bbp_reset_query_name(); ?>
View
14 bbpress/feedback-logged-in.php
@@ -1,14 +0,0 @@
-<?php
-
-/**
- * Already Logged In
- *
- * @package bbPress
- * @subpackage Theme
- */
-
-?>
-
-<div class="bbp-template-notice info">
- <p><?php _e( 'You are already logged in.', 'bbpress' ); ?></p>
-</div>
View
19 bbpress/feedback-no-access.php
@@ -1,19 +0,0 @@
-<?php
-
-/**
- * No access
- *
- * @package bbPress
- * @subpackage Theme
- */
-
-?>
-
-<div id="forum-private" class="bbp-forum-content">
- <h1 class="entry-title"><?php _e( 'Private', 'bbpress' ); ?></h1>
- <div class="entry-content">
- <div class="bbp-template-notice info">
- <p><?php _e( 'You do not have permission to view this forum.', 'bbpress' ); ?></p>
- </div>
- </div>
-</div><!-- #forum-private -->
View
14 bbpress/feedback-no-forums.php
@@ -1,14 +0,0 @@
-<?php
-
-/**
- * Oh bother!
- *
- * @package bbPress
- * @subpackage Theme
- */
-
-?>
-
-<div class="bbp-template-notice">
- <p><?php _e( 'Oh bother! No forums were found here!', 'bbpress' ); ?></p>
-</div>
View
14 bbpress/feedback-no-topics.php
@@ -1,14 +0,0 @@
-<?php
-
-/**
- * Oh bother!
- *
- * @package bbPress
- * @subpackage Theme
- */
-
-?>
-
-<div class="bbp-template-notice">
- <p><?php _e( 'Oh bother! No topics were found here!', 'bbpress' ); ?></p>
-</div>
View
42 bbpress/form-anonymous.php
@@ -1,42 +0,0 @@
-<?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() ) ) : ?>
-
- <?php do_action( 'bbp_theme_before_anonymous_form' ); ?>
-
- <fieldset class="bbp-form">
- <legend><?php ( bbp_is_topic_edit() || bbp_is_reply_edit() ) ? _e( 'Author Information', 'bbpress' ) : _e( 'Your information:', 'bbpress' ); ?></legend>
-
- <?php do_action( 'bbp_theme_anonymous_form_extras_top' ); ?>
-
- <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 bbp_is_topic_edit() ? bbp_topic_author_email() : bbp_is_reply_edit() ? bbp_reply_author_email() : bbp_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>
-
- <?php do_action( 'bbp_theme_anonymous_form_extras_bottom' ); ?>
-
- </fieldset>
-
- <?php do_action( 'bbp_theme_after_anonymous_form' ); ?>
-
-<?php endif; ?>
View
17 bbpress/form-protected.php
@@ -1,17 +0,0 @@
-<?php
-
-/**
- * Password Protected
- *
- * @package bbPress
- * @subpackage Theme
- */
-
-?>
-
- <fieldset class="bbp-form" id="bbp-protected">
- <Legend><?php _e( 'Protected', 'bbpress' ); ?></legend>
-
- <?php echo get_the_password_form(); ?>
-
- </fieldset>
View
178 bbpress/form-reply.php
@@ -1,178 +0,0 @@
-<?php
-
-/**
- * New/Edit Reply
- *
- * @package bbPress
- * @subpackage Theme
- */
-
-?>
-
- <?php if ( bbp_is_reply_edit() ) : ?>
-
- <?php bbp_breadcrumb(); ?>
-
- <?php endif; ?>
-
- <?php if ( bbp_current_user_can_access_create_reply_form() ) : ?>
-
- <div id="new-reply-<?php bbp_topic_id(); ?>" class="bbp-reply-form">
-
- <form id="new-post" name="new-post" method="post" action="">
-
- <?php do_action( 'bbp_theme_before_reply_form' ); ?>
-
- <fieldset class="bbp-form">
- <legend><?php printf( __( 'Reply To: %s', 'bbpress' ), bbp_get_topic_title() ); ?></legend>
-
- <?php do_action( 'bbp_theme_before_reply_form_notices' ); ?>
-
- <?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>
-
- <?php bbp_get_template_part( 'bbpress/form', 'anonymous' ); ?>
-
- <?php do_action( 'bbp_theme_before_reply_form_content' ); ?>
-
- <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" rows="6"><?php bbp_form_reply_content(); ?></textarea>
- </p>
-
- <?php do_action( 'bbp_theme_after_reply_form_content' ); ?>
-
- <?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; ?>
-
- <?php do_action( 'bbp_theme_before_reply_form_tags' ); ?>
-
- <p>
- <label for="bbp_topic_tags"><?php _e( '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" <?php disabled( bbp_is_topic_spam() ); ?> />
- </p>
-
- <?php do_action( 'bbp_theme_after_reply_form_tags' ); ?>
-
- <?php if ( bbp_is_subscriptions_active() && !bbp_is_anonymous() && ( !bbp_is_reply_edit() || ( bbp_is_reply_edit() && !bbp_is_reply_anonymous() ) ) ) : ?>
-
- <?php do_action( 'bbp_theme_before_reply_form_subscription' ); ?>
-
- <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 do_action( 'bbp_theme_after_reply_form_subscription' ); ?>
-
- <?php endif; ?>
-
- <?php if ( bbp_allow_revisions() && bbp_is_reply_edit() ) : ?>
-
- <?php do_action( 'bbp_theme_before_reply_form_revisions' ); ?>
-
- <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 do_action( 'bbp_theme_after_reply_form_revisions' ); ?>
-
- <?php else : ?>
-
- <?php bbp_topic_admin_links(); ?>
-
- <?php endif; ?>
-
- <?php do_action( 'bbp_theme_before_reply_form_submit_wrapper' ); ?>
-
- <div class="bbp-submit-wrapper">
-
- <?php do_action( 'bbp_theme_before_reply_form_submit_button' ); ?>
-
- <button type="submit" tabindex="<?php bbp_tab_index(); ?>" id="bbp_reply_submit" name="bbp_reply_submit" class="button submit"><?php _e( 'Submit', 'bbpress' ); ?></button>
-
- <?php do_action( 'bbp_theme_after_reply_form_submit_button' ); ?>
-
- </div>
-
- <?php do_action( 'bbp_theme_after_reply_form_submit_wrapper' ); ?>
-
- </div>
-
- <?php bbp_reply_form_fields(); ?>
-
- </fieldset>
-
- <?php do_action( 'bbp_theme_after_reply_form' ); ?>
-
- </form>
- </div>
-
- <?php elseif ( bbp_is_topic_closed() ) : ?>
-
- <div id="no-reply-<?php bbp_topic_id(); ?>" class="bbp-no-reply">
- <div class="bbp-template-notice">
- <p><?php printf( __( 'The topic &#8216;%s&#8217; is closed to new replies.', 'bbpress' ), bbp_get_topic_title() ); ?></p>
- </div>
- </div>
-
- <?php elseif ( bbp_is_forum_closed( bbp_get_topic_forum_id() ) ) : ?>
-
- <div id="no-reply-<?php bbp_topic_id(); ?>" class="bbp-no-reply">
- <div class="bbp-template-notice">
- <p><?php printf( __( 'The forum &#8216;%s&#8217; is closed to new topics and replies.', 'bbpress' ), bbp_get_forum_title( bbp_get_topic_forum_id() ) ); ?></p>
- </div>
- </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; ?>
View
104 bbpress/form-topic-merge.php
@@ -1,104 +0,0 @@
-<?php
-
-/**
- * Merge Topic
- *
- * @package bbPress
- * @subpackage Theme
- */
-
-?>
-
- <?php bbp_breadcrumb(); ?>
-
- <?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" class="button 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; ?>
View
108 bbpress/form-topic-split.php
@@ -1,108 +0,0 @@
-<?php
-
-/**
- * Split Topic
- *
- * @package bbPress
- * @subpackage Theme
- */
-
-?>
-
- <?php bbp_breadcrumb(); ?>
-
- <?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" class="button 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; ?>
View
119 bbpress/form-topic-tag.php
@@ -1,119 +0,0 @@
-<?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" id="tag-name" name="tag-name" size="20" maxlength="40" tabindex="<?php bbp_tab_index(); ?>" value="<?php echo esc_attr( bbp_get_topic_tag_name() ); ?>" />
- </div>
-
- <div>
- <label for="tag-slug"><?php _e( 'Slug:', 'bbpress' ); ?></label>
- <input type="text" id="tag-slug" 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_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-existing-name"><?php _e( 'Existing tag:', 'bbpress' ); ?></label>
- <input type="text" id="tag-existing-name" name="tag-existing-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; ?>
View
219 bbpress/form-topic.php
@@ -1,219 +0,0 @@
-<?php
-
-/**
- * New/Edit Topic
- *
- * @package bbPress
- * @subpackage Theme
- */
-
-?>
-
- <?php if ( !bbp_is_single_forum() ) : ?>
-
- <?php bbp_breadcrumb(); ?>
-
- <?php endif; ?>
-
- <?php if ( bbp_is_topic_edit() ) : ?>
-
- <?php bbp_topic_tag_list( bbp_get_topic_id() ); ?>
-
- <?php bbp_single_topic_description( array( 'topic_id' => bbp_get_topic_id() ) ); ?>
-
- <?php endif; ?>
-
- <?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="">
-
- <?php do_action( 'bbp_theme_before_topic_form' ); ?>
-
- <fieldset class="bbp-form">
- <legend>
-
- <?php
- if ( bbp_is_topic_edit() )
- printf( __( 'Now Editing &ldquo;%s&rdquo;', 'bbpress' ), bbp_get_topic_title() );
- else
- bbp_is_single_forum() ? printf( __( 'Create New Topic in &ldquo;%s&rdquo;', 'bbpress' ), bbp_get_forum_title() ) : _e( 'Create New Topic', 'bbpress' );
- ?>
-
- </legend>
-
- <?php do_action( 'bbp_theme_before_topic_form_notices' ); ?>
-
- <?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>
-
- <?php bbp_get_template_part( 'bbpress/form', 'anonymous' ); ?>
-
- <?php do_action( 'bbp_theme_before_topic_form_title' ); ?>
-
- <p>
- <label for="bbp_topic_title"><?php printf( __( 'Topic Title (Maximum Length: %d):', 'bbpress' ), bbp_get_title_max_length() ); ?></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" maxlength="<?php bbp_title_max_length(); ?>" />
- </p>
-
- <?php do_action( 'bbp_theme_after_topic_form_title' ); ?>
-
- <?php do_action( 'bbp_theme_before_topic_form_content' ); ?>
-
- <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="60" rows="6"><?php bbp_form_topic_content(); ?></textarea>
- </p>
-
- <?php do_action( 'bbp_theme_after_topic_form_content' ); ?>
-
- <?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; ?>
-
- <?php do_action( 'bbp_theme_before_topic_form_tags' ); ?>
-
- <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" <?php disabled( bbp_is_topic_spam() ); ?> />
- </p>
-
- <?php do_action( 'bbp_theme_after_topic_form_tags' ); ?>
-
- <?php if ( !bbp_is_single_forum() ) : ?>
-
- <?php do_action( 'bbp_theme_before_topic_form_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 do_action( 'bbp_theme_after_topic_form_forum' ); ?>
-
- <?php endif; ?>
-
- <?php if ( current_user_can( 'moderate' ) ) : ?>
-
- <?php do_action( 'bbp_theme_before_topic_form_type' ); ?>
-
- <p>
-
- <label for="bbp_stick_topic"><?php _e( 'Topic Type:', 'bbpress' ); ?></label><br />
-
- <?php bbp_topic_type_select(); ?>
-
- </p>
-
- <?php do_action( 'bbp_theme_after_topic_form_type' ); ?>
-
- <?php endif; ?>
-
- <?php if ( bbp_is_subscriptions_active() && !bbp_is_anonymous() && ( !bbp_is_topic_edit() || ( bbp_is_topic_edit() && !bbp_is_topic_anonymous() ) ) ) : ?>
-
- <?php do_action( 'bbp_theme_before_topic_form_subscriptions' ); ?>
-
- <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_topic_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 do_action( 'bbp_theme_after_topic_form_subscriptions' ); ?>
-
- <?php endif; ?>
-
- <?php if ( bbp_allow_revisions() && bbp_is_topic_edit() ) : ?>
-
- <?php do_action( 'bbp_theme_before_topic_form_revisions' ); ?>
-
- <fieldset class="bbp-form">
- <legend><?php _e( 'Revision', 'bbpress' ); ?></legend>
- <div>
- <input name="bbp_log_topic_edit" id="bbp_log_topic_edit" type="checkbox" value="1" <?php bbp_form_topic_log_edit(); ?> tabindex="<?php bbp_tab_index(); ?>" />
- <label for="bbp_log_topic_edit"><?php _e( 'Keep a log of this edit:', 'bbpress' ); ?></label><br />
- </div>
-
- <div>
- <label for="bbp_topic_edit_reason"><?php printf( __( 'Optional reason for editing:', 'bbpress' ), bbp_get_current_user_name() ); ?></label><br />
- <input type="text" value="<?php bbp_form_topic_edit_reason(); ?>" tabindex="<?php bbp_tab_index(); ?>" size="40" name="bbp_topic_edit_reason" id="bbp_topic_edit_reason" />
- </div>
- </fieldset>
-
- <?php do_action( 'bbp_theme_after_topic_form_revisions' ); ?>
-
- <?php endif; ?>
-
- <?php do_action( 'bbp_theme_before_topic_form_submit_wrapper' ); ?>
-
- <div class="bbp-submit-wrapper">
-
- <?php do_action( 'bbp_theme_before_topic_form_submit_button' ); ?>
-
- <button type="submit" tabindex="<?php bbp_tab_index(); ?>" id="bbp_topic_submit" name="bbp_topic_submit" class="button submit"><?php _e( 'Submit', 'bbpress' ); ?></button>
-
- <?php do_action( 'bbp_theme_after_topic_form_submit_button' ); ?>
-
- </div>
-
- <?php do_action( 'bbp_theme_after_topic_form_submit_wrapper' ); ?>
-
- </div>
-
- <?php bbp_topic_form_fields(); ?>
-
- </fieldset>
-
- <?php do_action( 'bbp_theme_after_topic_form' ); ?>
-
- </form>
- </div>
-
- <?php elseif ( bbp_is_forum_closed() ) : ?>
-
- <div id="no-topic-<?php bbp_topic_id(); ?>" class="bbp-no-topic">
- <div class="bbp-template-notice">
- <p><?php printf( __( 'The forum &#8216;%s&#8217; is closed to new topics and replies.', 'bbpress' ), bbp_get_forum_title() ); ?></p>
- </div>
- </div>
-
- <?php else : ?>
-
- <div id="no-topic-<?php bbp_topic_id(); ?>" class="bbp-no-topic">
- <div class="bbp-template-notice">
- <p><?php is_user_logged_in() ? _e( 'You cannot create new topics at this time.', 'bbpress' ) : _e( 'You must be logged in to create new topics.', 'bbpress' ); ?></p>
- </div>
- </div>
-
- <?php endif; ?>
View
178 bbpress/form-user-edit.php
@@ -1,178 +0,0 @@
-<?php
-
-/**
- * bbPress User Profile Edit Part
- *
- * @package bbPress
- * @subpackage Theme
- */
-
-?>
-
-<form id="bbp-your-profile" action="<?php bbp_user_profile_edit_url( bbp_get_displayed_user_id() ); ?>" method="post">
-
- <h2 class="entry-title"><?php _e( 'Name', 'bbpress' ) ?></h2>
-
- <?php do_action( 'bbp_user_edit_before' ); ?>
-
- <fieldset class="bbp-form">
- <legend><?php _e( 'Name', 'bbpress' ) ?></legend>
-
- <?php do_action( 'bbp_user_edit_before_name' ); ?>
-
- <div>
- <label for="first_name"><?php _e( 'First Name', 'bbpress' ) ?></label>
- <input type="text" name="first_name" id="first_name" value="<?php echo esc_attr( bbp_get_displayed_user_field( 'first_name' ) ); ?>" class="regular-text" tabindex="<?php bbp_tab_index(); ?>" />
- </div>
-
- <div>
- <label for="last_name"><?php _e( 'Last Name', 'bbpress' ) ?></label>
- <input type="text" name="last_name" id="last_name" value="<?php echo esc_attr( bbp_get_displayed_user_field( 'last_name' ) ); ?>" class="regular-text" tabindex="<?php bbp_tab_index(); ?>" />
- </div>
-
- <div>
- <label for="nickname"><?php _e( 'Nickname', 'bbpress' ); ?></label>
- <input type="text" name="nickname" id="nickname" value="<?php echo esc_attr( bbp_get_displayed_user_field( 'nickname' ) ); ?>" class="regular-text" tabindex="<?php bbp_tab_index(); ?>" />
- </div>
-
- <div>
- <label for="display_name"><?php _e( 'Display name publicly as', 'bbpress' ) ?></label>
-
- <?php bbp_edit_user_display_name(); ?>
-
- </div>
-
- <?php do_action( 'bbp_user_edit_after_name' ); ?>
-
- </fieldset>
-
- <h2 class="entry-title"><?php _e( 'Contact Info', 'bbpress' ) ?></h2>
-
- <fieldset class="bbp-form">
- <legend><?php _e( 'Contact Info', 'bbpress' ) ?></legend>
-
- <?php do_action( 'bbp_user_edit_before_contact' ); ?>
-
- <div>
- <label for="url"><?php _e( 'Website', 'bbpress' ) ?></label>
- <input type="text" name="url" id="url" value="<?php echo esc_attr( bbp_get_displayed_user_field( 'user_url' ) ); ?>" class="regular-text code" tabindex="<?php bbp_tab_index(); ?>" />
- </div>
-
- <?php foreach ( bbp_edit_user_contact_methods() as $name => $desc ) : ?>
-
- <div>
- <label for="<?php echo $name; ?>"><?php echo apply_filters( 'user_'.$name.'_label', $desc ); ?></label>
- <input type="text" name="<?php echo $name; ?>" id="<?php echo $name; ?>" value="<?php echo esc_attr( bbp_get_displayed_user_field( 'name' ) ); ?>" class="regular-text" tabindex="<?php bbp_tab_index(); ?>" />
- </div>
-
- <?php endforeach; ?>
-
- <?php do_action( 'bbp_user_edit_after_contact' ); ?>
-
- </fieldset>
-
- <h2 class="entry-title"><?php bbp_is_user_home() ? _e( 'About Yourself', 'bbpress' ) : _e( 'About the user', 'bbpress' ); ?></h2>
-
- <fieldset class="bbp-form">
- <legend><?php bbp_is_user_home() ? _e( 'About Yourself', 'bbpress' ) : _e( 'About the user', 'bbpress' ); ?></legend>
-
- <?php do_action( 'bbp_user_edit_before_about' ); ?>
-
- <div>
- <label for="description"><?php _e( 'Biographical Info', 'bbpress' ); ?></label>
- <textarea name="description" id="description" rows="5" cols="30" tabindex="<?php bbp_tab_index(); ?>"><?php echo esc_attr( bbp_get_displayed_user_field( 'description' ) ); ?></textarea>
- <span class="description"><?php _e( 'Share a little biographical information to fill out your profile. This may be shown publicly.', 'bbpress' ); ?></span>
- </div>
-
- <?php do_action( 'bbp_user_edit_after_about' ); ?>
-
- </fieldset>
-
- <h2 class="entry-title"><?php _e( 'Account' , 'bbpress' ) ?></h2>
-
- <fieldset class="bbp-form">
- <legend><?php _e( 'Account' , 'bbpres' ) ?></legend>
-
- <?php do_action( 'bbp_user_edit_before_account' ); ?>
-
- <div>
- <label for="user_login"><?php _e( 'Username', 'bbpress' ); ?></label>
- <input type="text" name="user_login" id="user_login" value="<?php echo esc_attr( bbp_get_displayed_user_field( 'user_login' ) ); ?>" disabled="disabled" class="regular-text" tabindex="<?php bbp_tab_index(); ?>" />
- <span class="description"><?php _e( 'Usernames cannot be changed.', 'bbpress' ); ?></span>
- </div>
-
- <div>
- <label for="email"><?php _e( 'Email', 'bbpress' ); ?></label>
-
- <input type="text" name="email" id="email" value="<?php echo esc_attr( bbp_get_displayed_user_field( 'user_email' ) ); ?>" class="regular-text" tabindex="<?php bbp_tab_index(); ?>" />
-
- <?php
-
- // Handle address change requests
- $new_email = get_option( bbp_get_displayed_user_id() . '_new_email' );
- if ( $new_email && $new_email != bbp_get_displayed_user_field( 'user_email' ) ) : ?>
-
- <span class="updated inline">
-
- <?php printf( __( 'There is a pending email address change to <code>%1$s</code>. <a href="%2$s">Cancel</a>', 'bbpress' ), $new_email['newemail'], esc_url( self_admin_url( 'user.php?dismiss=' . bbp_get_current_user_id() . '_new_email' ) ) ); ?>
-
- </span>
-
- <?php endif; ?>
-
- </div>
-
- <div id="password">
- <label for="pass1"><?php _e( 'New Password', 'bbpress' ); ?></label>
- <fieldset class="bbp-form">
- <input type="password" name="pass1" id="pass1" size="16" value="" autocomplete="off" tabindex="<?php bbp_tab_index(); ?>" />
- <span class="description"><?php _e( 'If you would like to change the password type a new one. Otherwise leave this blank.', 'bbpress' ); ?></span>
-
- <input type="password" name="pass2" id="pass2" size="16" value="" autocomplete="off" tabindex="<?php bbp_tab_index(); ?>" />
- <span class="description"><?php _e( 'Type your new password again.', 'bbpress' ); ?></span><br />
-
- <div id="pass-strength-result"></div>
- <span class="description indicator-hint"><?php _e( 'Hint: The password should be at least seven characters long. To make it stronger, use upper and lower case letters, numbers and symbols like ! " ? $ % ^ &amp; ).', 'bbpress' ); ?></span>
- </fieldset>
- </div>
-
- <?php if ( !bbp_is_user_home() ) : ?>
-
- <div>
- <label for="role"><?php _e( 'Role:', 'bbpress' ) ?></label>
-
- <?php bbp_edit_user_role(); ?>
-
- </div>
-
- <?php endif; ?>
-
- <?php if ( is_multisite() && is_super_admin() && current_user_can( 'manage_network_options' ) ) : ?>
-
- <div>
- <label for="role"><?php _e( 'Super Admin', 'bbpress' ); ?></label>
- <label>
- <input type="checkbox" id="super_admin" name="super_admin"<?php checked( is_super_admin( bbp_get_displayed_user_id() ) ); ?> tabindex="<?php bbp_tab_index(); ?>" />
- <?php _e( 'Grant this user super admin privileges for the Network.', 'bbpress' ); ?>
- </label>
- </div>
-
- <?php endif; ?>
-
- <?php do_action( 'bbp_user_edit_after_account' ); ?>
-
- </fieldset>
-
- <?php do_action( 'bbp_user_edit_after' ); ?>
-
- <fieldset class="submit">
- <legend><?php _e( 'Save Changes', 'bbpress' ); ?></legend>
- <div>
-
- <?php bbp_edit_user_form_fields(); ?>
-
- <button type="submit" tabindex="<?php bbp_tab_index(); ?>" id="bbp_user_edit_submit" name="bbp_user_edit_submit" class="button submit user-submit"><?php bbp_is_user_home() ? _e( 'Update Profile', 'bbpress' ) : _e( 'Update User', 'bbpress' ); ?></button>
- </div>
- </fieldset>
-
-</form>
View
41 bbpress/form-user-login.php
@@ -1,41 +0,0 @@
-<?php
-
-/**
- * User Login Form
- *
- * @package bbPress
- * @subpackage Theme
- */
-
-?>
-
- <form method="post" action="<?php bbp_wp_login_action( array( 'context' => 'login_post' ) ); ?>" class="bbp-login-form">
- <fieldset class="bbp-form">
- <legend><?php _e( 'Log In', 'bbpress' ); ?></legend>
-
- <div class="bbp-username">
- <label for="user_login"><?php _e( 'Username', 'bbpress' ); ?>: </label>
- <input type="text" name="log" value="<?php bbp_sanitize_val( 'user_login', 'text' ); ?>" size="20" id="user_login" tabindex="<?php bbp_tab_index(); ?>" />
- </div>
-
- <div class="bbp-password">
- <label for="user_pass"><?php _e( 'Password', 'bbpress' ); ?>: </label>
- <input type="password" name="pwd" value="<?php bbp_sanitize_val( 'user_pass', 'password' ); ?>" size="20" id="user_pass" tabindex="<?php bbp_tab_index(); ?>" />
- </div>
-
- <div class="bbp-remember-me">
- <input type="checkbox" name="rememberme" value="forever" <?php checked( bbp_get_sanitize_val( 'rememberme', 'checkbox' ) ); ?> id="rememberme" tabindex="<?php bbp_tab_index(); ?>" />
- <label for="rememberme"><?php _e( 'Keep me signed in', 'bbpress' ); ?></label>
- </div>
-
- <div class="bbp-submit-wrapper">
-
- <?php do_action( 'login_form' ); ?>
-
- <input type="submit" name="user-submit" value="<?php _e( 'Log In', 'bbpress' ); ?>" tabindex="<?php bbp_tab_index(); ?>" class="user-submit" />
-
- <?php bbp_user_login_fields(); ?>
-
- </div>
- </fieldset>
- </form>