__( 'Primary Menu', 'binge' ), ) ); /* * Switch default core markup for search form, comment form, and comments * to output valid HTML5. */ add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption' ) ); /* * Enable support for Post Formats. * See http://codex.wordpress.org/Post_Formats */ add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link' ) ); // Setup the WordPress core custom background feature. add_theme_support( 'custom-background', apply_filters( 'binge_custom_background_args', array( 'default-color' => 'ffffff', 'default-image' => '', ) ) ); add_editor_style('editor-style.css'); } endif; // binge_setup add_action( 'after_setup_theme', 'binge_setup' ); function binge_headcode() { if ( (function_exists( 'of_get_option' )) && (of_get_option('style2', true) != 1) ) { echo ""; } } add_action('wp_head','binge_headcode'); /** * Add title tag. **/ add_theme_support( 'title-tag' ); if ( ! function_exists( '_wp_render_title_tag' ) ) { function binge_render_title() { ?> <?php wp_title( '|', true, 'right' ); ?> __( 'Sidebar', 'binge' ), 'id' => 'sidebar-1', 'description' => '', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Footer Left', 'binge' ), 'id' => 'sidebar-2', 'description' => '', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Footer Center', 'binge' ), 'id' => 'sidebar-3', 'description' => '', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Footer Right', 'binge' ), 'id' => 'sidebar-4', 'description' => '', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'binge_widgets_init' ); /** * Enqueue scripts and styles. */ function binge_scripts() { wp_enqueue_style( 'binge-style', get_stylesheet_uri() ); global $opt_binge; if (of_get_option('layout') == 'right') { wp_enqueue_style('binge-layout',get_template_directory_uri()."/css/layout/content-sidebar.css"); } else { wp_enqueue_style('binge-layout',get_template_directory_uri()."/css/layout/sidebar-content.css"); } wp_enqueue_style('binge-bootstrap-style',get_template_directory_uri()."/css/bootstrap/bootstrap.min.css", array('binge-layout')); wp_enqueue_style('binge-main-skin', get_template_directory_uri()."/css/skins/main.css",array('binge-bootstrap-style')); wp_enqueue_style('bx-slider-default-theme-skin', get_template_directory_uri(). "/css/slider/jquery.bxslider.css", array('binge-main-skin')); wp_enqueue_script( 'binge-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20120206', true ); wp_enqueue_script( 'binge-js', get_template_directory_uri() . '/js/jquery-1.11.2.js', array('jquery')); wp_enqueue_script( 'binge-slider-js', get_template_directory_uri() . '/js/jquery.bxslider.min.js', array(), true ); wp_enqueue_script( 'binge-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20130115', true ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } } function binge_initialize_header() { echo ""; } add_action('wp_head', 'binge_initialize_header'); function binge_pagination() { global $wp_query; $big = 12345678; $page_format = paginate_links( array( 'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ), 'format' => '?paged=%#%', 'current' => max( 1, get_query_var('paged') ), 'total' => $wp_query->max_num_pages, 'type' => 'array' ) ); if( is_array($page_format) ) { $paged = ( get_query_var('paged') == 0 ) ? 1 : get_query_var('paged'); echo ''; }} add_action( 'wp_enqueue_scripts', 'binge_scripts' ); /** * Implement the Custom Header feature. */ //require get_template_directory() . '/inc/custom-header.php'; /** * Custom template tags for this theme. */ require get_template_directory() . '/inc/template-tags.php'; /** * Custom functions that act independently of the theme templates. */ require get_template_directory() . '/inc/extras.php'; /** * Customizer additions. */ require get_template_directory() . '/inc/customizer.php'; /** * Load Jetpack compatibility file. */ require get_template_directory() . '/inc/jetpack.php';