Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

84 lines (70 sloc) 3.25 KB
* "Funny, 'cause I look around at this world you're so eager to be a part of and all I see is six billion
* lunatics looking for the fastest ride out. Who's not crazy? Look around, everyone's drinking, smoking,
* shooting up, shooting each other, or just plain screwing their brains out 'cause they don't want 'em anymore.
* I'm crazy? Honey, I'm the original one-eyed chicklet in the kingdom of the blind, 'cause at least I admit the
* world makes me nuts. Name one person who can take it here. That's all I'm asking. Name one."
* ~ Glorificus (Buffy the Vampire Slayer: Season 5 - Weight of the World)
* Theme Authors: Make sure to add a favorite quote of yours above, maybe something that inspired you to
* create this theme.
* This program is free software; you can redistribute it and/or modify it under the terms of the GNU
* General Public License as published by the Free Software Foundation; either version 2 of the License,
* or (at your option) any later version.
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
* You should have received a copy of the GNU General Public License along with this program; if not, write
* to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
* @package HybridBase
* @subpackage Functions
* @version 1.0.0
* @author Justin Tadlock <>
* @copyright Copyright (c) 2013 - 2015, Justin Tadlock
* @link
* @license
// Get the template directory and make sure it has a trailing slash.
$hybrid_base_dir = trailingslashit( get_template_directory() );
// Load the Hybrid Core framework and theme files.
require_once( $hybrid_base_dir . 'library/hybrid.php' );
require_once( $hybrid_base_dir . 'inc/custom-background.php' );
require_once( $hybrid_base_dir . 'inc/custom-header.php' );
require_once( $hybrid_base_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', 'hybrid_base_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 hybrid_base_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 <head>.
add_theme_support( 'automatic-feed-links' );
// Post formats.
array( 'aside', 'audio', 'chat', 'image', 'gallery', 'link', 'quote', 'status', 'video' )
// Handle content width for embeds and images.
hybrid_set_content_width( 1280 );
Jump to Line
Something went wrong with that request. Please try again.