Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
84 lines (72 sloc) 2.04 KB
<?php
/**
* @package WordPress
* @subpackage thurston
*/
/**
* Make theme available for translation
* Translations can be filed in the /languages/ directory
*/
load_theme_textdomain( 'thurston', TEMPLATEPATH . '/languages' );
$locale = get_locale();
$locale_file = TEMPLATEPATH . "/languages/$locale.php";
if ( is_readable( $locale_file ) )
require_once( $locale_file );
/**
* Set the content width based on the theme's design and stylesheet.
*/
if ( ! isset( $content_width ) )
$content_width = 640; /* pixels */
/**
* This theme uses wp_nav_menu() in one location.
*/
register_nav_menus( array(
'primary' => __( 'Primary Menu', 'thurston' ),
) );
/**
* Add default posts and comments RSS feed links to head
*/
add_theme_support( 'automatic-feed-links' );
/**
* Add support for the Aside and Gallery Post Formats
*/
add_theme_support( 'post-formats', array( 'aside', 'gallery' ) );
/**
* Get our wp_nav_menu() fallback, wp_page_menu(), to show a home link.
*/
function thurston_page_menu_args($args) {
$args['show_home'] = true;
return $args;
}
add_filter( 'wp_page_menu_args', 'thurston_page_menu_args' );
/**
* Register widgetized area and update sidebar with default widgets
*/
function thurston_widgets_init() {
register_sidebar( array (
'name' => __( 'Sidebar 1', 'thurston' ),
'id' => 'sidebar-1',
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
'after_widget' => "</aside>",
'before_title' => '<h1 class="widget-title">',
'after_title' => '</h1>',
) );
register_sidebar( array (
'name' => __( 'Sidebar 2', 'thurston' ),
'id' => 'sidebar-2',
'description' => __( 'An optional second sidebar area', 'thurston' ),
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
'after_widget' => "</aside>",
'before_title' => '<h1 class="widget-title">',
'after_title' => '</h1>',
) );
}
add_action( 'init', 'thurston_widgets_init' );
/**
* Modify the comment-reply link
*/
function add_pipe_to_reply_link( $link ) {
return "| " . $link;
}
add_filter('comment_reply_link', 'add_pipe_to_reply_link')
?>