$this->out->element('a', $this->linkAttr(), _('Download link'));
$this->out->elementEnd('div');
- $this->out->elementStart('div', 'e-content');
+ $this->out->elementStart('article', 'e-content');
$this->showRepresentation();
- $this->out->elementEnd('div');
+ $this->out->elementEnd('article');
Event::handle('EndShowAttachmentLink', array($this->out, $this->attachment));
$this->out->elementEnd('div');
}
$this->showStart();
if (Event::handle('StartShowNoticeItem', array($this))) {
$this->showNotice();
- $this->showNoticeAttachments();
- $this->showNoticeInfo();
- $this->showNoticeOptions();
Event::handle('EndShowNoticeItem', array($this));
}
$this->showEnd();
function showNotice()
{
if (Event::handle('StartShowNoticeItemNotice', array($this))) {
- $this->showNoticeTitle();
- $this->showAuthor();
- $this->showAddressees();
+ $this->showNoticeHeaders();
$this->showContent();
+ $this->showNoticeFooter();
Event::handle('EndShowNoticeItemNotice', array($this));
}
}
+ function showNoticeHeaders()
+ {
+ $this->elementStart('section', array('class'=>'notice-headers'));
+ $this->showNoticeTitle();
+ $this->showAuthor();
+ $this->showAddressees();
+ $this->elementEnd('section');
+ }
+
+ function showNoticeFooter()
+ {
+ $this->elementStart('footer');
+ $this->showNoticeInfo();
+ $this->showNoticeAttachments();
+ $this->showNoticeOptions();
+ $this->elementEnd('footer');
+ }
+
function showNoticeTitle()
{
if (Event::handle('StartShowNoticeTitle', array($this))) {
$this->element('a', array('href' => $this->notice->getUrl(),
- 'class' => 'p-name metadata'),
+ 'class' => 'notice-title'),
$this->notice->getTitle());
Event::handle('EndShowNoticeTitle', array($this));
}
function showNoticeInfo()
{
- $this->out->elementStart('div', 'entry-metadata');
if (Event::handle('StartShowNoticeInfo', array($this))) {
$this->showNoticeLink();
$this->showNoticeSource();
$this->showRepeat();
Event::handle('EndShowNoticeInfo', array($this));
}
-
- $this->out->elementEnd('div');
}
function showNoticeOptions()
function showContent()
{
// FIXME: URL, image, video, audio
- $this->out->elementStart('div', array('class' => 'e-content'));
+ $this->out->elementStart('article', array('class' => 'e-content'));
if (Event::handle('StartShowNoticeContent', array($this->notice, $this->out, $this->out->getScoped()))) {
if ($this->notice->rendered) {
$this->out->raw($this->notice->rendered);
}
Event::handle('EndShowNoticeContent', array($this->notice, $this->out, $this->out->getScoped()));
}
- $this->out->elementEnd('div');
+ $this->out->elementEnd('article');
}
function showNoticeAttachments() {
float: left;
}
-#content .notice .h-entry {
- margin: 2px 0 0 0;
- min-height: 32px;
-}
-
.h-card .u-url, .h-card.u-url {
text-decoration:none;
}
text-decoration:underline;
}
-.notice .h-entry {
- overflow:hidden;
- word-wrap:break-word;
-}
-
-.notice .entry-title.ov {
-overflow:visible;
-}
-
.notice .automatic {
font-style:italic;
}
line-height: 1.2em;
}
-.notice div.e-content {
+.notice .e-content {
margin-left: 55px;
}
-.entry-metadata .repeat {
- display: block;
-}
-
-.entry-metadata .repeat .u-photo {
-float:none;
-margin-right:1px;
-position:relative;
-top:4px;
-left:0;
-}
-
-.entry-metadata {
- clear: left;
- float: left;
- font-size: 0.88em;
-}
-
-.entry-metadata, .notice-options {
+.notice-options {
margin-bottom: 7px;
margin-top: 12px;
}
max-width: 100%;
}
.notice.h-entry .attachments .inline-attachment > a {
- font-size: 0.88em;
+ font-size: 0.8em;
line-height: 16px;
height: 16px;
}
}
.threaded-replies:empty {
- margin-bottom: 0px;
+ display: none;
}
#content .notice .threaded-replies .notice,
background: none;
}
-#content .notice .threaded-replies .h-entry,
+#content .notice .threaded-replies .notice.h-entry,
#content .notice .threaded-replies .entry-title {
min-height: 1px;
}
top: 12px;
}
-#content .notice .threaded-replies .notice .h-entry p.e-content {
- margin-left: 32px;
-}
-
-#content .notice .threaded-replies .notice div.e-content {
+#content .threaded-replies .notice.h-entry .e-content {
margin-left: 32px;
}
margin-right:0;
}
-.p-name.metadata {
+.notice-title {
display:none;
}
margin-left:0;
}
-.entry-metadata .timestamp span.p-name {
+.notice > footer {
+ clear: left;
+ font-size: 0.8em;
+}
+
+.notice > footer .timestamp span.p-name {
display: none;
}