-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
130 lines (115 loc) · 5.39 KB
/
index.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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<!DOCTYPE html>
<html <?php language_attributes() ?>>
<head itemscope itemtype="http://schema.org/WebSite">
<meta charset="<?php bloginfo( 'charset' ) ?>">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<?php if ( is_singular() ): ?>
<meta name="description" content="<?php echo toastmasterspl_get_excerpt( 0, 30 ) ?>">
<meta property="og:url" content="<?php the_permalink() ?>">
<meta property="og:type" content="article">
<meta property="og:title" content="<?php single_post_title() ?>">
<meta property="og:description" content="<?php echo toastmasterspl_get_excerpt( 0, 30 ) ?>">
<?php else: ?>
<meta name="description" content="<?php bloginfo( 'description' ) ?>">
<meta property="og:url" content="<?php echo trailingslashit( home_url( $wp->request ) ) ?>">
<meta property="og:type" content="website">
<meta property="og:title" content="<?php bloginfo( 'name' ) ?>">
<meta property="og:description" content="<?php bloginfo( 'description' ) ?>">
<?php endif; ?>
<?php if ( has_post_thumbnail() ): ?>
<meta property="og:image" content="<?php echo wp_get_attachment_image_src( get_post_thumbnail_id() )[0] ?>">
<?php endif; ?>
<?php wp_head() ?>
</head>
<body <?php body_class( 'page-body' ) ?> itemscope itemtype="http://schema.org/WebPage">
<div class="page-header-container">
<header class="page-element page-header" itemscope itemtype="http://schema.org/Organization">
<?php
wp_nav_menu( array(
'theme_location' => 'organization-breadcrumb',
'menu_class' => 'page-header__organization-breadcrumb organization-breadcrumb',
'container' => false,
'depth' => 1,
'walker' => new Customizable_Walker_Nav_Menu(),
'items_wrap' => '<span class="%2$s">%3$s</span>',
'customizable_before_item' => '<span class="organization-breadcrumb__item">',
'customizable_after_item' => '</span>',
'customizable_link_class' => 'organization-breadcrumb__link',
) );
?>
<div class="page-header__site-name" itemprop="name"><?php bloginfo( 'name' ) ?></div>
<?php toastmasterspl_the_custom_logo( 'page-header__site-logo' ) ?>
</header>
</div>
<main class="page-element page-content">
<div class="page-content__main" itemprop="mainContentOfPage" itemscope itemtype="http://schema.org/WebPageElement">
<?php
while ( have_posts() ) : the_post();
?>
<header class="page-content__article-header article-header<?php if ( has_post_thumbnail() ): ?> article-header--featured-image<?php endif ?>">
<?php
if ( has_post_thumbnail() ) {
the_post_thumbnail( 'post-thumbnail', [ 'class' => 'article-header__image' ] );
}
?>
<?php the_title( '<h1 class="article-header__title" itemprop="headline">', '</h1>' ) ?>
</header>
<article class="page-content__article-text article-text" itemprop="text">
<?php the_content() ?>
</article>
<?php endwhile; // have_posts() ?>
</div>
<?php if ( is_active_sidebar( 'sidebar-page-content' ) ) : ?>
<div class="page-content__aside" itemscope itemtype="http://schema.org/WPSideBar">
<?php dynamic_sidebar( 'sidebar-page-content' ); ?>
</div>
<?php endif; ?>
</main>
<div class="page-footer-container">
<footer class="page-element page-footer" itemscope itemtype="http://schema.org/WPFooter">
<?php
wp_nav_menu( array(
'theme_location' => 'social-links',
'menu_class' => 'page-footer__social-links social-links',
'container' => false,
'depth' => 1,
'items_wrap' => '<div class="%2$s">%3$s</div>',
'walker' => new Social_Walker_Nav_Menu(),
'social_link_class' => 'social-links__link',
'social_text_class' => 'social-links__text',
) );
?>
<p class="page-footer__copyright">
<?php echo get_theme_mod( 'copyright_text' ) ?>
This <a href="http://www.wordpress.org">WordPress</a> template is freely <a href="https://github.com/mpaluchowski/wordpress-theme-toastmasters.pl">available on <i class="fa fa-github"></i> GitHub</a> under the Apache License, Version 2.0. Make something cool.</p>
</footer>
</div>
<div class="page-navigation-container" id="page-navigation">
<nav class="page-element page-navigation" itemscope itemtype="http://schema.org/SiteNavigationElement">
<?php
wp_nav_menu( array(
'theme_location' => 'page-navigation',
'container' => false,
'depth' => 1,
'items_wrap' => '%3$s',
'walker' => new Customizable_Walker_Nav_Menu(),
'customizable_link_class' => 'page-navigation__link',
'customizable_link_class_current' => 'page-navigation__link--current',
'customizable_link_icons' => [
1 => 'home'
],
'customizable_icon_class' => 'page-navigation__link--icon',
'customizable_text_class' => 'page-navigation__link-text',
) );
?>
</nav>
</div>
<div class="page-navigation-link-container">
<div class="page-element page-navigation-link">
<a href="#page-navigation" class="page-navigation-link__link"><i class="fa fa-bars"></i></a>
</div>
</div>
<?php wp_footer() ?>
</body>
</html>