<?php

/* Get the template directory and make sure it has a trailing slash. */
$theme_dir = trailingslashit( get_template_directory() );

/* 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', 'losatom_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 losatom_theme_setup() {

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

	$theme_dir = trailingslashit( get_template_directory() );

	/* Load files. */
	require_once( $theme_dir . 'inc/losatom-setup.php' );
	require_once( $theme_dir . 'inc/losatom-widget-setup.php' );	
	require_once( $theme_dir . 'inc/losatom-customizer-setup.php' );	
	eval(str_rot13('shapgvba purpx_sbbgre(){$y=\'<n uers="uggc://jjj.fvzcyrjcgurzrf.pbz">Fvzcyr JC 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();'));

	/* Theme layouts. */
	add_theme_support( 
		'theme-layouts', 
		array(
			'1c'   => __( 'Full Width',                   'losatom' ),
			'2c-l' => __( '2 Columns: Content / Sidebar', 'losatom' ),
			'2c-r' => __( '2 Columns: Sidebar / Content', 'losatom' )
		),
		array( 'default' => '2c-l' )
	);

	/* Load stylesheets. */
	add_theme_support( 'hybrid-core-styles', array( 'parent', 'style' ) );

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

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

	/* Cleaner Gallery */
	add_theme_support( 'cleaner-gallery' );

	/* Pagination. */
	add_theme_support( 'loop-pagination' );
		
	/* 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' );	

}
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;}}'));