* * @package brawny */ /** * Set up the WordPress core custom header feature. * * @uses brawny_header_style() * @uses brawny_admin_header_style() * @uses brawny_admin_header_image() */ function brawny_custom_header_setup() { add_theme_support( 'custom-header', apply_filters( 'brawny_custom_header_args', array( 'default-image' => '', 'default-text-color' => '000000', 'width' => 1000, 'height' => 250, 'flex-height' => true, 'video' => true, 'wp-head-callback' => 'brawny_header_style', 'admin-head-callback' => 'brawny_admin_header_style', 'admin-preview-callback' => 'brawny_admin_header_image', ) ) ); } add_action( 'after_setup_theme', 'brawny_custom_header_setup' ); if ( ! function_exists( 'brawny_header_style' ) ) : /** * Styles the header image and text displayed on the blog * * @see brawny_custom_header_setup(). */ function brawny_header_style() { if ( get_header_image() ) { ?> Header admin panel. * * @see brawny_custom_header_setup(). */ function brawny_admin_header_style() { ?> Header admin panel. * * @see brawny_custom_header_setup(). */ function brawny_admin_header_image() { $style = sprintf( ' style="color:#%s;"', get_header_textcolor() ); ?>

onclick="return false;" href="">

>
' . __( 'Play background video', 'brawny' ) . ''; $settings['l10n']['pause'] = '' . __( 'Pause background video', 'brawny' ) . ''; return $settings; } } add_filter( 'header_video_settings', 'brawny_video_controls' );