Changeset 3742 for trunk/bp-themes/bp-default/functions.php
- Timestamp:
- 01/19/2011 08:31:10 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-themes/bp-default/functions.php
r3736 r3742 117 117 endif; 118 118 119 /** 120 * Enqueue theme javascript safely after the 'init' action, per WordPress Codex. 119 if ( !function_exists( 'bp_dtheme_enqueue_scripts' ) ) : 120 /** 121 * Enqueue theme javascript safely 121 122 * 122 123 * @global $bp The global BuddyPress settings variable created in bp_core_setup_globals() … … 146 147 } 147 148 add_action( 'wp_enqueue_scripts', 'bp_dtheme_enqueue_scripts' ); 149 endif; 148 150 149 151 if ( !function_exists( 'bp_dtheme_admin_header_style' ) ) : … … 289 291 endif; 290 292 293 if ( !function_exists( 'bp_dtheme_widgets_init' ) ) : 291 294 /** 292 295 * Register widgetised areas, including one sidebar and four widget-ready columns in the footer. … … 355 358 } 356 359 add_action( 'widgets_init', 'bp_dtheme_widgets_init' ); 360 endif; 357 361 358 362 if ( !function_exists( 'bp_dtheme_blog_comments' ) ) : … … 425 429 endif; 426 430 431 if ( !function_exists( 'bp_dtheme_page_on_front' ) ) : 427 432 /** 428 433 * Return the ID of a page set as the home page. … … 437 442 return apply_filters( 'bp_dtheme_page_on_front', get_option( 'page_on_front' ) ); 438 443 } 439 444 endif; 445 446 if ( !function_exists( 'bp_dtheme_activity_secondary_avatars' ) ) : 440 447 /** 441 448 * Add secondary avatar image to this activity stream's record, if supported. … … 463 470 } 464 471 add_filter( 'bp_get_activity_action_pre_meta', 'bp_dtheme_activity_secondary_avatars', 10, 2 ); 465 472 endif; 473 474 if ( !function_exists( 'bp_dtheme_show_notice' ) ) : 466 475 /** 467 476 * Show a notice when the theme is activated - workaround by Ozh (http://old.nabble.com/Activation-hook-exist-for-themes--td25211004.html) … … 479 488 if ( is_admin() && isset($_GET['activated'] ) && $pagenow == "themes.php" ) 480 489 add_action( 'admin_notices', 'bp_dtheme_show_notice' ); 490 endif; 481 491 482 492 if ( !function_exists( 'bp_dtheme_main_nav' ) ) : … … 516 526 endif; 517 527 528 if ( !function_exists( 'bp_dtheme_page_menu_args' ) ) : 518 529 /** 519 530 * Get our wp_nav_menu() fallback, bp_dtheme_main_nav(), to show a home link. … … 528 539 } 529 540 add_filter( 'wp_page_menu_args', 'bp_dtheme_page_menu_args' ); 530 541 endif; 542 543 if ( !function_exists( 'bp_dtheme_comment_form' ) ) : 531 544 /** 532 545 * Applies BuddyPress customisations to the post comment form. … … 564 577 } 565 578 add_filter( 'comment_form_defaults', 'bp_dtheme_comment_form', 10 ); 566 579 endif; 580 581 if ( !function_exists( 'bp_dtheme_before_comment_form' ) ) : 567 582 /** 568 583 * Adds the user's avatar before the comment form box. … … 592 607 } 593 608 add_action( 'comment_form_top', 'bp_dtheme_before_comment_form' ); 594 609 endif; 610 611 if ( !function_exists( 'bp_dtheme_after_comment_form' ) ) : 595 612 /** 596 613 * Closes tags opened in bp_dtheme_before_comment_form(). … … 602 619 function bp_dtheme_after_comment_form() { 603 620 ?> 621 604 622 </div><!-- .comment-content standard-form --> 623 605 624 <?php 606 625 } 607 626 add_action( 'comment_form', 'bp_dtheme_after_comment_form' ); 608 627 endif; 609 628 610 629 // Everything beyond this point is deprecated as of BuddyPress 1.3. This will be removed in a future version. 630 631 if ( BP_VERSION < 1.3 ) : 611 632 612 633 /** … … 701 722 wp_enqueue_script( 'comment-reply' ); 702 723 } 724 endif; 725 703 726 ?>
Note: See TracChangeset
for help on using the changeset viewer.