4 * Overwrites default template of the content/featured component of Joomla 1.6.
5 * Joomla 1.6 content/featured supplants Joomla 1.5 content/frontpage.
8 defined('_JEXEC') or die;
10 require_once dirname(__FILE__) . str_replace('/', DIRECTORY_SEPARATOR, '/../../../functions.php');
12 $view = new ArtxContent16($this, $this->params);
14 echo $view->beginPageContainer('blog-featured');
15 if ($view->showPageHeading)
16 echo $view->pageHeading();
18 <?php $leadingcount = 0; ?>
19 <?php if (!empty($this->lead_items)) : ?>
20 <div class="items-leading">
21 <?php foreach ($this->lead_items as &$item) : ?>
22 <div class="leading-<?php echo $leadingcount; ?><?php echo $item->state == 0 ? ' system-unpublished' : null; ?>">
25 echo $this->loadTemplate('item');
28 <?php $leadingcount++; ?>
33 $introcount = count($this->intro_items);
36 <?php if (!empty($this->intro_items)) : ?>
37 <?php foreach ($this->intro_items as $key => &$item) : ?>
39 $key = ($key - $leadingcount) + 1;
40 $rowcount = (((int)$key - 1) % (int)$this->columns) + 1;
41 $row = $counter / $this->columns;
44 <div class="items-row cols-<?php echo (int) $this->columns; ?> <?php echo 'row-' . $row; ?>">
46 <div class="item column-<?php echo $rowcount;?><?php echo $item->state == 0 ? ' system-unpublished"' : null; ?>">
49 echo $this->loadTemplate('item');
53 <?php if ($rowcount == $this->columns || $counter == $introcount): ?>
54 <span class="row-separator"></span>
59 <?php if (!empty($this->link_items)) : ?>
61 <div class="items-more">
62 <?php echo $this->loadTemplate('links'); ?>
64 <?php echo artxPost(ob_get_clean()); ?>
66 <?php if ($this->params->def('show_pagination', 2) == 1 || ($this->params->get('show_pagination') == 2 && $this->pagination->get('pages.total') > 1)) : ?>
68 <div class="pagination">
69 <?php if ($this->params->def('show_pagination_results', 1)) : ?>
70 <p class="counter"><?php echo $this->pagination->getPagesCounter(); ?></p>
72 <?php echo $this->pagination->getPagesLinks(); ?>
74 <?php echo artxPost(ob_get_clean()); ?>
76 <?php echo $view->endPageContainer(); ?>