From: Sarven Capadisli Date: Sun, 14 Mar 2010 19:01:24 +0000 (-0400) Subject: Using rel=external instead of class=external for jOverlay title link X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3c5586d4bd2b00a2c3a140830fcc7b3e15898242;p=quix0rs-gnu-social.git Using rel=external instead of class=external for jOverlay title link --- diff --git a/lib/attachmentlist.php b/lib/attachmentlist.php index fe38281af9..b503bfb45e 100644 --- a/lib/attachmentlist.php +++ b/lib/attachmentlist.php @@ -248,9 +248,7 @@ class Attachment extends AttachmentListItem $this->out->elementStart('div', array('id' => 'attachment_view', 'class' => 'hentry')); $this->out->elementStart('div', 'entry-title'); - $this->out->elementStart('a', $this->linkAttr()); - $this->out->element('span', null, $this->linkTitle()); - $this->out->elementEnd('a'); + $this->out->element('a', $this->linkAttr(), $this->linkTitle()); $this->out->elementEnd('div'); $this->out->elementStart('div', 'entry-content'); @@ -296,7 +294,7 @@ class Attachment extends AttachmentListItem } function linkAttr() { - return array('class' => 'external', 'href' => $this->attachment->url); + return array('rel' => 'external', 'href' => $this->attachment->url); } function linkTitle() { diff --git a/theme/base/css/display.css b/theme/base/css/display.css index 782d3dc714..a2e4cdf2af 100644 --- a/theme/base/css/display.css +++ b/theme/base/css/display.css @@ -1326,7 +1326,7 @@ margin-bottom:0; padding:11px; min-height:auto; } -#jOverlayContent .external span { +#jOverlayContent .entry-title { display:block; margin-bottom:11px; }