Making WordPress.org


Ignore:
Timestamp:
01/31/2017 11:10:19 PM (10 years ago)
Author:
coffee2code
Message:

Support Theme: Make single tag view look more like other single views

  • Output title in similar markup and ensure similar font sizing
  • Move subscription button to sidebar
  • Add pagination widget above listing table

Fixes #2463.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/functions.php

    r4842 r4843  
    540540        }
    541541
    542         $term_subscription = '';
    543         if ( function_exists( 'WordPressdotorg\Forums\Term_Subscription\get_subscription_link' ) ) {
    544                 $term_subscription = WordPressdotorg\Forums\Term_Subscription\get_subscription_link( get_queried_object()->term_id );
    545         }
    546 
    547542        bbp_breadcrumb();
    548543        ?>
    549         <div id="topic-tag" class="bbp-topic-tag">
    550         <h1 class="entry-title"><?php printf( esc_html__( 'Topic Tag: %s', 'bbpress' ), '<span>' . bbp_get_topic_tag_name() . '</span>' ); ?></h1>
    551         <?php if ( ! empty( $term_subscription ) ) : ?><?php echo $term_subscription; ?><?php endif; ?>
     544        <header id="topic-tag" class="page-header bbp-topic-tag">
     545                <h1 class="page-title"><?php printf( esc_html__( 'Topic Tag: %s', 'bbpress' ), '<span>' . bbp_get_topic_tag_name() . '</span>' ); ?></h1>
     546        </header>
     547        <?php bbp_get_template_part( 'pagination', 'topics' ); ?>
    552548                <div class="entry-content">
    553549        <?php
    … …  
    561557        ?>
    562558                </div>
    563         </div><!-- #topic-tag -->
    564559        <?php
    565560}
Note: See TracChangeset for help on using the changeset viewer.