[ Index ]

PHP Cross Reference of Joomla 1.5.25

title

Body

[close]

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

   1  <?php
   2  /**
   3  * @version        $Id: mod_poll.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  $tabclass_arr = array ('sectiontableentry2', 'sectiontableentry1');
  21  
  22  $menu     = &JSite::getMenu();
  23  $items    = $menu->getItems('link', 'index.php?option=com_poll&view=poll');
  24  $itemid = isset($items[0]) ? '&Itemid='.$items[0]->id : '';
  25  
  26  $poll   = modPollHelper::getPoll($params->get( 'id', 0 ));
  27  
  28  if ( $poll && $poll->id ) {
  29      $layout = JModuleHelper::getLayoutPath('mod_poll');
  30      $tabcnt = 0;
  31      $options = modPollHelper::getPollOptions($poll->id);
  32  
  33      require($layout);
  34  }


Generated: Mon Nov 14 16:47:20 2011 Cross-referenced by PHPXref 0.7.1