2 defined('_JEXEC') or die;
4 JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');
6 require_once dirname(dirname(dirname(dirname(__FILE__)))) . DIRECTORY_SEPARATOR . 'functions.php';
8 Artx::load("Artx_Content");
10 $component = new ArtxContent($this, $this->params);
12 <ul id="archive-items">
13 <?php foreach ($this->items as $i => $item) : ?>
14 <li class="row<?php echo $i % 2; ?>">
16 $article = $component->article('archive', $item, $this->params);
17 $params = $article->getArticleViewParameters();
18 if (strlen($article->title)) {
19 $params['header-text'] = $this->escape($article->title);
20 if (strlen($article->titleLink))
21 $params['header-link'] = $article->titleLink;
23 // Change the order of ""if"" statements to change the order of article metadata header items.
24 if (strlen($article->created))
25 $params['metadata-header-icons'][] = "<span class=\"art-postdateicon\">" . $article->createdDateInfo($article->created) . "</span>";
26 if (strlen($article->modified))
27 $params['metadata-header-icons'][] = "<span class=\"art-postdateicon\">" . $article->modifiedDateInfo($article->modified) . "</span>";
28 if (strlen($article->published))
29 $params['metadata-header-icons'][] = "<span class=\"art-postdateicon\">" . $article->publishedDateInfo($article->published) . "</span>";
30 if (strlen($article->author))
31 $params['metadata-header-icons'][] = "<span class=\"art-postauthoricon\">" . $article->authorInfo($article->author, $article->authorLink) . "</span>";
32 if (strlen($article->hits))
33 $params['metadata-header-icons'][] = $article->hitsInfo($article->hits);
34 // Build article content
36 if (strlen($article->intro))
37 $content .= $article->intro($article->intro);
38 $params['content'] = $content;
39 // Change the order of ""if"" statements to change the order of article metadata footer items.
40 if (strlen($article->category))
41 $params['metadata-footer-icons'][] = "<span class=\"art-postcategoryicon\">"
42 . $article->categories($article->parentCategory, $article->parentCategoryLink, $article->category, $article->categoryLink)
46 echo $article->article($params);
51 <div class="pagination">
53 <?php echo $this->pagination->getPagesCounter(); ?>
55 <?php echo $this->pagination->getPagesLinks(); ?>