* @copyright Copyright (c) 2013 - 2014, Justin Tadlock * @link http://themehybrid.com/themes/birthday-gift * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html */ /* Get the template directory and make sure it has a trailing slash. */ $birthday_gift_dir = trailingslashit( get_template_directory() ); /* Load the Hybrid Core framework and theme files. */ require_once( $birthday_gift_dir . 'library/hybrid.php' ); require_once( $birthday_gift_dir . 'inc/custom-background.php' ); require_once( $birthday_gift_dir . 'inc/custom-header.php' ); require_once( $birthday_gift_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', 'birthday_gift_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 birthday_gift_theme_setup() { /* Theme layouts. */ add_theme_support( 'theme-layouts', array( '2c-l' => __( 'Content Right: Sidebar / Content', 'birthday-gift' ), '2c-r' => __( 'Content Left: Content / Sidebar', 'birthday-gift' ) ), array( 'default' => is_rtl() ? '2c-r' :'2c-l' ) ); /* Image sizes*/ add_image_size( 'birthday-gift-post-image-size',594); /* 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' ); /* Pagination. */ add_theme_support( 'loop-pagination' ); /* Nicer [gallery] shortcode implementation. */ add_theme_support( 'cleaner-gallery' ); /* Mobile menu*/ /* Better captions for themes to style. */ add_theme_support( 'cleaner-caption' ); /* Automatically add feed links to . */ add_theme_support( 'automatic-feed-links' ); add_theme_support( 'random-custom-background' ); add_theme_support( 'hybrid-core-styles', array( '25px', 'drop-downs', 'gallery', 'parent', 'style' ) ); /* 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 ); }