h(  ) ($6;EbBLkfu�_l� ''8;DUFKV3Dd#,?ANk&5G$/(5M\^�ms����Sb�,;R''6c2I�!\����kx�Ve�[i��Me�IYO7:nOL~�Kr�qrv�I:�BM�y��s}r��K����x)1�6@r*2�89ma��&��'ti������{~#������t)1�2<�0:^5�W.uFzQ/u}�v��vv�u��U37yDJeEJo(/�5Ds'1�:Jlu�iy�iy�hw�1;:S`^BMLOQQn,4�7C�8C�>Lfe�]k�[i�Zg��IW�LZ�EP;,.��Tc�q(0) G,/]/1����w�r��l&-t*3�<<�u��#����j&.u��J68\8?"#$%&'()*+,-./0 ! 
Notice: Undefined index: dl in /var/www/html/web/simple.mini.php on line 1
403WebShell
403Webshell
Server IP : 10.254.12.21  /  Your IP : 10.254.12.21
Web Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.6.40
System : Linux arit.skru.ac.th 3.10.0-1160.76.1.el7.x86_64 #1 SMP Wed Aug 10 16:21:17 UTC 2022 x86_64
User : apache ( 48)
PHP Version : 5.6.40
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/skruarchives/wp-content/themes/parvati/inc/structure/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/skruarchives/wp-content/themes/parvati/inc/structure/header.php
<?php
/**
 * Header elements.
 *
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

if ( ! function_exists( 'parvati_construct_header' ) ) {
	add_action( 'parvati_header', 'parvati_construct_header' );
	/**
	 * Build the header.
	 *
	 */
	function parvati_construct_header() {
		?>
		<header itemtype="https://schema.org/WPHeader" itemscope="itemscope" id="masthead" <?php parvati_header_class(); ?> style="background-image: url(<?php header_image(); ?>)">
			<div <?php parvati_inside_header_class(); ?>>
            	<div class="header-content-h">
				<?php
				/**
				 * parvati_before_header_content hook.
				 *
				 */
				do_action( 'parvati_before_header_content' );

				// Add our main header items.
				parvati_header_items();

				/**
				 * parvati_after_header_content hook.
				 *
				 *
				 * @hooked parvati_add_navigation_float_right - 5
				 */
				do_action( 'parvati_after_header_content' );
				?>
                </div><!-- .header-content-h -->
			</div><!-- .inside-header -->
		</header><!-- #masthead -->
		<?php
	}
}

if ( ! function_exists( 'parvati_header_items' ) ) {
	/**
	 * Build the header contents.
	 * Wrapping this into a function allows us to customize the order.
	 *
	 */
	function parvati_header_items() {
		parvati_construct_header_widget();
		parvati_construct_site_title();
		parvati_construct_logo();
	}
}

if ( ! function_exists( 'parvati_construct_logo' ) ) {
	/**
	 * Build the logo
	 *
	 */
	function parvati_construct_logo() {
		$logo_url = ( function_exists( 'the_custom_logo' ) && get_theme_mod( 'custom_logo' ) ) ? wp_get_attachment_image_src( get_theme_mod( 'custom_logo' ), 'full' ) : false;
		$logo_url = ( $logo_url ) ? $logo_url[0] : '';

		$logo_url = esc_url( apply_filters( 'parvati_logo', $logo_url ) );
		$retina_logo_url = esc_url( apply_filters( 'parvati_retina_logo', '' ) );

		// If we don't have a logo, bail.
		if ( empty( $logo_url ) ) {
			return;
		}

		/**
		 * parvati_before_logo hook.
		 *
		 */
		do_action( 'parvati_before_logo' );

		$attr = apply_filters( 'parvati_logo_attributes', array(
			'class' => 'header-image',
			'src'	=> $logo_url,
			'title'	=> esc_attr( apply_filters( 'parvati_logo_title', get_bloginfo( 'name', 'display' ) ) ),
		) );

		if ( '' !== $retina_logo_url ) {
			$attr[ 'srcset' ] = $logo_url . ' 1x, ' . $retina_logo_url . ' 2x';

			// Add dimensions to image if retina is set. This fixes a container width bug in Firefox.
			if ( function_exists( 'the_custom_logo' ) && get_theme_mod( 'custom_logo' ) ) {
				$data = wp_get_attachment_metadata( get_theme_mod( 'custom_logo' ) );

				if ( ! empty( $data ) ) {
					$attr['width'] = $data['width'];
					$attr['height'] = $data['height'];
				}
			}
		}

		$attr = array_map( 'esc_attr', $attr );

		$html_attr = '';
		foreach ( $attr as $name => $value ) {
			$html_attr .= " $name=" . '"' . $value . '"';
		}

		// Print our HTML.
		echo apply_filters( 'parvati_logo_output', sprintf( // WPCS: XSS ok, sanitization ok.
			'<div class="site-logo">
				<a href="%1$s" title="%2$s" rel="home">
					<img %3$s />
				</a>
			</div>',
			esc_url( apply_filters( 'parvati_logo_href' , home_url( '/' ) ) ),
			esc_attr( apply_filters( 'parvati_logo_title', get_bloginfo( 'name', 'display' ) ) ),
			$html_attr
		), $logo_url, $html_attr );

		/**
		 * parvati_after_logo hook.
		 *
		 */
		do_action( 'parvati_after_logo' );
	}
}

if ( ! function_exists( 'parvati_construct_site_title' ) ) {
	/**
	 * Build the site title and tagline.
	 *
	 */
	function parvati_construct_site_title() {
		$parvati_settings = wp_parse_args(
			get_option( 'parvati_settings', array() ),
			parvati_get_defaults()
		);

		// Get the title and tagline.
		$title = get_bloginfo( 'title' );
		$tagline = get_bloginfo( 'description' );

		// If the disable title checkbox is checked, or the title field is empty, return true.
		$disable_title = ( '1' == $parvati_settings[ 'hide_title' ] || '' == $title ) ? true : false;

		// If the disable tagline checkbox is checked, or the tagline field is empty, return true.
		$disable_tagline = ( '1' == $parvati_settings[ 'hide_tagline' ] || '' == $tagline ) ? true : false;

		// Build our site title.
		$site_title = apply_filters( 'parvati_site_title_output', sprintf(
			'<%1$s class="main-title" itemprop="headline">
				<a href="%2$s" rel="home">
					%3$s
				</a>
			</%1$s>',
			( is_front_page() && is_home() ) ? 'h1' : 'p',
			esc_url( apply_filters( 'parvati_site_title_href', home_url( '/' ) ) ),
			get_bloginfo( 'name' )
		) );

		// Build our tagline.
		$site_tagline = apply_filters( 'parvati_site_description_output', sprintf(
			'<p class="site-description">
				%1$s
			</p>',
			html_entity_decode( get_bloginfo( 'description', 'display' ) )
		) );

		// Site title and tagline.
		if ( false == $disable_title || false == $disable_tagline ) {
			echo apply_filters( 'parvati_site_branding_output', sprintf( // WPCS: XSS ok, sanitization ok.
				'<div class="site-branding">
					%1$s
					%2$s
				</div>',
				( ! $disable_title ) ? $site_title : '',
				( ! $disable_tagline ) ? $site_tagline : ''
			) );
		}
	}
}

if ( ! function_exists( 'parvati_construct_header_widget' ) ) {
	/**
	 * Build the header widget.
	 *
	 */
	function parvati_construct_header_widget() {
		if ( is_active_sidebar('header') ) : ?>
			<div class="header-widget">
				<?php dynamic_sidebar( 'header' ); ?>
			</div>
		<?php endif;
	}
}

if ( ! function_exists( 'parvati_top_bar' ) ) {
	add_action( 'parvati_before_header', 'parvati_top_bar', 5 );
	/**
	 * Build our top bar.
	 *
	 */
	function parvati_top_bar() {
		$socials_display_top =  parvati_get_setting( 'socials_display_top' );
		if ( ( ! is_active_sidebar( 'top-bar' ) ) && ( $socials_display_top != true ) ) {
			return;
		}
		?>
		<div <?php parvati_top_bar_class(); ?>>
			<div class="inside-top-bar<?php if ( 'contained' == parvati_get_setting( 'top_bar_inner_width' ) ) echo ' grid-container grid-parent'; ?>">
				<?php if ( is_active_sidebar( 'top-bar' ) ) {
					dynamic_sidebar( 'top-bar' ); 
				} ?>
                <?php if ( $socials_display_top == true ) {
					do_action( 'parvati_social_bar_action' );
				}?>
			</div>
		</div>
		<?php
	}
}

if ( ! function_exists( 'parvati_pingback_header' ) ) {
	add_action( 'wp_head', 'parvati_pingback_header' );
	/**
	 * Add a pingback url auto-discovery header for singularly identifiable articles.
	 *
	 */
	function parvati_pingback_header() {
		if ( is_singular() && pings_open() ) {
			printf( '<link rel="pingback" href="%s">' . "\n", esc_url( get_bloginfo( 'pingback_url' ) ) );
		}
	}
}

if ( ! function_exists( 'parvati_add_viewport' ) ) {
	add_action( 'wp_head', 'parvati_add_viewport' );
	/**
	 * Add viewport to wp_head.
	 *
	 */
	function parvati_add_viewport() {
		echo apply_filters( 'parvati_meta_viewport', '<meta name="viewport" content="width=device-width, initial-scale=1">' ); // WPCS: XSS ok.
	}
}

add_action( 'parvati_before_header', 'parvati_do_skip_to_content_link', 2 );
/**
 * Add skip to content link before the header.
 *
 */
function parvati_do_skip_to_content_link() {
	printf( '<a class="screen-reader-text skip-link" href="#content" title="%1$s">%2$s</a>',
		esc_attr__( 'Skip to content', 'parvati' ),
		esc_html__( 'Skip to content', 'parvati' )
	);
}

add_action( 'parvati_before_header', 'parvati_side_padding', 1 );
/**
 * Add holder div if sidebar padding is enabled
 *
 */
function parvati_side_padding() { 
	$parvati_settings = wp_parse_args(
		get_option( 'parvati_spacing_settings', array() ),
		parvati_spacing_get_defaults()
	);
	
	if ( ( $parvati_settings[ 'side_top' ] != 0 ) || ( $parvati_settings[ 'side_right' ] != 0 ) || ( $parvati_settings[ 'side_bottom' ] != 0 ) || ( $parvati_settings[ 'side_left' ] != 0 ) ) {
	?>
	<div class="parvati-side-padding-inside">
	<?php
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit