HEX
Server: Apache/2.4.49 (FreeBSD) OpenSSL/1.0.2s-freebsd PHP/5.6.36
System: FreeBSD hosting.icon.bg 11.3-RELEASE-p13 FreeBSD 11.3-RELEASE-p13 #0: Tue Sep 1 06:56:51 UTC 2020 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
User: ftpuser (1002)
PHP: 5.6.36
Disabled: NONE
Upload Files
File: /hosting/kak.bg/web/wp-content/themes/fp_santiago/header.php
<?php
/**
 * The Header for our theme.
 *
 * Displays all of the <head> section and everything up till <div id="main">
 *
 * @package  WordPress
 * @file     header.php
 * @author   FairPixels
 * @link 	 http://fairpixels.com
 */
?>
<!DOCTYPE html>
<!--[if IE 6]>
<html id="ie6" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 7]>
<html id="ie7" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 8]>
<html id="ie8" <?php language_attributes(); ?>>
<![endif]-->
<!--[if !(IE 6) | !(IE 7) | !(IE 8)  ]><!-->
<html <?php language_attributes(); ?>>
<!--<![endif]-->

<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width" />

<title><?php
	/*
	 * Print the <title> tag based on what is being viewed.
	 */
	global $page, $paged;

	wp_title( '|', true, 'right' );

	// Add the blog name.
	bloginfo( 'name' );

	// Add the blog description for the home/front page.
	$site_description = get_bloginfo( 'description', 'display' );
	if ( $site_description && ( is_home() || is_front_page() ) )
		echo " | $site_description";

	// Add a page number if necessary:
	if ( $paged >= 2 || $page >= 2 )
		echo ' | ' . sprintf( __( 'Page %s', 'fairpixels' ), max( $paged, $page ) );

	?>
</title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<!--[if lt IE 9]>
<script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>
<![endif]-->

<?php
	/* We add some JavaScript to pages with the comment form
	 * to support sites with threaded comments (when in use).
	 */
	if ( is_singular() && get_option( 'thread_comments' ) )
		wp_enqueue_script( 'comment-reply' );

	/* Always have wp_head() just before the closing </head>
	 * tag of your theme, or you will break many plugins, which
	 * generally use this hook to add elements to <head> such
	 * as styles, scripts, and meta tags.
	 */
	wp_head();
?>
</head>
<body <?php body_class(); ?>>
	
	<div id="topbar">
		<div class="inner-wrap">
			<div class="top-menu">
				<?php wp_nav_menu( array( 'theme_location' => 'top-menu', 'container' => '0', 'depth' => '1') ); ?>
			</div>
				
			<?php if ( fp_get_settings( 'fp_show_header_social' ) == 1 ){ ?>
				<div class="social">
					<ul class="list">
						<?php if (fp_get_settings( 'fp_twitter_url' )){ ?>
							<li class="twitter"><a href="<?php echo fp_get_settings( 'fp_twitter_url' ); ?>"><i class="fa fa-twitter"></i></a></li>
						<?php } ?>
						
						<?php if (fp_get_settings( 'fp_fb_url' )){ ?>
							<li class="fb"><a href="<?php echo fp_get_settings( 'fp_fb_url' ); ?>"><i class="fa fa-facebook"></i></a></li>
						<?php } ?>
						
						<?php if (fp_get_settings( 'fp_gplus_url' )){ ?>
							<li class="gplus"><a href="<?php echo fp_get_settings( 'fp_gplus_url' ); ?>"><i class="fa fa-google-plus"></i></a></li>
						<?php } ?>
						
						<?php if (fp_get_settings( 'fp_linkedin_url' )){ ?>
							<li class="twitter"><a href="<?php echo fp_get_settings( 'fp_linkedin_url' ); ?>"><i class="fa fa-linkedin"></i></a></li>
						<?php } ?>
						
						<?php if (fp_get_settings( 'fp_pinterest_url' )){ ?>
							<li class="pinterest"><a href="<?php echo fp_get_settings( 'fp_pinterest_url' ); ?>"><i class="fa fa-pinterest"></i></a></li>
						<?php } ?>
						
						<?php if (fp_get_settings( 'fp_instagram_url' )){ ?>
							<li class="instagram"><a href="<?php echo fp_get_settings( 'fp_instagram_url' ); ?>"><i class="fa fa-instagram"></i></a></li>
						<?php } ?>
						
						<?php if (fp_get_settings( 'fp_dribbble_url' )){ ?>
							<li class="dribbble"><a href="<?php echo fp_get_settings( 'fp_dribbble_url' ); ?>"><i class="fa fa-dribbble"></i></a></li>
						<?php } ?>
						
						<?php if (fp_get_settings( 'fp_youtube_url' )){ ?>
							<li class="youtube"><a href="<?php echo fp_get_settings( 'fp_youtube_url' ); ?>"><i class="fa fa-youtube"></i></a></li>
						<?php } ?>
						
						<?php if (fp_get_settings( 'fp_rss_url' )){ ?>
							<li class="rss"><a href="<?php echo fp_get_settings( 'fp_rss_url' ); ?>"><i class="fa fa-rss"></i></a></li>
						<?php } ?>
					</ul>
				</div>						
			<?php } ?>
		</div>
	</div><!-- /top -->
			
	<div id="container" class="hfeed">
	
		<header id="header">	
			
			<div class="logo-section">
				<div class="logo">			
					<?php if (fp_get_settings( 'fp_logo_url' )) { ?>
						<h1>
							<a href="<?php echo home_url(); ?>" title="<?php bloginfo('name'); ?>">
								<img src="<?php echo fp_get_settings( 'fp_logo_url' ); ?>" alt="<?php bloginfo( 'name' ); ?>" />
							</a>
						</h1>	
					<?php } else {?>
						<h1 class="site-title">
							<a href="<?php echo home_url(); ?>" title="<?php bloginfo('name'); ?>">
								<?php bloginfo('name'); ?>
							</a>
						</h1>					
					<?php } ?>	
				</div>
				<?php if (fp_get_settings( 'fp_header_ad' )) { ?>
					<div class="banner">
						<?php echo fp_get_settings( 'fp_header_ad' ); ?>
					</div>
				<?php } ?>
			</div>
			
			<div class="menu-section clearfix">				
				<nav class="primary-menu clearfix">												
					<?php wp_nav_menu( array( 'theme_location' => 'primary-menu', 'container' => '0', 'menu_class' => 'sf-menu', 'fallback_cb' => 'fp_main_menu_fallback') ); ?>
				</nav>	
			</div>
		</header>

		
		
	<div id="main">	
		<?php
			if ( get_query_var('paged') ) {
				$paged = get_query_var('paged');
			} elseif ( get_query_var('page') ) {
				$paged = get_query_var('page');
			} else {
				$paged = 1;
			}
			if (is_page_template('page-home.php')&& ($paged < 2 )){
		
				$fp_show_slider = get_post_meta($post->ID, 'fp_meta_show_slider', true);
				if ( $fp_show_slider == 1 ){				
					get_template_part( 'includes/slider' );				
				}
			}
		?>
	
	<div class="content-wrap">