39 lines
1.0 KiB
PHP
39 lines
1.0 KiB
PHP
<!-- start blog item -->
|
|
<article <?php post_class('data'); ?> id="post-<?php the_ID() ?>">
|
|
|
|
<!-- start content -->
|
|
<?php if (is_home() || is_search() || is_archive()): ?>
|
|
<div class="post-content">
|
|
<div class="blog-date">
|
|
<span class="span-day"><?php echo get_the_time('d');?></span>
|
|
<span class="span-month"><?php echo get_the_time('M');?></span>
|
|
</div>
|
|
<?php if (function_exists('printLikes')) { ?>
|
|
<div class="kk-likes">
|
|
<?php printLikes(get_the_ID()); ?>
|
|
</div>
|
|
<?php } ?>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<div class="blog-content">
|
|
<?php $quoteLink = get_post_meta($post->ID, '_post_quote_source_value', true); ?>
|
|
|
|
<h2 class="quote-text">
|
|
“<?php echo esc_html(get_post_meta($post->ID, '_post_quote_value', true)); ?>”
|
|
</h2>
|
|
|
|
<?php if ($quoteLink!="") {?>
|
|
<span class="quote-source">
|
|
— <?php echo wp_kses_post($quoteLink) ?>
|
|
</span>
|
|
<?php } ?>
|
|
|
|
<div class="blog-entry">
|
|
<?php the_content() ?>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</article>
|
|
<!-- end blog item -->
|