| Server IP : 81.2.241.106 / Your IP : 216.73.216.165 Web Server : Apache/2.4.67 (Debian) System : Linux tranq-f.bakta.org 5.10.0-45-amd64 #1 SMP Debian 5.10.259-1 (2026-07-02) x86_64 User : lisky ( 1002) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/lisky/wp-content/themes/rock-n-rolla/inc/ |
Upload File : |
<?php
/**
* Sample implementation of the Custom Header feature.
*
* You can add an optional custom header image to header.php like so ...
*
*
* @link https://developer.wordpress.org/themes/functionality/custom-headers/
*
* @package Rock_N_Rolla
* @since Rock_N_Rolla 1.0
*/
/**
* Set up the WordPress core custom header feature.
*
* @uses rock_n_rolla_header_style()
*/
function rock_n_rolla_custom_header_setup() {
add_theme_support( 'custom-header', apply_filters( 'rock_n_rolla_custom_header_args', array(
'default-image' => '',
'default-text-color' => 'ffffff',
'width' => 1920,
'height' => 250,
'flex-height' => true,
'wp-head-callback' => 'rock_n_rolla_header_style',
) ) );
}
add_action( 'after_setup_theme', 'rock_n_rolla_custom_header_setup' );
if ( ! function_exists( 'rock_n_rolla_header_style' ) ) :
/**
* Styles the header image and text displayed on the blog.
*
* @see rock_n_rolla_custom_header_setup().
*/
function rock_n_rolla_header_style() {
$header_text_color = get_header_textcolor();
// 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 ); ?>;
}
<?php endif; ?>
</style>
<?php
}
endif;