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/public_html/wp-content/plugins12/better-adsmanager/templates/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]


Current File : /home/nandedex/public_html/wp-content/plugins12/better-adsmanager/templates/amp-dfp.php
<?php

if ( bf_is_amp() == 'better' ) {
	better_amp_enqueue_ad( 'dfp' );
}

$caption = ! empty( $banner_data['caption'] ) && $args['show-caption'] ? Better_Ads_Manager::get_option( 'caption_position' ) : false;
$ad_code = '';

if ( $caption == 'above' ) {
	$ad_code .= "<p class='bsac-caption bsac-caption-above'>{$banner_data['caption']}</p>";
}

if ( $banner_data['dfp_spot'] === 'custom' ) {
	$ad_code .= $banner_data['custom_dfp_code'];
} else {

	$style = '';

	// no width and height means the spot have multiple dimensions
	if ( ! empty( $banner_data['dfp_spot_width'] ) && ! empty( $banner_data['dfp_spot_height'] ) ) {
		$style = 'width=' . $banner_data['dfp_spot_width'] . ' height=' . $banner_data['dfp_spot_height'];
	}

	$ad_code .= '<amp-ad ' . $style . ' type="doubleclick" data-slot="' . $banner_data['dfp_spot_id'] . '"></amp-ad>';
}

if ( $caption === 'below' ) {
	$ad_code .= "<p class='bsac-caption bsac-caption-below'>{$banner_data['caption']}</p>";
}

return $ad_code;

F1le Man4ger