Exemplo n.º 1
0
 function artxFragment($head = '', $content = '', $tail = '', $separator = '')
 {
     global $artxFragments;
     if ($head != '' && $content == '' && $tail == '' && $separator == '') {
         $content = $head;
         $head = '';
     } elseif ($head != '' && $content != '' && $tail == '' && $separator == '') {
         $separator = $content;
         $content = $head;
         $head = '';
     }
     artxFragmentBegin($head);
     artxFragmentContent($content);
     artxFragmentEnd($tail, $separator);
 }
Exemplo n.º 2
0
<?php 
    artxFragmentBegin(ob_get_clean());
    if ($this->params->get('link_titles') && $this->article->readmore_link != '') {
        artxFragmentContent('<a href="' . $this->article->readmore_link . '" class="PostHeader">' . $this->escape($this->article->title) . '</a>');
    } else {
        artxFragmentContent($this->escape($this->article->title));
    }
    ob_start();
    ?>

</h2>

<?php 
    artxFragmentEnd(ob_get_clean());
}
artxFragmentBegin("<div class=\"art-PostHeaderIcons art-metadata-icons\">\r\n");
if ($this->params->get('show_url') && $this->article->urls) {
    artxFragment('', '<a href="http://' . $this->item->urls . '" target="_blank">' . $this->item->urls . '</a>', '', ' | ');
}
if ($this->params->get('show_create_date')) {
    artxFragment('', JHTML::_('image.site', 'PostDateIcon.png', null, null, null, JText::_("PostDateIcon"), array('width' => '18', 'height' => '18')) . JHTML::_('date', $this->article->created, JText::_('DATE_FORMAT_LC2')), '', ' | ');
}
if ($this->params->get('show_author') && $this->article->author != "") {
    artxFragment('', JHTML::_('image.site', 'PostAuthorIcon.png', null, null, null, JText::_("PostAuthorIcon"), array('width' => '18', 'height' => '18')) . JText::sprintf('Written by', $this->article->created_by_alias ? $this->article->created_by_alias : $this->article->author), '', ' | ');
}
if (!$this->print && $this->params->get('show_pdf_icon')) {
    artxFragment('', JHTML::_('icon.pdf', $this->article, $this->params, $this->access), '', ' | ');
}
if (!$this->print && $this->params->get('show_print_icon')) {
    artxFragment('', JHTML::_('icon.print_popup', $this->article, $this->params, $this->access), '', ' | ');
}
Exemplo n.º 3
0
    }
    artxFragmentEnd("</span>\r\n");
    artxFragmentEnd("</h2>\r\n");
}
artxFragmentBegin("<div class=\"art-PostHeaderIcons art-metadata-icons\">\r\n");
if ($this->params->get('show_create_date')) {
    echo artxFragment('', JHTML::_('image.site', 'PostDateIcon.png', null, null, null, JText::_("PostDateIcon"), array('width' => '17', 'height' => '18')) . JHTML::_('date', $this->article->created, JText::_('DATE_FORMAT_LC2')), '', ' | ');
}
if ($this->params->get('show_author') && $this->article->author != "") {
    echo artxFragment('', JHTML::_('image.site', 'PostAuthorIcon.png', null, null, null, JText::_("PostAuthorIcon"), array('width' => '14', 'height' => '14')) . JText::sprintf('Written by', $this->article->created_by_alias ? $this->article->created_by_alias : $this->article->author), '', ' | ');
}
if ($this->params->get('show_url') && $this->article->urls) {
    artxFragment('', '<a href="http://' . $this->item->urls . '" target="_blank">' . $this->item->urls . '</a>', '', ' | ');
}
if (!$this->print) {
    artxFragmentBegin('<span class="art-metadata-icons">');
    if ($this->params->get('show_pdf_icon')) {
        artxFragment('', JHTML::_('icon.pdf', $this->article, $this->params, $this->access), '', '&nbsp;');
    }
    if ($this->params->get('show_print_icon')) {
        artxFragment('', JHTML::_('icon.print_popup', $this->article, $this->params, $this->access), '', '&nbsp;');
    }
    if ($this->params->get('show_email_icon')) {
        artxFragment('', JHTML::_('icon.email', $this->article, $this->params, $this->access), '', '&nbsp;');
    }
    artxFragmentEnd('</span>', ' | ');
    if ($canEdit) {
        artxFragment('', JHTML::_('icon.edit', $this->article, $this->params, $this->access), '', ' | ');
    }
} else {
    artxFragment('', JHTML::_('icon.print_screen', $this->article, $this->params, $this->access, array('class' => 'art-metadata-icon')), '', ' | ');
Exemplo n.º 4
0
    artxFragmentBegin(ob_get_clean());
    if ($this->item->params->get('link_titles') && $this->item->readmore_link != '') {
        artxFragmentContent('<a href="' . $this->item->readmore_link . '" class="PostHeader">' . $this->escape($this->item->title) . '</a>');
    } else {
        artxFragmentContent($this->escape($this->item->title));
    }
    ob_start();
    ?>

</h2>

<?php 
    artxFragmentEnd(ob_get_clean());
}
artxFragmentBegin("<div class=\"art-postmetadataheader\">\r\n");
artxFragmentBegin("<div class=\"art-postheadericons art-metadata-icons\">\r\n");
if ($this->params->get('show_url') && $this->article->urls) {
    artxFragment('', '<a href="http://' . $this->item->urls . '" target="_blank">' . $this->item->urls . '</a>', '', ' | ');
}
if ($this->item->params->get('show_create_date')) {
    artxFragment('', JHTML::_('image.site', 'postdateicon.png', null, null, null, JText::_("postdateicon"), array('width' => '12', 'height' => '15')) . JHTML::_('date', $this->item->created, JText::_('DATE_FORMAT_LC2')), '', ' | ');
}
if ($this->item->params->get('show_author') && $this->item->author != "") {
    artxFragment('', JText::sprintf('Written by', $this->item->created_by_alias ? $this->item->created_by_alias : $this->item->author), '', ' | ');
}
if ($this->item->params->get('show_pdf_icon')) {
    artxFragment('', JHTML::_('icon.pdf', $this->item, $this->item->params, $this->access), '', ' | ');
}
if ($this->item->params->get('show_print_icon')) {
    artxFragment('', JHTML::_('icon.print_popup', $this->item, $this->item->params, $this->access), '', ' | ');
}