-
Notifications
You must be signed in to change notification settings - Fork 6
/
header.php
55 lines (53 loc) · 1.63 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
<?php
/**
* @package WordPress
* @subpackage Tersus
*/
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo('charset'); ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>?2023110800" type="text/css" media="screen" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<link rel="profile" href="https://gmpg.org/xfn/11" />
<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php
if (function_exists('wp_body_open')) {
wp_body_open();
}
?>
<header>
<?php if (get_option('tersus_announcement_display') == "1"): ?>
<section id="announcement">
<?php
$tersus_announcement = get_option('tersus_announcement');
echo (stripslashes($tersus_announcement));
?>
</section>
<?php endif; ?>
<?php if ((is_home() || is_front_page()) && !is_paged()) : ?>
<h1><?php bloginfo('name'); ?></h1>
<?php else : ?>
<h1><a href="<?php echo esc_url(home_url()); ?>/" title="Back to the home page"><?php bloginfo('name'); ?></a></h1>
<?php endif; ?>
<p><?php bloginfo('description'); ?></p>
</header>
<?php if (get_option('tersus_navigation_display') == "1"): ?>
<nav role="navigation">
<?php
echo strip_tags(wp_nav_menu(array(
'container' => false,
'echo' => true,
'items_wrap' => '<ul>%3$s</ul>',
'depth' => 0,
'fallback_cb' => false,
'theme_location' => 'header-menu',
)), '<a>' );
?>
</nav>
<?php endif; ?>