Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * functions.php defines all manner of back-end coolness for
- * Elbee Elgee.
- */
- define( 'LBLG_FUNCTIONS_DIR', get_template_directory() . '/includes/functions/' );
- // Functions and settings related to handling theme options
- require_once( LBLG_FUNCTIONS_DIR . 'options.php' );
- // Functions and settings related to handling the Custom Header functionality
- require_once( LBLG_FUNCTIONS_DIR . 'headers.php' );
- // Functions and settings related to the back-end theme admin page[s]
- require_once( LBLG_FUNCTIONS_DIR . 'admin.php' );
- // Functions and settings handling custom widgets functionality
- require_once( LBLG_FUNCTIONS_DIR . 'widgets.php' );
- // Registration of custom theme hooks
- require_once( LBLG_FUNCTIONS_DIR . 'hooks.php' );
- // Register theme support for various core WordPress functionality
- require_once( LBLG_FUNCTIONS_DIR . 'supports.php' );
- // Custom functionality that doesn't fit in any other area
- require_once( LBLG_FUNCTIONS_DIR . 'custom.php' );
- // BuddyPress-related code, only loaded if BP is active
- if( function_exists( 'bp_init' ) )
- require_once( LBLG_FUNCTIONS_DIR . 'buddypress.php' );
- // bbPress-related code, only loaded if bbP is active
- if( function_exists( 'bbp_get_current_user_id' ) )
- require_once( LBLG_FUNCTIONS_DIR . 'bbpress.php' );
- function lbc_remove_postimage(){
- remove_action( 'lblg_before_itemtext',
- 'lblg_the_postimage' );
- }
- add_action( 'init', 'lbc_remove_postimage' );
- remove_action( 'lblg_after_itemtext', 'lblg_post_info' );
- add_action( 'lblg_before_itemtext', 'lblg_post_info' );
- function register_my_menus() {
- register_nav_menus(
- array( 'header-menu' => __( 'Header Menu' ) )
- );
- }
- add_action( 'init', 'register_my_menus' );
- //Disavble sidebars
- add_filter( 'sidebars_widgets', 'disable_all_widgets' );
- function disable_all_widgets( $sidebars_widgets ) {
- if ( is_home() )
- $sidebars_widgets = array( false );
- return $sidebars_widgets;
- }
- function lbc_unplug_lblg_post_info(){
- remove_action( 'lblg_after_itemtext', 'lblg_post_info' );
- }
- add_action( 'init', 'lbc_unplug_lblg_post_info');
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement