Skip to content

Instantly share code, notes, and snippets.

@raphaelkross
Created October 9, 2014 00:44
Show Gist options
  • Save raphaelkross/5c70f16df0b21f414b64 to your computer and use it in GitHub Desktop.
Save raphaelkross/5c70f16df0b21f414b64 to your computer and use it in GitHub Desktop.
<?php
/**
* The Header for our theme.
*
* Displays all of the <head> section and everything up till <div id="content">
*
* @package ivan_framework
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?php wp_title( '-', true, 'right' ); ?></title>
<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(); ?>>
<?php get_template_part('part', 'loader'); ?>
<?php flush(); ?>
<div id="all-site-wrapper" class="hfeed site">
<a href="#" id="back-top">
<i class="fa fa-angle-up " style=""></i>
</a>
<?php
/* @todo: adds who is being hooked */
do_action( 'ivan_before' );
?>
<?php
/* @todo: adds who is being hooked */
do_action( 'ivan_header_section' );
?>
<?php
// Dynamic Area displayed here...
if( true == ivan_get_option('header-da-after-enable') ) : ?>
<div class="<?php echo apply_filters('iv_dynamic_header_classes', 'iv-layout dynamic-header dynamic-header-after'); ?>">
<div class="container">
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-12">
<?php
$_id = ivan_get_option('header-da-after');
ivan_display_dynamic_area( $_id, true );
?>
</div>
</div>
</div>
</div>
<?php endif; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment