HEX
Server: Apache
System: Linux host.fiblib.com 5.14.0-570.58.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 29 06:24:11 EDT 2025 x86_64
User: scientificreligi (1062)
PHP: 8.0.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/scientificreligi/public_html/wp-content/themes/scientific-religion/templates/loop/ads.php
<?php
/**
 * The template for displaying ads.php
 *
 * @var $post_class
 * @var $post_inner_class
 */
if (!is_home() && !is_post_type_archive('post') && !is_category()) return;
$paged = G5Plus_Auteur()->query()->query_var_paged();
if ($paged !== 1) return;
$post_settings = &G5Plus_Auteur()->blog()->get_layout_settings();
$post_layout = isset($post_settings['post_layout']) ? $post_settings['post_layout'] : 'large-image';
if (!in_array($post_layout, array('large-image', 'medium-image'))) return;
$post_ads = G5Plus_Auteur()->options()->get_post_ads();
if (!is_array($post_ads)) return;
$post_class = $post_class . ' gf-ads';
?>
<?php foreach ($post_ads as $ads): ?>
	<?php $position = isset($ads['position']) ? intval($ads['position']) : -1; ?>
	<?php if ($position === (G5Plus_Auteur()->query()->get_query()->current_post + 1)): ?>
		<article <?php post_class($post_class) ?>>
			<div class="<?php echo esc_attr($post_inner_class); ?>">
				<?php G5Plus_Auteur()->helper()->shortCodeContent($ads['content']); ?>
			</div>
		</article>
	<?php endif; ?>
<?php endforeach; ?>