Esempio n. 1
0
<?php

defined('_JEXEC') or die;
require_once dirname(dirname(dirname(dirname(__FILE__)))) . DIRECTORY_SEPARATOR . 'functions.php';
if ('artisteer' == JFactory::getApplication()->getTemplate(true)->params->get('blogLayoutType')) {
    require 'art_blog.php';
    return;
}
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');
Artx::load("Artx_Content");
$view = new ArtxContent($this, $this->params);
echo $view->beginPageContainer('blog-featured');
if (strlen($view->pageHeading)) {
    echo $view->pageHeading();
}
$leadingcount = 0;
if (!empty($this->lead_items)) {
    echo '<div class="items-leading">';
    foreach ($this->lead_items as $item) {
        echo '<div class="leading-' . $leadingcount . ($item->state == 0 ? ' system-unpublished' : '') . '">';
        $this->item = $item;
        echo $this->loadTemplate('item');
        echo '</div>';
        $leadingcount++;
    }
    echo '</div>';
}
$introcount = count($this->intro_items);
$counter = 0;
if (!empty($this->intro_items)) {
    foreach ($this->intro_items as $key => $item) {
Esempio n. 2
0
<?php

defined('_JEXEC') or die;
require_once dirname(dirname(dirname(dirname(__FILE__)))) . DIRECTORY_SEPARATOR . 'functions.php';
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');
Artx::load("Artx_Content");
$component = new ArtxContent($this, $this->params);
$article = $component->article('article', $this->item, $this->item->params, array('print' => $this->print));
echo $component->beginPageContainer('item-page');
if (strlen($article->pageHeading)) {
    echo $component->pageHeading($article->pageHeading);
}
$params = $article->getArticleViewParameters();
if (strlen($article->title)) {
    $params['header-text'] = $this->escape($article->title);
    if (strlen($article->titleLink)) {
        $params['header-link'] = $article->titleLink;
    }
}
// Change the order of ""if"" statements to change the order of article metadata header items.
if (strlen($article->created)) {
    $params['metadata-header-icons'][] = "<span class=\"dd-postdateicon\">" . $article->createdDateInfo($article->created) . "</span>";
}
if (strlen($article->modified)) {
    $params['metadata-header-icons'][] = "<span class=\"dd-postdateicon\">" . $article->modifiedDateInfo($article->modified) . "</span>";
}
if (strlen($article->published)) {
    $params['metadata-header-icons'][] = "<span class=\"dd-postdateicon\">" . $article->publishedDateInfo($article->published) . "</span>";
}
if (strlen($article->author)) {
    $params['metadata-header-icons'][] = "<span class=\"dd-postauthoricon\">" . $article->authorInfo($article->author, $article->authorLink) . "</span>";