__( 'Primary Menu', 'blain' ), ) ); add_theme_support( 'post-formats', array( 'image', 'video', 'quote' ) ); add_theme_support( 'custom-background', apply_filters( 'blain_custom_background_args', array( 'default-color' => 'eeeeee', 'default-image' => '', ) ) ); } endif; // blain_setup add_action( 'after_setup_theme', 'blain_setup' ); function blain_widgets_init() { register_sidebar( array( 'name' => __( 'Sidebar', 'blain' ), 'id' => 'sidebar-1', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'blain_widgets_init' ); if ( !function_exists( 'optionsframework_init' ) ) { define( 'OPTIONS_FRAMEWORK_DIRECTORY', get_template_directory_uri() . '/inc/' ); require_once dirname( __FILE__ ) . '/inc/options-framework.php'; } add_action('optionsframework_custom_scripts', 'optionsframework_custom_scripts'); function optionsframework_custom_scripts() { ?> ".of_get_option('style2', true).""; } } add_action('wp_head', 'blain_custom_head_codes'); function blain_nav_menu_args( $args = '' ) { $args['container'] = false; return $args; } // function add_filter( 'wp_page_menu_args', 'blain_nav_menu_args' ); function blain_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 ''; } } /** * 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 Menu For Bootstrap */ require get_template_directory() . '/inc/wp_bootstrap_navwalker.php'; /** * Custom functions that act independently of the theme templates. Import Widgets */ require get_template_directory() . '/inc/extras.php'; require get_template_directory() . '/inc/widgets.php'; /** * Customizer additions. */ require get_template_directory() . '/inc/customizer.php'; /** * Load Jetpack compatibility file. */ require get_template_directory() . '/inc/jetpack.php';