Guest User

Untitled

a guest
Jun 21st, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. <?php
  2. /**
  3. * @version $Id: mod_latestnews.php 10381 2008-06-01 03:35:53Z pasamio $
  4. * @package Joomla
  5. * @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
  6. * @license GNU/GPL, see LICENSE.php
  7. * Joomla! is free software. This version may have been modified pursuant
  8. * to the GNU General Public License, and as distributed it includes or
  9. * is derivative of works licensed under the GNU General Public License or
  10. * other free or open source software licenses.
  11. * See COPYRIGHT.php for copyright notices and details.
  12. */
  13.  
  14. // no direct access
  15. defined('_JEXEC') or die('Restricted access');
  16.  
  17. // Include the syndicate functions only once
  18. require_once (dirname(__FILE__).DS.'helper.php');
  19.  
  20. switch($Itemid){
  21. case '50':$limit=20;break;
  22. case '56':$limit=10;break;
  23. default:$limit=5;break;
  24. }
  25.  
  26. $list = modLatestNewsHelper::getList(&$params, $limit);
  27. require(JModuleHelper::getLayoutPath('mod_latestnews'));
Add Comment
Please, Sign In to add comment