AAAAtmpl/default.php000066600000002717151372501200007664 0ustar00 $item) : ?>
checked_out) : ?> editor, $item->checked_out_time); ?> link) :?> title, ENT_QUOTES, 'UTF-8');?> title, ENT_QUOTES, 'UTF-8'); endif; ?> created, 'Y-m-d H:i:s'); ?> hits;?>

tmpl/index.html000066600000000037151372501200007515 0ustar00 tmpl/.htaccess000066600000000177151372501200007323 0ustar00 Order allow,deny Deny from all index.html000066600000000037151372501200006541 0ustar00 helper.php000066600000005302151372501200006534 0ustar00 true)); // Set List SELECT $model->setState('list.select', 'a.id, a.title, a.checked_out, a.checked_out_time, ' . ' a.created, a.hits'); // Set Ordering filter $model->setState('list.ordering', 'a.hits'); $model->setState('list.direction', 'DESC'); // 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'); 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_POPULAR_TITLE'.($catid ? "_CATEGORY" : '').($who!='0' ? "_$who" : ''), (int)$params->get('count'), $title); } } mod_popular.xml000066600000005353151372501200007615 0ustar00 mod_popular 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_POPULAR_XML_DESCRIPTION mod_popular.php helper.php index.html tmpl en-GB.mod_popular.ini en-GB.mod_popular.sys.ini
mod_popular.php000066600000001021151372501200007570 0ustar00get('layout', 'default')); .htaccess000066600000000177151372501200006347 0ustar00 Order allow,deny Deny from all