| | 481 | function get_header_textcolor() { |
|---|
| | 482 | return get_theme_mod('header_textcolor', HEADER_TEXTCOLOR); |
|---|
| | 483 | } |
|---|
| | 484 | |
|---|
| | 485 | function header_textcolor() { |
|---|
| | 486 | echo get_header_textcolor(); |
|---|
| | 487 | } |
|---|
| | 488 | |
|---|
| | 489 | function get_header_image() { |
|---|
| | 490 | return get_theme_mod('header_image', HEADER_IMAGE); |
|---|
| | 491 | } |
|---|
| | 492 | |
|---|
| | 493 | function header_image() { |
|---|
| | 494 | echo get_header_image(); |
|---|
| | 495 | } |
|---|
| | 496 | |
|---|
| | 497 | function add_custom_image_header($header_callback, $admin_header_callback) { |
|---|
| | 498 | if ( ! empty($header_callback) ) |
|---|
| | 499 | add_action('wp_head', $header_callback); |
|---|
| | 500 | |
|---|
| | 501 | if ( ! is_admin() ) |
|---|
| | 502 | return; |
|---|
| | 503 | require_once(ABSPATH . 'wp-admin/custom-header.php'); |
|---|
| | 504 | $GLOBALS['custom_image_header'] =& new Custom_Image_Header($admin_header_callback); |
|---|
| | 505 | add_action('admin_menu', array(&$GLOBALS['custom_image_header'], 'init')); |
|---|
| | 506 | } |
|---|
| | 507 | |
|---|