Changeset 3130
- Timestamp:
- 05/10/2011 04:31:29 AM (15 years ago)
- Location:
- branches/plugin
- Files:
-
- 16 edited
-
bbp-includes/bbp-general-template.php (modified) (5 diffs)
-
bbp-themes/bbp-twentyten/bbpress/action-edit.php (modified) (1 diff)
-
bbp-themes/bbp-twentyten/bbpress/action-split-merge.php (modified) (1 diff)
-
bbp-themes/bbp-twentyten/bbpress/form-user-edit.php (modified) (1 diff)
-
bbp-themes/bbp-twentyten/bbpress/form-user-register.php (modified) (2 diffs)
-
bbp-themes/bbp-twentyten/css/bbpress.css (modified) (9 diffs)
-
bbp-themes/bbp-twentyten/page-create-topic.php (modified) (1 diff)
-
bbp-themes/bbp-twentyten/page-forum-statistics.php (modified) (1 diff)
-
bbp-themes/bbp-twentyten/page-front-forums.php (modified) (1 diff)
-
bbp-themes/bbp-twentyten/page-front-topics.php (modified) (1 diff)
-
bbp-themes/bbp-twentyten/page-topic-tags.php (modified) (1 diff)
-
bbp-themes/bbp-twentyten/page-topics-no-replies.php (modified) (1 diff)
-
bbp-themes/bbp-twentyten/page-user-login.php (modified) (1 diff)
-
bbp-themes/bbp-twentyten/page-user-lost-pass.php (modified) (1 diff)
-
bbp-themes/bbp-twentyten/page-user-register.php (modified) (1 diff)
-
bbp-themes/bbp-twentyten/single-forum.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-includes/bbp-general-template.php
r3118 r3130 1086 1086 * 1087 1087 * @param string $sep Separator. Defaults to '←' 1088 * @param bool $current_page Include the current item 1089 * @param bool $root Include the root page if one exists 1088 1090 * @uses bbp_get_breadcrumb() To get the breadcrumb 1089 1091 */ … … 1098 1100 * 1099 1101 * @param string $sep Separator. Defaults to '←' 1102 * @param bool $current_page Include the current item 1103 * @param bool $root Include the root page if one exists 1100 1104 * @uses bbp_get_breadcrumb() To get the breadcrumb 1101 1105 */ 1102 function bbp_breadcrumb( $sep = ' › ', $current_page = true ) {1103 echo bbp_get_breadcrumb( $sep );1106 function bbp_breadcrumb( $sep = ' › ', $current_page = true, $root = true ) { 1107 echo bbp_get_breadcrumb( $sep, $current_page, $root ); 1104 1108 } 1105 1109 /** … … 1109 1113 * 1110 1114 * @param string $sep Separator. Defaults to '←' 1115 * @param bool $current_page Include the current item 1116 * @param bool $root Include the root page if one exists 1117 * 1111 1118 * @uses get_post() To get the post 1112 1119 * @uses bbp_get_forum_permalink() To get the forum link … … 1124 1131 * @return string Breadcrumbs 1125 1132 */ 1126 function bbp_get_breadcrumb( $sep = ' › ', $current_page = true ) {1133 function bbp_get_breadcrumb( $sep = ' › ', $current_page = true, $root = true ) { 1127 1134 global $post, $bbp; 1128 1135 … … 1132 1139 1133 1140 // Get post ancestors 1134 $ancestors = array_reverse( get_post_ancestors( $post->ID ) ); 1141 $ancestors = array_reverse( get_post_ancestors( $post->ID ) ); 1142 1143 // Do we want to include the forum root? 1144 if ( !empty( $root ) && ( get_option( '_bbp_include_root' ) ) && ( $root_slug = get_option( '_bbp_root_slug' ) ) ) { 1145 1146 // Page exists at the root slug location, so add it to the breadcrumb 1147 if ( $page = get_page_by_path( $root_slug ) ) { 1148 $breadcrumbs[] = '<a href="' . trailingslashit( home_url( $root_slug ) ) . '">' . get_the_title( $page->ID ) . '</a>'; 1149 } 1150 } 1135 1151 1136 1152 // Loop through parents -
branches/plugin/bbp-themes/bbp-twentyten/bbpress/action-edit.php
r3101 r3130 18 18 19 19 <div id="bbp-edit-page" class="bbp-edit-page"> 20 <h1 class="entry-title"><?php bbp_title_breadcrumb(); ?></h1>20 <h1 class="entry-title"><?php the_title(); ?></h1> 21 21 <div class="entry-content"> 22 23 <?php bbp_get_template_part( 'bbpress/nav', 'breadcrumb' ); ?> 22 24 23 25 <?php if ( bbp_is_reply_edit() ) : ?> -
branches/plugin/bbp-themes/bbp-twentyten/bbpress/action-split-merge.php
r3032 r3130 20 20 21 21 <div id="bbp-edit-page" class="bbp-edit-page"> 22 <h1 class="entry-title"><?php bbp_title_breadcrumb(); ?></h1>22 <h1 class="entry-title"><?php the_title(); ?></h1> 23 23 <div class="entry-content"> 24 25 <?php bbp_get_template_part( 'bbpress/nav', 'breadcrumb' ); ?> 24 26 25 27 <?php if ( bbp_is_topic_merge() ) : ?> -
branches/plugin/bbp-themes/bbp-twentyten/bbpress/form-user-edit.php
r3106 r3130 168 168 <fieldset class="submit"> 169 169 <legend><?php _e( 'Save Changes', 'bbpress' ); ?></legend> 170 <div class="alignright">170 <div> 171 171 172 172 <?php bbp_edit_user_form_fields(); ?> -
branches/plugin/bbp-themes/bbp-twentyten/bbpress/form-user-register.php
r2970 r3130 12 12 <form method="post" action="<?php bbp_wp_login_action( array( 'context' => 'login_post' ) ); ?>" class="bbp-login-form"> 13 13 <fieldset> 14 <legend><?php _e( 'Register', 'bbpress' ); ?></legend> 14 <legend><?php _e( 'Create an Account', 'bbpress' ); ?></legend> 15 16 <div class="bbp-template-notice"> 17 <p><?php _e( 'Your username must be unique, and cannot be changed later.', 'bbpress' ) ?></p> 18 <p><?php _e( 'We use your email address to email you a secure password and verify your account.', 'bbpress' ) ?></p> 19 20 </div> 15 21 16 22 <div class="bbp-username"> … … 26 32 <?php do_action( 'register_form' ); ?> 27 33 28 <p id="reg_passmail"><?php _e( 'A password will be e-mailed to you.', 'bbpress' ) ?></p>29 30 34 <div class="bbp-submit-wrapper"> 31 35 -
branches/plugin/bbp-themes/bbp-twentyten/css/bbpress.css
r3123 r3130 286 286 /* =Forms 287 287 -------------------------------------------------------------- */ 288 288 body.page fieldset { 289 clear: left; 290 } 291 292 #bbp-login fieldset, 293 #bbp-register fieldset, 294 #bbp-lost-pass fieldset, 289 295 body.single-forum fieldset, 290 296 body.single-topic fieldset { … … 293 299 } 294 300 301 #bbp-login fieldset legend, 302 #bbp-register fieldset legend, 303 #bbp-lost-pass fieldset legend, 295 304 body.single-forum fieldset legend, 296 body.single-topic fieldset legend {305 body.single-topic fieldset legend { 297 306 padding: 5px; 298 307 } 299 308 309 #bbp-login fieldset label, 310 #bbp-register fieldset label, 311 #bbp-lost-pass fieldset label, 312 body.single-forum fieldset label, 313 body.single-topic fieldset label { 314 width: 200px; 315 display: inline-block; 316 } 317 318 #bbp-login fieldset p, 319 #bbp-register fieldset p, 320 #bbp-lost-pass fieldset p, 300 321 body.single-forum fieldset p, 301 322 body.single-topic fieldset input { … … 317 338 } 318 339 340 body.page .bbp-reply-form code, 341 body.page .bbp-topic-form code, 319 342 body.single-topic .bbp-reply-form code, 320 343 body.single-forum .bbp-topic-form code { … … 353 376 -------------------------------------------------------------- */ 354 377 355 div.bbp-edit-userfieldset {378 #your-profile fieldset { 356 379 margin-top: 20px; 357 380 padding: 20px 20px 0 20px; 358 381 } 359 div.bbp-edit-userfieldset div {382 #your-profile fieldset div { 360 383 margin-bottom: 20px; 361 384 float: left; … … 363 386 clear: left; 364 387 } 365 div.bbp-edit-user fieldset textarea { 366 line-height: 0; 367 } 368 div.bbp-edit-user fieldset select { 388 #your-profile fieldset select { 369 389 margin-bottom: 0; 370 390 } 371 div.bbp-edit-userfieldset input,372 div.bbp-edit-userfieldset textarea {391 #your-profile fieldset input, 392 #your-profile fieldset textarea { 373 393 margin-bottom: 0; 374 394 width: 400px; … … 380 400 padding: 2px; 381 401 } 382 div.bbp-edit-userfieldset legend {402 #your-profile fieldset legend { 383 403 display: none; 384 404 } 385 div.bbp-edit-userfieldset label {405 #your-profile fieldset label { 386 406 float: left; 387 407 width: 150px; … … 389 409 text-align: right; 390 410 } 391 div.bbp-edit-userfieldset span.description {411 #your-profile fieldset span.description { 392 412 margin: 5px 0 0 170px; 393 413 font-size: 12px; … … 401 421 } 402 422 403 div.bbp-edit-userfieldset fieldset {423 #your-profile fieldset fieldset { 404 424 margin: 0; 405 425 width: 260px; … … 407 427 padding: 0; 408 428 } 409 div.bbp-edit-userfieldset fieldset span.description {429 #your-profile fieldset fieldset span.description { 410 430 margin-left: 0; 411 431 margin-bottom: 20px; 432 } 433 434 #your-profile fieldset.submit button { 435 float: right; 412 436 } 413 437 -
branches/plugin/bbp-themes/bbp-twentyten/page-create-topic.php
r3032 r3130 20 20 21 21 <div id="bbp-new-topic" class="bbp-new-topic"> 22 <h1 class="entry-title"><?php bbp_title_breadcrumb(); ?></h1>22 <h1 class="entry-title"><?php the_title(); ?></h1> 23 23 <div class="entry-content"> 24 24 25 25 <?php the_content(); ?> 26 27 <?php bbp_get_template_part( 'bbpress/nav', 'breadcrumb' ); ?> 26 28 27 29 <?php bbp_get_template_part( 'bbpress/form', 'topic' ); ?> -
branches/plugin/bbp-themes/bbp-twentyten/page-forum-statistics.php
r3032 r3130 24 24 25 25 <div id="bbp-statistics" class="bbp-statistics"> 26 <h1 class="entry-title"><?php bbp_title_breadcrumb(); ?></h1>26 <h1 class="entry-title"><?php the_title(); ?></h1> 27 27 <div class="entry-content"> 28 28 -
branches/plugin/bbp-themes/bbp-twentyten/page-front-forums.php
r3115 r3130 20 20 21 21 <div id="forum-front" class="bbp-forum-front"> 22 <h1 class="entry-title"><?php bbp_title_breadcrumb(); ?></h1>22 <h1 class="entry-title"><?php the_title(); ?></h1> 23 23 <div class="entry-content"> 24 24 -
branches/plugin/bbp-themes/bbp-twentyten/page-front-topics.php
r3115 r3130 20 20 21 21 <div id="topics-front" class="bbp-topics-front"> 22 <h1 class="entry-title"><?php bbp_title_breadcrumb(); ?></h1>22 <h1 class="entry-title"><?php the_title(); ?></h1> 23 23 <div class="entry-content"> 24 24 25 25 <?php the_content(); ?> 26 27 <?php bbp_get_template_part( 'bbpress/nav', 'breadcrumb' ); ?> 26 28 27 29 <?php do_action( 'bbp_template_before_topics_index' ); ?> -
branches/plugin/bbp-themes/bbp-twentyten/page-topic-tags.php
r3031 r3130 20 20 21 21 <div id="bbp-topic-tags" class="bbp-topic-tags"> 22 <h1 class="entry-title"><?php bbp_title_breadcrumb(); ?></h1>22 <h1 class="entry-title"><?php the_title(); ?></h1> 23 23 <div class="entry-content"> 24 24 25 25 <?php get_the_content() ? the_content() : _e( '<p>This is a collection of tags that are currently popular on our forums.</p>', 'bbpress' ); ?> 26 27 <?php bbp_get_template_part( 'bbpress/nav', 'breadcrumb' ); ?> 26 28 27 29 <div id="bbp-topic-hot-tags"> -
branches/plugin/bbp-themes/bbp-twentyten/page-topics-no-replies.php
r3032 r3130 20 20 21 21 <div id="topics-front" class="bbp-topics-front"> 22 <h1 class="entry-title"><?php bbp_title_breadcrumb(); ?></h1>22 <h1 class="entry-title"><?php the_title(); ?></h1> 23 23 <div class="entry-content"> 24 24 25 25 <?php the_content(); ?> 26 27 <?php bbp_get_template_part( 'bbpress/nav', 'breadcrumb' ); ?> 26 28 27 29 <?php bbp_set_query_name( 'bbp_no_replies' ); ?> -
branches/plugin/bbp-themes/bbp-twentyten/page-user-login.php
r3032 r3130 22 22 23 23 <div id="bbp-login" class="bbp-login"> 24 <h1 class="entry-title"><?php bbp_title_breadcrumb(); ?></h1>24 <h1 class="entry-title"><?php the_title(); ?></h1> 25 25 <div class="entry-content"> 26 26 27 27 <?php the_content(); ?> 28 29 <?php bbp_get_template_part( 'bbpress/nav', 'breadcrumb' ); ?> 28 30 29 31 <?php bbp_get_template_part( 'bbpress/form', 'user-login' ); ?> -
branches/plugin/bbp-themes/bbp-twentyten/page-user-lost-pass.php
r3032 r3130 22 22 23 23 <div id="bbp-lost-pass" class="bbp-lost-pass"> 24 <h1 class="entry-title"><?php bbp_title_breadcrumb(); ?></h1>24 <h1 class="entry-title"><?php the_title(); ?></h1> 25 25 <div class="entry-content"> 26 26 27 27 <?php the_content(); ?> 28 29 <?php bbp_get_template_part( 'bbpress/nav', 'breadcrumb' ); ?> 28 30 29 31 <?php bbp_get_template_part( 'bbpress/form', 'user-lost-pass' ); ?> -
branches/plugin/bbp-themes/bbp-twentyten/page-user-register.php
r3032 r3130 22 22 23 23 <div id="bbp-register" class="bbp-register"> 24 <h1 class="entry-title"><?php bbp_title_breadcrumb(); ?></h1>24 <h1 class="entry-title"><?php the_title(); ?></h1> 25 25 <div class="entry-content"> 26 26 27 27 <?php the_content(); ?> 28 29 <?php bbp_get_template_part( 'bbpress/nav', 'breadcrumb' ); ?> 28 30 29 31 <?php bbp_get_template_part( 'bbpress/form', 'user-register' ); ?> -
branches/plugin/bbp-themes/bbp-twentyten/single-forum.php
r3109 r3130 25 25 <div class="entry-content"> 26 26 27 <?php if ( bbp_get_forum_parent() ) bbp_get_template_part( 'bbpress/nav', 'breadcrumb' ); ?> 28 29 <?php the_content(); ?> 27 <?php bbp_get_template_part( 'bbpress/nav', 'breadcrumb' ); ?> 30 28 31 29 <?php bbp_single_forum_description(); ?>
Note: See TracChangeset
for help on using the changeset viewer.