= 2 || $page >= 2 )
$title .= " {$sep} " . sprintf( __( 'Page %s', 'dbt' ), max( $paged, $page ) );
return $title;
}
// This theme supports a variety of post formats.
add_theme_support( 'post-formats', array( 'aside', 'image', 'link', 'quote', 'status' ) );
register_nav_menus( array(
'primary' => __( 'Primary Navigation', '' ),
) );
function fallbackmenu(){ ?>
__( 'Main Sidebar', 'Gerdoo' ),
'id' => 'sidebar-1',
'description' => __( 'Appears on posts and pages except the optional Front Page template, which has its own widgets', 'Gerdoo' ),
'before_widget' => '',
'before_title' => '',
) );
// 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;
?>