-
Notifications
You must be signed in to change notification settings - Fork 0
/
content-p2pu-featured.php
65 lines (58 loc) · 2.46 KB
/
content-p2pu-featured.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
<?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 my-4 featured-post">
<article id="post-<?php the_ID(); ?>" <?php post_class( 'clearfix post-preview' ); ?> role="article">
<div class="card">
<div class="row">
<?php
if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
?>
<div class="col-md-8">
<div class="img-fluid">
<a href="<?php the_permalink() ?>">
<?php echo get_the_post_thumbnail( $id, array(600,400) ); ?>
</a>
</div>
</div>
<?php
} ?>
<div class="col-md-4">
<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>
</div>
</div>
<?php // comments_template(); // uncomment if you want to use them ?>
</article><!-- #post-## -->
</div>