<?php
/**
 * Active callback functions.
 *
 * @package Prime Spa Center
 */

function prime_spa_center_featured_slider_active( $control ) {
    if( $control->manager->get_setting( 'theme_options[enable_featured_slider_section]' )->value() == true ) {
        return true;
    }else{
        return false;
    }
}

function prime_spa_center_featured_slider_page( $control ) {
    $content_type = $control->manager->get_setting( 'theme_options[featured_slider_content_type]' )->value();
    return ( prime_spa_center_featured_slider_active( $control ) && ( 'featured_slider_page' == $content_type ) );
}

function prime_spa_center_featured_slider_post( $control ) {
    $content_type = $control->manager->get_setting( 'theme_options[featured_slider_content_type]' )->value();
    return ( prime_spa_center_featured_slider_active( $control ) && ( 'featured_slider_post' == $content_type ) );
}

function prime_spa_center_featured_services_active( $control ) {
    if( $control->manager->get_setting( 'theme_options[enable_featured_services_section]' )->value() == true ) {
        return true;
    }else{
        return false;
    }
}

function prime_spa_center_social_links_active( $control ) {
    if( $control->manager->get_setting( 'theme_options[show_header_social_links]' )->value() == true ) {
        return true;
    }else{
        return false;
    }
}
