'ffffff', 'border' => 'f1f1f1', 'text' => '555555', 'link' => '059bff', 'url' => 'e5f2bf', ); $content_width = 575; // pixels if ( ! function_exists( 'neutra_setup' ) ) : /** * Sets up theme defaults and registers support for various WordPress features. * * Note that this function is hooked into the after_setup_theme hook, which runs * before the init hook. The init hook is too late for some features, such as indicating * support post thumbnails. */ function neutra_setup() { /** * Make theme available for translation * Translations can be filed in the /languages/ directory * If you're building a theme based on superhero, use a find and replace * to change 'superhero' to the name of your theme in all the template files */ load_theme_textdomain( 'neutra', get_template_directory() . '/languages' ); /** * This theme uses wp_nav_menu() in one location. */ register_nav_menus( array( 'primary' => __( 'Primary Navigation', 'neutra' ), ) ); /** * Add default posts and comments RSS feed links to head */ add_theme_support( 'automatic-feed-links' ); /** * This theme supports custom background color and image, and here * we also set up the default background color. */ add_theme_support( 'custom-background' ); add_theme_support( 'print-style' ); } endif; // neutra_setup add_action( 'after_setup_theme', 'neutra_setup' ); function neutra_page_menu() { ?> __( 'Sidebar', 'neutra' ), 'id' => 'neutra_sidebar' ) ); } // Comments function neutra_list_comments( $comment, $args, $depth ) { $GLOBALS['comment'] = $comment; ?>
  • id="comment-">
    $depth, 'max_depth' => $args['max_depth'], 'before' => ', ' ) ); ?>
  • ' . $args['title_reply'] . ''; return $args; } add_filter( 'comment_form_defaults', 'neutra_comment_form_defaults', 30 ); /** * Enqueue scripts and styles */ function neutra_scripts() { global $wp_styles; wp_enqueue_style( 'neutra', get_stylesheet_uri() ); wp_enqueue_style( 'neutra-ie', get_template_directory_uri() . '/css/style-ie.css', array( 'neutra' ) ); $wp_styles->add_data( 'neutra-ie', 'conditional', 'lte IE 7' ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); } add_action( 'wp_enqueue_scripts', 'neutra_scripts' ); /** * Filters wp_title to print a neat tag based on what is being viewed. * * @since Neutra 0.3.3 */ function neutra_wp_title( $title, $sep ) { global $page, $paged; if ( is_feed() ) return $title; // Add the blog name $title .= get_bloginfo( 'name' ); // Add the blog description for the home/front page. $site_description = get_bloginfo( 'description', 'display' ); if ( $site_description && ( is_home() || is_front_page() ) ) $title .= " $sep $site_description"; // Add a page number if necessary: if ( $paged >= 2 || $page >= 2 ) $title .= " $sep " . sprintf( __( 'Page %s', 'neutra' ), max( $paged, $page ) ); return $title; } add_filter( 'wp_title', 'neutra_wp_title', 10, 2 );