< id="comment-">
%s', 'storefront' ), get_comment_author_link() ); ?>
comment_approved ) : ?>
' . get_comment_date() . ''; ?>
$add_below, 'depth' => $depth, 'max_depth' => $args['max_depth'], ) ) ); ?>
>
' . esc_html__( 'Built with Storefront & WooCommerce', 'storefront' ) . '.'; } else { $links_output .= '' . esc_html__( 'Built with Storefront', 'storefront' ) . '.'; } } if ( apply_filters( 'storefront_privacy_policy_link', true ) && function_exists( 'the_privacy_policy_link' ) ) { $separator = ''; $links_output = get_the_privacy_policy_link( '', ( ! empty( $links_output ) ? $separator : '' ) ) . $links_output; } $links_output = apply_filters( 'storefront_credit_links_output', $links_output ); ?>

' . $logo . '' : $logo; } else { $tag = is_home() ? 'h1' : 'div'; $html = '<' . esc_attr( $tag ) . ' class="beta site-title">' . esc_html( get_bloginfo( 'name' ) ) . ''; if ( '' !== get_bloginfo( 'description' ) ) { $html .= '

' . esc_html( get_bloginfo( 'description', 'display' ) ) . '

'; } } if ( ! $echo ) { return $html; } echo $html; // WPCS: XSS ok. } } if ( ! function_exists( 'storefront_primary_navigation' ) ) { /** * Display Primary Navigation * * @since 1.0.0 * @return void */ function storefront_primary_navigation() { ?>
', '' ); ?>
', '' ); ?>
'', ) ); ?>
', '' ); } else { the_title( sprintf( '

', esc_url( get_permalink() ) ), '

' ); } do_action( 'storefront_post_header_after' ); ?>
' . get_the_title() . '' ) ); do_action( 'storefront_post_content_after' ); wp_link_pages( array( 'before' => '', ) ); ?>
%2$s'; 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() ) ); $output_time_string = sprintf( '%2$s', esc_url( get_permalink() ), $time_string ); $posted_on = ' ' . /* translators: %s: post date */ sprintf( __( 'Posted on %s', 'storefront' ), $output_time_string ) . ''; // Author. $author = sprintf( '%1$s ', __( 'by', 'storefront' ), esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), esc_html( get_the_author() ) ); // Comments. $comments = ''; if ( ! post_password_required() && ( comments_open() || 0 !== intval( get_comments_number() ) ) ) { $comments_number = get_comments_number_text( __( 'Leave a comment', 'storefront' ), __( '1 Comment', 'storefront' ), __( '% Comments', 'storefront' ) ); $comments = sprintf( '%2$s', esc_url( get_comments_link() ), $comments_number ); } echo wp_kses( sprintf( '%1$s %2$s %3$s', $posted_on, $author, $comments ), array( 'span' => array( 'class' => array(), ), 'a' => array( 'href' => array(), 'title' => array(), 'rel' => array(), ), 'time' => array( 'datetime' => array(), 'class' => array(), ), ) ); } } if ( ! function_exists( 'storefront_edit_post_link' ) ) { /** * Display the edit link * * @since 2.5.0 */ function storefront_edit_post_link() { edit_post_link( sprintf( wp_kses( /* translators: %s: Name of current post. Only visible to screen readers */ __( 'Edit %s', 'storefront' ), array( 'span' => array( 'class' => array(), ), ) ), get_the_title() ), '' ); } } if ( ! function_exists( 'storefront_post_taxonomy' ) ) { /** * Display the post taxonomies * * @since 2.4.0 */ function storefront_post_taxonomy() { /* translators: used between list items, there is a space after the comma */ $categories_list = get_the_category_list( __( ', ', 'storefront' ) ); /* translators: used between list items, there is a space after the comma */ $tags_list = get_the_tag_list( '', __( ', ', 'storefront' ) ); ?> 'list', 'next_text' => _x( 'Next', 'Next post', 'storefront' ), 'prev_text' => _x( 'Previous', 'Previous post', 'storefront' ), ); the_posts_pagination( $args ); } } if ( ! function_exists( 'storefront_post_nav' ) ) { /** * Display navigation to next/previous post when applicable. */ function storefront_post_nav() { $args = array( 'next_text' => '' . esc_html__( 'Next post:', 'storefront' ) . ' %title', 'prev_text' => '' . esc_html__( 'Previous post:', 'storefront' ) . ' %title', ); the_post_navigation( $args ); } } if ( ! function_exists( 'storefront_posted_on' ) ) { /** * Prints HTML with meta information for the current post-date/time and author. * * @deprecated 2.4.0 */ function storefront_posted_on() { _deprecated_function( 'storefront_posted_on', '2.4.0' ); } } if ( ! function_exists( 'storefront_homepage_content' ) ) { /** * Display homepage content * Hooked into the `homepage` action in the homepage template * * @since 1.0.0 * @return void */ function storefront_homepage_content() { while ( have_posts() ) { the_post(); get_template_part( 'content', 'homepage' ); } // end of the loop. } } if ( ! function_exists( 'storefront_social_icons' ) ) { /** * Display social icons * If the subscribe and connect plugin is active, display the icons. * * @link http://wordpress.org/plugins/subscribe-and-connect/ * @since 1.0.0 */ function storefront_social_icons() { if ( class_exists( 'Subscribe_And_Connect' ) ) { echo '
'; subscribe_and_connect_connect(); echo '
'; } } } if ( ! function_exists( 'storefront_get_sidebar' ) ) { /** * Display storefront sidebar * * @uses get_sidebar() * @since 1.0.0 */ function storefront_get_sidebar() { get_sidebar(); } } if ( ! function_exists( 'storefront_post_thumbnail' ) ) { /** * Display post thumbnail * * @var $size thumbnail size. thumbnail|medium|large|full|$custom * @uses has_post_thumbnail() * @uses the_post_thumbnail * @param string $size the post thumbnail size. * @since 1.5.0 */ function storefront_post_thumbnail( $size = 'full' ) { if ( has_post_thumbnail() ) { the_post_thumbnail( $size ); } } } if ( ! function_exists( 'storefront_primary_navigation_wrapper' ) ) { /** * The primary navigation wrapper */ function storefront_primary_navigation_wrapper() { echo '
'; } } if ( ! function_exists( 'storefront_primary_navigation_wrapper_close' ) ) { /** * The primary navigation wrapper close */ function storefront_primary_navigation_wrapper_close() { echo '
'; } } if ( ! function_exists( 'storefront_header_container' ) ) { /** * The header container */ function storefront_header_container() { echo '
'; } } if ( ! function_exists( 'storefront_header_container_close' ) ) { /** * The header container close */ function storefront_header_container_close() { echo '
'; } }