AlkantarClanX12
| Current Path : /var/www/clients/client1/web1/web/sites/all/themes/hawell/tpl/ |
| Current File : /var/www/clients/client1/web1/web/sites/all/themes/hawell/tpl/header.tpl.php |
<?php global $base_url; ?>
<?php
if (isset($node->field_header_style) && !empty($node->field_header_style))
{
$header_style = $node->field_header_style['und'][0]['value'];
} elseif(!isset($node) && drupal_is_front_page() === FALSE) {
$header_style = 'header3';
} else $header_style = theme_get_setting('header_style', 'hawell');
if (empty($header_style)) $header_style = 'header1';
if(isset($node) && $node->type == 'blog') {
if (isset($node->field_sidebar) && !empty($node->field_sidebar)) {
$sidebar = $node->field_sidebar['und'][0]['value'];
} elseif (arg(0) == 'node') {
$sidebar = 'right';
} else $sidebar = '';
if ($sidebar == 'full') {
$header_style = 'header2b';
} else $header_style = 'header3';
} else $sidebar = '';
if ($header_style == 'header1') {
$class_header = '';
} elseif ($header_style == 'header2') {
$class_header = 'black-header mobile-no-transparent';
} elseif ($header_style == 'header2b') {
$class_header = 'black-header';
} elseif ($header_style == 'header3') {
$class_header = 'no-transparent mobile-no-transparent';
} elseif ($header_style == 'header4') {
$class_header = 'black-header no-transparent mobile-no-transparent';
} elseif ($header_style == 'header5') {
$class_header = 'mobile-no-transparent no-transparent';
} elseif ($header_style == 'header6') {
$class_header = 'header-side-menu';
} elseif ($header_style == 'header7') {
$class_header = 'header-side-menu black-header';
} elseif ($header_style == 'header8') {
$class_header = 'no-transparent mobile-no-transparent';
} elseif ($header_style == 'header9') {
$class_header = 'no-transparent mobile-no-transparent header-mag';
} else {
$class_header = '';
}
if (isset($node->field_homepage_style) && !empty($node->field_homepage_style))
{
$homepage_style = $node->field_homepage_style['und'][0]['value'];
} else $homepage_style = theme_get_setting('homepage_style', 'hawell');
if (empty($homepage_style)) $homepage_style = 'default';
if (isset($node->field_portfolio_style) && !empty($node->field_portfolio_style)) {
$portfolio_style = $node->field_portfolio_style['und'][0]['value'];
} else $portfolio_style = 'style1';
if (isset($node->field_page_title_style) && !empty($node->field_page_title_style))
{
$page_title_style = $node->field_page_title_style['und'][0]['value'];
} else $page_title_style = 'big_grey';
?>
<?php if ($header_style == 'header1' || $header_style == 'header2' || $header_style == 'header3' || $header_style == 'header2b' || $header_style == 'header4' || $header_style == 'header8' || $header_style == 'header9'){ ?>
<?php if ($header_style == 'header2b') print '<div class="header-transporent-bg-black">'; ?>
<?php if ($header_style == 'header4') print '<div class="grey-dark-bg">'; ?>
<header id="nav" class="header header-1 <?php print $class_header; ?> <?php if ($page_title_style == 'small_white' || $page_title_style == 'big_white') print 'border-b'; ?>">
<?php if ($header_style == 'header8'): ?>
<?php
$phone = theme_get_setting('phone_contact', 'hawell');
$email = theme_get_setting('contact_email', 'hawell');
$work_hours = theme_get_setting('work_hours', 'hawell');
?>
<!-- TOP BAR -->
<div class="top-bar">
<div class="container-m-30 clearfix">
<!-- LEFT SECTION -->
<?php if($page['topbar_left']): ?>
<?php print render($page['topbar_left']); ?>
<?php endif; ?>
<!-- RIGHT SECTION -->
<?php if (!empty($phone) || !empty($email) || !empty($work_hours)): ?>
<ul class="top-bar-section right">
<?php if (!empty($phone)): ?>
<li><a href="tel:138376628"><i class="fa fa-phone mr-5"></i> <?php print $phone; ?></a></li>
<?php endif; ?>
<?php if (!empty($work_hours)): ?>
<li><i class="fa fa-clock-o mr-5"></i> <?php print $work_hours; ?></li>
<?php endif; ?>
<?php if (!empty($email)): ?>
<li class="display-no-xxs"><a href="mailto:<?php print $email; ?>" title="E-mail"><i class="fa fa-envelope mr-7"></i><?php print $email; ?></a></li>
<?php endif; ?>
</ul>
<?php endif; ?>
</div>
</div>
<?php elseif ($header_style == 'header9'): ?>
<!-- TOP BAR -->
<div class="top-bar">
<div class="container-m-30 clearfix">
<!-- LEFT SECTION -->
<?php if($page['topbar_left']): ?>
<?php print render($page['topbar_left']); ?>
<?php endif; ?>
<!-- RIGHT SECTION -->
<?php if($page['topbar_right']): ?>
<?php print render($page['topbar_right']); ?>
<?php endif; ?>
</div>
</div>
<?php endif; ?>
<div class="header-wrapper <?php if ($header_style == 'header4') print 'grey-dark-bg'; ?>">
<div class="container-m-30 clearfix">
<div class="logo-row">
<!-- LOGO -->
<?php if ($logo): ?>
<div class="logo-container-2">
<div class="logo-2">
<a href="<?php print $base_url; ?>" class="clearfix">
<img src="<?php if($header_style == 'header2' || $header_style == 'header2b' || $header_style == 'header4') {print $base_path.path_to_theme().'/logo-white.png';} else print $logo; ?>" class="logo-img" alt="Logo">
</a>
</div>
</div>
<?php endif; ?>
<!-- BUTTON -->
<div class="menu-btn-respons-container">
<button type="button" class="navbar-toggle btn-navbar collapsed" data-toggle="collapse" data-target="#main-menu .navbar-collapse">
<span aria-hidden="true" class="icon_menu hamb-mob-icon"></span>
</button>
</div>
</div>
</div>
<!-- MAIN MENU CONTAINER -->
<div class="main-menu-container">
<div class="container-m-30 clearfix">
<!-- MAIN MENU -->
<div id="main-menu">
<div class="navbar navbar-default" role="navigation">
<!-- MAIN MENU LIST -->
<?php if ($homepage_style == 'landing' || $homepage_style == 'onepage'): ?>
<nav class="collapse collapsing navbar-collapse right-1024">
<ul id="nav-onepage" class="nav navbar-nav one-menu">
<li class="current"><a href="#index-link"><div class="main-menu-title">HOME</div></a></li>
</ul>
</nav>
<?php else: ?>
<?php if($page['main_menu']): ?>
<?php print render($page['main_menu']) ?>
<?php endif; ?>
<?php endif; ?>
</div>
</div>
<!-- END main-menu -->
</div>
<!-- END container-m-30 -->
</div>
<!-- END main-menu-container -->
<!-- SEARCH READ DOCUMENTATION -->
<ul class="cd-header-buttons">
<li><a class="cd-search-trigger" href="#cd-search"><span></span></a></li>
</ul>
<!-- cd-header-buttons -->
<div id="cd-search" class="cd-search">
<?php
$block = module_invoke('search', 'block_view', 'search');
print render($block);
?>
</div>
</div>
<!-- END header-wrapper -->
</header>
<?php if ($sidebar == 'full' || $portfolio_style == 'style3'): ?>
<?php $image = $node->field_images['und'][0]['uri']; ?>
<?php if ($sidebar == 'full') $category = field_view_field('node', $node, 'field_categories'); ?>
<?php $category['#label_display']='hidden'; ?>
<!-- PAGE TITLE IMG -->
<div class="page-title-cont page-title-large grey-dark-bg page-title-img blog-single-fullwidth-img" style="background-image: url(<?php print file_create_url($image); ?>)">
<div class="over"></div>
<div class="relative container align-left">
<div class="row">
<div class="col-md-8">
<h1 class="page-title"><?php print $node->title; ?></h1>
<?php if ($sidebar == 'full'): ?>
<div class="page-sub-title">
<?php print format_date($node->created, 'custom', 'F d'); ?><span class="slash-divider">/</span><?php print $node->name; ?><span class="slash-divider">/</span><?php print strip_tags(render($category), '<a>'); ?>
</div>
<?php else: ?>
<?php if(isset($node) && !empty($node->body['und'][0]['summary'])): ?>
<div class="page-sub-title">
<?php print $node->body['und'][0]['summary']; ?>
</div>
<?php endif; ?>
<?php endif; ?>
</div>
<?php if($breadcrumb): ?>
<div class="col-md-4">
<?php print $breadcrumb; ?>
</div>
<?php endif; ?>
</div>
</div>
</div>
<?php endif; ?>
<?php if ($header_style == 'header2b' || $header_style == 'header4') print '</div>'; ?>
<?php } elseif ($header_style == 'header6') { ?>
<!-- HEADER side menu -->
<header id="nav-stick" class="header header-1 header-side-menu" >
<div class="header-wrapper">
<div class="container-m-30 clearfix">
<div class="logo-row">
<!-- LOGO -->
<?php if ($logo): ?>
<div class="logo-container-2">
<div class="logo-2">
<a href="<?php print $base_url; ?>" class="clearfix">
<img src="<?php print $logo; ?>" class="logo-img" alt="Logo">
</a>
</div>
</div>
<?php endif; ?>
</div>
</div>
<!-- BUTTON -->
<div class="menu-btn-respons-container2">
<a class="fs-primary-nav-trigger" href="#"><span class="fs-menu-icon"></span></a>
</div>
</div>
<!-- END header-wrapper -->
</header>
<!-- MENU -->
<?php if ($page['min_menu']): ?>
<nav>
<?php print render($page['min_menu']);?>
</nav>
<?php endif; ?>
<?php } elseif ($header_style == 'header5') {?>
<div class="side-header">
<!-- HEADER LEFT -->
<header id="header-left" class="header header-1 mobile-no-transparent no-transparent">
<div class="header-wrapper">
<div class="container-m-30 clearfix">
<div class="logo-row">
<!-- LOGO -->
<?php if ($logo): ?>
<div class="logo-container-2">
<div class="logo-2">
<a href="<?php print $base_url; ?>" class="clearfix">
<img src="<?php print $logo; ?>" class="logo-img" alt="Logo">
</a>
</div>
</div>
<?php endif; ?>
<!-- BUTTON -->
<div class="menu-btn-respons-container">
<button type="button" class="navbar-toggle btn-navbar collapsed" data-toggle="collapse" data-target="#main-menu .navbar-collapse">
<span aria-hidden="true" class="icon_menu hamb-mob-icon"></span>
</button>
</div>
</div>
</div>
<!-- MAIN MENU CONTAINER -->
<div class="main-menu-container">
<div class="container-m-30 clearfix">
<!-- MAIN MENU -->
<?php if ($page['side_menu']): ?>
<div id="main-menu">
<div class="navbar navbar-default" role="navigation">
<!-- MAIN MENU LIST -->
<?php print render($page['side_menu']);?>
<!-- SEARCH FORM -->
<?php
$block = module_invoke('search', 'block_view', 'search');
print render($block);
?>
</div>
</div>
<?php endif; ?>
<!-- END main-menu -->
</div>
<!-- END container-m-30 -->
</div>
<!-- END main-menu-container -->
<!-- SEARCH READ DOCUMENTATION -->
<ul class="cd-header-buttons">
<li><a class="cd-search-trigger" href="#cd-search"><span></span></a></li>
</ul>
<div id="cd-search" class="cd-search">
<?php
$block = module_invoke('search', 'block_view', 'search');
print render($block);
?>
</div>
</div>
<!-- END header-wrapper -->
</header>
</div>
<div class="side-content">
<?php } ?>