-
Notifications
You must be signed in to change notification settings - Fork 0
/
single.php
executable file
·48 lines (37 loc) · 1.29 KB
/
single.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
<?php
/*
*
* TEMPLATE FOR POSTS
*
*/
?>
<?php get_header(); ?>
<?php if ( has_nav_menu( 'main-menu' ) ) : ?>
<nav id="site-navigation" class="main-navigation nav-fixed dropdown" role="navigation" aria-label="<?php esc_attr_e( 'Primary Menu', 'uka' ); ?>">
<i class="fa fa-bars hamburger" aria-hidden="true"></i>
<?php
wp_nav_menu(array(
'theme_location' => 'main-menu',
'menu_class' => 'menu flex',
'container' => false,
) );
?>
</nav>
<?php endif; ?>
<section id="articles" class="column">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header>
<h1 class="page-title screen-reader-text"><?php single_post_title(); ?></h1>
<?php printf( __('<span>Published <time class="updated" datetime="%1$s" pubdate>%2$s</time> by <span class="author">%3$s</span></span>', 'uka'), get_the_time('c'), get_the_time(get_option('date_format')), get_the_author_link(get_the_author_meta('ID'))); ?>
</header>
<div class="entry-content">
<?php the_content();
endwhile; else: ?>
<p>Sorry, no posts matched your criteria.</p>
<?php endif; ?>
</div>
</article>
</section>
<?php get_footer(); ?>
<!-- single.php -->