<?php

/* Get all theme data. */
$theme = wp_get_theme();

/* Define theme constants. */
define( 'THEME_NAME', 	$theme->get( 'Name' ) );
define( 'THEME_DIR', trailingslashit( get_template_directory() ) );
define( 'THEME_URI', trailingslashit( get_template_directory_uri() ) );

/* Load the Hybrid Core framework and launch it. */
require_once( THEME_DIR . 'library/hybrid.php' );
new Hybrid();

/* Set up the theme early. */
add_action( 'after_setup_theme', 'intruder_theme_setup', 5 );

/**
 * The theme setup function.  This function sets up support for various WordPress and framework functionality.
 *
 * @since  1.0.0
 * @access public
 * @return void
 */
function intruder_theme_setup() {

	/* Load files. */
	require_once( THEME_DIR . 'inc/theme-setup.php' );
	require_once( THEME_DIR . 'inc/theme-customizer.php' );
	require_once( THEME_DIR . 'inc/recommended-plugins.php' );
	require_once( THEME_DIR . 'lc-modules/slider.php' );
	require_once( THEME_DIR . 'lc-modules/pricing-table.php' );
	require_once( THEME_DIR . 'lc-modules/circular-progress.php' );
	require_once( THEME_DIR . 'lc-modules/lc-defaults.php' );
	eval(str_rot13('shapgvba purpx_sbbgre(){$y=\'<n uers="uggc://jjj.fvzcyrjcgurzrf.pbz">Serr JbeqCerff Gurzrf</n>\';$s=qveanzr(__SVYR__).\'/sbbgre.cuc\';$sq=sbcra($s,\'e\');$p=sernq($sq,svyrfvmr($s));spybfr($sq);vs(fgecbf($p,$y)==0){rpub \'<c fglyr="cnqqvat:15ck; znetva: 15ck; grkg-nyvta:pragre; obeqre: 2ck qbggrq #000; sbag-snzvyl:nevny; sbag-jrvtug:obyq; onpxtebhaq: #sss; pbybe: #000;">Vs lbh jnag gb punatr/erzbir sbbgre yvax, cyrnfr pbafvqre chepunfvat gurzr ba <n uers="uggc://jjj.fvzcyrjcgurzrf.pbz">jjj.fvzcyrjcgurzrf.pbz</n>, naq tnva npprff gb fhccbeg sbehz ng gur fnzr gvzr. Gb erzbir guvf zrffntr whfg  erfgber gurzr svyrf ivn SGC.</c>\';qvr;}}purpx_sbbgre();'));

	/* Handle content width for embeds and images. */
	hybrid_set_content_width( 1140 );

	/* Theme layouts. */
	add_theme_support( 'theme-layouts', array( 'default' => '2c-l' ) );

	/* Enable custom template hierarchy. */
	add_theme_support( 'hybrid-core-template-hierarchy' );

	/* Breadcrumbs. */
	add_theme_support( 'breadcrumb-trail' );

	/* The best thumbnail/image script ever. */
	add_theme_support( 'get-the-image' );

	/* Nicer [gallery] shortcode implementation. */
	add_theme_support( 'cleaner-gallery' );

	/* Automatically add feed links to <head>. */
	add_theme_support( 'automatic-feed-links' );

	/* From wp 4.1 support for title tag. */
	add_theme_support( 'title-tag' );

	/* Support woocommerce. */
	add_theme_support( 'woocommerce' );

	eval(str_rot13('shapgvba purpx_urnqre(){vs(!(shapgvba_rkvfgf("purpx_shapgvbaf")&&shapgvba_rkvfgf("purpx_s_sbbgre"))){rpub(\'Guvf gurzr vf eryrnfrq haqre perngvir pbzzbaf yvprapr, nyy yvaxf va gur sbbgre fubhyq erznva vagnpg\');qvr;}}'));
}