<?php

/**

 * Set up the theme and provides some helper functions, which are used in the

 * theme as custom template tags. Others are attached to action and filter

 * hooks in WordPress to change core functionality.

 */



// Load the Cherry Framework.

require_once( trailingslashit( get_template_directory() ) . 'lib/class-cherry-framework.php' );

new Cherry_Framework();



// Sets up theme defaults and registers support for various WordPress features.

add_action( 'after_setup_theme', 'cherry_theme_setup' );

function cherry_theme_setup() {



	// Load the initialization file.

	require_once( trailingslashit( PARENT_DIR ) . 'init/init.php' );



	// Load necessary config parts.

	cherry_theme_config();

}

