B3_URI . '/images/b3-logo.png')); register_nav_menus(array('primary' => __('Primary Menu', 'b3'),)); add_theme_support('post-formats', array('aside', 'image', 'video', 'quote', 'link')); add_theme_support('custom-background', apply_filters('b3_custom_background_args', array('default-color' => 'ffffff', 'default-image' => '',) )); add_theme_support('post-thumbnails'); add_filter('wp_nav_menu_container_allowedtags', 'b3_empty_array'); add_filter('wp_nav_menu_args', 'b3_wp_nav_menu_args'); require B3_PATH . '/inc/options.php'; add_action('admin_init', 'b3_admin_init'); register_post_type('b3_slide', array( 'label' => __('Slides', 'b3'), 'description' => '', 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'capability_type' => 'post', 'hierarchical' => false, 'rewrite' => array('slug' => ''), 'query_var' => true, 'supports' => array('title', 'editor', 'thumbnail',), 'labels' => array ( 'name' => __('Slides', 'b3'), 'singular_name' => __('Slide', 'b3'), 'menu_name' => __('B3 Slides', 'b3'), 'add_new' => __('Add Slide', 'b3'), 'add_new_item' => __('Add New Slide', 'b3'), 'edit' => __('Edit', 'b3'), 'edit_item' => __('Edit Slide', 'b3'), 'new_item' => __('New Slide', 'b3'), 'view' => __('View Slide', 'b3'), 'view_item' => __('View Slide', 'b3'), 'search_items' => __('Search Slides', 'b3'), 'not_found' => __('No Slides Found', 'b3'), 'not_found_in_trash' => __('No Slides Found in Trash', 'b3'), ))); } add_action('after_setup_theme', 'b3_setup'); if ( !isset( $content_width ) ) { $content_width = 970; } /* $content_width not really used currently in this theme but required by Wordpress theme autochecker. Content width is calculated and being set by Bootstrap. */ function b3_empty_array($arr) { return array(); } function b3_add_slide_metaboxes() { add_meta_box('b3-slide-uri', __('Slide URL', 'b3'), 'b3_slide_uri_metabox', 'b3_slide', 'normal', 'core'); } add_action('add_meta_boxes', 'b3_add_slide_metaboxes'); function b3_slide_uri_metabox($post) { wp_nonce_field('b3_inner_custom_box', 'b3_inner_custom_box_nonce'); ?>
ID . '&type=image&TB_iframe=1&width=640&height=285') . '" class="thickbox">' . __('to set the Featured Image', 'b3') . ' '; printf(__('Don't forget %1$s as it is the slide picture.', 'b3'), $set_featured); ?>