Antikythera/content.php

19 lines
673 B
PHP
Raw Permalink Normal View History

2018-01-30 03:46:03 +00:00
<?php
$thumbnail = get_the_post_thumbnail_url(get_the_ID(), 'featuredImageCropped');
?>
<ul class="post-list">
<li class="post-item grid-item" style="background-image: url(<?php echo $thumbnail; ?>);">
<a class="post-link" href="<?php the_permalink(); ?>">
<h3 class="post-title"><?php the_title(); ?></h3>
2021-01-12 23:21:22 +00:00
<?php
$get_theme_date_opt = get_theme_mod( 'article_shows_date' );
if ($get_theme_date_opt) { ?>
<div class="post-meta"><?php echo get_the_date('Y-m-d'); ?></div><?php } ?>
2018-01-30 03:46:03 +00:00
</a>
</li>
</ul>