1170, 'height' => 150, 'header-text' => false, 'default-image' => get_template_directory_uri() . '/images/header-default.png', ); add_theme_support( 'custom-header', $args ); // CUSTOM BACKGROUND SUPPORT FOR THE THEME $args = array( //'default-color' => 'F8F8F8', 'default-image' => get_template_directory_uri() . 'images/textures/subtle-pattern-1.jpg', ); add_theme_support( 'custom-background', $args ); // Register Custom Navigation Walker require_once('inc/bootstrap_navwalker.php'); // THEME SETUP function gule_theme_setup() { // Custom template tags/hooks for GuleTheme. locate_template('/inc/template-tags.php', true ); // Custom template tags/hooks for GuleTheme. locate_template('/inc/widget-areas.php', true ); // Adds RSS feed links to for posts and comments. add_theme_support( 'automatic-feed-links' ); // Theme POST FORMATS add_theme_support( 'post-formats', array( 'aside', 'gallery', 'image', 'link', 'quote', 'status', 'video', 'audio', 'chat' ) ); // Theme MAIN MENU register_nav_menu( 'primary', __( 'Main Menu', 'GuleTheme' ) ); // add Theme Post Thumbnail Support add_theme_support( 'post-thumbnails' ); } add_action( 'after_setup_theme', 'gule_theme_setup' ); // THEME SCRIPTS AND STYLES function gule_scripts_styles() { global $wp_styles; // add javascript to threated comments if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); // This theme styles the visual editor with editor-style.css to match the theme style. add_editor_style(); // JQuery-js script file wp_enqueue_script( 'Jquery-js', get_template_directory_uri() . '/js/jquery.js', array(), '2.0.3', true ); // bootstrap-js script file wp_enqueue_script( 'Bootstrap-js', get_template_directory_uri() . '/js/bootstrap.js', array(), '3.0', true ); // Bootstrap-css wp_enqueue_style( 'Bootstrap-css', get_template_directory_uri() . '/css/bootstrap.css' ); // Bootstrap-Theme wp_enqueue_style( 'Bootstrap-Theme', get_template_directory_uri() . '/css/bootstrap-theme.css' ); // Elegant-font-icons wp_enqueue_style( 'Gule-Icons', get_template_directory_uri() . '/css/GuleIcons.css' ); // Loads our main stylesheet. wp_enqueue_style( 'Theme-Style', get_stylesheet_uri() ); } add_action( 'wp_enqueue_scripts', 'gule_scripts_styles' ); // THEME WP TITLE function gule_wp_title( $title, $sep ) { global $paged, $page; if ( is_feed() ) return $title; // Add the site name. $title .= get_bloginfo( 'name' ); // Add the site description for the home/front page. $site_description = get_bloginfo( 'description', 'display' ); if ( $site_description && ( is_home() || is_front_page() ) ) $title = "$title $sep $site_description"; // Add a page number if necessary. if ( $paged >= 2 || $page >= 2 ) $title = "$title $sep " . sprintf( __( 'Page %s', 'GuleTheme' ), max( $paged, $page ) ); return $title; } add_filter( 'wp_title', 'gule_wp_title', 10, 2 ); // CONTENT NAVE BELOW POSTS/PAGES if ( ! function_exists( 'gule_content_nav' ) ) : function gule_content_nav( $html_id ) { global $wp_query; $html_id = esc_attr( $html_id ); if ( $wp_query->max_num_pages > 1 ) : ?> comment_type || 'trackback' == $comment->comment_type ) : ?>
  • >
    ', '' ); ?>
  • >
    says:', 'GuleTheme' ), sprintf( '%s', get_comment_author_link() ) ); ?>
    comment_approved ) : ?>

    'div-comment', 'depth' => $depth, 'max_depth' => $args['max_depth'], 'before' => '
    ', 'after' => '
    ', ) ) ); ?>
    max_num_pages; if(!$pages) { $pages = 1; } } if(1 != $pages) { echo "
    "; } }