Skip to content

Commit

Permalink
feat: add title attribute to the file source element
Browse files Browse the repository at this point in the history
  • Loading branch information
alistair3149 committed Jun 2, 2024
1 parent cc139d6 commit 071d790
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion includes/ThumbnailImage.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,11 @@ public function toHtml( $options = [] ) {

$sourceLink = Html::rawElement(
'a',
[ 'href' => $this->file->getUrl(), 'class' => 'mw-file-source' ],
[
'href' => $this->file->getUrl(),
'class' => 'mw-file-source',
'title' => $this->file->getTitle()->getFullText()
],
'<!-- Image link for Crawlers -->'
);

Expand Down

0 comments on commit 071d790

Please sign in to comment.