Moved the attachment representation outside of the anchor so that

onclick, it doesn't follow through on the href (e.g., it would play
the video in the overlay instead)
This commit is contained in:
Sarven Capadisli 2009-06-25 00:25:22 +00:00
parent 5067f2ba3a
commit fa57e717e3

View File

@ -249,8 +249,8 @@ class Attachment extends AttachmentListItem
$this->out->elementStart('div', 'entry-title'); $this->out->elementStart('div', 'entry-title');
$this->out->elementStart('a', $this->linkAttr()); $this->out->elementStart('a', $this->linkAttr());
$this->out->element('span', null, $this->linkTitle()); $this->out->element('span', null, $this->linkTitle());
$this->showRepresentation();
$this->out->elementEnd('a'); $this->out->elementEnd('a');
$this->showRepresentation();
$this->out->elementEnd('div'); $this->out->elementEnd('div');
if (!empty($this->oembed->author_name) || !empty($this->oembed->provider)) { if (!empty($this->oembed->author_name) || !empty($this->oembed->provider)) {