560, 780, 950 ); // Load style settings if ( K2_STYLES ) { $styleinfo = get_option('k2styleinfo'); if ( ! empty($styleinfo) ) { // style contains header height setting if ( ! empty($styleinfo['header_height']) ) @define( 'HEADER_IMAGE_HEIGHT', $styleinfo['header_height'] ); // style contains header width setting if ( ! empty($styleinfo['header_width']) ) @define( 'HEADER_IMAGE_WIDTH', $styleinfo['header_width'] ); // style contains layout widths setting if ( ! empty($styleinfo['layout_widths'][$columns]) ) @define( 'HEADER_IMAGE_WIDTH', $styleinfo['layout_widths'][$columns] ); if ( ! empty($styleinfo['header_text_color']) ) @define( 'HEADER_TEXTCOLOR', $styleinfo['header_text_color'] ); } } // Default settings @define( 'HEADER_IMAGE_HEIGHT', 200 ); @define( 'HEADER_IMAGE_WIDTH', $default_widths[$columns] ); @define( 'HEADER_TEXTCOLOR', 'ffffff' ); @define( 'HEADER_IMAGE', '%s/images/transparent.gif' ); // Only load Custom Image Header if GD is installed if ( extension_loaded('gd') && function_exists('gd_info') ) { add_custom_image_header(array('K2Header', 'output_header_css'), array('K2Header', 'output_admin_header_css')); } } function install() { add_option('k2headerimage', '', 'Current Header Image'); add_option('k2blogornoblog', 'Blog', 'The text on the first tab in the header navigation.'); } function uninstall() { delete_option('k2headerimage'); delete_option('k2blogornoblog'); remove_theme_mods(); } function display_options() { // Get the current header picture $current_header_image = get_option('k2headerimage'); // Get the header pictures $header_images = K2Header::get_header_images(); ?>
%1$s px by %2$s px.', 'k2_domain'), HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT ); if ( extension_loaded('gd') and function_exists('gd_info') ) { printf( __(' Use %s to customize the header.', 'k2_domain'), '' . __('Custom Image Header', 'k2_domain') . '' ); } ?>