Using rel=external instead of class=external for jOverlay title link

This commit is contained in:
Sarven Capadisli 2010-03-14 15:01:24 -04:00
parent 00cac4c8b1
commit 2f380f6a9a
2 changed files with 3 additions and 5 deletions

View File

@ -248,9 +248,7 @@ class Attachment extends AttachmentListItem
$this->out->elementStart('div', array('id' => 'attachment_view', $this->out->elementStart('div', array('id' => 'attachment_view',
'class' => 'hentry')); 'class' => 'hentry'));
$this->out->elementStart('div', 'entry-title'); $this->out->elementStart('div', 'entry-title');
$this->out->elementStart('a', $this->linkAttr()); $this->out->element('a', $this->linkAttr(), $this->linkTitle());
$this->out->element('span', null, $this->linkTitle());
$this->out->elementEnd('a');
$this->out->elementEnd('div'); $this->out->elementEnd('div');
$this->out->elementStart('div', 'entry-content'); $this->out->elementStart('div', 'entry-content');
@ -296,7 +294,7 @@ class Attachment extends AttachmentListItem
} }
function linkAttr() { function linkAttr() {
return array('class' => 'external', 'href' => $this->attachment->url); return array('rel' => 'external', 'href' => $this->attachment->url);
} }
function linkTitle() { function linkTitle() {

View File

@ -1326,7 +1326,7 @@ margin-bottom:0;
padding:11px; padding:11px;
min-height:auto; min-height:auto;
} }
#jOverlayContent .external span { #jOverlayContent .entry-title {
display:block; display:block;
margin-bottom:11px; margin-bottom:11px;
} }