* @copyright Copyright (c) 2016, SiteHolic * @link http://siteholic.com/blog-start * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html */ // Get the template directory and make sure it has a trailing slash. $blog_start_dir = trailingslashit( get_template_directory() ); // Load the Hybrid Core framework and theme files. require_once( $blog_start_dir . 'library/hybrid.php' ); require_once( $blog_start_dir . 'inc/custom-background.php' ); require_once( $blog_start_dir . 'inc/custom-header.php' ); require_once( $blog_start_dir . 'inc/theme.php' ); // Launch the Hybrid Core framework. new Hybrid(); // Do theme setup on the 'after_setup_theme' hook. add_action( 'after_setup_theme', 'blog_start_theme_setup', 5 ); /** * Theme setup function. This function adds support for theme features and defines the default theme * actions and filters. * * @since 1.0.0 * @access public * @return void */ function blog_start_theme_setup() { // Theme layouts. add_theme_support( 'theme-layouts', array( 'default' => is_rtl() ? '2c-r' :'2c-l' ) ); // Enable custom template hierarchy. add_theme_support( 'hybrid-core-template-hierarchy' ); // The best thumbnail/image script ever. add_theme_support( 'get-the-image' ); // Breadcrumbs. Yay! add_theme_support( 'breadcrumb-trail' ); // Nicer [gallery] shortcode implementation. add_theme_support( 'cleaner-gallery' ); // Automatically add feed links to . add_theme_support( 'automatic-feed-links' ); // Post formats. add_theme_support( 'post-formats', array( 'aside', 'audio', 'chat', 'image', 'gallery', 'link', 'quote', 'status', 'video' ) ); // Handle content width for embeds and images. hybrid_set_content_width( 1280 ); }