Source

elbee-elgee / functions.php

<?php
/**
* functions.php defines all manner of back-end coolness for
* Elbee Elgee.
*/

define( 'LBLG_INCLUDE_DIR', get_template_directory() . '/includes/' );
define( 'LBLG_FUNCTIONS_DIR',  LBLG_INCLUDE_DIR . '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' );

// Change from options to decisions
require_once( LBLG_FUNCTIONS_DIR . 'decisions.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' );

// Theme Hook Alliance Hooks
require_once( LBLG_FUNCTIONS_DIR . 'tha-theme-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' );
	
// wp-less, from Sancho the Fat
require_once( LBLG_INCLUDE_DIR . 'wp-less/wp-less.php' );
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.