ROOTPLOIT
Server: LiteSpeed
System: Linux in-mum-web1878.main-hosting.eu 5.14.0-570.21.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jun 11 07:22:35 EDT 2025 x86_64
User: u435929562 (435929562)
PHP: 7.4.33
Disabled: system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
Upload Files
File: //home/u435929562/domains/tec-edu.in/public_html/wp-content/themes/gravida/inc/custom-header.php
<?php
/**
 * @package SKT Gravida
 * Setup the WordPress core custom header feature.
 *
 * @uses gravida_header_style()
 * @uses gravida_admin_header_style()
 * @uses gravida_admin_header_image()

 */
function gravida_custom_header_setup() {
	add_theme_support( 'custom-header', apply_filters( 'gravida_custom_header_args', array(
		//'default-image'          => get_template_directory_uri().'/images/banner_bg.jpg',
		'default-text-color'     => 'fff',
		'width'                  => 1600,
		'height'                 => 400,
		'wp-head-callback'       => 'gravida_header_style',
		'admin-head-callback'    => 'gravida_admin_header_style',
		'admin-preview-callback' => 'gravida_admin_header_image',
	) ) );
}
add_action( 'after_setup_theme', 'gravida_custom_header_setup' );

if ( ! function_exists( 'gravida_header_style' ) ) :
/**
 * Styles the header image and text displayed on the blog
 *
 * @see gravida_custom_header_setup().
 */
function gravida_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() ) :
	?>
		.header {
			background: url(<?php echo esc_url(get_header_image()); ?>) no-repeat;
			background-position: center top;
		}
	<?php endif; ?>	
	</style>
	<?php
}
endif; // gravida_header_style

if ( ! function_exists( 'gravida_admin_header_style' ) ) :
/**
 * Styles the header image displayed on the Appearance > Header admin panel.
 *
 * @see gravida_custom_header_setup().
 */
function gravida_admin_header_style() {?>
	<style type="text/css">
	.appearance_page_custom-header #headimg { border: none; }
	</style><?php
}
endif; // gravida_admin_header_style


add_action( 'admin_head', 'admin_header_css' );
function admin_header_css(){ ?>
	<style>pre{white-space: pre-wrap;}</style><?php
}


if ( ! function_exists( 'gravida_admin_header_image' ) ) :
/**
 * Custom header image markup displayed on the Appearance > Header admin panel.
 *
 * @see gravida_custom_header_setup().
 */
function gravida_admin_header_image() {
	$style = sprintf( ' style="color:#%s;"', get_header_textcolor() );
?>
	<div id="headimg">
		<?php if ( get_header_image() ) : ?>
		<img src="<?php header_image(); ?>" alt="">
		<?php endif; ?>
	</div>
<?php
}
endif; // gravida_admin_header_image