0byt3m1n1
Path:
/
data
/
21
/
3
/
125
/
28
/
3125354
/
user
/
3486433
/
htdocs
/
wp-content
/
themes
/
perfecti
/
[
Home
]
File: header.php
<!DOCTYPE html> <!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]--> <!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]--> <!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]--> <!--[if (gte IE 9)|!(IE)]><!--><html <?php language_attributes(); ?>> <!--<![endif]--> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- Meta Tags ================================================== --> <?php global $options_data; global $post; $description= ''; $keywords= ''; $author = ''; if(isset($post)){ $terms = wp_get_post_terms( $post->ID, array('post_tag','category',"page_keywords"), array("fields" => "names")); $post_categories = wp_get_post_categories( $post->ID ); $author = get_the_author_meta('display_name', $post->post_author); if(get_the_title($post->ID) != '') { $description = get_the_title($post->ID).' | '.get_bloginfo('name').' - '.get_bloginfo('description'); }else{ $description = bloginfo('name').' - '.bloginfo('description'); } } $cats=''; if(!empty($terms)) { foreach($terms as $term){ $keywords .= $term.', '; } } else { $terms = get_terms( array('post_tag','category'), array('orderby' => 'count', 'order' => 'DESC', "fields" => "names", 'number'=> 9) ); foreach($terms as $term){ $keywords .= $term.', '; } } $description .= ', '.$keywords; ?> <title><?php wp_title(' | ', true, 'right'); ?><?php bloginfo('name'); ?> - <?php bloginfo('description'); ?></title> <meta charset="<?php bloginfo('charset'); ?>"> <?php $check_seodisable = eva_option('check_seodisable'); if(!isset($check_seodisable) || $check_seodisable != 1 ) {?> <meta name="description" content="<?php echo esc_attr( $description ); ?>"> <meta name="keywords" content="<?php echo esc_attr( $keywords ); ?>"> <meta name="author" content="<?php echo esc_attr( $author ); ?>"> <?php } ?> <!-- Mobile Specific Metas ================================================== --> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <!-- Favicon ================================================== --> <?php eva_favicon(); ?> <!--[if lt IE 9]> <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <?php global $eva_end; $eva_start = $eva_end = ''; if (eva_option('theme_layout') != "Fullwidth") { $eva_start = '<div class="theme-boxed">'; $eva_end = '</div>'; } ?> <?php wp_head(); ?> </head> <body <?php body_class() ?>> <?php echo htmlspecialchars_decode( esc_html( $eva_start ) ); ?> <!-- Preloader --> <?php if(eva_option('theme_preloader')) { echo '<div id="preloader"><img src="'. esc_attr( eva_option('theme_preloader_upload') ) .'" alt="" /></div>'; } ?> <!-- //Preloader --> <!-- Page Wrap --> <div class="page-wrap"> <!-- Top Bar --> <?php if (eva_option("top_bar")) {?> <div id="top_bar"> <div class="container"> <?php $top_bar_phone = eva_option('top_bar_phone'); $top_bar_address = eva_option('top_bar_address'); $top_social_icons = eva_option('top_social_icons'); ?> <?php if ($top_bar_phone) { ?> <div class="top_bar_phone"><i class="fa fa-phone"></i><?php echo esc_html( $top_bar_phone ); ?> </div> <?php } ?> <?php if ($top_bar_address) { ?> <div class="top_bar_address"><i class="fa fa-map-marker"></i><?php echo esc_html( $top_bar_address ); ?> </div> <?php } ?> <?php if ($top_social_icons) { ?> <div class="eva-social-icon"><?php eva_social(); ?></div> <?php } ?> </div> </div> <?php } ?> <!-- //Top Bar --> <header class="<?php if (eva_option('header_sticky')) { echo 'header_sticky';} ?> <?php if (eva_option("top_bar")) { echo 'with-topbar';}?>"> <div class="container"> <!-- Logo --> <div id="top_logo"> <?php theme_logo(); ?> </div> <!-- //Logo --> <!-- Search --> <?php if (eva_option("top_search")) { ?> <div id="top_search"><?php get_search_form(); ?></div> <?php } ?> <!-- //Search --> <!-- Main Menu --> <div id="top_menu"> <i class="mobile_menu_icon fa fa-bars"></i> <?php theme_menu(); ?> </div> <!-- //Main Menu --> </div> </header> <!-- End Header --> <?php get_template_part('slider'); ?> <!-- Start Main --> <section id="main"> <div class="container">