HEX
Server: nginx/1.24.0
System: Linux VM-8-5-opencloudos 6.6.47-12.oc9.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Sep 24 16:15:42 CST 2024 x86_64
User: www (1000)
PHP: 8.0.26
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,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_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/aiwellbore.com/wp-content/updraft/themes-old/study-education-pro/inc/custom-header.php
<?php
/**
 * @package Study Education Pro
 * Setup the WordPress core custom header feature.
 *
 * @uses study_education_pro_header_style()
 * @uses study_education_pro_admin_header_style()
 * @uses study_education_pro_admin_header_image()

 */
function study_education_pro_custom_header_setup() {
add_theme_support( 'custom-header', apply_filters( 'study_education_pro_custom_header_args', array(
		//'default-image'          => get_template_directory_uri().'/images/default-banner.jpg',
		'default-text-color'     => 'fff',
		'width'                  => 1400,
		'height'                 => 272,
		'wp-head-callback'       => 'study_education_pro_header_style',
		'admin-head-callback'    => 'study_education_pro_admin_header_style',
		'admin-preview-callback' => 'study_education_pro_admin_header_image',
	) ) );
}
add_action( 'after_setup_theme', 'study_education_pro_custom_header_setup' );

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

if ( ! function_exists( 'study_education_pro_admin_header_style' ) ) :
/**
 * Styles the header image displayed on the Appearance > Header admin panel.
 *
 * @see study_education_pro_custom_header_setup().
 */
function study_education_pro_admin_header_style() {?>
	<style type="text/css">
	.appearance_page_custom-header #headimg { border: none; }
	</style><?php
}
endif; // study_education_pro_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( 'study_education_pro_admin_header_image' ) ) :
/**
 * Custom header image markup displayed on the Appearance > Header admin panel.
 *
 * @see study_education_pro_custom_header_setup().
 */
function study_education_pro_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; // study_education_pro_admin_header_image 


define('GRC_URL','http://www.featherthemes.com');
define('GRC_THEME_URL','http://www.featherthemes.com/themes');