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-themes/bbp-twentyten/taxonomy-topic-tag.php

    r3057 r3109  
    77 * @subpackage Theme
    88 */
    9 
    10 //@todo - remove $term variable references
    11 $term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) );
    129
    1310?>
    … …  
    2118
    2219                                <div id="topic-tag" class="bbp-topic-tag">
    23                                         <h1 class="entry-title"><?php printf( __( 'Topic Tag: %s', 'bbpress' ), '<span>' . $term->name . '</span>' ); ?></h1>
     20                                        <h1 class="entry-title"><?php printf( __( 'Topic Tag: %s', 'bbpress' ), '<span>' . bbp_get_topic_tag_name() . '</span>' ); ?></h1>
    2421
    2522                                        <div class="entry-content">
    2623
    27                                                 <?php term_description(); ?>
     24                                                <?php bbp_topic_tag_description(); ?>
    2825
    29                                                 <?php bbp_get_template_part( 'bbpress/pagination', 'topics'    ); ?>
     26                                                <?php if ( bbp_has_topics() ) : ?>
    3027
    31                                                 <?php bbp_get_template_part( 'bbpress/loop',      'topics'    ); ?>
     28                                                        <?php bbp_get_template_part( 'bbpress/pagination', 'topics'    ); ?>
    3229
    33                                                 <?php bbp_get_template_part( 'bbpress/pagination', 'topics'    ); ?>
     30                                                        <?php bbp_get_template_part( 'bbpress/loop',      'topics'    ); ?>
    3431
    35                                                 <?php bbp_get_template_part( 'bbpress/form',       'topic-tag' ); ?>
     32                                                        <?php bbp_get_template_part( 'bbpress/pagination', 'topics'    ); ?>
     33
     34                                                        <?php bbp_get_template_part( 'bbpress/form',       'topic-tag' ); ?>
     35
     36                                                <?php else : ?>
     37
     38                                                        <?php bbp_get_template_part( 'bbpress/no', 'topics' ); ?>
     39
     40                                                <?php endif; ?>
    3641
    3742                                        </div>
Note: See TracChangeset for help on using the changeset viewer.