-
Notifications
You must be signed in to change notification settings - Fork 0
/
content-p2pu.php
57 lines (52 loc) · 2.04 KB
/
content-p2pu.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
<?php
/**
* The default template for displaying content-p2pu
*
* Used for both single and index/archive/search.
*
* @package WordPress
* @subpackage P2PU Fourteen
*
*/
?>
<div class="entry-content col-12 col-md-4 my-4">
<article id="post-<?php the_ID(); ?>" <?php post_class( 'clearfix post-preview' ); ?> role="article">
<div class="card">
<?php
if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
?>
<a href="<?php the_permalink() ?>">
<div class="card-img-top">
<?php echo get_the_post_thumbnail( $id, array(300,200) ); ?>
</div>
</a>
<?php
} ?>
<div class="excerpt-wraper card-body">
<header class="article-header">
<h3 class="card-title">
<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a>
<?php if ( is_user_logged_in() ) {
echo '<a href="' . get_edit_post_link( $id, $context ) . '">[<i class="fa fa-pencil-square-o"></i> edit]</a>';
}
?>
</h3>
</header>
<div class="card-text small">
<p class="byline vcard text-muted minicaps text-left">
<?php
printf( __( '<span>%3$s</span> | <time class="updated" datetime="%1$s">%2$s</time>', 'bonestheme' ),
get_the_time( 'Y-m-j' ),
get_the_time( __( 'F j, Y', 'bonestheme' ) ),
bones_get_the_author_posts_link(),
get_permalink( $id )
);?>
</p>
<?php the_excerpt(); ?>
</div>
</div>
</div>
<?php // comments_template(); // uncomment if you want to use them ?>
</article><!-- #post-## -->
</div>