Skip to content

Commit

Permalink
fixed aria labelling on read more links
Browse files Browse the repository at this point in the history
  • Loading branch information
lcaple committed Jan 27, 2020
1 parent 512f34d commit b7bc3e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion widgets/class.uw-blogroll.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ function shortcode( $atts )
}
$html .= sprintf("<li><a class='widget-thumbnail' href='%s'>%s</a><a class='widget-link' href='%s'>%s<span>%s</span></a></li>", $link, $image, $link, $post->post_title, $byline);
} else if ($read_more == 'on') {
$html .= "<li><span><{$params->titletag}><a href=\"$link\">{$post->post_title}</a><p class=\"date\">{$date}</p></{$params->titletag}>{$author}<span$class>{$image}</span>{$excerpt}<p><a href=\"$link\" class=\"more\" aria-label\"Read more about {$post->post_title}\">Read more</a></p></span></li>";
$html .= "<li><span><{$params->titletag}><a href=\"$link\">{$post->post_title}</a><p class=\"date\">{$date}</p></{$params->titletag}>{$author}<span$class>{$image}</span>{$excerpt}<p><a href=\"$link\" class=\"more\" aria-label=\"Read more about {$post->post_title}\">Read more</a></p></span></li>";
} else {
$html .= "<li><span><{$params->titletag}><a href=\"$link\">{$post->post_title}</a><p class=\"date\">{$date}</p></{$params->titletag}>{$author}<span$class>{$image}</span>{$excerpt}</span></li>";
}
Expand Down

0 comments on commit b7bc3e0

Please sign in to comment.