diff --git a/archive.php b/archive.php
index dc2b8d84..0e123599 100644
--- a/archive.php
+++ b/archive.php
@@ -25,7 +25,9 @@ get_header(); ?>
- 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
+ 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
-
+
- 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
+ 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
-
+
-
+
diff --git a/functions.php b/functions.php
index ae316420..61bc7a16 100644
--- a/functions.php
+++ b/functions.php
@@ -14,7 +14,6 @@ if ( ! function_exists( '_s_setup' ) ) :
* as indicating support for post thumbnails.
*/
function _s_setup() {
-
/*
* Make theme available for translation.
* Translations can be filed in the /languages/ directory.
@@ -39,7 +38,7 @@ function _s_setup() {
*
* @link http://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails
*/
- //add_theme_support( 'post-thumbnails' );
+ add_theme_support( 'post-thumbnails' );
// This theme uses wp_nav_menu() in one location.
register_nav_menus( array(
@@ -51,7 +50,11 @@ function _s_setup() {
* to output valid HTML5.
*/
add_theme_support( 'html5', array(
- 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption',
+ 'search-form',
+ 'comment-form',
+ 'comment-list',
+ 'gallery',
+ 'caption',
) );
/*
@@ -59,7 +62,11 @@ function _s_setup() {
* See http://codex.wordpress.org/Post_Formats
*/
add_theme_support( 'post-formats', array(
- 'aside', 'image', 'video', 'quote', 'link',
+ 'aside',
+ 'image',
+ 'video',
+ 'quote',
+ 'link',
) );
// Set up the WordPress core custom background feature.
@@ -120,7 +127,7 @@ add_action( 'wp_enqueue_scripts', '_s_scripts' );
/**
* Implement the Custom Header feature.
*/
-//require get_template_directory() . '/inc/custom-header.php';
+require get_template_directory() . '/inc/custom-header.php';
/**
* Custom template tags for this theme.
diff --git a/header.php b/header.php
index 462e0a91..f42b2db1 100644
--- a/header.php
+++ b/header.php
@@ -6,6 +6,7 @@
*
* @package _s
*/
+
?>
>
diff --git a/inc/custom-header.php b/inc/custom-header.php
index 6129f950..eba24410 100644
--- a/inc/custom-header.php
+++ b/inc/custom-header.php
@@ -4,13 +4,12 @@
* http://codex.wordpress.org/Custom_Headers
*
* You can add an optional custom header image to header.php like so ...
-
+ *
-
*
* @package _s
*/
@@ -46,7 +45,7 @@ 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: HEADER_TEXTCOLOR is default, hide text (returns 'blank') or any hex value
+ // get_header_textcolor() options: HEADER_TEXTCOLOR is default, hide text (returns 'blank') or any hex value.
if ( HEADER_TEXTCOLOR == $header_text_color ) {
return;
}
@@ -64,7 +63,7 @@ function _s_header_style() {
clip: rect(1px, 1px, 1px, 1px);
}
.site-title a,
@@ -124,4 +123,4 @@ function _s_admin_header_image() {
= 2 || $page >= 2 ) && ! is_404() ) {
$title .= " $sep " . sprintf( esc_html__( 'Page %s', '_s' ), max( $paged, $page ) );
}
diff --git a/inc/jetpack.php b/inc/jetpack.php
index aa9a33eb..a9990be2 100644
--- a/inc/jetpack.php
+++ b/inc/jetpack.php
@@ -19,9 +19,12 @@ function _s_jetpack_setup() {
} // end function _s_jetpack_setup
add_action( 'after_setup_theme', '_s_jetpack_setup' );
+/**
+ * Custom render function for Infinite Scroll.
+ */
function _s_infinite_scroll_render() {
while ( have_posts() ) {
the_post();
get_template_part( 'template-parts/content', get_post_format() );
}
-} // end function _s_infinite_scroll_render
\ No newline at end of file
+} // end function _s_infinite_scroll_render
diff --git a/inc/template-tags.php b/inc/template-tags.php
index 94b77bd5..fb865c04 100644
--- a/inc/template-tags.php
+++ b/inc/template-tags.php
@@ -92,7 +92,7 @@ function _s_posted_on() {
'' . esc_html( get_the_author() ) . ''
);
- echo '' . $posted_on . ' ' . $byline . ''; // WPCS: XSS OK
+ echo '' . $posted_on . ' ' . $byline . ''; // WPCS: XSS OK.
}
endif;
@@ -107,13 +107,13 @@ function _s_entry_footer() {
/* translators: used between list items, there is a space after the comma */
$categories_list = get_the_category_list( esc_html__( ', ', '_s' ) );
if ( $categories_list && _s_categorized_blog() ) {
- printf( '' . esc_html__( 'Posted in %1$s', '_s' ) . '', $categories_list ); // WPCS: XSS OK
+ 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__( ', ', '_s' ) );
if ( $tags_list ) {
- printf( '' . esc_html__( 'Tagged %1$s', '_s' ) . '', $tags_list ); // WPCS: XSS OK
+ printf( '' . esc_html__( 'Tagged %1$s', '_s' ) . '', $tags_list ); // WPCS: XSS OK.
}
}
@@ -189,7 +189,7 @@ function the_archive_title( $before = '', $after = '' ) {
$title = apply_filters( 'get_the_archive_title', $title );
if ( ! empty( $title ) ) {
- echo $before . $title . $after; // WPCS: XSS OK
+ echo $before . $title . $after; // WPCS: XSS OK.
}
}
endif;
@@ -216,7 +216,7 @@ function the_archive_description( $before = '', $after = '' ) {
*
* @param string $description Archive description to be displayed.
*/
- echo $before . $description . $after; // WPCS: XSS OK
+ echo $before . $description . $after; // WPCS: XSS OK.
}
}
endif;
diff --git a/index.php b/index.php
index fac92d74..f7399042 100644
--- a/index.php
+++ b/index.php
@@ -22,7 +22,9 @@ get_header(); ?>
-
+
diff --git a/single.php b/single.php
index f269842f..7f256a31 100644
--- a/single.php
+++ b/single.php
@@ -17,13 +17,13 @@ get_header(); ?>
-
+
diff --git a/template-parts/content-none.php b/template-parts/content-none.php
index aa2473f1..8b6e010d 100644
--- a/template-parts/content-none.php
+++ b/template-parts/content-none.php
@@ -6,6 +6,7 @@
*
* @package _s
*/
+
?>
\ No newline at end of file
+
diff --git a/template-parts/content-page.php b/template-parts/content-page.php
index a4557514..f0601c5c 100644
--- a/template-parts/content-page.php
+++ b/template-parts/content-page.php
@@ -4,6 +4,7 @@
*
* @package _s
*/
+
?>
>
@@ -25,3 +26,4 @@
', '' ); ?>
+
diff --git a/template-parts/content-search.php b/template-parts/content-search.php
index a045902b..fee2d2a4 100644
--- a/template-parts/content-search.php
+++ b/template-parts/content-search.php
@@ -6,6 +6,7 @@
*
* @package _s
*/
+
?>
>
@@ -27,3 +28,4 @@
+
diff --git a/template-parts/content-single.php b/template-parts/content-single.php
index 266d1600..4e8d7104 100644
--- a/template-parts/content-single.php
+++ b/template-parts/content-single.php
@@ -1,7 +1,10 @@
>
@@ -27,3 +30,4 @@
+
diff --git a/template-parts/content.php b/template-parts/content.php
index edbc5f24..e4611782 100644
--- a/template-parts/content.php
+++ b/template-parts/content.php
@@ -1,7 +1,10 @@
>
@@ -35,4 +38,4 @@
-
\ No newline at end of file
+