<?php
/**
 * Active Callbacks
 *
 * @package lawyer_consultant_firm
 */

// Theme Options.
function lawyer_consultant_firm_is_pagination_enabled( $lawyer_consultant_firm_control ) {
	return ( $lawyer_consultant_firm_control->manager->get_setting( 'lawyer_consultant_firm_enable_pagination' )->value() );
}
function lawyer_consultant_firm_is_breadcrumb_enabled( $lawyer_consultant_firm_control ) {
	return ( $lawyer_consultant_firm_control->manager->get_setting( 'lawyer_consultant_firm_enable_breadcrumb' )->value() );
}
function lawyer_consultant_firm_is_layout_enabled( $lawyer_consultant_firm_control ) {
	return ( $lawyer_consultant_firm_control->manager->get_setting( 'lawyer_consultant_firm_website_layout' )->value() );
}
function lawyer_consultant_firm_is_pagetitle_bcakground_image_enabled( $lawyer_consultant_firm_control ) {
	return ( $lawyer_consultant_firm_control->manager->get_setting( 'lawyer_consultant_firm_page_header_style' )->value() );
}
function lawyer_consultant_firm_is_preloader_style( $lawyer_consultant_firm_control ) {
	return ( $lawyer_consultant_firm_control->manager->get_setting( 'lawyer_consultant_firm_enable_preloader' )->value() );
}

// Header Options.
function lawyer_consultant_firm_is_topbar_enabled( $lawyer_consultant_firm_control ) {
	return ( $lawyer_consultant_firm_control->manager->get_Setting( 'lawyer_consultant_firm_enable_topbar' )->value() );
}

// Banner Slider Section.
function lawyer_consultant_firm_is_slider_slider_section_enabled( $lawyer_consultant_firm_control ) {
	return ( $lawyer_consultant_firm_control->manager->get_setting( 'lawyer_consultant_firm_enable_slider_section' )->value() );
}
function lawyer_consultant_firm_is_slider_slider_section_and_content_type_post_enabled( $lawyer_consultant_firm_control ) {
	$lawyer_consultant_firm_content_type = $lawyer_consultant_firm_control->manager->get_setting( 'lawyer_consultant_firm_slider_slider_content_type' )->value();
	return ( lawyer_consultant_firm_is_slider_slider_section_enabled( $lawyer_consultant_firm_control ) && ( 'post' === $lawyer_consultant_firm_content_type ) );
}
function lawyer_consultant_firm_is_slider_slider_section_and_content_type_page_enabled( $lawyer_consultant_firm_control ) {
	$lawyer_consultant_firm_content_type = $lawyer_consultant_firm_control->manager->get_setting( 'lawyer_consultant_firm_slider_slider_content_type' )->value();
	return ( lawyer_consultant_firm_is_slider_slider_section_enabled( $lawyer_consultant_firm_control ) && ( 'page' === $lawyer_consultant_firm_content_type ) );
}

// Offer section.
function lawyer_consultant_firm_is_post_tab_section_and_content_type_page_enabled( $lawyer_consultant_firm_control ) {
	$lawyer_consultant_firm_content_type = $lawyer_consultant_firm_control->manager->get_setting( 'lawyer_consultant_firm_banner_slider_content_type' )->value();
	return ( lawyer_consultant_firm_is_banner_slider_section_enabled( $lawyer_consultant_firm_control ) && ( 'page' === $lawyer_consultant_firm_content_type ) );
}
function lawyer_consultant_firm_is_post_tab_section_and_content_type_post_enabled( $lawyer_consultant_firm_control ) {
	$lawyer_consultant_firm_content_type = $lawyer_consultant_firm_control->manager->get_setting( 'lawyer_consultant_firm_banner_slider_content_type' )->value();
	return ( lawyer_consultant_firm_is_banner_slider_section_enabled( $lawyer_consultant_firm_control ) && ( 'post' === $lawyer_consultant_firm_content_type ) );
}
function lawyer_consultant_firm_is_offer_section_enabled( $lawyer_consultant_firm_control ) {
	return ( $lawyer_consultant_firm_control->manager->get_setting( 'lawyer_consultant_firm_enable_offer_section' )->value() );
}
function lawyer_consultant_firm_is_offer_section_and_content_type_post_enabled( $lawyer_consultant_firm_control ) {
	$lawyer_consultant_firm_content_type = $lawyer_consultant_firm_control->manager->get_setting( 'lawyer_consultant_firm_offer_content_type' )->value();
	return ( lawyer_consultant_firm_is_offer_section_enabled( $lawyer_consultant_firm_control ) && ( 'post' === $lawyer_consultant_firm_content_type ) );
}
function lawyer_consultant_firm_is_offer_section_and_content_type_page_enabled( $lawyer_consultant_firm_control ) {
	$lawyer_consultant_firm_content_type = $lawyer_consultant_firm_control->manager->get_setting( 'lawyer_consultant_firm_offer_content_type' )->value();
	return ( lawyer_consultant_firm_is_offer_section_enabled( $lawyer_consultant_firm_control ) && ( 'page' === $lawyer_consultant_firm_content_type ) );
}