|
Server : LiteSpeed System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64 User : nandedex ( 1060) PHP Version : 8.1.33 Disable Function : NONE Directory : /home/nandedex/www/wp-content/plugins11/better-amp/template/views/loop/ |
<?php
better_amp_enqueue_block_style( 'listing', 'css/listing' );
better_amp_enqueue_block_style( 'listing-1', 'css/listing-1' );
?>
<div class="posts-listing posts-listing-1">
<?php
if ( better_amp_is_ad_plugin_active() ) {
$ad_after_each = (int) Better_Ads_Manager::get_option( 'amp_archive_after_x_number' );
$counter = 1;
} else {
$ad_after_each = FALSE;
}
while( better_amp_have_posts() ) {
better_amp_the_post(); ?>
<article <?php better_amp_post_classes( 'listing-item listing-1-item clearfix' ) ?>>
<?php if ( has_post_thumbnail() ): ?>
<div class="post-thumbnail">
<a href="<?php the_permalink() ?>" title="<?php the_title_attribute() ?>">
<?php the_post_thumbnail( 'better-amp-small' ) ?>
</a>
</div>
<?php endif ?>
<h3 class="post-title">
<a href="<?php the_permalink() ?>" title="<?php the_title_attribute() ?>">
<?php the_title() ?>
</a>
</h3>
<a class="post-read-more" href="<?php the_permalink() ?>" title="<?php the_title_attribute() ?>">
<?php better_amp_translation_echo( 'read_more' ); ?>
<i class="fa fa-arrow-<?php better_amp_direction( TRUE ); ?>" aria-hidden="true"></i>
</a>
</article>
<?php
// should be active and also there was another post after this post
if ( $ad_after_each && better_amp_have_posts() ) {
if ( $counter === $ad_after_each ) {
better_amp_show_ad_location( 'amp_archive_after_x' );
$counter = 1; // reset counter
} else {
$counter ++;
}
}
} ?>
</div>