AAAAPK C?\D tmpl/default.phpnu W+A
|
|
|
|
|
$item) : ?>
|
checked_out) : ?>
editor, $item->checked_out_time); ?>
link) :?>
title, ENT_QUOTES, 'UTF-8');?>
title, ENT_QUOTES, 'UTF-8');
endif; ?>
|
state, $i, '', false); ?>
|
created, 'Y-m-d H:i:s'); ?>
|
author_name;?>
|
|
|
PK C?\) tmpl/.htaccessnu W+A
Order allow,deny
Deny from all
PK C?\V tmpl/index.htmlnu W+A
PK C?\<;8 8
helper.phpnu W+A true));
// Set List SELECT
$model->setState('list.select', 'a.id, a.title, a.checked_out, a.checked_out_time, ' .
' a.access, a.created, a.created_by, a.created_by_alias, a.featured, a.state');
// Set Ordering filter
switch ($params->get('ordering')) {
case 'm_dsc':
$model->setState('list.ordering', 'modified DESC, created');
$model->setState('list.direction', 'DESC');
break;
case 'c_dsc':
default:
$model->setState('list.ordering', 'created');
$model->setState('list.direction', 'DESC');
break;
}
// Set Category Filter
$categoryId = $params->get('catid');
if (is_numeric($categoryId)){
$model->setState('filter.category_id', $categoryId);
}
// Set User Filter.
$userId = $user->get('id');
switch ($params->get('user_id')) {
case 'by_me':
$model->setState('filter.author_id', $userId);
break;
case 'not_me':
$model->setState('filter.author_id', $userId);
$model->setState('filter.author_id.include', false);
break;
}
// Set the Start and Limit
$model->setState('list.start', 0);
$model->setState('list.limit', $params->get('count', 5));
$items = $model->getItems();
if ($error = $model->getError()) {
JError::raiseError(500, $error);
return false;
}
// Set the links
foreach ($items as &$item) {
if ($user->authorise('core.edit', 'com_content.article.'.$item->id)){
$item->link = JRoute::_('index.php?option=com_content&task=article.edit&id='.$item->id);
} else {
$item->link = '';
}
}
return $items;
}
/**
* Get the alternate title for the module
*
* @param JObject The module parameters.
* @return string The alternate title for the module.
*/
public static function getTitle($params)
{
$who = $params->get('user_id');
$catid = (int)$params->get('catid');
$type = $params->get('ordering') == 'c_dsc' ? '_CREATED' : '_MODIFIED';
if ($catid)
{
$category = JCategories::getInstance('Content')->get($catid);
if ($category) {
$title = $category->title;
}
else {
$title = JText::_('MOD_POPULAR_UNEXISTING');
}
}
else
{
$title = '';
}
return JText::plural('MOD_LATEST_TITLE'.$type.($catid ? "_CATEGORY" : '').($who!='0' ? "_$who" : ''), (int)$params->get('count'), $title);
}
}
PK C?\V
index.htmlnu W+A
PK C?\ʰ mod_latest.phpnu W+A get('layout', 'default'));
PK C?\) .htaccessnu W+A
Order allow,deny
Deny from all
PK C?\;e& & mod_latest.xmlnu W+A
mod_latest
Joomla! Project
July 2004
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_LATEST_XML_DESCRIPTION
mod_latest.php
helper.php
index.html
tmpl
en-GB.mod_latest.ini
en-GB.mod_latest.sys.ini
PK C?\D tmpl/default.phpnu W+A PK C?\) tmpl/.htaccessnu W+A PK C?\V tmpl/index.htmlnu W+A PK C?\<;8 8
helper.phpnu W+A PK C?\V
_ index.htmlnu W+A PK C?\ʰ mod_latest.phpnu W+A PK C?\) .htaccessnu W+A PK C?\;e& & | mod_latest.xmlnu W+A PK f #