This repository has been archived by the owner on Nov 19, 2023. It is now read-only.
forked from korbinian/Piratenkleider
-
Notifications
You must be signed in to change notification settings - Fork 24
/
header-actionpage.php
90 lines (82 loc) · 4.43 KB
/
header-actionpage.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<?php
global $defaultoptions;
global $options;
?>
<!DOCTYPE html>
<!--[if IE 8 ]> <html <?php language_attributes(); ?> class="ie8"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html <?php echo piratenkleider_html_tag_schema(); ?> <?php language_attributes(); ?>> <!--<![endif]-->
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<?php wp_head();
$cssadd = '';
if (isset($options['css-eigene-anweisungen'])) {
$cssadd .= $options['css-eigene-anweisungen'];
$cssadd .= "\n";
}
if ((isset($cssadd)) && (strlen(trim($cssadd))>1)) {
echo "<style type=\"text/css\">\n";
echo $cssadd;
echo "</style>\n";
}
?>
</head>
<body <?php body_class(); ?>>
<nav role="navigation">
<ul id="top" class="nav skiplinks">
<li><a id="skiplink-nav" href="#nav"><?php _e( 'Jump to navigation.', 'piratenkleider' ); ?></a></li>
<li><a id="skiplink-content" href="#main-content"><?php _e( 'Jump to content.', 'piratenkleider' ); ?></a></li>
</ul>
</nav>
<header class="section header actionpage" role="banner">
<div class="row">
<div class="nav-top" role="navigation">
<h2 class="skip"><?php _e( 'Service-Navigation', 'piratenkleider' ); ?></h2>
<?php
get_piratenkleider_socialmediaicons(1);
if ( $options['aktiv-linkmenu'] == "1" ){
if ( has_nav_menu( 'top' ) ) {
wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'top' ) );
} else {
global $default_toplink_liste;
if (is_array($default_toplink_liste)) { ?>
<div class="menu-header">
<ul id="menu-topmenu" class="menu"> <?php
foreach ( $default_toplink_liste as $entry => $listdata ) {
$value = '';
$active = 0;
if (isset($options['toplinkliste'][$entry]['content'])) {
$value = $options['toplinkliste'][$entry]['content'];
} else {
$value = $default_toplink_liste[$entry]['content'];
}
if (isset($options['toplinkliste'][$entry]['active'])) {
$active = $options['toplinkliste'][$entry]['active'];
}
if (($active ==1) && ($value)) {
echo "\t\t\t";
echo '<li><a class="icon_'.$entry.'" href="'.$value.'">';
echo $listdata['name'].'</a></li>';
echo "\n";
}
} ?>
</ul>
</div>
<?php
}
}
} ?>
</div>
<div class="branding">
<?php if ( ! is_home() ) { ?>
<a href="<?php echo home_url( '/' ); ?>" title="<?php echo $defaultoptions['default_text_title_home_backlink']; ?>" rel="home" class="logo">
<?php } ?>
<h1><img src="<?php header_image(); ?>" alt="<?php bloginfo( 'name' ); ?>"></h1>
<?php
if ( ! is_home() ) { ?> </a> <?php }
if (strlen(trim(get_bloginfo( 'description' )))>1) { ?>
<p class="description slogan"><?php bloginfo( 'description' ); ?></p>
<?php } ?>
</div>
</div>
</header>
<div id="content-body">