diff options
author | Robin Millette <millette@controlyourself.ca> | 2009-05-25 15:38:50 -0400 |
---|---|---|
committer | Robin Millette <millette@controlyourself.ca> | 2009-05-25 15:38:50 -0400 |
commit | 594454ced3d02ceb766bdbdce1dbfa871abec464 (patch) | |
tree | 3fe511866e9a5c077be0c5e64aab931ab0fdbaec /lib/attachmentlist.php | |
parent | 7923e84fba66d8e3e7ec24a8a663f0c2c0f0e533 (diff) |
Single anchor to include thumbnail and title for attachment
Diffstat (limited to 'lib/attachmentlist.php')
-rw-r--r-- | lib/attachmentlist.php | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/attachmentlist.php b/lib/attachmentlist.php index 52aa5d9ee..2a0114b12 100644 --- a/lib/attachmentlist.php +++ b/lib/attachmentlist.php @@ -198,23 +198,22 @@ class AttachmentListItem extends Widget $attr = $this->linkAttr(); $text = $this->linkTitle(); $this->out->elementStart('h4'); - $this->out->element('a', $attr, $text); - + $this->out->elementStart('a', $attr); + $this->out->element('span', null, $text); + $this->showRepresentation(); + $this->out->elementEnd('a'); $this->out->elementEnd('h4'); } function showNoticeAttachment() { $this->showLink(); - $this->showRepresentation(); } function showRepresentation() { $thumbnail = File_thumbnail::staticGet('file_id', $this->attachment->id); if (!empty($thumbnail)) { - $this->out->elementStart('a', $this->linkAttr()/*'href' => $this->linkTo()*/); $this->out->element('img', array('alt' => 'nothing to say', 'src' => $thumbnail->url, 'width' => $thumbnail->width, 'height' => $thumbnail->height)); - $this->out->elementEnd('a'); } } |