= 2 || $page >= 2 ) $title .= " {$sep} " . sprintf( __( 'Page %s', 'dbt' ), max( $paged, $page ) ); return $title; } function bluepeace_setup() { // This theme supports a variety of post formats. add_theme_support( 'post-formats', array( 'aside', 'image', 'link', 'quote', 'status' ) ); // Allows users to set a custom background add_theme_support( 'custom-background', array( 'default-image' => get_template_directory_uri() . '/img/bg.jpg', ) ); global $wp_version; $args = array( 'width' => 980, 'default-image' => get_template_directory_uri() . '/img/head.jpg', 'uploads' => true, ); if ( version_compare( $wp_version, '3.4', '>=' ) ) add_theme_support( 'custom-header', $args ); else add_custom_image_header( $wp_head_callback, $admin_head_callback, $admin_preview_callback ); add_theme_support( 'automatic-feed-links' ); if ( ! isset( $content_width ) ) $content_width = 700; register_nav_menus( array( 'primary' => __( 'Primary Navigation', '' ), ) ); } add_action( 'after_setup_theme', 'bluepeace_setup' ); function bluepeace_fallbackmenu(){ ?>
'Main Sidebar', 'id' => 'sidebar-1', 'description' => 'Appears on posts and pages except the optional Front Page template, which has its own widgets', 'before_widget' => '', 'before_title' => '