%PDF- %PDF-
| Direktori : /home/gachan/www/wp-content/themes/jekas/ |
| Current File : /home/gachan/www/wp-content/themes/jekas/content-summary.php |
<?php
$post_image = get_template_directory_uri().'/img/post-image.jpg';
if(has_post_thumbnail())
$post_image = wp_get_attachment_url(get_post_thumbnail_id()) ;
$categories = wp_get_post_categories(get_the_ID(),array('fields' => 'all'));
?>
<div class="blog-content">
<div class="entry-header">
<div class="blog-image">
<img class="img-responsive" src="<?php print esc_url($post_image)?>" alt="">
<div class="more-link">
<a href="<?php print esc_url(get_permalink())?>"><i class="fa fa-plus"></i></a>
</div>
</div>
<div class="post-date">
<h3><?php print get_the_time('j')?><span><?php print get_the_time('F')?></span></h3>
</div>
</div>
<div class="entry-content">
<h3 class="entry-title"><a href="<?php print esc_url(get_permalink())?>"><?php print get_the_title()?></a></h3>
<ul class="entry-meta">
<li><a href="<?php print esc_url(get_permalink())?>"><i class="fa fa-user"></i> <?php esc_html_e('By','jekas')?>: <?php print get_the_author()?> <span>/</span></a></li>
<li>
<?php foreach( $categories as $key => $category): ?>
<a href="<?php print esc_url(get_category_link($category)) ?>">
<?php if($key == 0): ?>
<i class="fa fa-tags"></i>
<?php endif;?>
<?php print $category->name ?>
<?php if($key < count($categories)): ?>
<span>/</span>
<?php endif;?>
</a>
<?php endforeach;?>
</li>
<li>
<a href="<?php print esc_url(get_permalink())?>">
<i class="fa fa-comments"></i> <?php print get_comments_number().' '.esc_html__('Comments','jekas'); ?>
</a>
</li>
</ul>
<p> <?php print htmlentities(wp_trim_words($post->post_content,18,'...'));?> </p>
</div>
</div>