-
Notifications
You must be signed in to change notification settings - Fork 1
/
single.php
60 lines (50 loc) · 1.64 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
49
50
51
52
53
54
55
56
57
58
59
60
<?php
/**
* The Template for displaying all single posts.
*
* @package Awakening
* @subpackage Awakening
* @since Awakening 1.0
*/
get_header(); ?>
<?php
$cols = awakening_get_columns_settings();
$layout = $cols['layout'];
?>
<?php
if($layout == "sidebar-sidebar-content") {
get_sidebar('left');
get_sidebar();
} else if($layout == "sidebar-content-sidebar" || $layout == "sidebar-content") {
get_sidebar('left');
}
?>
<div class="large-<?php echo $cols['content'];?> columns" role="content">
<div id="primary" class="site-content">
<div id="content" role="main">
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', 'single' ); ?>
<nav class="nav-single">
<div class="row">
<div class="large-6 columns">
<span class="nav-previous left"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '←', 'Previous post link', 'awakening' ) . '</span> %title' ); ?></span>
</div>
<div class="large-6 columns">
<span class="nav-next right"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '→', 'Next post link', 'awakening' ) . '</span>' ); ?></span>
</div>
</div>
</nav><!-- .nav-single -->
<?php //comments_template( '', true ); ?>
<?php endwhile; // end of the loop. ?>
</div><!-- #content -->
</div><!-- #primary -->
</div> <!-- .large-<?php echo $cols['content'];?> columns .content -->
<?php
if($layout == "content-sidebar-sidebar") {
get_sidebar('left');
get_sidebar();
} else if($layout == "sidebar-content-sidebar" || $layout == "content-sidebar") {
get_sidebar();
}
?>
<?php get_footer(); ?>