Ticket #4855: 4855.01.patch
File 4855.01.patch, 3.9 KB (added by , 12 years ago) |
---|
-
new file p-templates/bp-legacy/buddypress/members/single/generic.php
new file mode 100644
- + 1 <?php 2 /** 3 * BuddyPress - Users Plugins Template 4 * 5 * 3rd-party plugins should use this template to easily add template 6 * support to their plugins for the members component. 7 * 8 * @package BuddyPress 9 * @subpackage bp-legacy 10 */ 11 ?> 12 13 <?php do_action( 'bp_before_member_plugin_template' ); ?> 14 15 <?php if ( ! bp_is_current_component_core() ) : ?> 16 17 <div class="item-list-tabs no-ajax" id="subnav"> 18 <ul> 19 <?php bp_get_options_nav(); ?> 20 21 <?php do_action( 'bp_member_plugin_options_nav' ); ?> 22 </ul> 23 </div><!-- .item-list-tabs --> 24 25 <?php endif; ?> 26 27 <h3><?php do_action( 'bp_template_title' ); ?></h3> 28 29 <?php do_action( 'bp_template_content' ); ?> 30 31 <?php do_action( 'bp_after_member_plugin_template' ); ?> -
bp-templates/bp-legacy/buddypress/members/single/home.php
50 50 51 51 // If nothing sticks, load a generic template 52 52 else : 53 bp_get_template_part( 'members/single/ plugins' );53 bp_get_template_part( 'members/single/generic' ); 54 54 55 55 endif; 56 56 -
deleted file bp-templates/bp-legacy/buddypress/members/single/plugins.php
deleted file mode 100644
+ - 1 <?php2 /**3 * BuddyPress - Users Plugins Template4 *5 * 3rd-party plugins should use this template to easily add template6 * support to their plugins for the members component.7 *8 * @package BuddyPress9 * @subpackage bp-legacy10 */11 ?>12 13 <?php do_action( 'bp_before_member_plugin_template' ); ?>14 15 <?php if ( ! bp_is_current_component_core() ) : ?>16 17 <div class="item-list-tabs no-ajax" id="subnav">18 <ul>19 <?php bp_get_options_nav(); ?>20 21 <?php do_action( 'bp_member_plugin_options_nav' ); ?>22 </ul>23 </div><!-- .item-list-tabs -->24 25 <?php endif; ?>26 27 <h3><?php do_action( 'bp_template_title' ); ?></h3>28 29 <?php do_action( 'bp_template_content' ); ?>30 31 <?php do_action( 'bp_after_member_plugin_template' ); ?> -
new file p-themes/bp-default/members/single/generic.php
new file mode 100644
- + 1 <?php 2 /** 3 * BuddyPress - Users Plugins Template 4 * 5 * 3rd-party plugins should use this template to easily add template 6 * support to their plugins for the members component. 7 * 8 * @package BuddyPress 9 * @subpackage bp-legacy 10 */ 11 ?> 12 13 <?php do_action( 'bp_before_member_plugin_template' ); ?> 14 15 <?php if ( ! bp_is_current_component_core() ) : ?> 16 17 <div class="item-list-tabs no-ajax" id="subnav"> 18 <ul> 19 <?php bp_get_options_nav(); ?> 20 21 <?php do_action( 'bp_member_plugin_options_nav' ); ?> 22 </ul> 23 </div><!-- .item-list-tabs --> 24 25 <?php endif; ?> 26 27 <h3><?php do_action( 'bp_template_title' ); ?></h3> 28 29 <?php do_action( 'bp_template_content' ); ?> 30 31 <?php do_action( 'bp_after_member_plugin_template' ); ?> -
bp-themes/bp-default/members/single/home.php
get_header( 'buddypress' ); ?> 62 62 63 63 // If nothing sticks, load a generic template 64 64 else : 65 locate_template( array( 'members/single/ plugins.php' ), true );65 locate_template( array( 'members/single/generic.php' ), true ); 66 66 67 67 endif; 68 68