Server IP : 149.255.58.128 / Your IP : 216.73.216.191
System : Linux cloud516.thundercloud.uk 5.14.0-427.26.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 17 15:51:13 EDT 2024 x86_64
PHP Version : 8.2.28
Disable Function : allow_url_include, apache_child_terminate, apache_setenv, exec, passthru, pcntl_exec, posix_kill, posix_mkfifo, posix_getpwuid, posix_setpgid, posix_setsid, posix_setuid, posix_setgid, posix_seteuid, posix_setegid, posix_uname, proc_close, proc_get_status, proc_open, proc_terminate, shell_exec, show_source, system
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Upload Files :
Command :
Current File : /home/wheelch2/public_html/wp-content/themes/building-lite/inc//custom-header.php
<?php
/**
* @package Building Lite
* Setup the WordPress core custom header feature.
*
* @uses building_lite_header_style()
*/
function building_lite_custom_header_setup() {
add_theme_support( 'custom-header', apply_filters( 'building_lite_custom_header_args', array(
'default-text-color' => '000000',
'width' => 1600,
'height' => 400,
'wp-head-callback' => 'building_lite_header_style',
) ) );
}
add_action( 'after_setup_theme', 'building_lite_custom_header_setup' );
if ( ! function_exists( 'building_lite_header_style' ) ) :
/**
* Styles the header image and text displayed on the blog
*
* @see building_lite_custom_header_setup().
*/
function building_lite_header_style() {
$header_text_color = get_header_textcolor();
?>
<style type="text/css">
<?php
//Check if user has defined any header image.
if ( get_header_image() || get_header_textcolor() ) :
?>
.header{
background-image: url(<?php echo esc_url(get_header_image()); ?>);
background-position: center top;
}
.logo h1 a { color:#<?php echo esc_attr(get_header_textcolor()); ?>;}
<?php endif; ?>
</style>
<?php
// If the header text option is untouched, let's bail.
if ( display_header_text() ) {
return;
}
// If the header text has been hidden.
?>
<style type="text/css">
.logo {
margin: 0 auto 0 0;
}
.logo h1,
.logo p{
clip: rect(1px, 1px, 1px, 1px);
position: absolute;
}
</style>
<?php
}
endif; // building_lite_header_style
Name |
Size |
Last Modified |
Owner / Group |
Permissions |
Options |
.. | -- | May 29 2023 22:41:18 | 1032 / wheelch2 | 0755 | |
| | | | | |
block-patterns.php | 19.136 KB | May 29 2023 22:41:18 | 1032 / wheelch2 | 0644 | |
block-styles.php | 2.248 KB | May 29 2023 22:41:18 | 1032 / wheelch2 | 0644 | |
custom-header.php | 1.547 KB | May 29 2023 22:41:18 | 1032 / wheelch2 | 0644 | |
customizer.php | 9.685 KB | May 29 2023 22:41:18 | 1032 / wheelch2 | 0644 | |
extras.php | 0.526 KB | May 29 2023 22:41:18 | 1032 / wheelch2 | 0644 | |
template-tags.php | 6.647 KB | May 29 2023 22:41:18 | 1032 / wheelch2 | 0644 | |