Skip to:
Content

bbPress.org


Ignore:
Timestamp:
05/06/2011 10:45:55 AM (16 years ago)
Author:
johnjamesjacoby
Message:

Add improved breadcrumb support to bbp-twentyten, shortcodes, and theme compat. Add improved topic-tag support for theme compat. Add missing topic-tag template tags.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-includes/bbp-general-template.php

    r3108 r3109  
    10881088 * @uses bbp_get_breadcrumb() To get the breadcrumb
    10891089 */
    1090 function bbp_title_breadcrumb( $sep = '←' ) {
     1090function bbp_title_breadcrumb( $sep = ' › ' ) {
    10911091        echo bbp_get_breadcrumb( $sep );
    10921092}
    … …  
    11001100 * @uses bbp_get_breadcrumb() To get the breadcrumb
    11011101 */
    1102 function bbp_breadcrumb( $sep = '←', $current_page = true ) {
     1102function bbp_breadcrumb( $sep = ' › ', $current_page = true ) {
    11031103        echo bbp_get_breadcrumb( $sep );
    11041104}
    … …  
    11241124         * @return string Breadcrumbs
    11251125         */
    1126         function bbp_get_breadcrumb( $sep = '←', $current_page = true ) {
     1126        function bbp_get_breadcrumb( $sep = ' › ', $current_page = true ) {
    11271127                global $post, $bbp;
    11281128
    … …  
    11681168                        $breadcrumbs[] = get_the_title();
    11691169
     1170                // Allow the separator of the breadcrumb to be easily changed
     1171                $sep   = apply_filters( 'bbp_breadcrumb_separator', $sep );
     1172
    11701173                // Build the trail
    1171                 if ( !empty( $breadcrumbs ) )
    1172                         $trail = implode( ' ' . $sep . ' ', $breadcrumbs );
    1173                 else
    1174                         $trail = '';
     1174                $trail = !empty( $breadcrumbs ) ? implode( $sep, $breadcrumbs ) : '';
    11751175
    11761176                return apply_filters( 'bbp_get_breadcrumb', $trail );
Note: See TracChangeset for help on using the changeset viewer.