| Server IP : 213.186.33.4 / Your IP : 216.73.216.193 Web Server : Apache System : Linux webm006.cluster103.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : awebpaca ( 35430) PHP Version : 8.5.0 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/awebpaca/blog/templates/purity_iii/html/com_content/category/ |
Upload File : |
<?php
/**
*------------------------------------------------------------------------------
* @package Purity III Template - JoomlArt
* @version 1.0 Feb 1, 2014
* @author JoomlArt http://www.joomlart.com
* @copyright Copyright (c) 2004 - 2014 JoomlArt.com
* @license GNU General Public License version 2 or later;
*------------------------------------------------------------------------------
*/
defined('_JEXEC') or die;
require_once T3_TEMPLATE_PATH . '/helper.php';
// get featured items
$app = JFactory::getApplication();
$params = $this->params;
$parentid = $app->input->getInt('id');
$featured_count = $params->get('featured_leading', 1) + $params->get('featured_intro', 3) + $params->get('featured_links', 5);
$featured_items = JATemplateHelper::getArticles($params, $parentid, $featured_count, 'only');
// get child categories
$categories = JATemplateHelper::getCategories($parentid);
// get list articles for each sub cat
$list_items = array();
foreach ($categories as $cat) {
$list_items[$cat->id] = JATemplateHelper::getArticles($params, $cat->id, $params->get('highlight_count', 4));
}
?>
<?php
$this->items = $featured_items;
echo $this->loadTemplate('featured'); ?>
<?php
$this->list = $list_items;
$this->categories = $categories;
echo $this->loadTemplate('list'); ?>