elbee-elgee / includes / functions / supports.php

Doug Stewart d49b63e 
Doug Stewart ba2f84d 










Doug Stewart 16079c4 


Doug Stewart d49b63e 

Doug Stewart 345eb77 
Doug Stewart d49b63e 



Doug Stewart 345eb77 
Doug Stewart d49b63e 


Doug Stewart 8c16ff5 
Doug Stewart 345eb77 
Doug Stewart 8c16ff5 



Doug Stewart 345eb77 
Doug Stewart 8c16ff5 


Doug Stewart d49b63e 
Doug Stewart c8b6ee2 
Doug Stewart d49b63e 

Doug Stewart 9a666ff 
Doug Stewart d49b63e 
Doug Stewart 16079c4 
Doug Stewart aa44d67 

Doug Stewart c7ba67d 

Doug Stewart aa44d67 
Doug Stewart 01ac500 

Doug Stewart 9e35771 
Doug Stewart aa44d67 
Doug Stewart 16079c4 


Doug Stewart c59e030 
Doug Stewart 16079c4 
Doug Stewart c59e030 
Doug Stewart 16079c4 



Doug Stewart 15c677e 
<?php
/**
 * This file is responsible for registering all the extra core
 * WordPress functionality the theme supports.
 *
 * @package     Elbee-Elgee
 * @copyright   Copyright (c) 2011, Doug Stewart
 * @license     http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public License, v2 (or newer)
 *
 * @since       Elbee-Elgee 1.0
 *
 */
/**
 * Register all the sidebar areas
 */
function lblg_register_sidebars() {
	register_sidebar( array( 'name'=>'Primary',
						   'before_widget' => '<li id="%1$s" class="widget %2$s">', 
						   'after_widget' => '</li>', 
						   'before_title' => '<h4>', 
						   'after_title' => '</h4>' ) );
	register_sidebar( array( 'name'=>'Secondary', 
						   'before_widget' => '<li id="%1$s" class="widget %2$s">',
						   'after_widget' => '</li>', 
						   'before_title' => '<h4>', 
						   'after_title' => '</h4>' ) );
	register_sidebar( array( 'name'=>'Bottom-Left',
						   'before_widget' => '<li id="%1$s" class="widget %2$s">',
						   'after_widget' => '</li>', 
						   'before_title' => '<h4>', 
						   'after_title' => '</h4>' ) );
	register_sidebar( array( 'name'=>'Bottom-Right',
						   'before_widget' => '<li id="%1$s" class="widget %2$s">',
						   'after_widget' => '</li>', 
						   'before_title' => '<h4>', 
						   'after_title' => '</h4>' ) );
}
add_action( 'widgets_init', 'lblg_register_sidebars' );

/*
* Add support for various WordPress-native functionality
*/
if ( ! isset( $content_width ) ) $content_width = '600';
add_theme_support( 'nav-menus' );
add_theme_support( 'post-thumbnails' );
set_post_thumbnail_size( 64, 64, true );
add_image_size( 'lb-content-header', $content_width, 9999 );
add_theme_support( 'automatic-feed-links' );
//add_custom_background();
add_theme_support( 'custom-background' );
add_editor_style();

/**
 * Register nav menus
*/
register_nav_menu( 'primary', 'Primary Navigation Menu' );
if( function_exists( 'bp_get_loggedin_user_nav' ) ) {
	register_nav_menu( 'lblgbpmenu', 'Default BuddyPress Menu' );
}
if( $lblg_options['enable_mobile_menu'] ) {
	register_nav_menu( 'lblgmobilemenu', 'Mobile Nav Menu' );
	add_action( 'lblg_before_container', 'lblg_output_mobile_nav' );
}
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.