<commit_before><?php

date_default_timezone_set('America/Chicago');


require get_theme_root().'/'.get_template().'/lib/vendor/autoload.php';


use League\ColorExtractor\Client as ColorExtractor;

$client = new ColorExtractor;

$detect = new Mobile_Detect;


include get_theme_root().'/'.get_template().'/inc/snippets.php';

include get_theme_root().'/'.get_template().'/inc/filters.php';

include get_theme_root().'/'.get_template().'/inc/heroes.php';

include get_theme_root().'/'.get_template().'/inc/boxes.php';

//include get_theme_root().'/'.get_template().'/inc/sms.php';


/*
if ( $detect->isMobile() ) {
	echo "Mobile!";
} else {
	debug( $detect );
}
*/


add_image_size( '1080', 1920, 1080, true );
add_image_size( '720', 1280, 720, true );
add_image_size( '360', 640, 360, true );
add_image_size( 'thumb-hd', 400, 225, true );


/* Plugin Deregisters to avoid redendancy after script concatenation */
add_action('wp_print_styles', 'deregister_styles', 100);

function deregister_styles() {
	
	$scripts = array(
		['js_composer_front', 'css'],// Visual Composer
		['js_composer_custom_css','css'],
		['wpb_composer_front_js','js'],
		['ai1ec_requirejs','js'],
		['ai1ec-general','css'],// All-in-one Events
		['ai1ec-event','css'],
		['ai1ec-calendar','css'],
		//['ai1ec_style','css']
	);
	
	foreach($scripts as $script){
		
		$slug = $script[0];
		$type = $script[1];
		
		switch ($type) {
		    case "js":
		        if( wp_script_is( $slug, 'registered' ) ) wp_deregister_script($slug);
		        break;
		    case "css":
		        if( wp_style_is( $slug, 'registered' ) ) wp_deregister_style($slug);
		        break;
		}	
		
			
	}
}

/*

Menu<commit_msg>Deregister fix 2<commit_after><?php

date_default_timezone_set('America/Chicago');


require get_theme_root().'/'.get_template().'/lib/vendor/autoload.php';


use League\ColorExtractor\Client as ColorExtractor;

$client = new ColorExtractor;

$detect = new Mobile_Detect;


include get_theme_root().'/'.get_template().'/inc/snippets.php';

include get_theme_root().'/'.get_template().'/inc/filters.php';

include get_theme_root().'/'.get_template().'/inc/heroes.php';

include get_theme_root().'/'.get_template().'/inc/boxes.php';

//include get_theme_root().'/'.get_template().'/inc/sms.php';


/*
if ( $detect->isMobile() ) {
	echo "Mobile!";
} else {
	debug( $detect );
}
*/


add_image_size( '1080', 1920, 1080, true );
add_image_size( '720', 1280, 720, true );
add_image_size( '360', 640, 360, true );
add_image_size( 'thumb-hd', 400, 225, true );


/* Plugin Deregisters to avoid redendancy after script concatenation */
add_action('wp_print_styles', 'deregister_styles', 100);

function deregister_styles() {
	
	$scripts = array(
		array('js_composer_front', 'css'),// Visual Composer
		array('js_composer_custom_css','css'),
		array('wpb_composer_front_js','js'),
		array('ai1ec_requirejs','js'),
		array('ai1ec-general','css'),// All-in-one Events
		array('ai1ec-event','css'),
		array('ai1ec-calendar','css'),
		//array('ai1ec_style','css')
	);
	
	foreach($scripts as $script){
		
		$slug = $script[0];
		$type = $script[1];
		
		switch ($type) {
		    case "js":
		        if( wp_script_is( $slug, 'registered' ) ) wp_deregister_script($slug);
		        break;
		    case "css":
		        if( wp_style_is( $slug, 'registered' ) ) wp_deregister_style($slug);
		        break;
		}	
		
			
	}
}

/*

Menu
{'fraction_non_alphanumeric': 0.1940254362614611, 'fraction_numerical': 0.028098195800059154, 'mean_word_length': 4.211093990755008, 'pattern_counts': {'":': 4, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2170765', 'n_tokens_mistral': 1414, 'n_tokens_neox': 1213, 'n_words': 211}