Making WordPress.org


Ignore:
Timestamp:
01/18/2017 07:25:51 PM (8 years ago)
Author:
coffee2code
Message:

Support Theme: Move "Subscribe" and "Favorite" buttons to bottom of sidebar.

See #1977.

File:
1 edited

Legend:

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

    r4720 r4722  
    445445        ?></li>
    446446    <?php endif; ?>
     447    <?php if ( ! empty( $wp_version ) ) : ?>
     448        <li class="wp-version"><?php echo esc_html( $wp_version ); ?></li>
     449    <?php endif; ?>
     450    <?php if ( function_exists( 'WordPressdotorg\Forums\Topic_Resolution\get_topic_resolution_form' ) ) : ?>
     451        <?php if ( WordPressdotorg\Forums\Topic_Resolution\Plugin::get_instance()->is_enabled_on_forum() ) : ?>
     452            <li class="topic-resolved"><?php WordPressdotorg\Forums\Topic_Resolution\get_topic_resolution_form( $topic_id ); ?></li>
     453        <?php endif; ?>
     454    <?php endif; ?>
     455    <?php if ( bbp_current_user_can_access_create_reply_form() /*bbp_is_topic_open( $_topic_id )*/ ) : ?>
     456        <li class="create-reply"><a href="#new-post"><?php _e( 'Reply to Topic', 'wporg-forums' ); ?></a></li>
     457    <?php endif; ?>
    447458    <?php if ( is_user_logged_in() ) : ?>
    448459        <?php $_topic_id = bbp_is_reply_edit() ? bbp_get_reply_topic_id() : $topic_id; ?>
    449460        <li class="topic-subscribe"><?php bbp_topic_subscription_link( array( 'before' => '', 'topic_id' => $_topic_id ) ); ?></li>
    450461        <li class="topic-favorite"><?php bbp_topic_favorite_link( array( 'topic_id' => $_topic_id ) ); ?></li>
    451     <?php endif; ?>
    452     <?php if ( ! empty( $wp_version ) ) : ?>
    453         <li class="wp-version"><?php echo esc_html( $wp_version ); ?></li>
    454     <?php endif; ?>
    455     <?php if ( function_exists( 'WordPressdotorg\Forums\Topic_Resolution\get_topic_resolution_form' ) ) : ?>
    456         <?php if ( WordPressdotorg\Forums\Topic_Resolution\Plugin::get_instance()->is_enabled_on_forum() ) : ?>
    457             <li class="topic-resolved"><?php WordPressdotorg\Forums\Topic_Resolution\get_topic_resolution_form( $topic_id ); ?></li>
    458         <?php endif; ?>
    459     <?php endif; ?>
    460     <?php if ( bbp_current_user_can_access_create_reply_form() /*bbp_is_topic_open( $_topic_id )*/ ) : ?>
    461         <li class="create-reply"><a href="#new-post"><?php _e( 'Reply to Topic', 'wporg-forums' ); ?></a></li>
    462462    <?php endif; ?>
    463463
     
    524524            printf( __( 'Last activity: %s', 'wporg-forums' ), $time_since );
    525525        ?></li>
    526     <?php endif; ?>
    527     <?php if ( is_user_logged_in() ) : ?>
    528         <li class="forum-subscribe"><?php bbp_forum_subscription_link( array( 'forum_id' => $forum_id ) ); ?></li>
    529526    <?php endif;
    530527}
Note: See TracChangeset for help on using the changeset viewer.