summaryrefslogtreecommitdiff
path: root/lib/mailbox.php
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@controlyourself.ca>2009-08-31 17:52:45 +0000
committerSarven Capadisli <csarven@controlyourself.ca>2009-08-31 17:52:45 +0000
commit9f372da3da4bd445175eda9155fa7fdd13d3c85e (patch)
tree80fc67c5ed9bb05b36f38c071dd8a746ef6ad336 /lib/mailbox.php
parent87ae90c9037a6ff2fed2612a5d5e16707aa05b6e (diff)
Removed <dl> structure from MailboxAction::showMessage. Same as
committ e0b877b26c5e93809b2a53b6c46326d5e31fa0e8.
Diffstat (limited to 'lib/mailbox.php')
-rw-r--r--lib/mailbox.php30
1 files changed, 12 insertions, 18 deletions
diff --git a/lib/mailbox.php b/lib/mailbox.php
index a09bf1060..e1d384a06 100644
--- a/lib/mailbox.php
+++ b/lib/mailbox.php
@@ -213,26 +213,20 @@ class MailboxAction extends CurrentUserDesignAction
}
$this->elementStart('div', 'entry-content');
- $this->elementStart('dl', 'timestamp');
- $this->element('dt', null, _('Published'));
- $this->elementStart('dd', null);
- $dt = common_date_iso8601($message->created);
$this->elementStart('a', array('rel' => 'bookmark',
+ 'class' => 'timestamp',
'href' => $messageurl));
+ $dt = common_date_iso8601($message->created);
$this->element('abbr', array('class' => 'published',
'title' => $dt),
common_date_string($message->created));
$this->elementEnd('a');
- $this->elementEnd('dd');
- $this->elementEnd('dl');
if ($message->source) {
- $this->elementStart('dl', 'device');
- $this->elementStart('dt');
- $this->text(_('From'));
- $this->elementEnd('dt');
- $this->showSource($message->source);
- $this->elementEnd('dl');
+ $this->elementStart('span', 'source');
+ $this->text(_('from'));
+ $this->element('span', 'device', $this->showSource($message->source));
+ $this->elementEnd('span');
}
$this->elementEnd('div');
@@ -277,18 +271,18 @@ class MailboxAction extends CurrentUserDesignAction
case 'mail':
case 'omb':
case 'api':
- $this->element('dd', null, $source_name);
+ $this->element('span', 'device', $source_name);
break;
default:
$ns = Notice_source::staticGet($source);
if ($ns) {
- $this->elementStart('dd', null);
+ $this->elementStart('span', 'device');
$this->element('a', array('href' => $ns->url,
- 'rel' => 'external'),
- $ns->name);
- $this->elementEnd('dd');
+ 'rel' => 'external'),
+ $ns->name);
+ $this->elementEnd('span');
} else {
- $this->element('dd', null, $source_name);
+ $this->out->element('span', 'device', $source_name);
}
break;
}