-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
executable file
·78 lines (56 loc) · 2.97 KB
/
index.php
File metadata and controls
executable file
·78 lines (56 loc) · 2.97 KB
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
<?php get_header(); ?>
<?php get_template_part('template-part', 'head'); ?>
<?php get_template_part('template-part', 'topnav'); ?>
<!-- start content container -->
<div class="row dmbs-content">
<?php //left sidebar ?>
<?php get_sidebar( 'left' ); ?>
<div class="col-md-<?php devdmbootstrap3_main_content_width(); ?> dmbs-main">
<?php // theloop
if ( have_posts() ) : while ( have_posts() ) : the_post();
// single post
if ( is_single() ) : ?>
<div <?php post_class(); ?>>
<h2 class="page-header"><?php the_title() ;?></h2>
<?php if ( has_post_thumbnail() ) : ?>
<?php the_post_thumbnail(); ?>
<div class="clear"></div>
<?php endif; ?>
<?php the_content(); ?>
<?php wp_link_pages(); ?>
<?php get_template_part('template-part', 'postmeta'); ?>
<?php comments_template(); ?>
</div>
<?php
// list of posts
else : ?>
<div <?php post_class(); ?>>
<h2 class="page-header">
<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'devdmbootstrap3' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a>
</h2>
<?php if ( has_post_thumbnail() ) : ?>
<?php the_post_thumbnail(); ?>
<div class="clear"></div>
<?php endif; ?>
<?php the_content(); ?>
<?php wp_link_pages(); ?>
<?php get_template_part('template-part', 'postmeta'); ?>
<?php if ( comments_open() ) : ?>
<div class="clear"></div>
<p class="text-right">
<a class="btn btn-success" href="<?php the_permalink(); ?>#comments"><?php comments_number(__('Leave a Comment','devdmbootstrap3'), __('One Comment','devdmbootstrap3'), '%' . __(' Comments','devdmbootstrap3') );?> <span class="glyphicon glyphicon-comment"></span></a>
</p>
<?php endif; ?>
</div>
<?php endif; ?>
<?php endwhile; ?>
<?php posts_nav_link(); ?>
<?php else: ?>
<?php get_404_template(); ?>
<?php endif; ?>
</div>
<?php //get the right sidebar ?>
<?php get_sidebar( 'right' ); ?>
</div>
<!-- end content container -->
<?php get_footer(); ?>