File: /var/www/html/wpprotonperinggit/wp-content/themes/voiture/inc/custom-header.php
<?php
/**
* Custom Header functionality for Voiture
*
* @package WordPress
* @subpackage Voiture
* @since Voiture 1.0
*/
/**
* Set up the WordPress core custom header feature.
*
* @uses voiture_header_style()
*/
function voiture_custom_header_setup() {
$color_scheme = voiture_get_color_scheme();
$default_text_color = trim( $color_scheme[4], '#' );
/**
* Filter Voiture custom-header support arguments.
*
* @since Voiture 1.0
*
* @param array $args {
* An array of custom-header support arguments.
*
* @type string $default_text_color Default color of the header text.
* @type int $width Width in pixels of the custom header image. Default 954.
* @type int $height Height in pixels of the custom header image. Default 1300.
* @type string $wp-head-callback Callback function used to styles the header image and text
* displayed on the blog.
* }
*/
add_theme_support( 'custom-header', apply_filters( 'voiture_custom_header_args', array(
'default-text-color' => $default_text_color,
'width' => 954,
'height' => 1300,
'wp-head-callback' => 'voiture_header_style',
) ) );
}
add_action( 'after_setup_theme', 'voiture_custom_header_setup' );
if ( ! function_exists( 'voiture_header_style' ) ) :
/**
* Styles the header image and text displayed on the blog.
*
* @since Voiture 1.0
*
* @see voiture_custom_header_setup()
*/
function voiture_header_style() {
return '';
}
endif; // voiture_header_style