Update theme

This commit is contained in:
danpros 2024-03-31 20:09:01 +07:00
commit ad5634d9c1
2 changed files with 2 additions and 2 deletions

View file

@ -70,7 +70,7 @@
<?php if (!empty($post->image)) {?> <?php if (!empty($post->image)) {?>
<a href="<?php echo $post->url;?>"><img alt="<?php echo $post->title;?>" src="<?php echo $post->image;?>" width="100%"></a> <a href="<?php echo $post->url;?>"><img alt="<?php echo $post->title;?>" src="<?php echo $post->image;?>" width="100%"></a>
<?php } elseif (!empty($img) && config('teaser.type') === 'trimmed') {?> <?php } elseif (!empty($img) && config('teaser.type') === 'trimmed' && empty($post->quote) && empty($post->video) && empty($post->audio)) {?>
<a href="<?php echo $post->url;?>"><img alt="<?php echo $post->title;?>" src="<?php echo $img;?>" width="100%"></a> <a href="<?php echo $post->url;?>"><img alt="<?php echo $post->title;?>" src="<?php echo $img;?>" width="100%"></a>
<?php } ?> <?php } ?>

View file

@ -17,7 +17,7 @@
<?php if (!empty($post->image)) {?> <?php if (!empty($post->image)) {?>
<a href="<?php echo $post->url;?>"><img alt="<?php echo $post->title;?>" src="<?php echo $post->image;?>" width="100%"></a> <a href="<?php echo $post->url;?>"><img alt="<?php echo $post->title;?>" src="<?php echo $post->image;?>" width="100%"></a>
<?php } elseif (!empty($img) && $teaserType === 'trimmed') {?> <?php } elseif (!empty($img) && $teaserType === 'trimmed' && empty($post->quote) && empty($post->video) && empty($post->audio)) {?>
<a href="<?php echo $post->url;?>"><img alt="<?php echo $post->title;?>" src="<?php echo $img;?>" width="100%"></a> <a href="<?php echo $post->url;?>"><img alt="<?php echo $post->title;?>" src="<?php echo $img;?>" width="100%"></a>
<?php } ?> <?php } ?>