class InlineAttachmentListItem extends AttachmentListItem
{
+ protected $thumb;
+
function show()
{
- if ($this->attachment->isEnclosure()) {
+ $this->thumb = parent::getThumbInfo();
+ if (!empty($this->thumb)) {
parent::show();
}
+
+ }
+
+ function getThumbInfo()
+ {
+ return $this->thumb;
}
function showLink() {
$this->out->elementEnd('a');
}
+ /**
+ * Build HTML attributes for the link
+ * @return array
+ */
+ function linkAttr()
+ {
+ $attr = parent::linkAttr();
+ $attr['class'] = 'attachment-thumbnail';
+ return $attr;
+ }
+
/**
* start a single notice.
*