function showContent()
{
- $this->elementStart('ul', array('class' => 'attachments'));
$ali = new Attachment($this->attachment, $this);
$cnt = $ali->show();
- $this->elementEnd('ul');
}
/**
*/
function showCore()
{
- $this->elementStart('div', array('id' => 'ajaxcore'));
+ $this->elementStart('div', array('id' => 'core'));
if (Event::handle('StartShowContentBlock', array($this))) {
$this->showContentBlock();
Event::handle('EndShowContentBlock', array($this));
*/
$(document).ready(function(){
-// attachments and attachment pages not used at the moment except for attachment_ajax version
-// $('.attachments').click(function() {$().jOverlay({zIndex:999, success:function(html) {$('.attachment').click(function() {$().jOverlay({url:$(this).attr('href') + '/ajax'}); return false; });
-// }, url:$(this).attr('href') + '/ajax'}); return false; });
-
- //FIXME
- //need to link to proper url depending on site config (path name and theme, for instance)
$('a.attachment').click(function() {$().jOverlay({url: $('address .url')[0].href+'/attachment/' + ($(this).attr('id').substring('attachment'.length + 1)) + '/ajax'}); return false; });
$('a.thumbnail').hover(
function() {
function show()
{
-// $this->out->elementStart('div', array('id' =>'attachments_primary'));
- $this->out->elementStart('div', array('id' =>'content'));
- $this->out->element('h2', null, _('Attachments'));
+ $this->out->elementStart('dl', array('id' =>'attachment'));
+ $this->out->element('dt', null, _('Attachments'));
+ $this->out->elementStart('dd');
$this->out->elementStart('ul', array('class' => 'attachments'));
$atts = new File;
$item->show();
}
+ $this->out->elementEnd('dd');
$this->out->elementEnd('ul');
- $this->out->elementEnd('div');
+ $this->out->elementEnd('dl');
return count($att);
}
}
function showLink() {
- $attr = $this->linkAttr();
- $text = $this->linkTitle();
- $this->out->elementStart('h4');
- $this->out->elementStart('a', $attr);
- $this->out->element('span', null, $text);
+ $this->out->elementStart('a', $this->linkAttr());
+ $this->out->element('span', null, $this->linkTitle());
$this->showRepresentation();
$this->out->elementEnd('a');
- $this->out->elementEnd('h4');
}
function showNoticeAttachment()
{
$this->showStart();
$this->showNotice();
+ $this->showNoticeAttachments();
$this->showNoticeInfo();
$this->showNoticeOptions();
- $this->showNoticeAttachments();
$this->showEnd();
}
return intval($file_oembed->c);
}
- function showNoticeAttachmentsIcon()
- {
- if (!($this->isUsedInList() && ($count = $this->attachmentCount()))) {
- return;
- }
-
- $href = common_local_url('shownotice', array('notice' => $this->notice->id)) . '#attachments';
- $this->out->elementStart('p', 'entry-attachments');
- $this->out->element('a', array('href' => $href, 'title' => "# of attachments: $count"), $count === 1 ? '' : $count);
- $this->out->elementEnd('p');
- }
-
function showNoticeInfo()
{
$this->out->elementStart('div', 'entry-content');
left:0;
z-index:99;
}
+#shownotice .notice .attachment img {
+position:static;
+}
.notice-options {