slug;
}
}
}
if ( $classes ) {
echo ' class="', join( ' ', $classes ), '"';
}
$aria_current = $queried_object_id === $r->post->ID ? ' aria-current="page"' : '';
?>>customs[ 'link_target' ]; echo $aria_current; ?>>the_first_post_image( $attr );
} else {
// look for featured image
if ( has_post_thumbnail() ) {
// if there is featured image then show it
$thumb = get_the_post_thumbnail( null, $this->customs[ 'thumb_dimensions' ], $attr );
} else {
// if user wishes first image trial
if ( $bools[ 'try_1st_img' ] ) {
// try to find and to display the first post image and to return success
$thumb = $this->the_first_post_image( $attr );
} // if try_1st_img
} // if has_post_thumbnail
} // if only_1st_img
if ( $thumb ) {
echo $thumb;
// if there is no image
} else {
// if user allows default image then
if ( $bools[ 'use_default' ] ) {
echo $default_img;
} // if use_default
} // if thumb
} // if show_thumb
// show title if wished
if ( ! $bools[ 'hide_title' ] ) {
?>get_the_trimmed_post_title();
if ( $post_title ) {
echo $post_title;
} else {
printf(
'%s %s %d',
$this->defaults[ 'no_title' ],
$this->defaults[ 'Post' ],
get_the_ID()
);
}
?>get_the_author() ); ?>
get_the_categories( $r->post->ID ); ?>
get_the_trimmed_excerpt(); ?>