[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

/modules/mod_newsflash/ -> mod_newsflash.php (source)

   1  <?php
   2  /**
   3  * @version        $Id: mod_newsflash.php 14401 2010-01-26 14:10:00Z louis $
   4  * @package        Joomla
   5  * @copyright    Copyright (C) 2005 - 2010 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  $params->set('intro_only', 1);
  21  $params->set('hide_author', 1);
  22  $params->set('hide_createdate', 0);
  23  $params->set('hide_modifydate', 1);
  24  
  25  
  26  // Disable edit ability icon
  27  $access = new stdClass();
  28  $access->canEdit    = 0;
  29  $access->canEditOwn = 0;
  30  $access->canPublish = 0;
  31  
  32  $list = modNewsFlashHelper::getList($params, $access);
  33  
  34  // check if any results returned
  35  $items = count($list);
  36  if (!$items) {
  37      return;
  38  }
  39  
  40  $layout = $params->get('layout', 'default');
  41  $layout = JFilterInput::clean($layout, 'word');
  42  $path = JModuleHelper::getLayoutPath('mod_newsflash', $layout);
  43  if (file_exists($path)) {
  44      require($path);
  45  }


Generated: Wed Mar 28 15:54:07 2012 Cross-referenced by PHPXref 0.7.1