Your IP : 216.73.216.1


Current Path : /home/fotouserdopd8j/agenciacrabli.com/wp-contentn/themes/pally/inc/
Upload File :
Current File : /home/fotouserdopd8j/agenciacrabli.com/wp-contentn/themes/pally/inc/setup.php

<?php
/**
 * Pally Setup.
 *
 * @package pally
 */

namespace Pally;

/**
 * Autoloader. The prefix is our name space.
 *
 * @param string $class The fully-qualified class name.
 * @return void
 */
spl_autoload_register(
	function( $class ) {
		$prefix   = 'Pally\\';
		$base_dir = __DIR__ . '/classes/';

		$len = strlen( $prefix );
		if ( 0 !== strncmp( $prefix, $class, $len ) ) {
			return;
		}
		$relative_class = substr( $class, $len );
		$file           = $base_dir . str_replace( '\\', '/', $relative_class ) . '.php';
		if ( file_exists( $file ) ) {
			require $file;
		}
	}
);

$Pally_Theme_Support = new Theme_Support();
$Pally_Scripts = new Scripts();
//$Pally_Styles = new Styles();
$Pally_Admin = new Admin();
$Pally_Biography = new Biography();
$Pally_Excerpt = new Excerpt();
$Pally_Branding = new Branding();
$Pally_Colors = new Colors();
$Pally_Copyright = new Copyright();
$Pally_Customizer = new Customizer();
$Pally_Editor = new Editor();
$Pally_Font_Pairs = new Font_Pairs();
$Pally_Font_Styles = new Font_Styles();
$Pally_Go_To_Top = new Go_To_Top();
$Pally_Header = new Header();
$Pally_Icons = new Icons();
$Pally_Menus = new Menus();
$Pally_Metainfo_Options = new Metainfo_Options();
$Pally_Page_Options = new Page_Options();
$Pally_Post_Options = new Post_Options();
$Pally_Related_Posts = new Related_Posts();
$Pally_Starter_Content = new Starter_Content();
$Pally_Widget_Areas = new Widget_Areas();
$Pally_Widget_Output_Filters = new Widget_Output_Filters();

/**
 * Custom CSS should be at the end of everything else in order to override existing styles.
 * We need to unhook it from wp_head and hook it in wp_footer.
 */
add_action(
	'wp_head',
	function() {
		remove_action( 'wp_head', 'wp_custom_css_cb', 101 );
		add_action( 'wp_footer', 'wp_custom_css_cb', PHP_INT_MAX );
	},
	10
);