feat(templates): namespace swap + dark surface + remove picsum fallbacks

This commit is contained in:
Keith Solomon
2026-08-16 13:20:06 -05:00
parent 2d9f92618b
commit 8125d1c818
8 changed files with 44 additions and 33 deletions
+11 -10
View File
@@ -2,11 +2,11 @@
/**
* Blog search template
*
* @package SoloFrameEvo
* @package KsPortfolio
* @since 1.0.0
*/
namespace SoloFrameEvo;
namespace KsPortfolio;
// Determine classes based on sidebar presence
if ( hasSidebar() ) {
@@ -29,15 +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
$featImg = get_the_post_thumbnail_url();
$postImg = $featimg ? $featImg : 'https://picsum.photos/600/400?random=' . get_the_ID();
$imgAlt = get_post_meta( get_post_thumbnail_id(), '_wp_attachment_image_alt', true ) ?? get_the_title();
?>
<?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
$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 ); ?>">
</figure>
<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 ); ?>">
</figure>
<?php endif; ?>
<div class="post-list__details px-4 py-8 flex flex-col flex-grow">
<?php