Making WordPress.org


Ignore:
Timestamp:
01/31/2017 11:10:19 PM (9 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/sidebar.php

    r4738 r4843  
    9090        <?php elseif ( ! bbp_is_single_user() ) : ?>
    9191
     92            <?php
     93                $term_subscription = '';
     94                if ( is_tax( 'topic-tag' ) && function_exists( 'WordPressdotorg\Forums\Term_Subscription\get_subscription_link' ) ) {
     95                    $term_subscription = WordPressdotorg\Forums\Term_Subscription\get_subscription_link( get_queried_object()->term_id );
     96                }
     97                if ( $term_subscription ) {
     98                    echo '<div>' . $term_subscription . "</div>\n";
     99                }
     100            ?>
    92101            <div>
    93102                <h4><?php _e( 'Views', 'wporg-forums' ); ?></h4>
Note: See TracChangeset for help on using the changeset viewer.