Konark

header.php

Jul 28th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.60 KB | None | 0 0
  1. <!doctype html>
  2. <html <?php echo themify_get_html_schema(); ?> <?php language_attributes(); ?>>
  3. <head>
  4. <?php
  5. /** Themify Default Variables
  6.  *  @var object */
  7.     global $themify; ?>
  8. <meta charset="<?php bloginfo( 'charset' ); ?>">
  9.  
  10. <title itemprop="name"><?php wp_title(); ?></title>
  11.  
  12. <?php
  13. /**
  14.  *  Stylesheets and Javascript files are enqueued in theme-functions.php
  15.  */
  16. ?>
  17.  
  18. <!-- wp_header -->
  19. <?php wp_head(); ?>
  20.  
  21. </head>
  22.  
  23. <body <?php body_class(); ?>>
  24. <?php themify_body_start(); // hook ?>
  25. <div id="pagewrap" class="hfeed site">
  26.  
  27.     <div id="headerwrap">
  28.    
  29.         <?php themify_header_before(); // hook ?>
  30.         <header id="header" class="pagewidth">
  31.         <?php themify_header_start(); // hook ?>
  32.             <hgroup>
  33.                 <?php echo themify_logo_image('site_logo'); ?>
  34.    
  35.                 <?php if ( $site_desc = get_bloginfo( 'description' ) ) : ?>
  36.                     <?php global $themify_customizer; ?>
  37.                     <div id="site-description" class="site-description"><?php echo class_exists( 'Themify_Customizer' ) ? $themify_customizer->site_description( $site_desc ) : $site_desc; ?></div>
  38.                 <?php endif; ?>
  39.  
  40.                 <div class="number">
  41.                     <a href="tel:+7 (4742) 55-55-05">+7 (4742) 55-55-05</a>
  42.                     <img src="<?php echo get_template_directory_uri(); ?>/images/icons8-viber-48.png" alt="Viber" />
  43.                     <img src="<?php echo get_template_directory_uri(); ?>/images/icons8-whatsapp-48.png" alt="Whatsapp" />
  44.                 </div>
  45.             </hgroup>
  46.    
  47.             <nav>
  48.                 <div id="menu-icon" class="mobile-button"></div>
  49.                 <?php
  50.                 if ( function_exists( 'themify_custom_menu_nav' ) ) {
  51.                     themify_custom_menu_nav();
  52.                 } else {
  53.                     wp_nav_menu( array(
  54.                         'theme_location' => 'main-nav',
  55.                         'fallback_cb'    => 'themify_default_main_nav',
  56.                         'container'      => '',
  57.                         'menu_id'        => 'main-nav',
  58.                         'menu_class'     => 'main-nav'
  59.                     ));
  60.                 }
  61.                 ?>
  62.                 <!-- /#main-nav -->
  63.             </nav>
  64.    
  65.             <?php if(!themify_check('setting-exclude_search_form')): ?>
  66.                 <?php get_search_form(); ?>
  67.             <?php endif ?>
  68.    
  69.             <div class="social-widget">
  70.                 <?php dynamic_sidebar('social-widget'); ?>
  71.    
  72.                 <?php if(!themify_check('setting-exclude_rss')): ?>
  73.                     <div class="rss"><a href="<?php if(themify_get('setting-custom_feed_url') != ""){ echo themify_get('setting-custom_feed_url'); } else { echo bloginfo('rss2_url'); } ?>">RSS</a></div>
  74.                 <?php endif ?>
  75.             </div>
  76.             <!-- /.social-widget -->
  77.         <?php themify_header_end(); // hook ?>
  78.         </header>
  79.         <!-- /#header -->
  80.        <?php themify_header_after(); // hook ?>
  81.                
  82.     </div>
  83.     <!-- /#headerwrap -->
  84.    
  85.     <div id="body" class="clearfix">
  86.     <?php themify_layout_before(); //hook ?>
Add Comment
Please, Sign In to add comment