summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrion Vibber <brion@status.net>2010-11-09 16:43:37 -0800
committerBrion Vibber <brion@status.net>2010-11-09 16:43:37 -0800
commit592e0bc505c52a38952469bae0a081c224180bd8 (patch)
treef565b07033a309b468a120d1bb7c5f3fda74a02e
parent5a3d01423d378272218072136f2b3e46b5aa5269 (diff)
add title attribute on attachment list items
-rw-r--r--lib/attachmentlist.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/attachmentlist.php b/lib/attachmentlist.php
index f9ef7499e..6e127af86 100644
--- a/lib/attachmentlist.php
+++ b/lib/attachmentlist.php
@@ -197,7 +197,10 @@ class AttachmentListItem extends Widget
}
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() {
@@ -244,8 +247,9 @@ class AttachmentListItem extends Widget
case 'image/jpeg':
$thumb = (object)array();
$thumb->url = $enc->url;
- $thumb->width = 100;
- $thumb->height = 75; // @fixme
+ // @fixme use the given width/height aspect
+ $thumb->width = common_config('attachments', 'thumb_width');
+ $thumb->height = common_config('attachments', 'thumb_height');
return $thumb;
}
}