/
content-status.php
48 lines (43 loc) · 1.15 KB
/
content-status.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
<?php
/**
* The default template for displaying content
*
* @package WordPress
* @subpackage BlogPost
*/
global $blogpost_from_home_page, $post;
$tc = 0;
$excerpt = get_the_excerpt();
$img = wp_get_attachment_image_src(get_post_thumbnail_id(), 'blogpost-post-gallery-medium');
if ( empty($img[0]) ) {
$img[0] = get_template_directory_uri() . '/images/default-image.jpg';
}
?>
<li class="isotope-item blog-inner-container <?php echo get_post_format(); ?>-format">
<div <?php post_class(); ?>>
<div class="post-twitter-username icon-twitter-1">
<?php if ( function_exists('get_twitter_link') ) { get_twitter_link( $post->ID ); } ?>
</div>
<div class="post-inner entry-content <?php echo get_post_type(); ?>">
<div class="blog-excerpt">
<?php
$post_content = '';
if( empty($excerpt) ) {
_e( 'No excerpt for this posting.', 'blogpost-lite' );
} else {
echo wp_kses(
$excerpt,
array(
'a' => array(
'href' => array(),
'class' => array()
)
)
);
}
?>
</div>
<?php if ( function_exists('get_tweet_buttons') ) { get_tweet_buttons($post->ID); } ?>
</div>
</div>
</li>