-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
executable file
·65 lines (53 loc) · 1.77 KB
/
header.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php
/**
* @since 1.0
* @version 1.0
*/
global $rt_option;
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?> class="no-js">
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<?php if ( $rt_option['responsive'] ) : ?>
<meta name="viewport" content="width=device-width, initial-scale=1">
<?php endif; ?>
<?php
$icon = $rt_option['favicon'];
if(!empty($icon)) :
$favi = wp_get_attachment_image_src( $icon , 'full' );
?>
<link rel="icon" type="image/png" href="<?php echo $favi[0]; ?>" />
<?php endif; ?>
<link rel="profile" href="http://gmpg.org/xfn/11">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php do_action('rt_before_site'); ?>
<div <?php rt_layout_classes( 'site site-container' ); ?>>
<header class="site-header" role="banner">
<?php get_template_part( 'template-parts/header/top_bar' ); ?>
<?php dynamic_sidebar( 'header' ); ?>
<?php get_template_part( 'template-parts/header/'.$rt_option['layout_header'] ); ?>
</header><!-- #masthead -->
<div id="content" class="site-content">
<?php do_action( 'rt_before_content' ); ?>
<?php if ( is_active_sidebar( 'above-content' ) && is_front_page() ) : ?>
<div class="above-content-section">
<?php if ( ! $rt_option['above_content_full_width'] ) : ?>
<div class="container">
<div class="row">
<?php endif; ?>
<?php do_action( '__rt_render_widget_area', 'above-content' ); ?>
<?php dynamic_sidebar( 'above-content' ); ?>
<?php if ( ! $rt_option['above_content_full_width'] ) : ?>
</div>
</div>
<?php endif; ?>
</div>
<?php endif; ?>
<?php do_action( 'rt_after_content' ); ?>
<div class="container">
<div class="row">
<div id="layout" <?php rt_layout_class( 'clearfix' ); ?>>
<?php do_action( 'rt_before_layout' );?>