Ngiler SH3LL 360
Home
Information
Create File
Create Folder
:
/
home
/
likhxapw
/
www
/
anabolic
/
wp-content
/
themes
/
sofass
/
inc
/
Information Server
MySQL :
OFF
Perl :
OFF
CURL :
ON
WGET :
OFF
PKEXEC :
OFF
Directive
Local Value
IP Address
63.250.38.10
System
Linux premium90.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User
likhxapw
PHP Version
8.3.30
Software
LiteSpeed
Doc root
Writable
close
Edit File :
custom-header.php
| Size :
2.44
KB
Copy
<?php /** * Custom Header functionality for Sofass * * @package WordPress * @subpackage Sofass * @since Sofass 1.0 */ /** * Set up the WordPress core custom header feature. * * @uses sofass_header_style() */ function sofass_custom_header_setup() { $color_scheme = sofass_get_color_scheme(); $default_text_color = trim( $color_scheme[4], '#' ); /** * Filter Sofass custom-header support arguments. * * @since Sofass 1.0 * * @param array $args { * An array of custom-header support arguments. * * @type string $default_text_color Default color of the header text. * @type int $width Width in pixels of the custom header image. Default 954. * @type int $height Height in pixels of the custom header image. Default 1300. * @type string $wp-head-callback Callback function used to styles the header image and text * displayed on the blog. * } */ add_theme_support( 'custom-header', apply_filters( 'sofass_custom_header_args', array( 'default-text-color' => $default_text_color, 'width' => 954, 'height' => 1300, 'wp-head-callback' => 'sofass_header_style', ) ) ); } add_action( 'after_setup_theme', 'sofass_custom_header_setup' ); /** * Convert HEX to RGB. * * @since Sofass 1.0 * * @param string $color The original color, in 3- or 6-digit hexadecimal form. * @return array Array containing RGB (red, green, and blue) values for the given * HEX code, empty array otherwise. */ function sofass_hex2rgb( $color ) { $color = trim( $color, '#' ); if ( strlen( $color ) == 3 ) { $r = hexdec( substr( $color, 0, 1 ).substr( $color, 0, 1 ) ); $g = hexdec( substr( $color, 1, 1 ).substr( $color, 1, 1 ) ); $b = hexdec( substr( $color, 2, 1 ).substr( $color, 2, 1 ) ); } else if ( strlen( $color ) == 6 ) { $r = hexdec( substr( $color, 0, 2 ) ); $g = hexdec( substr( $color, 2, 2 ) ); $b = hexdec( substr( $color, 4, 2 ) ); } else { return array(); } return array( 'red' => $r, 'green' => $g, 'blue' => $b ); } if ( ! function_exists( 'sofass_header_style' ) ) : /** * Styles the header image and text displayed on the blog. * * @since Sofass 1.0 * * @see sofass_custom_header_setup() */ function sofass_header_style() { return ''; } endif; // sofass_header_style
Back