urlencode( implode( '|', $font_families ) ),
'subset' => urlencode( 'latin,latin-ext' ),
);
$fonts_url = add_query_arg( $query_args, '//fonts.googleapis.com/css' );
return $fonts_url;
}
}
if ( ! function_exists( 'aqwa_the_posts_navigation' ) ) {
/**
* Print the next and previous posts navigation.
*
* @since Aqwa 1.0
*
* @return void
*/
function aqwa_the_posts_navigation() {
if( !paginate_links() ){
return;
}
$args = array(
'mid_size' => 2,
'prev_next' => true,
'prev_text' => __('','aqwa'),
'next_text' => __('','aqwa'),
'type' => 'list',
);
echo '
';
}
}
if ( ! function_exists( 'aqwa_post_thumbnail' ) ) {
/**
* Displays an optional post thumbnail.
*
* Wraps the post thumbnail in an anchor element on index views, or a div
* element when on single views.
*
* @since Aqwa 1.0
*
* @return void
*/
function aqwa_post_thumbnail() {
if ( ! aqwa_can_show_post_thumbnail() ) {
return;
}
?>
';
/* translators: used between list items, there is a space after the comma. */
$categories_list = get_the_category_list( __( ', ', 'aqwa' ) );
if ( $categories_list ) {
echo sprintf( '
%1$s',
$categories_list
);
}
/* translators: used between list items, there is a space after the comma. */
$tags_list = get_the_tag_list( '', __( ', ', 'aqwa' ) );
if ( $tags_list ) {
echo sprintf(
'
%1$s', $tags_list
);
}
echo '
';
}
} else {
if ( has_category() || has_tag() ) {
echo '';
/* translators: used between list items, there is a space after the comma. */
$categories_list = get_the_category_list( __( ', ', 'aqwa' ) );
if ( $categories_list ) {
echo sprintf( '
%1$s ',
$categories_list
);
}
/* translators: used between list items, there is a space after the comma. */
$tags_list = get_the_tag_list( '', __( ', ', 'aqwa' ) );
if ( $tags_list ) {
echo sprintf(
'
%1$s', $tags_list
);
}
echo '
';
}
}
}
}
if ( ! function_exists( 'aqwa_posted_on' ) ) {
/**
* Prints HTML with meta information for the current post-date/time.
*
*/
function aqwa_posted_on() {
$time_string = '
sprintf( __( '
', 'aqwa' ), '%title',get_the_post_thumbnail($previous_post->ID,'thumbnail'),mysql2date('d F Y', $previous_post->post_date, false) ),
'next_text' => ''
)
);
}
if($next_post){
the_post_navigation(
array(
'prev_text' =>'',
'next_text' => sprintf( __( '
', 'aqwa' ),
'%title',
get_the_post_thumbnail($next_post->ID,'thumbnail'),mysql2date('d F Y', $next_post->post_date, false) ) , )
);
}
?>
= $instances ) {
break;
}
}
}
if ( $blocks_content ) {
echo apply_filters( 'the_content', $blocks_content ); // phpcs:ignore WordPress.Security.EscapeOutput
return true;
}
return false;
}