<?php
/**
 * NewsNation Customizer Active Callback Functions
 *
 * @package NewsNation
 */

function newsnation_header_archive_layout_ac( $control ){

    $newsnation_archive_layout = $control->manager->get_setting( 'newsnation_archive_layout' )->value();
    if( $newsnation_archive_layout == 'default' ){

        return true;
        
    }
    
    return false;
}

function newsnation_overlay_layout_ac( $control ){

    $newsnation_single_post_layout = $control->manager->get_setting( 'newsnation_single_post_layout' )->value();
    if( $newsnation_single_post_layout == 'layout-2' ){

        return true;
        
    }
    
    return false;
}

function newsnation_header_ad_ac( $control ){

    $ed_header_ad = $control->manager->get_setting( 'ed_header_ad' )->value();
    if( $ed_header_ad ){

        return true;
        
    }
    
    return false;
}