
%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;
}
endif;
add_filter('get_custom_logo', 'bassist_custom_logo');
if ( ! function_exists( 'bassist_entry_footer' ) ) :
/**
* Prints the entry footer markup in index pages.
*
* @since Bassist 1.0.0
*/
function bassist_entry_footer() { ?>
'' .__( 'Older articles', 'bassist' ),
'next_text' => __( 'Newer articles', 'bassist' ) . '',
) );
else:
the_posts_pagination( array(
'prev_text' => '' . __( 'Previous page', 'bassist' ) . '',
'next_text' => '' . __( 'Next page', 'bassist' ) . '',
'before_page_number' => '' . __( 'Page', 'bassist' ) . ' ',
) );
endif;
}
endif;
if ( ! function_exists( 'bassist_post_navigation' ) ) :
/**
* Prints custom html markup for the_post_navigation()
*
* @since Bassist 1.0.0
*/
function bassist_post_navigation() {
the_post_navigation( array(
'next_text' => '' . __( 'Next post:', 'bassist' ) . ' ' .
'%title' .
'',
'prev_text' => '' .
'' . __( 'Previous post:', 'bassist' ) . ' ' .
'%title',
) );
}
endif;
if ( ! function_exists( 'bassist_comments_navigation' ) ) :
/**
* Prints custom html markup for the_comments_navigation()
*
* @since Bassist 1.0.0
*/
function bassist_comments_navigation() {
the_comments_navigation( array(
'prev_text' => ' '. __( 'Older', 'bassist' ),
'next_text' => __( 'Newer', 'bassist' ) . ' ',
));
}
endif;
if ( ! function_exists( 'bassist_parallax' ) ) :
/**
* Creates the markup of a parallax section if an image is loaded.
* @param int $number The number of the image and the parallax section.
* @since Bassist 1.0
*/
function bassist_parallax($number) {
$bassist_theme_options = bassist_get_options( 'bassist_theme_options' );
$image = $bassist_theme_options['parallax_background_image_'.$number];
if ( $image !== ''): ?>
%2$s', esc_url( $format_link ), esc_html( ucfirst($format) ));
break;
case 'image':
printf('%2$s', esc_url( $format_link ), esc_html( ucfirst($format) ));
break;
case 'video':
printf('%2$s', esc_url( $format_link ), esc_html( ucfirst($format) ));
break;
case 'quote':
printf('%2$s', esc_url( $format_link ), esc_html( ucfirst($format) ));
break;
case 'link':
printf('%2$s', esc_url( $format_link ), esc_html( ucfirst($format) ));
break;
case 'gallery':
printf('%2$s', esc_url( $format_link ), esc_html( ucfirst($format) ));
break;
case 'status':
printf('%2$s', esc_url( $format_link ), esc_html( ucfirst($format) ));
break;
case 'audio':
printf('%2$s', esc_url( $format_link ), esc_html( ucfirst($format) ));
break;
case 'chat':
printf('%2$s', esc_url( $format_link ), esc_html( ucfirst($format) ));
break;
default:
printf('%2$s', esc_url( $format_link ), __('Standard', 'bassist'));
break;
}
}
endif;
if ( ! function_exists( 'bassist_excerpt_more' ) && ! is_admin() ) :
/**
* Replaces "[...]" (appended to automatically generated excerpts) with ...
* and a Continue reading link.
*
* @since Bassist 1.0.0
*
* @param string $more Default Read More excerpt link.
* @return string Filtered Read More excerpt link.
*/
function bassist_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', 'bassist' ).' %s →', '' . get_the_title( get_the_ID() ) . '' )
);
return ' … ' . $link;
}
else{
return '. ';
}
}
add_filter( 'excerpt_more', 'bassist_excerpt_more' );
endif;
/**
* Filter the except length to 20 characters.
*
* @param int $length Excerpt length.
* @return int (Maybe) modified excerpt length.
*/
function bassist_excerpt_length( $length ) {
return 20;
}
add_filter( 'excerpt_length', 'bassist_excerpt_length', 999 );
/**
* Filter the edit comment link.
*/
function bassist_edit_comment_link() {
printf( '',
esc_url( get_edit_comment_link() ),
esc_html( __('Edit', 'bassist') )
);
}
add_filter( 'edit_comment_link', 'bassist_edit_comment_link' );