' . esc_html( $description ) . '
';
}
}
if ( ! $echo ) {
return $html;
}
echo $html;
}
}
if ( ! function_exists( 'shapla_primary_navigation' ) ) {
/**
* Display Primary Navigation
*
* @since 1.0.0
* @return void
*/
function shapla_primary_navigation() {
?>
';
if( $show_author_avatar ) {
echo '
' . get_avatar( get_the_author_meta( 'ID' ), 96 ) . '
';
}
if( $show_author_name ) {
echo '
' . esc_attr( __( 'Posted by ', 'shapla' ) ) . '
';
echo '
' . esc_html( get_the_author() ) . '';
}
echo '
';
}
if ( $show_date ) {
$time_string = ''. esc_html__('Posted on ', 'shapla' ) .'
' . $time_string . ' ';
}
if ( $show_category_list ) {
/* translators: used between list items, there is a space after the comma */
$categories_list = get_the_category_list( esc_html__( ' ', 'shapla' ) );
if ( $categories_list ) {
printf( ''. esc_html__( 'Posted in ', 'shapla' ) .'
' . esc_html__( '%1$s', 'shapla' ) . '
', $categories_list ); // WPCS: XSS OK.
}
}
if ( $show_tag_list ) {
/* translators: used between list items, there is a space after the comma */
$tags_list = get_the_tag_list( '', esc_html__( ', ', 'shapla' ) );
if ( $tags_list ) {
printf( '
'
' . esc_html__( 'Pages:', 'shapla' ),
'after' => '
',
) );
?>
→', 'shapla' ), array( 'span' => array( 'class' => array() ) ) ),
the_title( '
"', '"', false )
) );
do_action( 'shapla_post_content_after' );
wp_link_pages( array(
'before' => '
' . esc_html__( 'Pages:', 'shapla' ),
'after' => '
',
) );
?>
__( '«', 'shapla' ),
'next_text' => __( '»', 'shapla' )
) );
}
endif;