', esc_url( treviso_get_the_logo() ), esc_attr( get_bloginfo( 'name' ) ) ); } else { printf( '%s', esc_html( get_bloginfo( 'name' ) ) ); } } endif; if ( ! function_exists( 'treviso_hero_section' ) ) : /** * Prints HTML for an optional hero section with post thumbnail as a background, title and tag. */ function treviso_hero_section() { $post = get_queried_object(); $hero_classes = array( 'hero', 'hero-featured', 'is-medium' ); if ( has_post_thumbnail() ) { $hero_classes[] = 'has-bg'; } if ( true === get_theme_mod( 'content_hero_parallax' ) ) { $hero_classes[] = 'parallax'; } ?>
ID ); if ( $categories ) { echo '
'; foreach ( $categories as $category ) { echo sprintf( '%3$s', esc_url( get_category_link( $category->term_id ) ), /* translators: %s: category */ esc_attr( sprintf( __( 'View all posts in %s', 'treviso' ), $category->name ) ), esc_html( $category->name ) ); } echo '
'; } ?>

ID ) ); ?>

' . esc_html__( 'Powered by Treviso WordPress Theme', 'treviso' ) . ''; } else { printf( '
© 2021 %s, 
', esc_html( get_theme_mod( 'footer_copyrighttext' ) ) ); echo '
' . esc_html__( 'All rights reserved', 'treviso' ) . '
'; } } endif; if ( ! function_exists( 'treviso_posted_on' ) ) : /** * Prints HTML for the current post date. */ function treviso_posted_on() { ?> By '; comments_popup_link( sprintf( wp_kses( /* translators: %s: post title */ __( 'Leave comment on %s', 'treviso' ), array( 'span' => array( 'class' => array(), ), ) ), wp_kses_post( get_the_title() ) ) ); echo ''; } } endif; if ( ! function_exists( 'treviso_entry_footer' ) ) : /** * Prints HTML for the current post footer. */ function treviso_entry_footer() { if ( ! is_singular() ) { ?> %s', 'treviso' ), array( 'span' => array( 'class' => array(), ), ) ), wp_kses_post( get_the_title() ) ), '', '' ); } endif; if ( ! function_exists( 'treviso_post_thumbnail' ) ) : /** * Prints HTML for an optional post thumbnail. Wraps the post thumbnail in an * anchor element on index views, or a div element when on single views. * * @param string $size Image size to get. */ function treviso_post_thumbnail( $size = 'post-thumbnail' ) { if ( post_password_required() || is_attachment() || ! has_post_thumbnail() ) { return; } if ( is_singular() ) : ?>
the_title_attribute( array( 'echo' => false, ) ), ) ); ?> false ) ); if ( $categories ) { echo '
'; foreach ( $categories as $category ) { echo sprintf( '%3$s', esc_url( get_category_link( $category->term_id ) ), /* translators: %s: category */ esc_attr( sprintf( __( 'View all posts in %s', 'treviso' ), $category->name ) ), esc_html( $category->name ) ); } echo '
'; } } endif; if ( ! function_exists( 'treviso_post_tags' ) ) : /** * Prints HTML for the tags for a post. */ function treviso_post_tags() { $post_tags = get_the_tags(); if ( $post_tags ) { ?>
name ); ?>
' . "\n"; echo '