WordPress.org

Making WordPress.org

Changeset 3899


Ignore:
Timestamp:
09/01/16 02:10:22 (16 months ago)
Author:
jmdodd
Message:

Forums Theme: Add more hooks and logic to enable plugin and theme view behaviors.

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

Legend:

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

    r1521 r3899  
    1212<div id="bbpress-forums"> 
    1313 
     14    <?php do_action( 'wporg_compat_before_single_view' ); ?> 
     15 
    1416    <?php bbp_breadcrumb(); ?> 
    1517 
    16     <?php bbp_set_query_name( 'bbp_view' ); ?> 
     18    <?php bbp_set_query_name( bbp_get_view_rewrite_id() ); ?> 
    1719 
    1820    <?php if ( bbp_view_query() ) : ?> 
     
    3032    <?php endif; ?> 
    3133 
     34    <?php do_action( 'wporg_compat_after_single_view' ); ?> 
     35 
    3236    <?php bbp_reset_query_name(); ?> 
    3337 
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-forums/bbpress/form-topic.php

    r3740 r3899  
    1 <?php if ( !bbp_is_single_forum() ) : ?> 
     1<?php if ( ! bbp_is_single_forum() && ! bbp_is_single_view() ) : ?> 
    22 
    33<div id="bbpress-forums"> 
     
    9999                    <?php do_action( 'bbp_theme_after_topic_form_tags' ); ?> 
    100100 
    101                     <?php if ( !bbp_is_single_forum() ) : ?> 
     101                    <?php if ( ! bbp_is_single_forum() && ! bbp_is_single_view() ) : ?> 
    102102 
    103103                        <?php do_action( 'bbp_theme_before_topic_form_forum' ); ?> 
     
    214214<?php endif; ?> 
    215215 
    216 <?php if ( !bbp_is_single_forum() ) : ?> 
     216<?php if ( ! bbp_is_single_forum() && ! bbp_is_single_view() ) : ?> 
    217217 
    218218</div> 
Note: See TracChangeset for help on using the changeset viewer.