Correct code indentation

This commit is contained in:
Truong Giang 2017-06-28 08:27:25 +07:00
parent e88d9e02d9
commit 9fcb8dab40
4 changed files with 193 additions and 193 deletions

View File

@ -8,14 +8,14 @@
*/
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() {
function _s_setup() {
/*
* Make theme available for translation.
* Translations can be filed in the /languages/ directory.
@ -79,7 +79,7 @@ function _s_setup() {
'flex-width' => true,
'flex-height' => true,
) );
}
}
endif;
add_action( 'after_setup_theme', '_s_setup' );

View File

@ -29,12 +29,12 @@ 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() {
function _s_header_style() {
$header_text_color = get_header_textcolor();
/*
@ -68,5 +68,5 @@ function _s_header_style() {
<?php endif; ?>
</style>
<?php
}
}
endif;

View File

@ -8,10 +8,10 @@
*/
if ( ! function_exists( '_s_posted_on' ) ) :
/**
/**
* 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>';
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>';
@ -38,14 +38,14 @@ function _s_posted_on() {
echo '<span class="posted-on">' . $posted_on . '</span><span class="byline"> ' . $byline . '</span>'; // 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() {
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 */
@ -98,5 +98,5 @@ function _s_entry_footer() {
'<span class="edit-link">',
'</span>'
);
}
}
endif;