-
Notifications
You must be signed in to change notification settings - Fork 0
/
original-single.php
85 lines (64 loc) · 3.09 KB
/
original-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
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
<?php get_header(); ?>
<div class="content">
<div class="container">
<div class="row">
<?php
global $post;
/* GET LAYOUT DETAILS */
$myThemes_layout = new mythemes_layout( 'single' , $post -> ID );
/* LEFT SIDEBAR */
$myThemes_layout -> echoSidebar( 'left' );
?>
<!-- CONTENT -->
<section class="<?php echo $myThemes_layout -> contentClass(); ?>">
<?php
/* LEFT WRAPPER */
$myThemes_layout -> contentWrapper( 'left' );
if( have_posts() ){
while( have_posts() ){
the_post();
?>
<article <?php post_class( 'row-fluid' ); ?>>
<?php
$classes = 'no-thumbnail';
if( has_post_thumbnail() ){
?>
<div class="post-thumbnail">
<?php echo get_the_post_thumbnail( $post -> ID , 'full-thumbnail' , esc_attr( $post -> post_title ) ); ?>
<?php $caption = get_post( get_post_thumbnail_id() ) -> post_excerpt; ?>
<?php if( !empty( $caption ) ) { ?>
<footer><?php echo $caption; ?></footer>
<?php } ?>
</div>
<?php
$classes = '';
}
?>
<!-- TITLE -->
<h1 class="post-title <?php echo $classes; ?>"><?php the_title(); ?></h1>
<!-- TOP META : AUTHOR / TIME / COMMENTS -->
<?php get_template_part( 'cfg/templates/meta' ); ?>
<!-- CONTENT -->
<?php the_content(); ?>
<div class="clearfix"></div>
<?php get_template_part( 'cfg/templates/bottom-meta' ); ?>
</article>
<!-- COMMENTS -->
<?php comments_template(); ?>
<?php
} /* END ARTICLE */
}
?>
<?php
/* RIGHT WRAPPER */
$myThemes_layout -> contentWrapper( 'right' );
?>
</section>
<?php
/* RIGHT SIDEBAR */
$myThemes_layout -> echoSidebar( 'right' );
?>
</div>
</div>
</div>
<?php get_footer(); ?>