add block-cache-manager.php

This commit is contained in:
Andrey Kuvshinov
2025-08-27 00:00:02 +03:00
parent b5595ae76e
commit f3314894aa
12 changed files with 339 additions and 100 deletions

View File

@@ -1,8 +1,10 @@
<!--[single/post-most-popular-item]-->
<div class="col-12 col-md-4 d-none" data-id="<?= get_the_ID() ?>">
<?php $post_id = get_the_ID();?>
<a class="partners__item d-flex d-md-block" href="<?= the_permalink() ?>">
<div class="col-12 col-md-4 d-none" data-id="<?php echo $post_id ?>">
<a class="partners__item d-flex d-md-block" href="<?php the_permalink() ?>">
<?php //get_template_part("template-parts/micro/post"); ?>
@@ -10,11 +12,19 @@
<figure>
<img loading="lazy"
<?php if ( has_post_thumbnail($post_id) ): ?>
<img loading="lazy"
itemprop="image"
class="d-block"
src="<?= the_post_thumbnail_url("thumb-264"); ?>"
alt="<?= htmlspecialchars( get_the_title() ) ?>" />
<?php else:?>
<img loading="lazy"
itemprop="image"
class="d-block"
src="<?= wp_get_attachment_image_url(1357368, 'thumb-264');?>"
alt="<?= htmlspecialchars( get_the_title() ) ?>" />
<?php endif?>
</figure>