Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Changed all references to _s and straightup to debut

  • Loading branch information...
commit e0a6097262a4f749208097a6dadeb836a5a9aefd 1 parent 79d4ce1
@kwight authored
View
12 404.php
@@ -2,8 +2,8 @@
/**
* The template for displaying 404 pages (Not Found).
*
- * @package _s
- * @since _s 1.0
+ * @package debut
+ * @since 1.0
*/
get_header(); ?>
@@ -13,16 +13,16 @@
<article id="post-0" class="post error404 not-found">
<header class="entry-header">
- <h1 class="entry-title"><?php _e( 'Oops! That page can&rsquo;t be found.', '_s' ); ?></h1>
+ <h1 class="entry-title"><?php _e( 'Oops! That page can&rsquo;t be found.', 'debut' ); ?></h1>
</header>
<div class="entry-content">
- <p><?php _e( 'It looks like nothing was found at this location. Maybe try one of the links below or a search?', '_s' ); ?></p>
+ <p><?php _e( 'It looks like nothing was found at this location. Maybe try one of the links below or a search?', 'debut' ); ?></p>
<?php the_widget( 'WP_Widget_Recent_Posts' ); ?>
<div class="widget">
- <h2 class="widgettitle"><?php _e( 'Most Used Categories', '_s' ); ?></h2>
+ <h2 class="widgettitle"><?php _e( 'Most Used Categories', 'debut' ); ?></h2>
<ul>
<?php wp_list_categories( array( 'orderby' => 'count', 'order' => 'DESC', 'show_count' => 1, 'title_li' => '', 'number' => 10 ) ); ?>
</ul>
@@ -30,7 +30,7 @@
<?php
/* translators: %1$s: smilie */
- $archive_content = '<p>' . sprintf( __( 'Try looking in the monthly archives. %1$s', '_s' ), convert_smilies( ':)' ) ) . '</p>';
+ $archive_content = '<p>' . sprintf( __( 'Try looking in the monthly archives. %1$s', 'debut' ), convert_smilies( ':)' ) ) . '</p>';
the_widget( 'WP_Widget_Archives', 'dropdown=1', "after_title=</h2>$archive_content" );
?>
View
20 archive.php
@@ -4,8 +4,8 @@
*
* Learn more: http://codex.wordpress.org/Template_Hierarchy
*
- * @package _s
- * @since _s 1.0
+ * @package debut
+ * @since 1.0
*/
get_header(); ?>
@@ -19,17 +19,17 @@
<h1 class="page-title">
<?php
if ( is_category() ) {
- printf( __( 'Category Archives: %s', '_s' ), '<span>' . single_cat_title( '', false ) . '</span>' );
+ printf( __( 'Category Archives: %s', 'debut' ), '<span>' . single_cat_title( '', false ) . '</span>' );
} elseif ( is_tag() ) {
- printf( __( 'Tag Archives: %s', '_s' ), '<span>' . single_tag_title( '', false ) . '</span>' );
+ printf( __( 'Tag Archives: %s', 'debut' ), '<span>' . single_tag_title( '', false ) . '</span>' );
} elseif ( is_author() ) {
/* Queue the first post, that way we know
* what author we're dealing with (if that is the case).
*/
the_post();
- printf( __( 'Author Archives: %s', '_s' ), '<span class="vcard"><a class="url fn n" href="' . get_author_posts_url( get_the_author_meta( "ID" ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' );
+ printf( __( 'Author Archives: %s', 'debut' ), '<span class="vcard"><a class="url fn n" href="' . get_author_posts_url( get_the_author_meta( "ID" ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' );
/* Since we called the_post() above, we need to
* rewind the loop back to the beginning that way
* we can run the loop properly, in full.
@@ -37,16 +37,16 @@
rewind_posts();
} elseif ( is_day() ) {
- printf( __( 'Daily Archives: %s', '_s' ), '<span>' . get_the_date() . '</span>' );
+ printf( __( 'Daily Archives: %s', 'debut' ), '<span>' . get_the_date() . '</span>' );
} elseif ( is_month() ) {
- printf( __( 'Monthly Archives: %s', '_s' ), '<span>' . get_the_date( 'F Y' ) . '</span>' );
+ printf( __( 'Monthly Archives: %s', 'debut' ), '<span>' . get_the_date( 'F Y' ) . '</span>' );
} elseif ( is_year() ) {
- printf( __( 'Yearly Archives: %s', '_s' ), '<span>' . get_the_date( 'Y' ) . '</span>' );
+ printf( __( 'Yearly Archives: %s', 'debut' ), '<span>' . get_the_date( 'Y' ) . '</span>' );
} else {
- _e( 'Archives', '_s' );
+ _e( 'Archives', 'debut' );
}
?>
@@ -82,7 +82,7 @@
<?php endwhile; ?>
- <?php _s_content_nav( 'nav-below' ); ?>
+ <?php debut_content_nav( 'nav-below' ); ?>
<?php else : ?>
View
14 comments.php
@@ -7,8 +7,8 @@
* handled by a callback to _s_comment() which is
* located in the functions.php file.
*
- * @package _s
- * @since _s 1.0
+ * @package debut
+ * @since 1.0
*/
?>
@@ -29,7 +29,7 @@
<?php if ( have_comments() ) : ?>
<h2 class="comments-title">
<?php
- printf( _n( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), '_s' ),
+ printf( _n( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'debut' ),
number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' );
?>
</h2>
@@ -48,9 +48,9 @@
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
<nav role="navigation" id="comment-nav-below" class="site-navigation comment-navigation">
- <h1 class="assistive-text"><?php _e( 'Comment navigation', '_s' ); ?></h1>
- <div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', '_s' ) ); ?></div>
- <div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', '_s' ) ); ?></div>
+ <h1 class="assistive-text"><?php _e( 'Comment navigation', 'debut' ); ?></h1>
+ <div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'debut' ) ); ?></div>
+ <div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'debut' ) ); ?></div>
</nav>
<?php endif; // check for comment navigation ?>
@@ -60,7 +60,7 @@
// If comments are closed and there are comments, let's leave a little note, shall we?
if ( ! comments_open() && '0' != get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) :
?>
- <p class="nocomments"><?php _e( 'Comments are closed.', '_s' ); ?></p>
+ <p class="nocomments"><?php _e( 'Comments are closed.', 'debut' ); ?></p>
<?php endif; ?>
<?php comment_form(); ?>
View
8 content-page.php
@@ -2,8 +2,8 @@
/**
* The template used for displaying page content in page.php
*
- * @package _s
- * @since _s 1.0
+ * @package debut
+ * @since 1.0
*/
?>
@@ -14,7 +14,7 @@
<div class="entry-content">
<?php the_content(); ?>
- <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', '_s' ), 'after' => '</div>' ) ); ?>
- <?php edit_post_link( __( 'Edit', '_s' ), '<span class="edit-link">', '</span>' ); ?>
+ <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'debut' ), 'after' => '</div>' ) ); ?>
+ <?php edit_post_link( __( 'Edit', 'debut' ), '<span class="edit-link">', '</span>' ); ?>
</div><!-- .entry-content -->
</article><!-- #post-<?php the_ID(); ?> -->
View
22 content-single.php
@@ -1,7 +1,7 @@
<?php
/**
- * @package _s
- * @since _s 1.0
+ * @package debut
+ * @since 1.0
*/
?>
@@ -10,37 +10,37 @@
<h1 class="entry-title"><?php the_title(); ?></h1>
<div class="entry-meta">
- <?php _s_posted_on(); ?>
+ <?php debut_posted_on(); ?>
</div><!-- .entry-meta -->
</header><!-- .entry-header -->
<div class="entry-content">
<?php the_content(); ?>
- <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', '_s' ), 'after' => '</div>' ) ); ?>
+ <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'debut' ), 'after' => '</div>' ) ); ?>
</div><!-- .entry-content -->
<footer class="entry-meta">
<?php
/* translators: used between list items, there is a space after the comma */
- $category_list = get_the_category_list( __( ', ', '_s' ) );
+ $category_list = get_the_category_list( __( ', ', 'debut' ) );
/* translators: used between list items, there is a space after the comma */
$tag_list = get_the_tag_list( '', ', ' );
- if ( ! _s_categorized_blog() ) {
+ if ( ! debut_categorized_blog() ) {
// This blog only has 1 category so we just need to worry about tags in the meta text
if ( '' != $tag_list ) {
- $meta_text = __( 'This entry was tagged %2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', '_s' );
+ $meta_text = __( 'This entry was tagged %2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'debut' );
} else {
- $meta_text = __( 'Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', '_s' );
+ $meta_text = __( 'Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'debut' );
}
} else {
// But this blog has loads of categories so we should probably display them here
if ( '' != $tag_list ) {
- $meta_text = __( 'This entry was posted in %1$s and tagged %2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', '_s' );
+ $meta_text = __( 'This entry was posted in %1$s and tagged %2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'debut' );
} else {
- $meta_text = __( 'This entry was posted in %1$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', '_s' );
+ $meta_text = __( 'This entry was posted in %1$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'debut' );
}
} // end check for categories on this blog
@@ -54,6 +54,6 @@
);
?>
- <?php edit_post_link( __( 'Edit', '_s' ), '<span class="edit-link">', '</span>' ); ?>
+ <?php edit_post_link( __( 'Edit', 'debut' ), '<span class="edit-link">', '</span>' ); ?>
</footer><!-- .entry-meta -->
</article><!-- #post-<?php the_ID(); ?> -->
View
26 content.php
@@ -1,17 +1,17 @@
<?php
/**
- * @package _s
- * @since _s 1.0
+ * @package debut
+ * @since 1.0
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
- <h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', '_s' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
+ <h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'debut' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
<?php if ( 'post' == get_post_type() ) : ?>
<div class="entry-meta">
- <?php _s_posted_on(); ?>
+ <?php debut_posted_on(); ?>
</div><!-- .entry-meta -->
<?php endif; ?>
</header><!-- .entry-header -->
@@ -22,8 +22,8 @@
</div><!-- .entry-summary -->
<?php else : ?>
<div class="entry-content">
- <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', '_s' ) ); ?>
- <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', '_s' ), 'after' => '</div>' ) ); ?>
+ <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'debut' ) ); ?>
+ <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'debut' ), 'after' => '</div>' ) ); ?>
</div><!-- .entry-content -->
<?php endif; ?>
@@ -31,31 +31,31 @@
<?php if ( 'post' == get_post_type() ) : // Hide category and tag text for pages on Search ?>
<?php
/* translators: used between list items, there is a space after the comma */
- $categories_list = get_the_category_list( __( ', ', '_s' ) );
- if ( $categories_list && _s_categorized_blog() ) :
+ $categories_list = get_the_category_list( __( ', ', 'debut' ) );
+ if ( $categories_list && debut_categorized_blog() ) :
?>
<span class="cat-links">
- <?php printf( __( 'Posted in %1$s', '_s' ), $categories_list ); ?>
+ <?php printf( __( 'Posted in %1$s', 'debut' ), $categories_list ); ?>
</span>
<?php endif; // End if categories ?>
<?php
/* translators: used between list items, there is a space after the comma */
- $tags_list = get_the_tag_list( '', __( ', ', '_s' ) );
+ $tags_list = get_the_tag_list( '', __( ', ', 'debut' ) );
if ( $tags_list ) :
?>
<span class="sep">&nbsp&nbsp&bull;&nbsp&nbsp</span>
<span class="tag-links">
- <?php printf( __( 'Tagged %1$s', '_s' ), $tags_list ); ?>
+ <?php printf( __( 'Tagged %1$s', 'debut' ), $tags_list ); ?>
</span>
<?php endif; // End if $tags_list ?>
<?php endif; // End if 'post' == get_post_type() ?>
<?php if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?>
<span class="sep">&nbsp&nbsp&bull;&nbsp&nbsp</span>
- <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', '_s' ), __( '1 Comment', '_s' ), __( '% Comments', '_s' ) ); ?></span>
+ <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'debut' ), __( '1 Comment', 'debut' ), __( '% Comments', 'debut' ) ); ?></span>
<?php endif; ?>
- <?php edit_post_link( __( 'Edit', '_s' ), '<span class="sep">&nbsp&nbsp&bull;&nbsp&nbsp</span><span class="edit-link">', '</span>' ); ?>
+ <?php edit_post_link( __( 'Edit', 'debut' ), '<span class="sep">&nbsp&nbsp&bull;&nbsp&nbsp</span><span class="edit-link">', '</span>' ); ?>
</footer><!-- #entry-meta -->
</article><!-- #post-<?php the_ID(); ?> -->
View
4 footer.php
@@ -13,10 +13,10 @@
<footer id="colophon" class="site-footer" role="contentinfo">
<div class="wp-credit">
- <?php printf( __( 'Proudly powered by %s.', 'straightup' ), '<a href="http://wordpress.org/" target="_blank">WordPress</a>' ); ?>
+ <?php printf( __( 'Proudly powered by %s.', 'debut' ), '<a href="http://wordpress.org/" target="_blank">WordPress</a>' ); ?>
</div><!-- .wp-credit -->
<div class="dev-credit">
- <?php printf( __( '%1$s theme by %2$s.', 'straightup' ), '<a href="https://github.com/kwight/debut/" target="_blank">Debut</a>', '<a href="http://kwight.ca/" rel="designer" target="_blank">kwight</a>' ); ?>
+ <?php printf( __( '%1$s theme by %2$s.', 'debut' ), '<a href="https://github.com/kwight/debut/" target="_blank">Debut</a>', '<a href="http://kwight.ca/" rel="designer" target="_blank">kwight</a>' ); ?>
</div><!-- .dev-credit -->
</footer><!-- #colophon .site-footer -->
View
123 functions.php
@@ -1,20 +1,20 @@
<?php
/**
- * _s functions and definitions
+ * Debut functions and definitions
*
- * @package _s
- * @since _s 1.0
+ * @package debut
+ * @since 1.0
*/
/**
* Set the content width based on the theme's design and stylesheet.
*
- * @since _s 1.0
+ * @since 1.0
*/
if ( ! isset( $content_width ) )
$content_width = 620; /* pixels */
-if ( ! function_exists( '_s_setup' ) ):
+if ( ! function_exists( 'debut_setup' ) ):
/**
* Sets up theme defaults and registers support for various WordPress features.
*
@@ -22,9 +22,9 @@
* before the init hook. The init hook is too late for some features, such as indicating
* support post thumbnails.
*
- * @since _s 1.0
+ * @since 1.0
*/
-function _s_setup() {
+function debut_setup() {
/**
* Make theme available for translation
@@ -32,7 +32,7 @@ function _s_setup() {
* If you're building a theme based on _s, use a find and replace
* to change '_s' to the name of your theme in all the template files
*/
- load_theme_textdomain( '_s', get_template_directory() . '/languages' );
+ load_theme_textdomain( 'debut', get_template_directory() . '/languages' );
/**
* Add default posts and comments RSS feed links to head
@@ -40,28 +40,23 @@ function _s_setup() {
add_theme_support( 'automatic-feed-links' );
/**
- * Enable support for Post Thumbnails
- */
- add_theme_support( 'post-thumbnails' );
-
- /**
* This theme uses wp_nav_menu() in one location.
*/
register_nav_menus( array(
- 'primary' => __( 'Primary Menu', '_s' ),
+ 'primary' => __( 'Primary Menu', 'debut' ),
) );
}
endif; // _s_setup
-add_action( 'after_setup_theme', '_s_setup' );
+add_action( 'after_setup_theme', 'debut_setup' );
/**
* Register widgetized area and update sidebar with default widgets
*
- * @since _s 1.0
+ * @since 1.0
*/
-function _s_widgets_init() {
+function debut_widgets_init() {
register_sidebar( array(
- 'name' => __( 'Sidebar', '_s' ),
+ 'name' => __( 'Sidebar', 'debut' ),
'id' => 'sidebar',
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
'after_widget' => "</aside>",
@@ -69,7 +64,7 @@ function _s_widgets_init() {
'after_title' => '</h1>',
) );
register_sidebar( array(
- 'name' => __( 'Header', '_s' ),
+ 'name' => __( 'Header', 'debut' ),
'id' => 'header',
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
'after_widget' => "</aside>",
@@ -77,12 +72,12 @@ function _s_widgets_init() {
'after_title' => '</h1>',
) );
}
-add_action( 'widgets_init', '_s_widgets_init' );
+add_action( 'widgets_init', 'debut_widgets_init' );
/**
* Enqueue scripts and styles
*/
-function _s_scripts() {
+function debut_scripts() {
global $post;
wp_enqueue_style( 'style', get_stylesheet_uri() );
@@ -97,15 +92,15 @@ function _s_scripts() {
wp_enqueue_script( 'keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20120202' );
}
}
-add_action( 'wp_enqueue_scripts', '_s_scripts' );
+add_action( 'wp_enqueue_scripts', 'debut_scripts' );
/**
* Display navigation to next/previous pages when applicable
*
- * @since _s 1.0
+ * @since 1.0
*/
-if ( ! function_exists( '_s_content_nav' ) ):
-function _s_content_nav( $nav_id ) {
+if ( ! function_exists( 'debut_content_nav' ) ):
+function debut_content_nav( $nav_id ) {
global $wp_query;
$nav_class = 'site-navigation paging-navigation';
@@ -114,21 +109,21 @@ function _s_content_nav( $nav_id ) {
?>
<nav role="navigation" id="<?php echo $nav_id; ?>" class="<?php echo $nav_class; ?>">
- <h1 class="assistive-text"><?php _e( 'Post navigation', '_s' ); ?></h1>
+ <h1 class="assistive-text"><?php _e( 'Post navigation', 'debut' ); ?></h1>
<?php if ( is_single() ) : // navigation links for single posts ?>
- <?php previous_post_link( '<div class="nav-previous">%link</div>', '<span class="meta-nav">' . _x( '&larr;', 'Previous post link', '_s' ) . '</span> %title' ); ?>
- <?php next_post_link( '<div class="nav-next">%link</div>', '%title <span class="meta-nav">' . _x( '&rarr;', 'Next post link', '_s' ) . '</span>' ); ?>
+ <?php previous_post_link( '<div class="nav-previous">%link</div>', '<span class="meta-nav">' . _x( '&larr;', 'Previous post link', 'debut' ) . '</span> %title' ); ?>
+ <?php next_post_link( '<div class="nav-next">%link</div>', '%title <span class="meta-nav">' . _x( '&rarr;', 'Next post link', 'debut' ) . '</span>' ); ?>
<?php elseif ( $wp_query->max_num_pages > 1 && ( is_home() || is_archive() || is_search() ) ) : // navigation links for home, archive, and search pages ?>
<?php if ( get_next_posts_link() ) : ?>
- <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">&larr;</span> Older posts', '_s' ) ); ?></div>
+ <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">&larr;</span> Older posts', 'debut' ) ); ?></div>
<?php endif; ?>
<?php if ( get_previous_posts_link() ) : ?>
- <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">&rarr;</span>', '_s' ) ); ?></div>
+ <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">&rarr;</span>', 'debut' ) ); ?></div>
<?php endif; ?>
<?php endif; ?>
@@ -136,33 +131,33 @@ function _s_content_nav( $nav_id ) {
</nav><!-- #<?php echo $nav_id; ?> -->
<?php
}
-endif; // _s_content_nav
+endif;
/**
* Prints HTML with meta information for the current post-date/time and author.
*
- * @since _s 1.0
+ * @since 1.0
*/
-if ( ! function_exists( '_s_posted_on' ) ) :
-function _s_posted_on() {
- printf( __( 'Posted on <a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s" pubdate>%4$s</time></a><span class="byline"> by <span class="author vcard"><a class="url fn n" href="%5$s" title="%6$s" rel="author">%7$s</a></span></span>', '_s' ),
+if ( ! function_exists( 'debut_posted_on' ) ) :
+function debut_posted_on() {
+ printf( __( 'Posted on <a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s" pubdate>%4$s</time></a><span class="byline"> by <span class="author vcard"><a class="url fn n" href="%5$s" title="%6$s" rel="author">%7$s</a></span></span>', 'debut' ),
esc_url( get_permalink() ),
esc_attr( get_the_time() ),
esc_attr( get_the_date( 'c' ) ),
esc_html( get_the_date() ),
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
- esc_attr( sprintf( __( 'View all posts by %s', '_s' ), get_the_author() ) ),
+ esc_attr( sprintf( __( 'View all posts by %s', 'debut' ), get_the_author() ) ),
esc_html( get_the_author() )
);
}
endif;
/**
- * Returns true if a blog has more than 1 category
+ * Returns true if a blog has more than one category
*
- * @since _s 1.0
+ * @since 1.0
*/
-function _s_categorized_blog() {
+function debut_categorized_blog() {
if ( false === ( $all_the_cool_cats = get_transient( 'all_the_cool_cats' ) ) ) {
// Create an array of all the categories that are attached to posts
$all_the_cool_cats = get_categories( array(
@@ -176,25 +171,25 @@ function _s_categorized_blog() {
}
if ( '1' != $all_the_cool_cats ) {
- // This blog has more than 1 category so _s_categorized_blog should return true
+ // This blog has more than 1 category so debut_categorized_blog should return true
return true;
} else {
- // This blog has only 1 category so _s_categorized_blog should return false
+ // This blog has only 1 category so debut_categorized_blog should return false
return false;
}
}
/**
- * Flush out the transients used in _s_categorized_blog
+ * Flush out the transients used in debut_categorized_blog
*
- * @since _s 1.0
+ * @since 1.0
*/
-function _s_category_transient_flusher() {
+function debut_category_transient_flusher() {
// Like, beat it. Dig?
delete_transient( 'all_the_cool_cats' );
}
-add_action( 'edit_category', '_s_category_transient_flusher' );
-add_action( 'save_post', '_s_category_transient_flusher' );
+add_action( 'edit_category', 'debut_category_transient_flusher' );
+add_action( 'save_post', 'debut_category_transient_flusher' );
/**
* Generate comment HTML
@@ -220,16 +215,16 @@ function debut_comment( $comment, $args, $depth ) {
<?php echo get_avatar( $comment, 60 ); ?>
<div class="comment-meta">
<div class="perma-reply-edit">
- <a href="<?php echo esc_url( get_comment_link() ); ?>"><?php _e( 'Permalink', 'straightup' ); ?></a>
+ <a href="<?php echo esc_url( get_comment_link() ); ?>"><?php _e( 'Permalink', 'debut' ); ?></a>
<?php comment_reply_link( array_merge( $args, array( 'depth' => $depth, 'max_depth' => $args['max_depth'], 'before' => '&nbsp;&sdot;&nbsp;' ) ) );
- if ( $can_edit_post ) { edit_comment_link( __( 'Edit', 'straightup' ), '&nbsp;&sdot;&nbsp;' ); } ?>
+ if ( $can_edit_post ) { edit_comment_link( __( 'Edit', 'debut' ), '&nbsp;&sdot;&nbsp;' ); } ?>
</div><!-- .perma-reply-edit -->
<h4><?php echo get_comment_author_link(); ?></h4>
<?php comment_time( 'F j, Y \a\t g:ia' ); ?><br />
</div><!-- .comment-meta -->
<div id="comment-content-<?php comment_ID(); ?>" class="<?php echo esc_attr( $content_class ); ?>">
<?php if ( $comment->comment_approved == '0' ): ?>
- <p class="comment-awaiting"><?php esc_html_e( 'Your comment is awaiting moderation.', 'straightup' ); ?></p>
+ <p class="comment-awaiting"><?php esc_html_e( 'Your comment is awaiting moderation.', 'debut' ); ?></p>
<?php endif; ?>
<?php echo apply_filters( 'comment_text', $comment->comment_content ); ?>
</div>
@@ -245,21 +240,21 @@ function debut_comment( $comment, $args, $depth ) {
*
* @since 1.0
*/
-if ( ! function_exists( 'straightup_comment_form_args' ) ) {
+if ( ! function_exists( 'debut_comment_form_args' ) ) {
- function straightup_comment_form_args( $args ) {
+ function debut_comment_form_args( $args ) {
$args[ 'fields' ] = array(
- 'author' => '<div class="comment-form-author"><label for="author" class="assistive-text">' . esc_html__( 'Name', 'straightup' ) . '</label><input type="text" class="field" name="author" id="author" aria-required="true" placeholder="' . esc_attr__( 'Name', 'straightup' ) . '" /></div><!-- .comment-form-author -->',
- 'email' => '<div class="comment-form-email"><label for="email" class="assistive-text">' . esc_html__( 'Email', 'straightup' ) . '</label><input type="text" class="field" name="email" id="email" aria-required="true" placeholder="' . esc_attr__( 'Email', 'straightup' ) . '" /></div><!-- .comment-form-email -->',
- 'url' => '<div class="comment-form-url"><label for="url" class="assistive-text">' . esc_html__( 'Website', 'straightup' ) . '</label><input type="text" class="field" name="url" id="url" placeholder="' . esc_attr__( 'Website', 'straightup' ) . '" /></div><!-- .comment-form-url -->'
+ 'author' => '<div class="comment-form-author"><label for="author" class="assistive-text">' . esc_html__( 'Name', 'debut' ) . '</label><input type="text" class="field" name="author" id="author" aria-required="true" placeholder="' . esc_attr__( 'Name', 'debut' ) . '" /></div><!-- .comment-form-author -->',
+ 'email' => '<div class="comment-form-email"><label for="email" class="assistive-text">' . esc_html__( 'Email', 'debut' ) . '</label><input type="text" class="field" name="email" id="email" aria-required="true" placeholder="' . esc_attr__( 'Email', 'debut' ) . '" /></div><!-- .comment-form-email -->',
+ 'url' => '<div class="comment-form-url"><label for="url" class="assistive-text">' . esc_html__( 'Website', 'debut' ) . '</label><input type="text" class="field" name="url" id="url" placeholder="' . esc_attr__( 'Website', 'debut' ) . '" /></div><!-- .comment-form-url -->'
);
- $args[ 'comment_field' ] = '<div class="comment-form-comment"><label for="comment" class="assistive-text">' . esc_html__( 'Comment', 'straightup' ) . '</label><textarea id="comment" name="comment" rows="8" aria-required="true" placeholder="' . esc_attr__( 'Comment', 'straightup' ) . '"></textarea></div><!-- .comment-form-comment -->';
- $args[ 'comment_notes_before' ] = '<p class="comment-notes">' . esc_html__( 'Your email will not be published. Name and Email fields are required.', 'straightup' ) . '</p>';
+ $args[ 'comment_field' ] = '<div class="comment-form-comment"><label for="comment" class="assistive-text">' . esc_html__( 'Comment', 'debut' ) . '</label><textarea id="comment" name="comment" rows="8" aria-required="true" placeholder="' . esc_attr__( 'Comment', 'debut' ) . '"></textarea></div><!-- .comment-form-comment -->';
+ $args[ 'comment_notes_before' ] = '<p class="comment-notes">' . esc_html__( 'Your email will not be published. Name and Email fields are required.', 'debut' ) . '</p>';
return $args;
}
}
-add_filter( 'comment_form_defaults', 'straightup_comment_form_args' );
+add_filter( 'comment_form_defaults', 'debut_comment_form_args' );
/**
* Remove ridiculous inline width style from captions
@@ -267,9 +262,9 @@ function straightup_comment_form_args( $args ) {
*
* @since 1.0
*/
-if ( ! function_exists( 'straightup_remove_caption_width' ) ) {
+if ( ! function_exists( 'debut_remove_caption_width' ) ) {
- function straightup_remove_caption_width( $current_html, $attr, $content ) {
+ function debut_remove_caption_width( $current_html, $attr, $content ) {
extract(shortcode_atts(array(
'id' => '',
'align' => 'alignnone',
@@ -286,7 +281,7 @@ function straightup_remove_caption_width( $current_html, $attr, $content ) {
}
}
-add_filter( 'img_caption_shortcode', 'straightup_remove_caption_width', 10, 3 );
+add_filter( 'img_caption_shortcode', 'debut_remove_caption_width', 10, 3 );
/**
* Add CSS class to menus for submenu indicator
@@ -296,7 +291,7 @@ function straightup_remove_caption_width( $current_html, $attr, $content ) {
*
* @since 1.0
*/
-class StraightUp_Page_Navigation_Walker extends Walker_Nav_Menu {
+class Debut_Page_Navigation_Walker extends Walker_Nav_Menu {
function display_element( $element, &$children_elements, $max_depth, $depth=0, $args, &$output ) {
$id_field = $this->db_fields['id'];
if ( !empty( $children_elements[ $element->$id_field ] ) ) {
@@ -311,15 +306,15 @@ function display_element( $element, &$children_elements, $max_depth, $depth=0, $
*
* @since 1.0
*/
-if ( ! function_exists( 'straightup_nav_menu_args' ) ) {
+if ( ! function_exists( 'debut_nav_menu_args' ) ) {
- function straightup_nav_menu_args( $args ) {
+ function debut_nav_menu_args( $args ) {
/**
* Set our new walker only if a child theme hasn't
* modified it to one level (naughty child theme...)
*/
if ( 1 !== $args[ 'depth' ] ) {
- $args[ 'walker' ] = new StraightUp_Page_Navigation_Walker;
+ $args[ 'walker' ] = new Debut_Page_Navigation_Walker;
}
return $args;
}
View
14 header.php
@@ -4,8 +4,8 @@
*
* Displays all of the <head> section and everything up till <div id="main">
*
- * @package _s
- * @since _s 1.0
+ * @package debut
+ * @since 1.0
*/
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
@@ -30,7 +30,7 @@
// Add a page number if necessary:
if ( $paged >= 2 || $page >= 2 )
- echo ' | ' . sprintf( __( 'Page %s', '_s' ), max( $paged, $page ) );
+ echo ' | ' . sprintf( __( 'Page %s', 'debut' ), max( $paged, $page ) );
?></title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
@@ -50,8 +50,8 @@
*/
?>
<nav role="navigation" class="site-navigation small-navigation">
- <h1 class="assistive-text"><?php _e( 'Menu', '_s' ); ?></h1>
- <div class="assistive-text skip-link"><a href="#content" title="<?php esc_attr_e( 'Skip to content', '_s' ); ?>"><?php _e( 'Skip to content', '_s' ); ?></a></div>
+ <h1 class="assistive-text"><?php _e( 'Menu', 'debut' ); ?></h1>
+ <div class="assistive-text skip-link"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'debut' ); ?>"><?php _e( 'Skip to content', 'debut' ); ?></a></div>
<button class="menu-button">Menu</button>
<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
</nav>
@@ -67,8 +67,8 @@
</header><!-- #masthead .site-header -->
<nav role="navigation" class="site-navigation main-navigation">
- <h1 class="assistive-text"><?php _e( 'Menu', '_s' ); ?></h1>
- <div class="assistive-text skip-link"><a href="#content" title="<?php esc_attr_e( 'Skip to content', '_s' ); ?>"><?php _e( 'Skip to content', '_s' ); ?></a></div>
+ <h1 class="assistive-text"><?php _e( 'Menu', 'debut' ); ?></h1>
+ <div class="assistive-text skip-link"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'debut' ); ?>"><?php _e( 'Skip to content', 'debut' ); ?></a></div>
<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
</nav>
View
26 image.php
@@ -2,8 +2,8 @@
/**
* The template for displaying image attachments.
*
- * @package _s
- * @since _s 1.0
+ * @package debut
+ * @since 1.0
*/
get_header();
@@ -21,7 +21,7 @@
<div class="entry-meta">
<?php
$metadata = wp_get_attachment_metadata();
- printf( __( 'Published <span class="entry-date"><time class="entry-date" datetime="%1$s" pubdate>%2$s</time></span> at <a href="%3$s" title="Link to full-size image">%4$s &times; %5$s</a> in <a href="%6$s" title="Return to %7$s" rel="gallery">%7$s</a>', '_s' ),
+ printf( __( 'Published <span class="entry-date"><time class="entry-date" datetime="%1$s" pubdate>%2$s</time></span> at <a href="%3$s" title="Link to full-size image">%4$s &times; %5$s</a> in <a href="%6$s" title="Return to %7$s" rel="gallery">%7$s</a>', 'debut' ),
esc_attr( get_the_date( 'c' ) ),
esc_html( get_the_date() ),
wp_get_attachment_url(),
@@ -31,12 +31,12 @@
get_the_title( $post->post_parent )
);
?>
- <?php edit_post_link( __( 'Edit', '_s' ), '<span class="sep">&nbsp&nbsp&bull;&nbsp&nbsp</span> <span class="edit-link">', '</span>' ); ?>
+ <?php edit_post_link( __( 'Edit', 'debut' ), '<span class="sep">&nbsp&nbsp&bull;&nbsp&nbsp</span> <span class="edit-link">', '</span>' ); ?>
</div><!-- .entry-meta -->
<nav id="image-navigation">
- <span class="previous-image"><?php previous_image_link( false, __( '&larr; Previous', '_s' ) ); ?></span>
- <span class="next-image"><?php next_image_link( false, __( 'Next &rarr;', '_s' ) ); ?></span>
+ <span class="previous-image"><?php previous_image_link( false, __( '&larr; Previous', 'debut' ) ); ?></span>
+ <span class="next-image"><?php next_image_link( false, __( 'Next &rarr;', 'debut' ) ); ?></span>
</nav><!-- #image-navigation -->
</header><!-- .entry-header -->
@@ -70,7 +70,7 @@
?>
<a href="<?php echo $next_attachment_url; ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php
- $attachment_size = apply_filters( '_s_attachment_size', array( 1200, 1200 ) ); // Filterable image size.
+ $attachment_size = apply_filters( 'debut_attachment_size', array( 1200, 1200 ) ); // Filterable image size.
echo wp_get_attachment_image( $post->ID, $attachment_size );
?></a>
</div><!-- .attachment -->
@@ -83,21 +83,21 @@
</div><!-- .entry-attachment -->
<?php the_content(); ?>
- <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', '_s' ), 'after' => '</div>' ) ); ?>
+ <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'debut' ), 'after' => '</div>' ) ); ?>
</div><!-- .entry-content -->
<footer class="entry-meta">
<?php if ( comments_open() && pings_open() ) : // Comments and trackbacks open ?>
- <?php printf( __( '<a class="comment-link" href="#respond" title="Post a comment">Post a comment</a> or leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', '_s' ), get_trackback_url() ); ?>
+ <?php printf( __( '<a class="comment-link" href="#respond" title="Post a comment">Post a comment</a> or leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'debut' ), get_trackback_url() ); ?>
<?php elseif ( ! comments_open() && pings_open() ) : // Only trackbacks open ?>
- <?php printf( __( 'Comments are closed, but you can leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', '_s' ), get_trackback_url() ); ?>
+ <?php printf( __( 'Comments are closed, but you can leave a trackback: <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.', 'debut' ), get_trackback_url() ); ?>
<?php elseif ( comments_open() && ! pings_open() ) : // Only comments open ?>
- <?php _e( 'Trackbacks are closed, but you can <a class="comment-link" href="#respond" title="Post a comment">post a comment</a>.', '_s' ); ?>
+ <?php _e( 'Trackbacks are closed, but you can <a class="comment-link" href="#respond" title="Post a comment">post a comment</a>.', 'debut' ); ?>
<?php elseif ( ! comments_open() && ! pings_open() ) : // Comments and trackbacks closed ?>
- <?php _e( 'Both comments and trackbacks are currently closed.', '_s' ); ?>
+ <?php _e( 'Both comments and trackbacks are currently closed.', 'debut' ); ?>
<?php endif; ?>
- <?php edit_post_link( __( 'Edit', '_s' ), ' <span class="edit-link">', '</span>' ); ?>
+ <?php edit_post_link( __( 'Edit', 'debut' ), ' <span class="edit-link">', '</span>' ); ?>
</footer><!-- .entry-meta -->
</article><!-- #post-<?php the_ID(); ?> -->
View
6 index.php
@@ -8,8 +8,8 @@
* E.g., it puts together the home page when no home.php file exists.
* Learn more: http://codex.wordpress.org/Template_Hierarchy
*
- * @package _s
- * @since _s 1.0
+ * @package debut
+ * @since 1.0
*/
get_header(); ?>
@@ -32,7 +32,7 @@
<?php endwhile; ?>
- <?php _s_content_nav( 'nav-below' ); ?>
+ <?php debut_content_nav( 'nav-below' ); ?>
<?php elseif ( current_user_can( 'edit_posts' ) ) : ?>
View
12 no-results.php
@@ -4,28 +4,28 @@
*
* Learn more: http://codex.wordpress.org/Template_Hierarchy
*
- * @package _s
- * @since _s 1.0
+ * @package debut
+ * @since 1.0
*/
?>
<article id="post-0" class="post no-results not-found">
<header class="entry-header">
- <h1 class="entry-title"><?php _e( 'Nothing Found', '_s' ); ?></h1>
+ <h1 class="entry-title"><?php _e( 'Nothing Found', 'debut' ); ?></h1>
</header><!-- .entry-header -->
<div class="entry-content">
<?php if ( is_home() ) { ?>
- <p><?php printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', '_s' ), admin_url( 'post-new.php' ) ); ?></p>
+ <p><?php printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'debut' ), admin_url( 'post-new.php' ) ); ?></p>
<?php } elseif ( is_search() ) { ?>
- <p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', '_s' ); ?></p>
+ <p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'debut' ); ?></p>
<?php } else { ?>
- <p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', '_s' ); ?></p>
+ <p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'debut' ); ?></p>
<?php } ?>
</div><!-- .entry-content -->
View
4 page.php
@@ -7,8 +7,8 @@
* and that other 'pages' on your WordPress site will use a
* different template.
*
- * @package _s
- * @since _s 1.0
+ * @package debut
+ * @since 1.0
*/
get_header(); ?>
View
8 search.php
@@ -2,8 +2,8 @@
/**
* The template for displaying Search Results pages.
*
- * @package _s
- * @since _s 1.0
+ * @package debut
+ * @since 1.0
*/
get_header(); ?>
@@ -14,7 +14,7 @@
<?php if ( have_posts() ) : ?>
<header class="page-header">
- <h1 class="page-title"><?php printf( __( 'Search Results for: %s', '_s' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
+ <h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'debut' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
</header>
<?php /* Start the Loop */ ?>
@@ -24,7 +24,7 @@
<?php endwhile; ?>
- <?php _s_content_nav( 'nav-below' ); ?>
+ <?php debut_content_nav( 'nav-below' ); ?>
<?php else : ?>
View
12 searchform.php
@@ -1,13 +1,13 @@
<?php
/**
- * The template for displaying search forms in _s
+ * The template for displaying search forms in Debut
*
- * @package _s
- * @since _s 1.0
+ * @package debut
+ * @since 1.0
*/
?>
<form method="get" id="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>" role="search">
- <label for="s" class="assistive-text"><?php _e( 'Search', '_s' ); ?></label>
- <input type="text" class="field" name="s" id="s" placeholder="<?php esc_attr_e( 'Search &hellip;', '_s' ); ?>" />
- <input type="submit" class="submit" name="submit" id="searchsubmit" value="<?php esc_attr_e( 'Search', '_s' ); ?>" />
+ <label for="s" class="assistive-text"><?php _e( 'Search', 'debut' ); ?></label>
+ <input type="text" class="field" name="s" id="s" placeholder="<?php esc_attr_e( 'Search &hellip;', 'debut' ); ?>" />
+ <input type="submit" class="submit" name="submit" id="searchsubmit" value="<?php esc_attr_e( 'Search', 'debut' ); ?>" />
</form>
View
2  sidebar-header.php
@@ -2,7 +2,7 @@
/**
* The sidebar area on the right side of the header.
*
- * @since _s 1.0
+ * @since 1.0
*/
?>
<div id="tertiary" class="widget-area" role="complementary">
View
8 sidebar.php
@@ -2,8 +2,8 @@
/**
* The Sidebar containing the main widget areas.
*
- * @package _s
- * @since _s 1.0
+ * @package debut
+ * @since 1.0
*/
?>
<div id="secondary" class="widget-area" role="complementary">
@@ -15,14 +15,14 @@
</aside>
<aside id="archives" class="widget">
- <h1 class="widget-title"><?php _e( 'Archives', '_s' ); ?></h1>
+ <h1 class="widget-title"><?php _e( 'Archives', 'debut' ); ?></h1>
<ul>
<?php wp_get_archives( array( 'type' => 'monthly' ) ); ?>
</ul>
</aside>
<aside id="meta" class="widget">
- <h1 class="widget-title"><?php _e( 'Meta', '_s' ); ?></h1>
+ <h1 class="widget-title"><?php _e( 'Meta', 'debut' ); ?></h1>
<ul>
<?php wp_register(); ?>
<li><?php wp_loginout(); ?></li>
View
6 single.php
@@ -2,8 +2,8 @@
/**
* The Template for displaying all single posts.
*
- * @package _s
- * @since _s 1.0
+ * @package debut
+ * @since 1.0
*/
get_header(); ?>
@@ -15,7 +15,7 @@
<?php get_template_part( 'content', 'single' ); ?>
- <?php _s_content_nav( 'nav-below' ); ?>
+ <?php debut_content_nav( 'nav-below' ); ?>
<?php
// If comments are open or we have at least one comment, load up the comment template
Please sign in to comment.
Something went wrong with that request. Please try again.