Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
sleazemag
tagDiv Member

Hi Andrei,

I customized the code as you explained in the screenshots but after uploading the new ads.php my page didn’t load further than the header. Could you please be so kind to have a look at the code below?

Thank you so much!

__________
<?php
//@todo verifica daca ai ad daca nu pune clasa

$td_ad_array = td_util::get_option(‘td_ads’);
$td_no_ad_class = ”;

if(!empty($td_ad_array[‘header’])) {
if (empty($td_ad_array[‘header’][‘ad_code’])) {
$td_no_ad_class = ‘ td-ad’;
} else {

if (empty($td_ad_array[‘header’][‘disable_m’])) {
$td_no_ad_class .= ‘ td-ad-m’;
}

if (empty($td_ad_array[‘header’][‘disable_tp’])) {
$td_no_ad_class .= ‘ td-ad-tp’;
}

if (empty($td_ad_array[‘header’][‘disable_p’])) {
$td_no_ad_class .= ‘ td-ad-p’;
}
}
}
?>

<div class=”td-header-ad-wrap <?php echo $td_no_ad_class;?>”>
<?php

// show the header ad spot
if(is_front_page()) {
echo do_shortcode(‘[td_block_ad_box spot_id="custom_ad_4"]‘);
} else{
echo td_global_blocks::get_instance(‘td_block_ad_box’)->render(array(‘spot_id’ => ‘header’)); ?>

</div>

Viewing 1 post (of 1 total)