2 defined('_JEXEC') or die('Restricted access'); // no direct access
3 require_once dirname(__FILE__) . str_replace('/', DIRECTORY_SEPARATOR, '/../../../functions.php');
5 <?php $cparams =& JComponentHelper::getParams('com_media'); ?>
8 <?php if ($this->params->def('show_description', 1) || $this->params->def('show_description_image', 1)) :?>
9 <table class="blog<?php echo $this->params->get('pageclass_sfx');?>" cellpadding="0" cellspacing="0" width="100%">
12 <?php if ($this->params->get('show_description_image') && $this->category->image) : ?>
13 <img src="<?php echo $this->baseurl . '/' . $cparams->get('image_path') . '/'. $this->category->image;?>" align="<?php echo $this->category->image_position;?>" hspace="6" alt="" />
15 <?php if ($this->params->get('show_description') && $this->category->description) : ?>
16 <?php echo $this->category->description; ?>
22 <?php echo artxPost(artxPageTitle($this), ob_get_clean()); ?>
24 <table class="blog<?php echo $this->params->get('pageclass_sfx');?>" cellpadding="0" cellspacing="0" width="100%">
25 <?php if ($this->params->get('num_leading_articles')) : ?>
28 <?php for ($i = $this->pagination->limitstart; $i < ($this->pagination->limitstart + $this->params->get('num_leading_articles')); $i++) : ?>
29 <?php if ($i >= $this->total) : break; endif; ?>
32 $this->item =& $this->getItem($i, $this->params);
33 echo $this->loadTemplate('item');
39 <?php else : $i = $this->pagination->limitstart; endif; ?>
42 $startIntroArticles = $this->pagination->limitstart + $this->params->get('num_leading_articles');
43 $numIntroArticles = $startIntroArticles + $this->params->get('num_intro_articles');
44 if (($numIntroArticles != $startIntroArticles) && ($i < $this->total)) : ?>
47 <table width="100%" cellpadding="0" cellspacing="0">
51 if ($this->params->get('multi_column_order')) : // order across, like front page
52 for ($z = 0; $z < $this->params->def('num_columns', 2); $z ++) :
53 if ($z > 0) : $divider = " column_separator"; endif; ?>
55 $rows = (int) ($this->params->get('num_intro_articles', 4) / $this->params->get('num_columns'));
56 $cols = ($this->params->get('num_intro_articles', 4) % $this->params->get('num_columns'));
59 width="<?php echo intval(100 / $this->params->get('num_columns')) ?>%"
60 class="article_column<?php echo $divider ?>">
62 $loop = (($z < $cols)?1:0) + $rows;
64 for ($y = 0; $y < $loop; $y ++) :
65 $target = $i + ($y * $this->params->get('num_columns')) + $z;
66 if ($target < $this->total && $target < ($numIntroArticles)) :
67 $this->item =& $this->getItem($target, $this->params);
68 echo $this->loadTemplate('item');
73 $i = $i + $this->params->get('num_intro_articles') ;
74 else : // otherwise, order down, same as before (default behaviour)
75 for ($z = 0; $z < $this->params->get('num_columns'); $z ++) :
76 if ($z > 0) : $divider = " column_separator"; endif; ?>
77 <td valign="top" width="<?php echo intval(100 / $this->params->get('num_columns')) ?>%" class="article_column<?php echo $divider ?>">
78 <?php for ($y = 0; $y < ($this->params->get('num_intro_articles') / $this->params->get('num_columns')); $y ++) :
79 if ($i < $this->total && $i < ($numIntroArticles)) :
80 $this->item =& $this->getItem($i, $this->params);
81 echo $this->loadTemplate('item');
94 <?php if ($this->params->get('num_links') && ($i < $this->total)) : ?>
97 $this->links = array_splice($this->items, $i - $this->pagination->limitstart);
98 echo $this->loadTemplate('links');
100 <?php echo artxPost(null, ob_get_clean()); ?>
103 $paginationPagesLinks = $this->params->get('show_pagination')
104 ? $this->pagination->getPagesLinks() : '';
105 $paginationPagesCounter = $this->params->get('show_pagination_results')
106 ? $this->pagination->getPagesCounter() : '';
108 <?php if (strlen($paginationPagesLinks) > 0 && strlen($paginationPagesCounter) > 0) : ?>
110 <div id="navigation">
111 <?php if (strlen($paginationPagesLinks) > 0) : ?>
112 <p><?php echo $paginationPagesLinks; ?></p>
114 <?php if (strlen($paginationPagesCounter) > 0) : ?>
115 <p><?php echo $paginationPagesCounter; ?></p>
118 <?php echo artxPost(null, ob_get_clean()); ?>