%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' ); function acuarela_category_list() { get_the_category_list( __( ', ', 'acuarela' ) ); } add_filter( 'get_the_category_list', 'acuarela_category_list' ); /** * 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() { $acuarela_theme_options = acuarela_get_options( 'acuarela_theme_options' ); if ( $acuarela_theme_options['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' ) ) : /** * Prints the markup for the navigation between posts and changes the default strings of the_post_navigation(). * * @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() { printf( '%2$s', esc_url( get_edit_comment_link() ), esc_html( __( 'Edit', 'acuarela' ) ) ); } add_filter( 'edit_comment_link', 'acuarela_edit_comment_link' );