forked from mirror/_s
CS: fix up embedded PHP inconsistencies introduced in the mean time.
This commit is contained in:
parent
b26b6ebfa4
commit
ec877e48c3
4
404.php
4
404.php
|
@ -22,9 +22,9 @@ get_header();
|
|||
<p><?php esc_html_e( 'It looks like nothing was found at this location. Maybe try one of the links below or a search?', '_s' ); ?></p>
|
||||
|
||||
<?php
|
||||
get_search_form();
|
||||
get_search_form();
|
||||
|
||||
the_widget( 'WP_Widget_Recent_Posts' );
|
||||
the_widget( 'WP_Widget_Recent_Posts' );
|
||||
?>
|
||||
|
||||
<div class="widget widget_categories">
|
||||
|
|
|
@ -57,9 +57,9 @@ if ( ! function_exists( '_s_header_style' ) ) :
|
|||
position: absolute;
|
||||
clip: rect(1px, 1px, 1px, 1px);
|
||||
}
|
||||
<?php
|
||||
// If the user has set a custom color for the text use that.
|
||||
else :
|
||||
<?php
|
||||
// If the user has set a custom color for the text use that.
|
||||
else :
|
||||
?>
|
||||
.site-title a,
|
||||
.site-description {
|
||||
|
|
|
@ -124,24 +124,25 @@ function _s_post_thumbnail() {
|
|||
}
|
||||
|
||||
if ( is_singular() ) :
|
||||
?>
|
||||
?>
|
||||
|
||||
<div class="post-thumbnail">
|
||||
<?php the_post_thumbnail(); ?>
|
||||
</div><!-- .post-thumbnail -->
|
||||
<div class="post-thumbnail">
|
||||
<?php the_post_thumbnail(); ?>
|
||||
</div><!-- .post-thumbnail -->
|
||||
|
||||
<?php else : ?>
|
||||
|
||||
<a class="post-thumbnail" href="<?php the_permalink(); ?>" aria-hidden="true">
|
||||
<?php
|
||||
the_post_thumbnail( 'post-thumbnail', array(
|
||||
'alt' => the_title_attribute( array(
|
||||
'echo' => false,
|
||||
) ),
|
||||
) );
|
||||
the_post_thumbnail( 'post-thumbnail', array(
|
||||
'alt' => the_title_attribute( array(
|
||||
'echo' => false,
|
||||
) ),
|
||||
) );
|
||||
?>
|
||||
</a>
|
||||
|
||||
<?php endif; // End is_singular().
|
||||
<?php
|
||||
endif; // End is_singular().
|
||||
}
|
||||
endif;
|
||||
|
|
|
@ -161,7 +161,7 @@ if ( ! function_exists( '_s_woocommerce_wrapper_before' ) ) {
|
|||
?>
|
||||
<div id="primary" class="content-area">
|
||||
<main id="main" class="site-main" role="main">
|
||||
<?php
|
||||
<?php
|
||||
}
|
||||
}
|
||||
add_action( 'woocommerce_before_main_content', '_s_woocommerce_wrapper_before' );
|
||||
|
@ -175,7 +175,7 @@ if ( ! function_exists( '_s_woocommerce_wrapper_after' ) ) {
|
|||
* @return void
|
||||
*/
|
||||
function _s_woocommerce_wrapper_after() {
|
||||
?>
|
||||
?>
|
||||
</main><!-- #main -->
|
||||
</div><!-- #primary -->
|
||||
<?php
|
||||
|
@ -224,10 +224,10 @@ if ( ! function_exists( '_s_woocommerce_cart_link' ) ) {
|
|||
*/
|
||||
function _s_woocommerce_cart_link() {
|
||||
?>
|
||||
<a class="cart-contents" href="<?php echo esc_url( wc_get_cart_url() ); ?>" title="<?php esc_attr_e( 'View your shopping cart', '_s' ); ?>">
|
||||
<?php /* translators: number of items in the mini cart. */ ?>
|
||||
<span class="amount"><?php echo wp_kses_data( WC()->cart->get_cart_subtotal() ); ?></span> <span class="count"><?php echo wp_kses_data( sprintf( _n( '%d item', '%d items', WC()->cart->get_cart_contents_count(), '_s' ), WC()->cart->get_cart_contents_count() ) );?></span>
|
||||
</a>
|
||||
<a class="cart-contents" href="<?php echo esc_url( wc_get_cart_url() ); ?>" title="<?php esc_attr_e( 'View your shopping cart', '_s' ); ?>">
|
||||
<?php /* translators: number of items in the mini cart. */ ?>
|
||||
<span class="amount"><?php echo wp_kses_data( WC()->cart->get_cart_subtotal() ); ?></span> <span class="count"><?php echo wp_kses_data( sprintf( _n( '%d item', '%d items', WC()->cart->get_cart_contents_count(), '_s' ), WC()->cart->get_cart_contents_count() ) ); ?></span>
|
||||
</a>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
@ -251,11 +251,11 @@ if ( ! function_exists( '_s_woocommerce_header_cart' ) ) {
|
|||
</li>
|
||||
<li>
|
||||
<?php
|
||||
$instance = array(
|
||||
'title' => '',
|
||||
);
|
||||
$instance = array(
|
||||
'title' => '',
|
||||
);
|
||||
|
||||
the_widget( 'WC_Widget_Cart', $instance );
|
||||
the_widget( 'WC_Widget_Cart', $instance );
|
||||
?>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
|
@ -16,8 +16,8 @@
|
|||
<?php if ( 'post' === get_post_type() ) : ?>
|
||||
<div class="entry-meta">
|
||||
<?php
|
||||
_s_posted_on();
|
||||
_s_posted_by();
|
||||
_s_posted_on();
|
||||
_s_posted_by();
|
||||
?>
|
||||
</div><!-- .entry-meta -->
|
||||
<?php endif; ?>
|
||||
|
|
|
@ -21,10 +21,10 @@
|
|||
if ( 'post' === get_post_type() ) :
|
||||
?>
|
||||
<div class="entry-meta">
|
||||
<?php
|
||||
<?php
|
||||
_s_posted_on();
|
||||
_s_posted_by();
|
||||
?>
|
||||
?>
|
||||
</div><!-- .entry-meta -->
|
||||
<?php endif; ?>
|
||||
</header><!-- .entry-header -->
|
||||
|
|
Reference in New Issue