-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsingle.php
More file actions
74 lines (51 loc) · 2.81 KB
/
Copy pathsingle.php
File metadata and controls
74 lines (51 loc) · 2.81 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
<?php get_header(); ?>
<?php get_template_part('template-parts/head'); ?>
<?php get_template_part('template-parts/nav','header'); ?>
<div class="container dmbs-content-wrapper">
<div class="row">
<?php get_template_part( 'template-parts/sidebar', 'left' ); ?>
<?php $dmbsColumnSize = devdmbootstrap_column_size('main'); ?>
<div class="col-md-<?php echo sanitize_html_class( $dmbsColumnSize, '8' ); ?> dmbs-main">
<?php if ( have_posts() ) : ?>
<?php
// Start the loop.
while ( have_posts() ) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class('dmbs-post card'); ?>>
<header class="card-header dmbs-post-header">
<h1 class="dmbs-post-title"><?php the_title(); ?></h1>
<?php get_template_part('template-parts/postmeta','header'); ?>
</header>
<?php if ( has_post_thumbnail() ) : ?>
<div class="dmbs-post-featured-image">
<?php the_post_thumbnail('featured', array('class' => 'card-img-top')); ?>
</div>
<?php endif; ?>
<div class="card-body dmbs-post-content">
<?php if ( has_excerpt() ) : ?>
<div class="dmbs-post-summary">
<?php the_excerpt(); ?>
</div><!-- .entry-summary -->
<?php endif; ?>
<?php
/* translators: %s: Name of current post */
the_content( sprintf( __( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'devdmbootstrap4' ),
get_the_title()
) );
?>
</div>
<footer class="card-footer dmbs-post-footer">
<?php get_template_part('template-parts/postmeta','footer'); ?>
</footer>
</article>
<?php comments_template( '/template-parts/comments.php'); ?>
<?php
// End the loop.
endwhile;
?>
<?php endif; ?>
</div>
<?php get_template_part( 'template-parts/sidebar', 'right' ); ?>
</div>
</div>
<?php get_template_part('template-parts/nav','footer'); ?>
<?php get_footer(); ?>