add files
This commit is contained in:
17
content-preview-small.php
Normal file
17
content-preview-small.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
//
|
||||
$cat = get_post_primary_category(get_the_ID());
|
||||
$cat = $cat['primary_category'];
|
||||
?>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-12 col-md-4">
|
||||
<a class="partners__item d-flex d-lg-block" href="<?php echo get_permalink(); ?>">
|
||||
<span class="partners__frame">
|
||||
<img loading="lazy" class="d-block lazyload" <?php if(wp_is_mobile()): ?>src="<?= get_template_directory_uri() ?>/assets/img/Profile_lazyload_m.webp"<?php else: ?>src="<?= get_template_directory_uri() ?>/assets/img/Profile_lazyload.jpg"<?php endif; ?> data-src="<?php echo get_the_post_thumbnail_url($post,'medium'); ?>" alt="<?php the_title(); ?>" title="<?php the_title(); ?>" />
|
||||
</span>
|
||||
<strong class="partners__item__title"><?php the_title(); ?></strong>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<!--preview-small-->
|
||||
Reference in New Issue
Block a user