Merge branch 'master' into update-single-post-nav

This commit is contained in:
alaczek 2017-08-28 18:04:38 +10:00 committed by GitHub
commit 142e2d5030
41 changed files with 321 additions and 378 deletions

6
.github/PULL_REQUEST_TEMPLATE.md vendored Normal file
View File

@ -0,0 +1,6 @@
<!-- Thanks for contributing to Underscores! Please provide as much information as possible with your Pull Request by filling out the following - this helps make reviewing much quicker! -->
#### Changes proposed in this Pull Request:
#### Related issue(s):

View File

@ -8,6 +8,7 @@
# @link http://docs.travis-ci.com/user/migrating-from-legacy/#Why-migrate-to-container-based-infrastructure%3F # @link http://docs.travis-ci.com/user/migrating-from-legacy/#Why-migrate-to-container-based-infrastructure%3F
# @link http://docs.travis-ci.com/user/workers/container-based-infrastructure/#Routing-your-build-to-container-based-infrastructure # @link http://docs.travis-ci.com/user/workers/container-based-infrastructure/#Routing-your-build-to-container-based-infrastructure
sudo: false sudo: false
dist: trusty
# Declare project language. # Declare project language.
# @link http://about.travis-ci.org/docs/user/languages/php/ # @link http://about.travis-ci.org/docs/user/languages/php/
@ -22,6 +23,7 @@ matrix:
# Current $required_php_version for WordPress: 5.2.4 # Current $required_php_version for WordPress: 5.2.4
# aliased to 5.2.17 # aliased to 5.2.17
- php: '5.2' - php: '5.2'
dist: precise
# aliased to a recent 5.6.x version # aliased to a recent 5.6.x version
- php: '5.6' - php: '5.6'
env: SNIFF=1 env: SNIFF=1
@ -47,11 +49,11 @@ before_script:
- export PHPCS_DIR=/tmp/phpcs - export PHPCS_DIR=/tmp/phpcs
- export SNIFFS_DIR=/tmp/sniffs - export SNIFFS_DIR=/tmp/sniffs
# Install CodeSniffer for WordPress Coding Standards checks. # Install CodeSniffer for WordPress Coding Standards checks.
- if [[ "$SNIFF" == "1" ]]; then git clone -b 2.9 --depth 1 https://github.com/squizlabs/PHP_CodeSniffer.git $PHPCS_DIR; fi - if [[ "$SNIFF" == "1" ]]; then git clone -b 2.9.1 --depth 1 https://github.com/squizlabs/PHP_CodeSniffer.git $PHPCS_DIR; fi
# Install WordPress Coding Standards. # Install WordPress Coding Standards.
- if [[ "$SNIFF" == "1" ]]; then git clone -b master --depth 1 https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards.git $SNIFFS_DIR; fi - if [[ "$SNIFF" == "1" ]]; then git clone -b 0.11.0 --depth 1 https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards.git $SNIFFS_DIR; fi
# Install PHP Compatibility sniffs. # Install PHP Compatibility sniffs.
- if [[ "$SNIFF" == "1" ]]; then git clone -b master --depth 1 https://github.com/wimg/PHPCompatibility.git $SNIFFS_DIR/PHPCompatibility; fi - if [[ "$SNIFF" == "1" ]]; then git clone -b 7.1.5 --depth 1 https://github.com/wimg/PHPCompatibility.git $SNIFFS_DIR/PHPCompatibility; fi
# Set install path for PHPCS sniffs. # Set install path for PHPCS sniffs.
# @link https://github.com/squizlabs/PHP_CodeSniffer/blob/4237c2fc98cc838730b76ee9cee316f99286a2a7/CodeSniffer.php#L1941 # @link https://github.com/squizlabs/PHP_CodeSniffer/blob/4237c2fc98cc838730b76ee9cee316f99286a2a7/CodeSniffer.php#L1941
- if [[ "$SNIFF" == "1" ]]; then $PHPCS_DIR/scripts/phpcs --config-set installed_paths $SNIFFS_DIR; fi - if [[ "$SNIFF" == "1" ]]; then $PHPCS_DIR/scripts/phpcs --config-set installed_paths $SNIFFS_DIR; fi

View File

@ -32,11 +32,11 @@ If you want to set things up manually, download `_s` from GitHub. The first thin
OR OR
* Search for: `'_s'` and replace with: `'megatherium-is-awesome'` 1. Search for: `'_s'` and replace with: `'megatherium-is-awesome'`
* Search for: `_s_` and replace with: `megatherium_is_awesome_` 2. Search for: `_s_` and replace with: `megatherium_is_awesome_`
* Search for: `Text Domain: _s` and replace with: `Text Domain: megatherium-is-awesome` in style.css. 3. Search for: `Text Domain: _s` and replace with: `Text Domain: megatherium-is-awesome` in style.css.
* Search for: <code>&nbsp;_s</code> and replace with: <code>&nbsp;Megatherium_is_Awesome</code> 4. Search for: <code>&nbsp;_s</code> and replace with: <code>&nbsp;Megatherium_is_Awesome</code>
* Search for: `_s-` and replace with: `megatherium-is-awesome-` 5. Search for: `_s-` and replace with: `megatherium-is-awesome-`
Then, update the stylesheet header in `style.css` and the links in `footer.php` with your own information. Next, update or delete this readme. Then, update the stylesheet header in `style.css` and the links in `footer.php` with your own information. Next, update or delete this readme.

View File

@ -27,35 +27,25 @@ if ( post_password_required() ) {
if ( have_comments() ) : ?> if ( have_comments() ) : ?>
<h2 class="comments-title"> <h2 class="comments-title">
<?php <?php
$comment_count = get_comments_number(); $comment_count = get_comments_number();
if ( 1 === $comment_count ) { if ( 1 === $comment_count ) {
printf( printf(
/* translators: 1: title. */ /* translators: 1: title. */
esc_html_e( 'One thought on &ldquo;%1$s&rdquo;', '_s' ), esc_html_e( 'One thought on &ldquo;%1$s&rdquo;', '_s' ),
'<span>' . get_the_title() . '</span>' '<span>' . get_the_title() . '</span>'
); );
} else { } else {
printf( // WPCS: XSS OK. printf( // WPCS: XSS OK.
/* translators: 1: comment count number, 2: title. */ /* translators: 1: comment count number, 2: title. */
esc_html( _nx( '%1$s thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', $comment_count, 'comments title', '_s' ) ), esc_html( _nx( '%1$s thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', $comment_count, 'comments title', '_s' ) ),
number_format_i18n( $comment_count ), number_format_i18n( $comment_count ),
'<span>' . get_the_title() . '</span>' '<span>' . get_the_title() . '</span>'
); );
} }
?> ?>
</h2><!-- .comments-title --> </h2><!-- .comments-title -->
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?> <?php the_comments_navigation(); ?>
<nav id="comment-nav-above" class="navigation comment-navigation">
<h2 class="screen-reader-text"><?php esc_html_e( 'Comment navigation', '_s' ); ?></h2>
<div class="nav-links">
<div class="nav-previous"><?php previous_comments_link( esc_html__( 'Older Comments', '_s' ) ); ?></div>
<div class="nav-next"><?php next_comments_link( esc_html__( 'Newer Comments', '_s' ) ); ?></div>
</div><!-- .nav-links -->
</nav><!-- #comment-nav-above -->
<?php endif; // Check for comment navigation. ?>
<ol class="comment-list"> <ol class="comment-list">
<?php <?php
@ -66,29 +56,16 @@ if ( post_password_required() ) {
?> ?>
</ol><!-- .comment-list --> </ol><!-- .comment-list -->
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?> <?php the_comments_navigation();
<nav id="comment-nav-below" class="navigation comment-navigation">
<h2 class="screen-reader-text"><?php esc_html_e( 'Comment navigation', '_s' ); ?></h2>
<div class="nav-links">
<div class="nav-previous"><?php previous_comments_link( esc_html__( 'Older Comments', '_s' ) ); ?></div> // If comments are closed and there are comments, let's leave a little note, shall we?
<div class="nav-next"><?php next_comments_link( esc_html__( 'Newer Comments', '_s' ) ); ?></div> if ( ! comments_open() ) : ?>
<p class="no-comments"><?php esc_html_e( 'Comments are closed.', '_s' ); ?></p>
</div><!-- .nav-links -->
</nav><!-- #comment-nav-below -->
<?php <?php
endif; // Check for comment navigation. endif;
endif; // Check for have_comments(). endif; // Check for have_comments().
// If comments are closed and there are comments, let's leave a little note, shall we?
if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) : ?>
<p class="no-comments"><?php esc_html_e( 'Comments are closed.', '_s' ); ?></p>
<?php
endif;
comment_form(); comment_form();
?> ?>

View File

@ -8,78 +8,78 @@
*/ */
if ( ! function_exists( '_s_setup' ) ) : if ( ! function_exists( '_s_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 for post thumbnails.
*/
function _s_setup() {
/*
* Make theme available for translation.
* Translations can be filed in the /languages/ directory.
* 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' );
// Add default posts and comments RSS feed links to head.
add_theme_support( 'automatic-feed-links' );
/*
* Let WordPress manage the document title.
* By adding theme support, we declare that this theme does not use a
* hard-coded <title> tag in the document head, and expect WordPress to
* provide it for us.
*/
add_theme_support( 'title-tag' );
/*
* Enable support for Post Thumbnails on posts and pages.
*
* @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/
*/
add_theme_support( 'post-thumbnails' );
// This theme uses wp_nav_menu() in one location.
register_nav_menus( array(
'menu-1' => esc_html__( 'Primary', '_s' ),
) );
/*
* Switch default core markup for search form, comment form, and comments
* to output valid HTML5.
*/
add_theme_support( 'html5', array(
'search-form',
'comment-form',
'comment-list',
'gallery',
'caption',
) );
// Set up the WordPress core custom background feature.
add_theme_support( 'custom-background', apply_filters( '_s_custom_background_args', array(
'default-color' => 'ffffff',
'default-image' => '',
) ) );
// Add theme support for selective refresh for widgets.
add_theme_support( 'customize-selective-refresh-widgets' );
/** /**
* Add support for core custom logo. * Sets up theme defaults and registers support for various WordPress features.
* *
* @link https://codex.wordpress.org/Theme_Logo * 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 for post thumbnails.
*/ */
add_theme_support( 'custom-logo', array( function _s_setup() {
'height' => 250, /*
'width' => 250, * Make theme available for translation.
'flex-width' => true, * Translations can be filed in the /languages/ directory.
'flex-height' => true, * 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' );
// Add default posts and comments RSS feed links to head.
add_theme_support( 'automatic-feed-links' );
/*
* Let WordPress manage the document title.
* By adding theme support, we declare that this theme does not use a
* hard-coded <title> tag in the document head, and expect WordPress to
* provide it for us.
*/
add_theme_support( 'title-tag' );
/*
* Enable support for Post Thumbnails on posts and pages.
*
* @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/
*/
add_theme_support( 'post-thumbnails' );
// This theme uses wp_nav_menu() in one location.
register_nav_menus( array(
'menu-1' => esc_html__( 'Primary', '_s' ),
) );
/*
* Switch default core markup for search form, comment form, and comments
* to output valid HTML5.
*/
add_theme_support( 'html5', array(
'search-form',
'comment-form',
'comment-list',
'gallery',
'caption',
) );
// Set up the WordPress core custom background feature.
add_theme_support( 'custom-background', apply_filters( '_s_custom_background_args', array(
'default-color' => 'ffffff',
'default-image' => '',
) ) );
// Add theme support for selective refresh for widgets.
add_theme_support( 'customize-selective-refresh-widgets' );
/**
* Add support for core custom logo.
*
* @link https://codex.wordpress.org/Theme_Logo
*/
add_theme_support( 'custom-logo', array(
'height' => 250,
'width' => 250,
'flex-width' => true,
'flex-height' => true,
) );
}
endif; endif;
add_action( 'after_setup_theme', '_s_setup' ); add_action( 'after_setup_theme', '_s_setup' );
@ -152,4 +152,6 @@ require get_template_directory() . '/inc/customizer.php';
/** /**
* Load Jetpack compatibility file. * Load Jetpack compatibility file.
*/ */
require get_template_directory() . '/inc/jetpack.php'; if ( defined( 'JETPACK__VERSION' ) ) {
require get_template_directory() . '/inc/jetpack.php';
}

View File

@ -9,14 +9,15 @@
* @package _s * @package _s
*/ */
?><!doctype html> ?>
<!doctype html>
<html <?php language_attributes(); ?>> <html <?php language_attributes(); ?>>
<head> <head>
<meta charset="<?php bloginfo( 'charset' ); ?>"> <meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="http://gmpg.org/xfn/11"> <link rel="profile" href="http://gmpg.org/xfn/11">
<?php wp_head(); ?> <?php wp_head(); ?>
</head> </head>
<body <?php body_class(); ?>> <body <?php body_class(); ?>>

View File

@ -29,44 +29,44 @@ function _s_custom_header_setup() {
add_action( 'after_setup_theme', '_s_custom_header_setup' ); add_action( 'after_setup_theme', '_s_custom_header_setup' );
if ( ! function_exists( '_s_header_style' ) ) : if ( ! function_exists( '_s_header_style' ) ) :
/** /**
* Styles the header image and text displayed on the blog. * Styles the header image and text displayed on the blog.
* *
* @see _s_custom_header_setup(). * @see _s_custom_header_setup().
*/
function _s_header_style() {
$header_text_color = get_header_textcolor();
/*
* If no custom options for text are set, let's bail.
* get_header_textcolor() options: Any hex value, 'blank' to hide text. Default: add_theme_support( 'custom-header' ).
*/ */
if ( get_theme_support( 'custom-header', 'default-text-color' ) === $header_text_color ) { function _s_header_style() {
return; $header_text_color = get_header_textcolor();
}
// If we get this far, we have custom styles. Let's do this. /*
?> * If no custom options for text are set, let's bail.
<style type="text/css"> * get_header_textcolor() options: Any hex value, 'blank' to hide text. Default: add_theme_support( 'custom-header' ).
<?php */
if ( get_theme_support( 'custom-header', 'default-text-color' ) === $header_text_color ) {
return;
}
// If we get this far, we have custom styles. Let's do this.
?>
<style type="text/css">
<?php
// Has the text been hidden? // Has the text been hidden?
if ( ! display_header_text() ) : if ( ! display_header_text() ) :
?> ?>
.site-title, .site-title,
.site-description { .site-description {
position: absolute; position: absolute;
clip: rect(1px, 1px, 1px, 1px); clip: rect(1px, 1px, 1px, 1px);
} }
<?php <?php
// If the user has set a custom color for the text use that. // If the user has set a custom color for the text use that.
else : else :
?> ?>
.site-title a, .site-title a,
.site-description { .site-description {
color: #<?php echo esc_attr( $header_text_color ); ?>; color: #<?php echo esc_attr( $header_text_color ); ?>;
} }
<?php endif; ?> <?php endif; ?>
</style> </style>
<?php <?php
} }
endif; endif;

View File

@ -50,6 +50,6 @@ function _s_customize_partial_blogdescription() {
* Binds JS handlers to make Theme Customizer preview reload changes asynchronously. * Binds JS handlers to make Theme Customizer preview reload changes asynchronously.
*/ */
function _s_customize_preview_js() { function _s_customize_preview_js() {
wp_enqueue_script( '_s_customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '20151215', true ); wp_enqueue_script( '_s-customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '20151215', true );
} }
add_action( 'customize_preview_init', '_s_customize_preview_js' ); add_action( 'customize_preview_init', '_s_customize_preview_js' );

View File

@ -8,68 +8,85 @@
*/ */
if ( ! function_exists( '_s_posted_on' ) ) : if ( ! function_exists( '_s_posted_on' ) ) :
/** /**
* Prints HTML with meta information for the current post-date/time and author. * Prints HTML with meta information for the current post-date/time and author.
*/ */
function _s_posted_on() { function _s_posted_on() {
$time_string = '<time class="entry-date published updated" datetime="%1$s">%2$s</time>'; $time_string = '<time class="entry-date published updated" datetime="%1$s">%2$s</time>';
if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) { if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {
$time_string = '<time class="entry-date published" datetime="%1$s">%2$s</time><time class="updated" datetime="%3$s">%4$s</time>'; $time_string = '<time class="entry-date published" datetime="%1$s">%2$s</time><time class="updated" datetime="%3$s">%4$s</time>';
}
$time_string = sprintf( $time_string,
esc_attr( get_the_date( 'c' ) ),
esc_html( get_the_date() ),
esc_attr( get_the_modified_date( 'c' ) ),
esc_html( get_the_modified_date() )
);
$posted_on = sprintf(
/* translators: %s: post date. */
esc_html_x( 'Posted on %s', 'post date', '_s' ),
'<a href="' . esc_url( get_permalink() ) . '" rel="bookmark">' . $time_string . '</a>'
);
$byline = sprintf(
/* translators: %s: post author. */
esc_html_x( 'by %s', 'post author', '_s' ),
'<span class="author vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '">' . esc_html( get_the_author() ) . '</a></span>'
);
echo '<span class="posted-on">' . $posted_on . '</span><span class="byline"> ' . $byline . '</span>'; // WPCS: XSS OK.
} }
$time_string = sprintf( $time_string,
esc_attr( get_the_date( 'c' ) ),
esc_html( get_the_date() ),
esc_attr( get_the_modified_date( 'c' ) ),
esc_html( get_the_modified_date() )
);
$posted_on = sprintf(
/* translators: %s: post date. */
esc_html_x( 'Posted on %s', 'post date', '_s' ),
'<a href="' . esc_url( get_permalink() ) . '" rel="bookmark">' . $time_string . '</a>'
);
$byline = sprintf(
/* translators: %s: post author. */
esc_html_x( 'by %s', 'post author', '_s' ),
'<span class="author vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '">' . esc_html( get_the_author() ) . '</a></span>'
);
echo '<span class="posted-on">' . $posted_on . '</span><span class="byline"> ' . $byline . '</span>'; // WPCS: XSS OK.
}
endif; endif;
if ( ! function_exists( '_s_entry_footer' ) ) : if ( ! function_exists( '_s_entry_footer' ) ) :
/** /**
* Prints HTML with meta information for the categories, tags and comments. * Prints HTML with meta information for the categories, tags and comments.
*/ */
function _s_entry_footer() { function _s_entry_footer() {
// Hide category and tag text for pages. // Hide category and tag text for pages.
if ( 'post' === get_post_type() ) { if ( 'post' === get_post_type() ) {
/* translators: used between list items, there is a space after the comma */ /* translators: used between list items, there is a space after the comma */
$categories_list = get_the_category_list( esc_html__( ', ', '_s' ) ); $categories_list = get_the_category_list( esc_html__( ', ', '_s' ) );
if ( $categories_list ) { if ( $categories_list ) {
/* translators: 1: list of categories. */ /* translators: 1: list of categories. */
printf( '<span class="cat-links">' . esc_html__( 'Posted in %1$s', '_s' ) . '</span>', $categories_list ); // WPCS: XSS OK. printf( '<span class="cat-links">' . esc_html__( 'Posted in %1$s', '_s' ) . '</span>', $categories_list ); // WPCS: XSS OK.
}
/* translators: used between list items, there is a space after the comma */
$tags_list = get_the_tag_list( '', esc_html_x( ', ', 'list item separator', '_s' ) );
if ( $tags_list ) {
/* translators: 1: list of tags. */
printf( '<span class="tags-links">' . esc_html__( 'Tagged %1$s', '_s' ) . '</span>', $tags_list ); // WPCS: XSS OK.
}
} }
/* translators: used between list items, there is a space after the comma */ if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) {
$tags_list = get_the_tag_list( '', esc_html_x( ', ', 'list item separator', '_s' ) ); echo '<span class="comments-link">';
if ( $tags_list ) { comments_popup_link(
/* translators: 1: list of tags. */ sprintf(
printf( '<span class="tags-links">' . esc_html__( 'Tagged %1$s', '_s' ) . '</span>', $tags_list ); // WPCS: XSS OK. wp_kses(
/* translators: %s: post title */
__( 'Leave a Comment<span class="screen-reader-text"> on %s</span>', '_s' ),
array(
'span' => array(
'class' => array(),
),
)
),
get_the_title()
)
);
echo '</span>';
} }
}
if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) { edit_post_link(
echo '<span class="comments-link">';
comments_popup_link(
sprintf( sprintf(
wp_kses( wp_kses(
/* translators: %s: post title */ /* translators: %s: Name of current post. Only visible to screen readers */
__( 'Leave a Comment<span class="screen-reader-text"> on %s</span>', '_s' ), __( 'Edit <span class="screen-reader-text">%s</span>', '_s' ),
array( array(
'span' => array( 'span' => array(
'class' => array(), 'class' => array(),
@ -77,26 +94,9 @@ function _s_entry_footer() {
) )
), ),
get_the_title() get_the_title()
)
);
echo '</span>';
}
edit_post_link(
sprintf(
wp_kses(
/* translators: %s: Name of current post. Only visible to screen readers */
__( 'Edit <span class="screen-reader-text">%s</span>', '_s' ),
array(
'span' => array(
'class' => array(),
),
)
), ),
get_the_title() '<span class="edit-link">',
), '</span>'
'<span class="edit-link">', );
'</span>' }
);
}
endif; endif;

View File

@ -5,114 +5,73 @@ msgstr ""
"Project-Id-Version: _s 1.0.0\n" "Project-Id-Version: _s 1.0.0\n"
"Report-Msgid-Bugs-To: https://wordpress.org/tags/_s\n" "Report-Msgid-Bugs-To: https://wordpress.org/tags/_s\n"
"POT-Creation-Date: 2016-12-23 16:00+0100\n" "POT-Creation-Date: 2016-12-23 16:00+0100\n"
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2016-12-23 16:00+0100\n" "PO-Revision-Date: 2017-MO-DA HO:MI+ZONE\n"
"Last-Translator: \n" "Last-Translator:\n"
"Language-Team: \n" "Language-Team: LANGUAGE <LL@li.org>\n"
"X-Generator: grunt-wp-i18n 0.5.4\n"
#: 404.php:17 #: 404.php:17
#@ _s
msgid "Oops! That page can&rsquo;t be found." msgid "Oops! That page can&rsquo;t be found."
msgstr "" msgstr ""
#: 404.php:21 #: 404.php:21
#@ _s msgid ""
msgid "It looks like nothing was found at this location. Maybe try one of the links below or a search?" "It looks like nothing was found at this location. Maybe try one of the "
"links below or a search?"
msgstr "" msgstr ""
#: 404.php:33 #: 404.php:30
#@ _s
msgid "Most Used Categories" msgid "Most Used Categories"
msgstr "" msgstr ""
#: 404.php:47
#. translators: %1$s: smiley #. translators: %1$s: smiley
#: 404.php:51
#, php-format
#@ _s
msgid "Try looking in the monthly archives. %1$s" msgid "Try looking in the monthly archives. %1$s"
msgstr "" msgstr ""
#. translators: 1: title.
#: comments.php:34 #: comments.php:34
#, php-format #. translators: 1: title.
#@ _s
msgid "One thought on &ldquo;%1$s&rdquo;" msgid "One thought on &ldquo;%1$s&rdquo;"
msgstr "" msgstr ""
#. translators: 1: comment count number, 2: title. #: comments.php:67
#: comments.php:40
#, php-format
#@ _s
msgctxt "comments title"
msgid "%1$s thought on &ldquo;%2$s&rdquo;"
msgid_plural "%1$s thoughts on &ldquo;%2$s&rdquo;"
msgstr[0] ""
msgstr[1] ""
#: comments.php:50 comments.php:71
#@ _s
msgid "Comment navigation"
msgstr ""
#: comments.php:53 comments.php:74
#@ _s
msgid "Older Comments"
msgstr ""
#: comments.php:54 comments.php:75
#@ _s
msgid "Newer Comments"
msgstr ""
#: comments.php:88
#@ _s
msgid "Comments are closed." msgid "Comments are closed."
msgstr "" msgstr ""
#: footer.php:18 #: footer.php:18
#@ _s
msgid "https://wordpress.org/" msgid "https://wordpress.org/"
msgstr "" msgstr ""
#. translators: %s: CMS name, i.e. WordPress.
#: footer.php:20 #: footer.php:20
#, php-format #. translators: %s: CMS name, i.e. WordPress.
#@ _s
msgid "Proudly powered by %s" msgid "Proudly powered by %s"
msgstr "" msgstr ""
#. translators: 1: Theme name, 2: Theme author.
#: footer.php:25 #: footer.php:25
#, php-format #. translators: 1: Theme name, 2: Theme author.
#@ _s
msgid "Theme: %1$s by %2$s." msgid "Theme: %1$s by %2$s."
msgstr "" msgstr ""
#: functions.php:47 #: functions.php:47
#@ _s
msgid "Primary" msgid "Primary"
msgstr "" msgstr ""
#: functions.php:93 #: functions.php:105
#@ _s
msgid "Sidebar" msgid "Sidebar"
msgstr "" msgstr ""
#: functions.php:95 #: functions.php:107
#@ _s
msgid "Add widgets here." msgid "Add widgets here."
msgstr "" msgstr ""
#: header.php:24 #: header.php:24
#@ _s
msgid "Skip to content" msgid "Skip to content"
msgstr "" msgstr ""
#: header.php:44 #: header.php:45
#@ _s
msgid "Primary Menu" msgid "Primary Menu"
msgstr "" msgstr ""
@ -132,116 +91,112 @@ msgctxt "post date"
msgid "Posted on %s" msgid "Posted on %s"
msgstr "" msgstr ""
#. translators: %s: post author.
#: inc/template-tags.php:35
#, php-format
#@ _s
msgctxt "post author"
msgid "by %s"
msgstr ""
#. translators: used between list items, there is a space after the comma
#: inc/template-tags.php:52 #: inc/template-tags.php:52
#@ _s #. translators: used between list items, there is a space after the comma
msgid ", " msgid ", "
msgstr "" msgstr ""
#. translators: 1: list of categories.
#: inc/template-tags.php:55 #: inc/template-tags.php:55
#, php-format #. translators: 1: list of categories.
#@ _s
msgid "Posted in %1$s" msgid "Posted in %1$s"
msgstr "" msgstr ""
#. translators: used between list items, there is a space after the comma
#: inc/template-tags.php:59
#, php-format
#@ _s
msgctxt "list item separator"
msgid ", "
msgstr ""
#. translators: 1: list of tags.
#: inc/template-tags.php:62 #: inc/template-tags.php:62
#. translators: 1: list of tags.
msgid "Tagged %1$s" msgid "Tagged %1$s"
msgstr "" msgstr ""
#. translators: %s: post title
#: inc/template-tags.php:72 #: inc/template-tags.php:72
#, php-format #. translators: %s: post title
#@ _s
msgid "Leave a Comment<span class=\"screen-reader-text\"> on %s</span>" msgid "Leave a Comment<span class=\"screen-reader-text\"> on %s</span>"
msgstr "" msgstr ""
#. translators: %s: Name of current post. Only visible to screen readers
#: inc/template-tags.php:89 template-parts/content-page.php:35 #: inc/template-tags.php:89 template-parts/content-page.php:35
#, php-format #. translators: %s: Name of current post. Only visible to screen readers
#@ _s
msgid "Edit <span class=\"screen-reader-text\">%s</span>" msgid "Edit <span class=\"screen-reader-text\">%s</span>"
msgstr "" msgstr ""
#. translators: %s: search query.
#: search.php:21 #: search.php:21
#, php-format #. translators: %s: search query.
#@ _s
msgid "Search Results for: %s" msgid "Search Results for: %s"
msgstr "" msgstr ""
#: template-parts/content-none.php:14 #: template-parts/content-none.php:14
#@ _s
msgid "Nothing Found" msgid "Nothing Found"
msgstr "" msgstr ""
#. translators: 1: link to WP admin new post page.
#: template-parts/content-none.php:25 #: template-parts/content-none.php:25
#, php-format #. translators: 1: link to WP admin new post page.
#@ _s
msgid "Ready to publish your first post? <a href=\"%1$s\">Get started here</a>." msgid "Ready to publish your first post? <a href=\"%1$s\">Get started here</a>."
msgstr "" msgstr ""
#: template-parts/content-none.php:38 #: template-parts/content-none.php:38
#@ _s msgid ""
msgid "Sorry, but nothing matched your search terms. Please try again with some different keywords." "Sorry, but nothing matched your search terms. Please try again with some "
"different keywords."
msgstr "" msgstr ""
#: template-parts/content-none.php:44 #: template-parts/content-none.php:44
#@ _s msgid ""
msgid "It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help." "It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps "
"searching can help."
msgstr "" msgstr ""
#@ _s
#: template-parts/content-page.php:22 template-parts/content.php:45 #: template-parts/content-page.php:22 template-parts/content.php:45
msgid "Pages:" msgid "Pages:"
msgstr "" msgstr ""
#. translators: %s: Name of current post. Only visible to screen readers
#: template-parts/content.php:34 #: template-parts/content.php:34
#, php-format #. translators: %s: Name of current post. Only visible to screen readers
#@ _s
msgid "Continue reading<span class=\"screen-reader-text\"> \"%s\"</span>" msgid "Continue reading<span class=\"screen-reader-text\"> \"%s\"</span>"
msgstr "" msgstr ""
#. Theme Name of the plugin/theme #. Theme Name of the plugin/theme
#@ _s
msgid "_s" msgid "_s"
msgstr "" msgstr ""
#. Theme URI of the plugin/theme #. Theme URI of the plugin/theme
#@ _s
msgid "http://underscores.me/" msgid "http://underscores.me/"
msgstr "" msgstr ""
#. Description of the plugin/theme #. Description of the plugin/theme
#@ _s msgid ""
msgid "Hi. I'm a starter theme called <code>_s</code>, or <em>underscores</em>, if you like. I'm a theme meant for hacking so don't use me as a <em>Parent Theme</em>. Instead try turning me into the next, most awesome, WordPress theme out there. That's what I'm here for." "Hi. I'm a starter theme called <code>_s</code>, or <em>underscores</em>, if "
"you like. I'm a theme meant for hacking so don't use me as a <em>Parent "
"Theme</em>. Instead try turning me into the next, most awesome, WordPress "
"theme out there. That's what I'm here for."
msgstr "" msgstr ""
#. Author of the plugin/theme #. Author of the plugin/theme
#@ _s
msgid "Automattic" msgid "Automattic"
msgstr "" msgstr ""
#. Author URI of the plugin/theme #. Author URI of the plugin/theme
#@ _s
msgid "http://automattic.com/" msgid "http://automattic.com/"
msgstr "" msgstr ""
#: comments.php:40
#. translators: 1: comment count number, 2: title.
msgctxt "comments title"
msgid "%1$s thought on &ldquo;%2$s&rdquo;"
msgid_plural "%1$s thoughts on &ldquo;%2$s&rdquo;"
msgstr[0] ""
msgstr[1] ""
#: inc/template-tags.php:29
#. translators: %s: post date.
msgctxt "post date"
msgid "Posted on %s"
msgstr ""
#: inc/template-tags.php:35
#. translators: %s: post author.
msgctxt "post author"
msgid "by %s"
msgstr ""
#: inc/template-tags.php:59
#. translators: used between list items, there is a space after the comma
msgctxt "list item separator"
msgid ", "
msgstr ""

View File

@ -16,8 +16,8 @@
--> -->
<arg value="psvn"/> <arg value="psvn"/>
<!-- Only check the PHP files. JS files are checked separately with JSCS and JSHint. --> <!-- Only check the PHP, CSS and SCSS files. JS files are checked separately with JSCS and JSHint. -->
<arg name="extensions" value="php"/> <arg name="extensions" value="php,css,scss/css"/>
<!-- Check all files in this directory and the directories below it. --> <!-- Check all files in this directory and the directories below it. -->
<file>.</file> <file>.</file>

View File

@ -1,7 +1,7 @@
=== _s === === _s ===
Contributors: automattic Contributors: automattic
Tags: Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
Requires at least: 4.0 Requires at least: 4.0
Tested up to: 4.8 Tested up to: 4.8

View File

@ -10,7 +10,7 @@
// Loops to enumerate the classes for gallery columns. // Loops to enumerate the classes for gallery columns.
@for $i from 2 through 9 { @for $i from 2 through 9 {
.gallery-columns-#{$i} { .gallery-columns-#{$i} & {
max-width: ( 100% / $i ); max-width: ( 100% / $i );
} }
} }

View File

@ -15,7 +15,7 @@ object {
} }
/* Make sure logo link wraps around logo image. */ /* Make sure logo link wraps around logo image. */
.custom-logo-link{ .custom-logo-link {
display: inline-block; display: inline-block;
} }

View File

@ -6,7 +6,7 @@
margin: 0 0 1.5em; margin: 0 0 1.5em;
} }
.updated:not(.published){ .updated:not(.published) {
display: none; display: none;
} }

View File

@ -8,7 +8,7 @@ Version: 1.0.0
License: GNU General Public License v2 or later License: GNU General Public License v2 or later
License URI: LICENSE License URI: LICENSE
Text Domain: _s Text Domain: _s
Tags: Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
This theme, like WordPress, is licensed under the GPL. This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others. Use it to make something cool, have fun, and share what you've learned with others.

View File

@ -15,7 +15,7 @@ get_header(); ?>
<?php <?php
while ( have_posts() ) : the_post(); while ( have_posts() ) : the_post();
get_template_part( 'template-parts/content', get_post_format() ); get_template_part( 'template-parts/content', get_post_type() );
the_post_navigation( array( the_post_navigation( array(
'prev_text' => '<span class="nav-subtitle">' . __( 'Previous:', '_s' ) . '</span> <span class="nav-title">%title</span>', 'prev_text' => '<span class="nav-subtitle">' . __( 'Previous:', '_s' ) . '</span> <span class="nav-title">%title</span>',

View File

@ -8,7 +8,7 @@ Version: 1.0.0
License: GNU General Public License v2 or later License: GNU General Public License v2 or later
License URI: LICENSE License URI: LICENSE
Text Domain: _s Text Domain: _s
Tags: Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
This theme, like WordPress, is licensed under the GPL. This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others. Use it to make something cool, have fun, and share what you've learned with others.
@ -818,7 +818,7 @@ object {
} }
/* Make sure logo link wraps around logo image. */ /* Make sure logo link wraps around logo image. */
.custom-logo-link{ .custom-logo-link {
display: inline-block; display: inline-block;
} }