__( 'Primary Menu', 'blogk3' ),
'primary2' => __( 'Primary Logged-in', 'blogk3' )
) );
/*
* Switch default core markup for search form, comment form, comments, galleries, captions and widgets
* to output valid HTML5.
*/
add_theme_support( 'html5', array(
'search-form',
'comment-form',
'comment-list',
'gallery',
'caption',
'widgets',
) );
// Setup the WordPress core custom background feature.
add_theme_support( 'custom-background', apply_filters( 'blogk3_custom_background_args', array(
'default-color' => apply_filters( 'blogk3_default_background_color', 'fcfcfc' ),
'default-image' => '',
) ) );
// Add support for the Site Logo plugin and the site logo functionality in JetPack
// https://github.com/automattic/site-logo
// http://jetpack.me/
add_theme_support( 'site-logo', array( 'size' => 'full' ) );
// Declare WooCommerce support
add_theme_support( 'woocommerce' );
// Declare support for title theme feature
add_theme_support( 'title-tag' );
}
endif; // blogk3_setup
/**
* Register widget area.
*
* @link http://codex.wordpress.org/Function_Reference/register_sidebar
*/
function blogk3_widgets_init() {
register_sidebar( array(
'name' => __( 'Sidebar', 'blogk3' ),
'id' => 'sidebar-1',
'description' => '',
'before_widget' => '',
'before_title' => '
',
) );
$footer_widget_regions = apply_filters( 'blogk3_footer_widget_regions', 4 );
for ( $i = 1; $i <= intval( $footer_widget_regions ); $i++ ) {
register_sidebar( array(
'name' => sprintf( __( 'Footer %d', 'blogk3' ), $i ),
'id' => sprintf( 'footer-%d', $i ),
'description' => sprintf( __( 'Widgetized Footer Region %d.', 'blogk3' ), $i ),
'before_widget' => '',
'before_title' => '',
'after_title' => '
',
)
);
}
}
/**
* Enqueue scripts and styles. +bootstrap
* @since 1.0.0
*/
function blogk3_scripts() {
global $blogk3_version;
wp_enqueue_style( 'blogk3-style', get_stylesheet_uri(), '', $blogk3_version );
wp_enqueue_style( 'bootstrap-style', "//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css", '', false );
wp_enqueue_style( 'font-awesome', "//maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css", '', false );
wp_enqueue_script( 'blogk3-navigation', get_template_directory_uri() . '/js/navigation.min.js', array(), '20120206', true );
wp_enqueue_script( 'blogk3-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.min.js', array(), '20130115', true );
wp_enqueue_script('bootstrap-js', 'http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js', array(), '', true);
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
wp_enqueue_script( 'comment-reply' );
}
}