Commits

Doug Stewart committed 9a666ff

Suck it, Custom Headers Trebek.

Comments (0)

Files changed (2)

includes/functions/headers.php

 <?php
+function lblg_custom_headers_check() {
+	global $lblg_options;
+
+	// Only load custom header code if the option is checked
+	if( ( 1 == $lblg_options['use_custom_header'] ) && ( 'layoutgala.css' != $lblg_options['alt_stylesheet']) ){
+		add_custom_image_header( 'lblg_header_style', 'lblg_admin_header_style' );
+		add_action( 'after_setup_theme', 'lblg_register_headers', 11 );
+	}	
+}
+add_action( 'after_setup_theme', 'lblg_custom_headers_check' );
+
 function lblg_register_headers(){
 		// Set up custom header code
 		if( !defined('HEADER_IMAGE') ){
 			define( 'HEADER_IMAGE_HEIGHT', '200' );
 		}
 
-		add_custom_image_header( 'lblg_header_style', 'lblg_admin_header_style' );
-	
 		register_default_headers( array(
 			'fireworks' => array(
 				'url' => '%s/images/headers/fireworks.jpg',

includes/functions/supports.php

 add_action( 'widgets_init', 'lblg_register_sidebars' );
 
 /*
-* Support 2.9, 3.0 and 3.1 coolness
+* Add support for various WordPress-native functionality
 */
 if ( ! isset( $content_width ) ) $content_width = '640';
 add_theme_support( 'nav-menus' );
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.