🏠 Root
/
home
/
a
/
r
/
t
/
artorgp
/
parankhoit
/
wp-content
/
themes
/
fortunato
/
Editing: header.php
<?php /** * The header for our theme. * * Displays all of the <head> section and everything up till <div id="content"> * * @package fortunato */ ?><!DOCTYPE html> <html <?php language_attributes(); ?>> <head> <meta charset="<?php bloginfo( 'charset' ); ?>"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <link rel="profile" href="http://gmpg.org/xfn/11"> <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>"> <?php wp_head(); ?> </head> <body <?php body_class(); ?>> <div id="page" class="hfeed site"> <a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'fortunato' ); ?></a> <?php $headerOverlay = get_theme_mod('fortunato_theme_options_headeroverlay', '1'); $hideSearch = get_theme_mod('fortunato_theme_options_hidesearch', '1'); $facebookURL = get_theme_mod('fortunato_theme_options_facebookurl', '#'); $twitterURL = get_theme_mod('fortunato_theme_options_twitterurl', '#'); $googleplusURL = get_theme_mod('fortunato_theme_options_googleplusurl', '#'); $linkedinURL = get_theme_mod('fortunato_theme_options_linkedinurl', '#'); $instagramURL = get_theme_mod('fortunato_theme_options_instagramurl', '#'); $youtubeURL = get_theme_mod('fortunato_theme_options_youtubeurl', '#'); $pinterestURL = get_theme_mod('fortunato_theme_options_pinteresturl', '#'); $tumblrURL = get_theme_mod('fortunato_theme_options_tumblrurl', '#'); $flickrURL = get_theme_mod('fortunato_theme_options_flickrurl', '#'); $vkURL = get_theme_mod('fortunato_theme_options_vkurl', '#'); $skypeNAME = get_theme_mod('fortunato_theme_options_skypename', ''); ?> <?php if (is_singular() && '' != get_the_post_thumbnail() ) : ?> <?php $src = wp_get_attachment_image_src( get_post_thumbnail_id(), 'fortunato-the-post'); ?> <header id="masthead" class="site-header" role="banner" style="background: url(<?php echo $src[0] ?>) 50% 50% / cover no-repeat;"> <?php elseif (function_exists( 'is_shop' ) && is_shop() && function_exists( 'is_woocommerce' ) ) : ?> <?php $shopImageID = get_option( 'woocommerce_shop_page_id' ); ?> <?php if( '' != get_the_post_thumbnail($shopImageID) ) : ?> <?php $srcShop = wp_get_attachment_image_src( get_post_thumbnail_id($shopImageID), 'fortunato-the-post'); ?> <header id="masthead" class="site-header" role="banner" style="background: url(<?php echo $srcShop[0]; ?>) 50% 50% / cover no-repeat;"> <?php else: ?> <header id="masthead" class="site-header" role="banner" style="background: url(<?php header_image(); ?>) 50% 50% / cover no-repeat;"> <?php endif; ?> <?php else: ?> <header id="masthead" class="site-header" role="banner" style="background: url(<?php header_image(); ?>) 50% 50% / cover no-repeat;"> <?php endif; ?> <div class="site-social"> <div class="socialLine"> <?php if (!empty($facebookURL)) : ?> <a href="<?php echo esc_url($facebookURL); ?>" title="<?php esc_attr_e( 'Facebook', 'fortunato' ); ?>"><i class="fa fa-facebook spaceLeftRight"><span class="screen-reader-text"><?php esc_attr_e( 'Facebook', 'fortunato' ); ?></span></i></a> <?php endif; ?> <?php if (!empty($twitterURL)) : ?> <a href="<?php echo esc_url($twitterURL); ?>" title="<?php esc_attr_e( 'Twitter', 'fortunato' ); ?>"><i class="fa fa-twitter spaceLeftRight"><span class="screen-reader-text"><?php esc_attr_e( 'Twitter', 'fortunato' ); ?></span></i></a> <?php endif; ?> <?php if (!empty($googleplusURL)) : ?> <a href="<?php echo esc_url($googleplusURL); ?>" title="<?php esc_attr_e( 'Google Plus', 'fortunato' ); ?>"><i class="fa fa-google-plus spaceLeftRight"><span class="screen-reader-text"><?php esc_attr_e( 'Google Plus', 'fortunato' ); ?></span></i></a> <?php endif; ?> <?php if (!empty($linkedinURL)) : ?> <a href="<?php echo esc_url($linkedinURL); ?>" title="<?php esc_attr_e( 'Linkedin', 'fortunato' ); ?>"><i class="fa fa-linkedin spaceLeftRight"><span class="screen-reader-text"><?php esc_attr_e( 'Linkedin', 'fortunato' ); ?></span></i></a> <?php endif; ?> <?php if (!empty($instagramURL)) : ?> <a href="<?php echo esc_url($instagramURL); ?>" title="<?php esc_attr_e( 'Instagram', 'fortunato' ); ?>"><i class="fa fa-instagram spaceLeftRight"><span class="screen-reader-text"><?php esc_attr_e( 'Instagram', 'fortunato' ); ?></span></i></a> <?php endif; ?> <?php if (!empty($youtubeURL)) : ?> <a href="<?php echo esc_url($youtubeURL); ?>" title="<?php esc_attr_e( 'YouTube', 'fortunato' ); ?>"><i class="fa fa-youtube spaceLeftRight"><span class="screen-reader-text"><?php esc_attr_e( 'YouTube', 'fortunato' ); ?></span></i></a> <?php endif; ?> <?php if (!empty($pinterestURL)) : ?> <a href="<?php echo esc_url($pinterestURL); ?>" title="<?php esc_attr_e( 'Pinterest', 'fortunato' ); ?>"><i class="fa fa-pinterest spaceLeftRight"><span class="screen-reader-text"><?php esc_attr_e( 'Pinterest', 'fortunato' ); ?></span></i></a> <?php endif; ?> <?php if (!empty($tumblrURL)) : ?> <a href="<?php echo esc_url($tumblrURL); ?>" title="<?php esc_attr_e( 'Tumblr', 'fortunato' ); ?>"><i class="fa fa-tumblr spaceLeftRight"><span class="screen-reader-text"><?php esc_attr_e( 'Tumblr', 'fortunato' ); ?></span></i></a> <?php endif; ?> <?php if (!empty($flickrURL)) : ?> <a href="<?php echo esc_url($flickrURL); ?>" title="<?php esc_attr_e( 'Flickr', 'fortunato' ); ?>"><i class="fa fa-flickr spaceLeftRight"><span class="screen-reader-text"><?php esc_attr_e( 'Flickr', 'fortunato' ); ?></span></i></a> <?php endif; ?> <?php if (!empty($vkURL)) : ?> <a href="<?php echo esc_url($vkURL); ?>" title="<?php esc_attr_e( 'VK', 'fortunato' ); ?>"><i class="fa fa-vk spaceLeftRight"><span class="screen-reader-text"><?php esc_attr_e( 'VK', 'fortunato' ); ?></span></i></a> <?php endif; ?> <?php if (!empty($skypeNAME)) : ?> <a href="skype:<?php echo esc_attr($skypeNAME); ?>?call" title="<?php esc_attr_e( 'Skype', 'fortunato' ); ?>"><i class="fa fa-skype spaceLeftRight"><span class="screen-reader-text"><?php esc_attr_e( 'Skype', 'fortunato' ); ?></span></i></a> <?php endif; ?> <?php if ($hideSearch == 1 ) : ?> <div class="openSearch"><i class="fa fa-search"></i></div> <?php endif; ?> </div> </div> <?php if ($hideSearch == 1 ) : ?> <!-- Start: Search Form --> <div id="search-full"> <div class="search-container"> <form role="search" method="get" id="search-form" action="<?php echo esc_url(home_url( '/' )); ?>"> <label> <span class="screen-reader-text"><?php esc_html_e( 'Search for:', 'fortunato' ); ?></span> <input type="search" name="s" id="search-field" placeholder="<?php esc_html_e('Type here and hit enter...', 'fortunato'); ?>"> </label> </form> <span class="closeSearch"><i class="fa fa-close spaceRight"></i><?php esc_html_e('Close', 'fortunato'); ?></span> </div> </div> <!-- End: Search Form --> <?php endif; ?> <?php if ($headerOverlay == 1 ) : ?> <div class="site-brand-main" style=" background-image: url(<?php echo get_template_directory_uri() . '/images/overlay.png'; ?>);"> <?php else: ?> <div class="site-brand-main"> <?php endif; ?> <div class="site-branding"> <?php if ( is_front_page() && is_home() ) : ?> <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1> <?php else : ?> <p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p> <?php endif; $description = get_bloginfo( 'description', 'display' ); if ( $description || is_customize_preview() ) : ?> <p class="site-description"><?php echo $description; /* WPCS: xss ok. */ ?></p> <?php endif; ?> </div><!-- .site-branding --> </div> <div class="theNavigationBar"> <nav id="site-navigation" class="main-navigation" role="navigation"> <button class="menu-toggle" aria-controls="primary-menu" aria-expanded="false"><?php esc_html_e( 'Main Menu', 'fortunato' ); ?><i class="fa fa-bars"></i></button> <?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_id' => 'primary-menu' ) ); ?> </nav><!-- #site-navigation --> </div> </header><!-- #masthead --> <div id="content" class="site-content">
Save
Cancel