'
',
'close' => '
',
'content' => get_the_title( wc_get_page_id( 'shop' ) ),
'context' => 'entry-title',
) );
} elseif ( is_home() && 'posts' === get_option( 'show_on_front' ) ) {
genesis_markup( array(
'open' => '',
'close' => '
',
'content' => apply_filters( 'child_theme_latest_posts_title', __( 'Latest Posts', 'child-theme-library' ) ),
'context' => 'entry-title',
) );
} elseif ( is_404() ) {
genesis_markup( array(
'open' => '',
'close' => '
',
'content' => apply_filters( 'genesis_404_entry_title', __( 'Not found, error 404', 'child-theme-library' ) ),
'context' => 'entry-title',
) );
} elseif ( is_search() ) {
genesis_markup( array(
'open' => '',
'close' => '
',
'content' => apply_filters( 'genesis_search_title_text', __( 'Search results for: ', 'child-theme-library' ) ) . get_search_query(),
'context' => 'entry-title',
) );
} elseif ( is_page_template( 'page_blog.php' ) ) {
do_action( 'genesis_archive_title_descriptions', get_the_title(), '', 'posts-page-description' );
} elseif ( is_singular() ) {
genesis_do_post_title();
}
}
/**
* Display page excerpt.
*
* Prints the correct excerpt on a per page basis. If on the WooCommerce shop
* page then the products result count is be displayed instead of the page
* excerpt. Also, if on a single product then no excerpt will be output.
*
* @since 1.0.0
*
* @return void
*/
function child_theme_hero_section_excerpt() {
if ( class_exists( 'WooCommerce' ) && is_shop() ) {
woocommerce_result_count();
} elseif ( is_home() && 'posts' === get_option( 'show_on_front' ) ) {
printf( '%s
', apply_filters( 'child_theme_latest_posts_excerpt', 'Showing the latest posts' ) );
} elseif ( is_search() ) {
$id = get_page_by_path( 'search' );
if ( has_excerpt( $id ) ) {
printf( '%s
', do_shortcode( get_the_excerpt( $id ) ) );
}
} elseif ( is_404() ) {
$id = get_page_by_path( 'error' );
if ( has_excerpt( $id ) ) {
printf( '%s
', do_shortcode( get_the_excerpt( $id ) ) );
}
} //elseif ( ( is_singular() ) && ! is_singular( 'product' ) && has_excerpt() ) {
//printf( '%s
', do_shortcode( get_the_excerpt() ) );
//}
}
/**
* Display the hero section.
*
* Conditionally outputs the opening and closing hero section markup and runs
* the hero_section hook which all of our hero functions are hooked to.
*
* @since 1.0.0
*
* @return void
*/
function child_theme_hero_section_display() {
// Output hero section markup.
genesis_markup( array(
'open' => '',
'context' => 'hero-section',
) );
/**
* Do hero section hook.
*
* @hooked child_theme_hero_section_title - 10
* @hooked child_theme_hero_section_excerpt - 20
* @hooked genesis_do_posts_page_heading
* @hooked genesis_do_date_archive_title
* @hooked genesis_do_blog_template_heading
* @hooked genesis_do_taxonomy_title_description
* @hooked genesis_do_author_title_description
* @hooked genesis_do_cpt_archive_title_description
*/
do_action( 'child_theme_hero_section' );
// Output hero section markup.
genesis_markup( array(
'close' => '
',
'context' => 'hero-section',
) );
}
/**
* Adds featured image above the entry content.
*
* @since 1.0.0
*/
function authority_featured_image() {
//$add_single_image = get_theme_mod( 'authority_single_image_setting', authority_customizer_get_default_image_setting() );
$image = genesis_get_image(
array(
'format' => 'html',
'size' => 'hero',
'context' => '',
'attr' => array(
'alt' => the_title_attribute( 'echo=0' ),
'class' => 'yeuchaybo-single-image',
),
)
);
if ( $image && is_singular( array ('post', 'event' ) ) ){
printf( '%s
', $image );
}
}