WordPress.org

Making WordPress.org

Changeset 3798


Ignore:
Timestamp:
08/10/2016 05:22:41 PM (3 years ago)
Author:
jmdodd
Message:

Forums Theme: Add editable topic resolution to single topic pages.

See #1544, #1873.

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-forums
Files:
2 edited

Legend:

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

    r3741 r3798  
    272272        <li class="wp-version"><?php echo esc_html( $wp_version ); ?></li>
    273273    <?php endif; ?>
     274    <?php if ( function_exists( 'WordPressdotorg\Forums\Topic_Resolution\get_topic_resolution_form' ) ) : ?>
     275        <?php if ( WordPressdotorg\Forums\Topic_Resolution\Plugin::get_instance()->is_enabled_on_forum() ) : ?>
     276            <li class="topic-resolved"><?php WordPressdotorg\Forums\Topic_Resolution\get_topic_resolution_form( $topic_id ); ?></li>
     277        <?php endif; ?>
     278    <?php endif; ?>
    274279
    275280    <?php
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-forums/style.css

    r3616 r3798  
    220220}
    221221
     222.sidebar .topic-info li.topic-resolved:before {
     223    content: "\f546";
     224}
     225
    222226/* Sticky topics */
    223227#bbpress-forums ul.sticky li.bbp-topic-title a.bbp-topic-permalink:before,
Note: See TracChangeset for help on using the changeset viewer.