diff --git a/comments.php b/comments.php
index f378e3d8..30b2e88b 100644
--- a/comments.php
+++ b/comments.php
@@ -27,21 +27,21 @@ if ( post_password_required() ) {
if ( have_comments() ) : ?>
diff --git a/functions.php b/functions.php
index acf75f0b..76bac867 100644
--- a/functions.php
+++ b/functions.php
@@ -8,78 +8,78 @@
*/
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 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(
- 'height' => 250,
- 'width' => 250,
- 'flex-width' => true,
- 'flex-height' => true,
- ) );
-}
+ 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 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;
add_action( 'after_setup_theme', '_s_setup' );
diff --git a/inc/custom-header.php b/inc/custom-header.php
index 134f1077..97b1db28 100644
--- a/inc/custom-header.php
+++ b/inc/custom-header.php
@@ -29,44 +29,44 @@ function _s_custom_header_setup() {
add_action( 'after_setup_theme', '_s_custom_header_setup' );
if ( ! function_exists( '_s_header_style' ) ) :
-/**
- * Styles the header image and text displayed on the blog.
- *
- * @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' ).
+ /**
+ * Styles the header image and text displayed on the blog.
+ *
+ * @see _s_custom_header_setup().
*/
- if ( get_theme_support( 'custom-header', 'default-text-color' ) === $header_text_color ) {
- return;
- }
+ function _s_header_style() {
+ $header_text_color = get_header_textcolor();
- // If we get this far, we have custom styles. Let's do this.
- ?>
-
-
+ .site-title,
+ .site-description {
+ position: absolute;
+ clip: rect(1px, 1px, 1px, 1px);
+ }
+
+ .site-title a,
+ .site-description {
+ color: #;
+ }
+
+
+ %2$s';
- if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {
- $time_string = '';
+ /**
+ * Prints HTML with meta information for the current post-date/time and author.
+ */
+ function _s_posted_on() {
+ $time_string = '';
+ if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {
+ $time_string = '';
+ }
+
+ $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' ),
+ '' . $time_string . ''
+ );
+
+ $byline = sprintf(
+ /* translators: %s: post author. */
+ esc_html_x( 'by %s', 'post author', '_s' ),
+ '' . esc_html( get_the_author() ) . ''
+ );
+
+ echo '' . $posted_on . ' ' . $byline . ''; // 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' ),
- '' . $time_string . ''
- );
-
- $byline = sprintf(
- /* translators: %s: post author. */
- esc_html_x( 'by %s', 'post author', '_s' ),
- '' . esc_html( get_the_author() ) . ''
- );
-
- echo '' . $posted_on . ' ' . $byline . ''; // WPCS: XSS OK.
-
-}
endif;
if ( ! function_exists( '_s_entry_footer' ) ) :
-/**
- * Prints HTML with meta information for the categories, tags and comments.
- */
-function _s_entry_footer() {
- // Hide category and tag text for pages.
- if ( 'post' === get_post_type() ) {
- /* translators: used between list items, there is a space after the comma */
- $categories_list = get_the_category_list( esc_html__( ', ', '_s' ) );
- if ( $categories_list ) {
- /* translators: 1: list of categories. */
- printf( '' . esc_html__( 'Posted in %1$s', '_s' ) . '', $categories_list ); // WPCS: XSS OK.
+ /**
+ * Prints HTML with meta information for the categories, tags and comments.
+ */
+ function _s_entry_footer() {
+ // Hide category and tag text for pages.
+ if ( 'post' === get_post_type() ) {
+ /* translators: used between list items, there is a space after the comma */
+ $categories_list = get_the_category_list( esc_html__( ', ', '_s' ) );
+ if ( $categories_list ) {
+ /* translators: 1: list of categories. */
+ printf( '' . esc_html__( 'Posted in %1$s', '_s' ) . '', $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( '' . esc_html__( 'Tagged %1$s', '_s' ) . '', $tags_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( '' . esc_html__( 'Tagged %1$s', '_s' ) . '', $tags_list ); // WPCS: XSS OK.
+ if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) {
+ echo '';
}
- }
- if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) {
- echo '';
- }
-
- edit_post_link(
- sprintf(
- wp_kses(
- /* translators: %s: Name of current post. Only visible to screen readers */
- __( 'Edit %s', '_s' ),
- array(
- 'span' => array(
- 'class' => array(),
- ),
- )
),
- get_the_title()
- ),
- '',
- ''
- );
-}
+ '',
+ ''
+ );
+ }
endif;