add_data( 'bohaute-ie-only', 'conditional', 'lt IE 9' ); // add conditional wrapper around ie stylesheet wp_enqueue_script( 'bohaute-js' , get_template_directory_uri() . '/library/js/scripts.js', array(), '', true ); } } /********************* THEME SUPPORT *********************/ // Adding WP 3+ Functions & Theme Support function bohaute_theme_support() { // wp thumbnails (sizes handled in functions.php) add_theme_support( 'post-thumbnails' ); add_editor_style(); // default thumb size set_post_thumbnail_size(125, 125, true); // wp custom background (thx to @bransonwerner for update) add_theme_support( 'custom-background', array( 'default-image' => '', // background image default 'default-color' => 'EAEDEF', // background color default (dont add the #) 'wp-head-callback' => '_custom_background_cb', 'admin-head-callback' => '', 'admin-preview-callback' => '' ) ); // rss thingy add_theme_support('automatic-feed-links'); // to add header image support go here: http://themble.com/support/adding-header-background-image-support/ // adding post format support add_theme_support( 'post-formats', array( 'video', // video 'audio', 'quote' ) ); register_nav_menus( array( 'main-nav' => __( 'The Main Menu', 'bohaute' ), // main nav in header /*'footer-links' => __( 'Footer Links', 'bohaute' ) // secondary nav in footer*/ ) ); add_theme_support( 'title-tag' ); add_theme_support( 'custom-logo' ); } /* end bohaute theme support */ if ( ! function_exists( '_wp_render_title_tag' ) ) : function bohaute_render_title() { ?> <?php wp_title( '|', true, 'right' ); ?> = 2 || $page >= 2 ): $title .= " {$sep} " . sprintf( __( 'Page %s', 'bohaute' ), max( $paged, $page ) ); endif; return $title; } // end better title endif; /********************* RELATED POSTS FUNCTION *********************/ // Related Posts Function (call using bohaute_related_posts(); ) function bohaute_related_posts() { echo '