AAAAmod_articles_category.xml 0000666 00000035306 15137254325 0011652 0 ustar 00
mod_articles_category
Joomla! Project
February 2010
Copyright (C) 2005 - 2014 Open Source Matters. All rights reserved.
GNU General Public License version 2 or later; see LICENSE.txt
admin@joomla.org
www.joomla.org
2.5.0
MOD_ARTICLES_CATEGORY_XML_DESCRIPTION
mod_articles_category.php
tmpl
helper.php
index.html
mod_articles_category.xml
en-GB.mod_articles_category.ini
en-GB.mod_articles_category.sys.ini
mod_articles_category.php 0000666 00000004402 15137254325 0011632 0 ustar 00 get('mode', 'normal');
$idbase = null;
switch($mode)
{
case 'dynamic':
$option = JRequest::getCmd('option');
$view = JRequest::getCmd('view');
if ($option === 'com_content') {
switch($view)
{
case 'category':
$idbase = JRequest::getInt('id');
break;
case 'categories':
$idbase = JRequest::getInt('id');
break;
case 'article':
if ($params->get('show_on_article_page', 1)) {
$idbase = JRequest::getInt('catid');
}
break;
}
}
break;
case 'normal':
default:
$idbase = $params->get('catid');
break;
}
$cacheid = md5(serialize(array ($idbase, $module->module)));
$cacheparams = new stdClass;
$cacheparams->cachemode = 'id';
$cacheparams->class = 'modArticlesCategoryHelper';
$cacheparams->method = 'getList';
$cacheparams->methodparams = $params;
$cacheparams->modeparams = $cacheid;
$list = JModuleHelper::moduleCache ($module, $params, $cacheparams);
if (!empty($list)) {
$grouped = false;
$article_grouping = $params->get('article_grouping', 'none');
$article_grouping_direction = $params->get('article_grouping_direction', 'ksort');
$moduleclass_sfx = htmlspecialchars($params->get('moduleclass_sfx'));
$item_heading = $params->get('item_heading');
if ($article_grouping !== 'none') {
$grouped = true;
switch($article_grouping)
{
case 'year':
case 'month_year':
$list = modArticlesCategoryHelper::groupByDate($list, $article_grouping, $article_grouping_direction, $params->get('month_year_format', 'F Y'));
break;
case 'author':
case 'category_title':
$list = modArticlesCategoryHelper::groupBy($list, $article_grouping, $article_grouping_direction);
break;
default:
break;
}
}
require JModuleHelper::getLayoutPath('mod_articles_category', $params->get('layout', 'default'));
}
tmpl/.htaccess 0000666 00000000177 15137254325 0007336 0 ustar 00
Order allow,deny
Deny from all