%3$s

%4$s

', esc_url( home_url( '/' ) ), esc_attr( wp_get_attachment_image_url( get_theme_mod( 'custom_logo' ), 'full' ) ), esc_html( get_bloginfo( 'name' ) ) , esc_html( get_bloginfo( 'description' ) ) ); return $html; } add_filter( 'get_custom_logo', 'acuarela_the_custom_logo' ); /** * Prints a screen reader friendly list of the post's categories, hiding the icon and the commas. * * @since Acuarela 1.0.4 */ function acuarela_the_category_list() { // Translators: used between list items, there is a space after the comma. $separator = sprintf( '', __( ', ', 'acuarela' ) ); if ( get_the_category_list( $separator ) ) { printf( '%1$s%2$s', __( 'Published in', 'acuarela'), get_the_category_list( $separator ) ); } } /** * Prints the entry footer markup in index/archive pages. * * @since Acuarela 1.0 */ function acuarela_entry_footer() { ?> '%title' . __( 'Next post:', 'acuarela' ) . ' ', 'prev_text' => ' ' . __( 'Previous post:', 'acuarela' ) . ' %title', ) ); } endif; if ( ! function_exists( 'acuarela_blog_navigation' ) ) : /** * Applies the user's choice for navigation/pagination and changes the default strings in the_posts_navigation() and the_posts_pagination(). * * @since Acuarela 1.0 */ function acuarela_blog_navigation() { if ( 'navigation' === get_theme_mod( 'blog_navigation', 'navigation' ) ) : the_posts_navigation( array( 'prev_text' => '' . __( 'Older articles', 'acuarela' ) . '', 'next_text' => '' . __( 'Newer articles', 'acuarela' ) . '', ) ); else : the_posts_pagination( array( 'prev_text' => '' . __( 'Previous page', 'acuarela' ) . '', 'next_text' => '' . __( 'Next page', 'acuarela' ) . '', 'before_page_number' => '' . __( 'Page', 'acuarela' ) . ' ', ) ); endif; } endif; if ( ! function_exists( 'acuarela_comments_navigation' ) ) : /** * Prints custom html markup for the_comments_navigation() * * @since Acuarela 1.0 */ function acuarela_comments_navigation() { the_comments_navigation( array( 'prev_text' => ' ' . __( 'Older', 'acuarela' ), 'next_text' => __( 'Newer', 'acuarela' ) . ' ', )); } endif; if ( ! function_exists( 'acuarela_comments_popup_link' ) ) : /** * Changes the default strings of comments_popup_link(). * * @since Acuarela 1.0 */ function acuarela_comments_popup_link() { comments_popup_link( // Translators: there is a space after "on. '' . __( 'No comments on ', 'acuarela' ) . get_the_title() . '', // Translators: there is a space after "on. '' . __( 'Only one comment on ', 'acuarela' ) . get_the_title() . '', // Translators: there is a space after "on. '' . __( '% comments on ', 'acuarela' ) . get_the_title() . '' ); } endif; /** * Replaces "[...]" (appended to automatically generated excerpts) with ... * and a Continue reading link. * * @since Acuarela 1.0 * * @param string $more Default Read More excerpt link. * @return string Filtered Read More excerpt link. */ function acuarela_excerpt_more( $more ) { if ( ! is_single() ) { $link = sprintf( '%2$s', esc_url( get_permalink( get_the_ID() ) ), /* Translators: %s: Name of current post */ sprintf( __( 'More', 'acuarela' ) . ' %s ', '' . get_the_title( get_the_ID() ) . '' ) ); return ' … ' . $link; } else { return '. '; } } add_filter( 'excerpt_more', 'acuarela_excerpt_more' ); /** * Filter the except length to 20 characters. * * @param int $length Excerpt length. * @return int (Maybe) modified excerpt length. */ function acuarela_excerpt_length( $length ) { return 20; } add_filter( 'excerpt_length', 'acuarela_excerpt_length', 999 ); /** * Filters the edit comment link. */ function acuarela_edit_comment_link() { $link = sprintf( '%2$s', esc_url( get_edit_comment_link() ), esc_html( __( 'Edit', 'acuarela' ) ) ); return $link; } add_filter( 'edit_comment_link', 'acuarela_edit_comment_link' );