Guest User

travel-log-child

a guest
Jul 26th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.07 KB | None | 0 0
  1. <?php
  2. /**
  3.  * The header for our theme
  4.  *
  5.  * This is the template that displays all of the <head> section and everything up until <div id="content">
  6.  *
  7.  * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
  8.  *
  9.  * @package Travel_Log
  10.  */
  11.  
  12. ?><!DOCTYPE html>
  13. <html <?php language_attributes(); ?>>
  14. <head>
  15. <meta charset="<?php bloginfo( 'charset' ); ?>">
  16. <!-- Instruct Internet Explorer to use its latest rendering engine -->
  17. <meta http-equiv="x-ua-compatible" content="ie=edge">
  18. <meta name="viewport" content="width=device-width, initial-scale=1">
  19. <meta name="description" content="travel-site">
  20. <link rel="profile" href="http://gmpg.org/xfn/11">
  21. <?php if ( is_singular() && pings_open( get_queried_object() ) ) : ?>
  22. <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
  23. <?php endif; ?>
  24.  
  25. <?php wp_head(); ?>
  26.  
  27. </head>
  28.  
  29. <body <?php body_class(); ?>>
  30. <?php
  31.     $loader_status = travel_log_get_theme_option( 'travel_log_loader' );
  32.  
  33.     $loader_class = 'loader-inactive';
  34.  
  35. if ( false === $loader_status ) :
  36.  
  37.         $loader_class = 'loader-active';
  38.  
  39. ?>
  40.         <div id="onload" class="<?php echo esc_attr( $loader_class );?>" >
  41.             <div id="loader">
  42.                 <div id="fountainG_1" class="fountainG"></div>
  43.                 <div id="fountainG_2" class="fountainG"></div>
  44.                 <div id="fountainG_3" class="fountainG"></div>
  45.                 <div id="fountainG_4" class="fountainG"></div>
  46.                 <div id="fountainG_5" class="fountainG"></div>
  47.                 <div id="fountainG_6" class="fountainG"></div>
  48.                 <div id="fountainG_7" class="fountainG"></div>
  49.                 <div id="fountainG_8" class="fountainG"></div>
  50.             </div>
  51.         </div>
  52.  
  53.     <?php endif; ?>
  54.  
  55.         <div id="page" class="site animate-bottom">
  56.             <a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'travel-log' ); ?></a>
  57.  
  58.             <?php
  59.             /**
  60.              * Hook before_header.
  61.              *
  62.              * @hooked travel_log_top_header - 10
  63.              */
  64.             do_action( 'before_header' );
  65.             ?>
  66.  
  67.             <?php
  68.             /**
  69.              * Hook travel_log_header.
  70.              *
  71.              * @hooked travel_log_show_header - 10
  72.              */
  73.             do_action( 'travel_log_header' );
  74.  
  75.             echo '<div id="travel-log-front-page-slider-wrap" class="travel-log-show-partial-edit-shortcut">';
  76.  
  77.         travel_log_front_page_slider_content();
  78.  
  79.         echo '</div>';
  80.             ?>
  81.  
  82.             <?php do_action( 'after_header' ); ?>
  83.  
  84.             <!-- Breadcrumbs -->
  85.  
  86.                 <?php
  87.  
  88.                 $breadcrumb_status = travel_log_get_theme_option( 'travel_log_breadcrumb' );
  89.  
  90.                 if ( true !== $breadcrumb_status ) :
  91.  
  92.                     if ( ! is_front_page() ) : ?>
  93.  
  94.                         <div id="breadcrumb">
  95.                             <div class="container">
  96.  
  97.                                 <?php
  98.  
  99.                                     echo breadcrumb_trail($args = array(
  100.                                         'container' => 'div',
  101.                                         'show_browse'     => false,
  102.                                     ));
  103.                                 ?>
  104.  
  105.                             </div>
  106.                         </div>
  107.                 <!-- Breadcrumbs-end -->
  108.  
  109.                     <?php endif;
  110.                 endif;
  111.  
  112.  
  113.  
  114.                
  115.                 if ( ! is_front_page() || is_home() ) : ?>
  116.  
  117.                 <div id="content" class="site-content">
  118.  
  119.                     <?php if( ! is_singular( 'itineraries' ) ) : ?>
  120.  
  121.                         <div class="container">
  122.                    
  123.                     <?php endif; ?>
  124.  
  125.                
  126.                 <?php endif; ?>
Add Comment
Please, Sign In to add comment