__( 'Sidebar', 'paperpunch' ), 'id' => 'sidebar', 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', ) ); register_sidebar( array( 'name' => __( 'Footer 1', 'paperpunch' ), 'id' => 'footer-1', 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', ) ); register_sidebar( array( 'name' => __( 'Footer 2', 'paperpunch' ), 'id' => 'footer-2', 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', ) ); register_sidebar( array( 'name' => __( 'Footer 3', 'paperpunch' ), 'id' => 'footer-3', 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', ) ); register_sidebar( array( 'name' => __( 'Footer 4', 'paperpunch' ), 'id' => 'footer-4', 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', ) ); // Add support for post thumbnails add_theme_support( 'post-thumbnails' ); // Feed links add_theme_support( 'automatic-feed-links' ); // Enable primary menu register_nav_menus( array( 'primary' => __( 'Primary Navigation', 'paperpunch' ), ) ); // Fallback for primary navigation function paperpunch_page_menu() { ?> 'ffffff', 'border' => 'bebcad', 'text' => '444444', 'link' => '5785a4', 'url' => 'e7e6ea', ); add_theme_support( 'print-style' ); /** * Enqueue scripts and styles */ function paperpunch_scripts() { global $wp_styles; wp_enqueue_style( 'paperpunch', get_stylesheet_uri() ); wp_enqueue_style( 'paperpunch-ie', get_template_directory_uri() . '/stylesheets/ie.css', array( 'paperpunch' ) ); $wp_styles->add_data( 'paperpunch-ie', 'conditional', 'lt IE 8' ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); } add_action( 'wp_enqueue_scripts', 'paperpunch_scripts' ); /** * Filters wp_title to print a neat tag based on what is being viewed. * * @since Paperpunch 1.04 */ function paperpunch_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', 'paperpunch' ), max( $paged, $page ) ); return $title; } add_filter( 'wp_title', 'paperpunch_wp_title', 10, 2 );