| Server IP : 5.144.175.180 / Your IP : 216.73.216.131 Web Server : Apache/2.4.63 (Unix) OpenSSL/1.1.1 System : Linux vpsgpz1.itsimplycom.it 4.15.0-20-generic #21-Ubuntu SMP Tue Apr 24 06:16:15 UTC 2018 x86_64 User : edilchimica ( ) PHP Version : 7.4.33 Disable Function : getmyuid,passthru,leak,listen,diskfreespace,tmpfile,link,shell_exec,dl,exec,system,highlight_file,source,show_source,fpassthru,virtual,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix_getppid,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,proc_open,proc_close,proc_nice,proc_terminate,escapeshellcmd,ini_alter,popen,pcntl_exec,socket_accept,socket_bind,socket_clear_error,socket_close,socket_connect,symlink,posix_geteuid,ini_alter,socket_listen,socket_create_listen,socket_read,socket_create_pair,stream_socket_server MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/edilchimica/webapps/edilchimica/wp-content/themes/consultstreet/inc/ |
Upload File : |
<?php
/**
* Sample implementation of the Custom Header feature
*
* You can add an optional custom header image to header.php like so ...
*
* <?php the_header_image_tag(); ?>
*
* @link https://developer.wordpress.org/themes/functionality/custom-headers/
*
* @package consultstreet
*/
/**
* Set up the WordPress core custom header feature.
*
* @uses consultstreet_header_style()
*/
function consultstreet_custom_header_setup() {
add_theme_support( 'custom-header', apply_filters( 'consultstreet_custom_header_args', array(
'default-image' => get_stylesheet_directory_uri() . '/assets/img/page-header-bg.jpg',
'default-text-color' => '#fff',
'width' => 1920,
'height' => 500,
'flex-height' => true,
'flex-width' => true,
'wp-head-callback' => 'consultstreet_header_style',
) ) );
}
add_action( 'after_setup_theme', 'consultstreet_custom_header_setup' );
if ( ! function_exists( 'consultstreet_header_style' ) ) :
/**
* Styles the header image and text displayed on the blog.
*
* @see consultstreet_custom_header_setup().
*/
function consultstreet_header_style() {
$header_text_color = get_header_textcolor();
/*
* If no custom options for text are set, let's bail.
* get_header_textcolor() options: Any hex value, 'blank' to hide text. Default: add_theme_support( 'custom-header' ).
*/
if ( get_theme_support( 'custom-header', 'default-text-color' ) === $header_text_color ) {
return;
}
// If we get this far, we have custom styles. Let's do this.
?>
<style type="text/css">
<?php
// Has the text been hidden?
if ( ! display_header_text() ) :
?>
.site-title,
.site-description {
position: absolute;
clip: rect(1px, 1px, 1px, 1px);
}
<?php
// If the user has set a custom color for the text use that.
else :
?>
.site-title a,
.site-description {
color: #<?php echo esc_attr( $header_text_color ); ?>;
}
.navbar-header-wrap.not-sticky .site-branding-text .site-title a,
.navbar-header-wrap.not-sticky .site-branding-text .site-description{color: #<?php echo esc_attr( $header_text_color ); ?>;}
<?php endif; ?>
</style>
<?php
}
endif;