add title attribute on attachment list items
This commit is contained in:
parent
5a3d01423d
commit
592e0bc505
@ -197,7 +197,10 @@ class AttachmentListItem extends Widget
|
|||||||
}
|
}
|
||||||
|
|
||||||
function linkAttr() {
|
function linkAttr() {
|
||||||
return array('class' => 'attachment', 'href' => $this->attachment->url, 'id' => 'attachment-' . $this->attachment->id);
|
return array('class' => 'attachment',
|
||||||
|
'href' => $this->attachment->url,
|
||||||
|
'id' => 'attachment-' . $this->attachment->id,
|
||||||
|
'title' => $this->title());
|
||||||
}
|
}
|
||||||
|
|
||||||
function showLink() {
|
function showLink() {
|
||||||
@ -244,8 +247,9 @@ class AttachmentListItem extends Widget
|
|||||||
case 'image/jpeg':
|
case 'image/jpeg':
|
||||||
$thumb = (object)array();
|
$thumb = (object)array();
|
||||||
$thumb->url = $enc->url;
|
$thumb->url = $enc->url;
|
||||||
$thumb->width = 100;
|
// @fixme use the given width/height aspect
|
||||||
$thumb->height = 75; // @fixme
|
$thumb->width = common_config('attachments', 'thumb_width');
|
||||||
|
$thumb->height = common_config('attachments', 'thumb_height');
|
||||||
return $thumb;
|
return $thumb;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user