Created
July 30, 2018 15:49
-
-
Save congthien/8e2bdb2edd203da9bc1f99484389b43b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* The header for our theme. | |
* | |
* This is the template that displays all of the <head> section and everything up until <div id="content"> | |
* | |
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials | |
* | |
* @package Together | |
*/ | |
?><!DOCTYPE html> | |
<html <?php language_attributes(); ?>> | |
<head> | |
<meta charset="<?php bloginfo( 'charset' ); ?>"> | |
<meta name="viewport" content="width=device-width, initial-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(); ?>> | |
<nav class="dt-main-menu<?php //if ( is_front_page() ) : ?> dt-menu-fixed<?php if ( ! is_front_page() ) : ?> dt-sticky<?php endif; ?>"> | |
<div class="container"> | |
<div class="row"> | |
<div class="col-lg-3 col-md-3 "> | |
<div class="dt-nav-logo"> | |
<?php | |
if ( function_exists( 'get_custom_logo' ) && has_custom_logo() ) : | |
the_custom_logo(); | |
else : ?> | |
<h1><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php esc_attr( bloginfo( 'name' ) ); ?></a></h1> | |
<?php endif; ?> | |
<div class="dt-menu-btn"></div> | |
</div><!-- .dt-nav-logo --> | |
</div><!-- .col-lg-3 --> | |
<div class="col-lg-9 col-md-9"> | |
<?php if ( has_nav_menu('primary') ) { wp_nav_menu( array( 'theme_location' => 'primary', 'menu_id' => 'primary-menu', 'container_class'=> 'main-menu-container' ) ); }?> | |
</div><!-- .col-lg-12 --> | |
</div><!-- .row --> | |
</div><!-- .container --> | |
</nav><!-- .dt-main-menu --> | |
<?php if ( is_front_page() ) : ?> | |
<header class="dt-site-header" role="banner"> | |
<div class="container"> | |
<div class="row"> | |
<div class="col-lg-12"> | |
<div class="dt-logo"> | |
<?php | |
if ( function_exists( 'get_custom_logo' ) && has_custom_logo() ) : | |
the_custom_logo(); | |
else : ?> | |
<h1><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php esc_attr( bloginfo( 'name' ) ); ?></a></h1> | |
<?php endif; | |
$description = get_bloginfo( 'description', 'display' ); | |
if ( $description || is_customize_preview() && $description != '' ) : ?> | |
<span><i class="fa fa-heart"></i> </span> | |
<p class="site-description"><?php echo $description; ?></p> | |
<div class="dt-wedding-date"><?php $dt_countdown_date = esc_attr( get_theme_mod( 'dt_countdown_setting' ) ); echo date( 'l, F d, Y', strtotime( $dt_countdown_date )); ?></div> | |
<?php endif; ?> | |
</div><!-- .dt-logo --> | |
</div><!-- .col-lg-12 --> | |
</div><!-- .row --> | |
</div><!-- .container --> | |
<div class="dt-wedding-countdown" id="dt_wedding_day"></div><!-- .dt-wedding-countdown --> | |
</header><!-- .dt-site-header --> | |
<?php endif; ?> | |
<?php if ( ! is_front_page() ) : ?><div class="dt-menu-sep"></div><?php endif; ?> | |
<?php if( ! is_front_page() ) : ?> | |
<div class="container"> | |
<div class="row"> | |
<div class="col-lg-12 col-md-12"> | |
<div class="dt-breadcrumbs"> | |
<?php together_breadcrumb(); ?> | |
</div><!-- .dt-breadcrumbs--> | |
</div><!-- .col-lg-12 --> | |
</div><!-- .row--> | |
</div><!-- .container--> | |
<?php endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment