Ticket #3774: child-theme-support.patch
File child-theme-support.patch, 3.3 KB (added by , 13 years ago) |
---|
-
bpt-admin.php
72 72 /** 73 73 * Output the BPT admin page 74 74 */ 75 function bp_tpack_theme_menu() { 76 $theme_dir = WP_CONTENT_DIR . '/themes/' . get_option('stylesheet') . '/'; 77 75 function bp_tpack_theme_menu() { 78 76 if ( !empty( $_GET['finish'] ) ) 79 77 update_option( 'bp_tpack_configured', 1 ); 80 78 81 79 if ( !empty( $_GET['reset'] ) ) 82 80 delete_option( 'bp_tpack_configured' ); 83 81 84 if ( !file_exists( $theme_dir . 'activity' ) && !file_exists( $theme_dir . 'blogs' ) && !file_exists( $theme_dir . 'forums' ) && !file_exists( $theme_dir . 'groups' ) && !file_exists( $theme_dir . 'members' ) && !file_exists( $theme_dir . 'registration' ) ) { 82 if ( !file_exists( get_query_template('activity', array('activity/index.php') ) ) 83 && !file_exists( get_query_template('blogs', array('blogs/index.php') ) ) 84 && !file_exists( get_query_template('forums', array('forums/index.php') ) ) 85 && !file_exists( get_query_template('groups', array('groups/index.php') ) ) 86 && !file_exists( get_query_template('members', array('members/index.php') ) ) 87 && !file_exists( get_query_template('registration', array('registration/register.php') ) ) ) { 85 88 $step = 1; 86 89 87 90 if ( !empty( $_GET['move'] ) ) { … … 145 148 146 149 <p><?php _e( 'In this directory you will find six folders (/activity/, /blogs/, /forums/, /groups/, /members/, /registration/). If you want to use all of the features of BuddyPress then you must move these six directories to the following folder:', 'bp-tpack' ); ?></p> 147 150 148 <p><code><?php echo $theme_dir?></code></p>151 <p><code><?php echo get_stylesheet_directory() . '/' ?></code></p> 149 152 150 153 <p><?php _e( "If you decide that you don't want to use a feature of BuddyPress, then you can actually ignore the template folders for these features. For example, if you don't want to use the groups and forums features, you can simply avoid copying the /groups/ and /forums/ template folders to your active theme. (If you're not sure what to do, just copy all six folders over to your theme directory.)", 'bp-tpack' ); ?></p> 151 154 … … 194 197 195 198 <p><?php _e( "If BuddyPress pages are not aligned correctly, then you may need to modify some of the templates to match your theme's HTML structure. The best way to do this is to access your theme's files, via FTP, at:", 'bp-tpack' ); ?></p> 196 199 197 <p><code><?php echo $theme_dir?></code></p>200 <p><code><?php echo get_stylesheet_directory() . '/' ?></code></p> 198 201 199 202 <p><?php _e( 'Open up the <code>page.php</code> file (if this does not exist, use <code>index.php</code>). Make note of the HTML template structure of the file, specifically the <code><div></code> tags that surround the content and sidebar.', 'bp-tpack' ); ?></p> 200 203 … … 205 208 206 209 <ol> 207 210 <li> 208 <?php _e( "The first method is to locate th ofollowing templates (leave out any folders that you didn't copy over in Step Two):", 'bp-tpack' ) ?>211 <?php _e( "The first method is to locate the following templates (leave out any folders that you didn't copy over in Step Two):", 'bp-tpack' ) ?> 209 212 210 213 <?php else : ?> 211 214 <p><?php _e( 'The files that you need to edit are as follows (leave out any folders you have not copied over in step two):', 'bp-tpack' ); ?></p>