feat(templates): namespace swap + dark surface + remove picsum fallbacks
This commit is contained in:
@@ -2,11 +2,11 @@
|
||||
/**
|
||||
* Blog posts list
|
||||
*
|
||||
* @package SoloFrameEvo
|
||||
* @package KsPortfolio
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
||||
namespace SoloFrameEvo;
|
||||
namespace KsPortfolio;
|
||||
|
||||
// Determine classes based on sidebar presence
|
||||
if ( hasSidebar() ) {
|
||||
@@ -29,17 +29,16 @@ get_header();
|
||||
the_post();
|
||||
?>
|
||||
<div class="post-list__post flex flex-col border border-secondary rounded-md shadow-lg hover:prose-img:scale-110 hover:prose-img:origin-center hover:prose-img:duration-500">
|
||||
<figure class="post-list__img aspect-video border-b border-secondary rounded-t-md block h-auto w-full overflow-hidden m-0 p-0">
|
||||
<?php if ( has_post_thumbnail() ) : ?>
|
||||
<?php if ( has_post_thumbnail() ) : ?>
|
||||
<figure class="post-list__img aspect-video border-b border-secondary rounded-t-md block h-auto w-full overflow-hidden m-0 p-0">
|
||||
<?php
|
||||
$featImg = get_the_post_thumbnail_url();
|
||||
$postImg = $featImg ? $featImg : 'https://picsum.photos/600/400?random=' . get_the_ID();
|
||||
$postImg = get_the_post_thumbnail_url();
|
||||
$imgAlt = get_post_meta( get_post_thumbnail_id(), '_wp_attachment_image_alt', true ) ?? get_the_title();
|
||||
?>
|
||||
|
||||
<img class="block h-full object-cover transition-transform duration-300 ease-linear w-full will-change-transform" src="<?php echo esc_url( $postImg ); ?>" alt="<?php echo esc_attr( $imgAlt ); ?>">
|
||||
<?php endif; ?>
|
||||
</figure>
|
||||
</figure>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="post-list__details px-4 py-8 flex flex-col grow">
|
||||
<div class="post-list__cats">
|
||||
|
||||
Reference in New Issue
Block a user