<?php

/**
 * Active Callbacks
 *
 * @package resort_motel
 */

// Theme Options.
function resort_motel_is_pagination_enabled( $resort_motel_control ) {
	return ( $resort_motel_control->manager->get_setting( 'resort_motel_enable_pagination' )->value() );
}
function resort_motel_is_breadcrumb_enabled( $resort_motel_control ) {
	return ( $resort_motel_control->manager->get_setting( 'resort_motel_enable_breadcrumb' )->value() );
}
function resort_motel_is_layout_enabled( $resort_motel_control ) {
	return ( $resort_motel_control->manager->get_setting( 'resort_motel_website_layout' )->value() );
}
function resort_motel_is_pagetitle_bcakground_image_enabled( $resort_motel_control ) {
	return ( $resort_motel_control->manager->get_setting( 'resort_motel_page_header_style' )->value() );
}
function resort_motel_is_preloader_style( $resort_motel_control ) {
	return ( $resort_motel_control->manager->get_setting( 'resort_motel_enable_preloader' )->value() );
}

// Banner Slider Section.
function resort_motel_is_banner_slider_section_enabled( $resort_motel_control ) {
	return ( $resort_motel_control->manager->get_setting( 'resort_motel_enable_banner_section' )->value() );
}
function resort_motel_is_banner_slider_section_and_content_type_post_enabled( $resort_motel_control ) {
	$content_type = $resort_motel_control->manager->get_setting( 'resort_motel_banner_slider_content_type' )->value();
	return ( resort_motel_is_banner_slider_section_enabled( $resort_motel_control ) && ( 'post' === $content_type ) );
}
function resort_motel_is_banner_slider_section_and_content_type_page_enabled( $resort_motel_control ) {
	$content_type = $resort_motel_control->manager->get_setting( 'resort_motel_banner_slider_content_type' )->value();
	return ( resort_motel_is_banner_slider_section_enabled( $resort_motel_control ) && ( 'page' === $content_type ) );
}

//Services section.
function resort_motel_is_service_section_enabled( $resort_motel_control ) {
	return ( $resort_motel_control->manager->get_setting( 'resort_motel_enable_service_section' )->value() );
}
function resort_motel_is_service_left_section_and_content_type_post_enabled( $resort_motel_control ) {
	$content_type = $resort_motel_control->manager->get_setting( 'resort_motel_service_left_content_type' )->value();
	return ( resort_motel_is_service_section_enabled( $resort_motel_control ) && ( 'post' === $content_type ) );
}
function resort_motel_is_service_left_section_and_content_type_page_enabled( $resort_motel_control ) {
	$content_type = $resort_motel_control->manager->get_setting( 'resort_motel_service_left_content_type' )->value();
	return ( resort_motel_is_service_section_enabled( $resort_motel_control ) && ( 'page' === $content_type ) );
}