[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

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

   1  <?php
   2  /**
   3  * @version        $Id: mod_footer.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  global $mainframe;
  18  
  19  $date =& JFactory::getDate();
  20  $cur_year    = $date->toFormat('%Y');
  21  $csite_name    = $mainframe->getCfg('sitename');
  22  
  23  if (JString::strpos(JText :: _('FOOTER_LINE1'), '%date%')) {
  24      $line1 = str_replace('%date%', $cur_year, JText :: _('FOOTER_LINE1'));
  25  } else {
  26      $line1 = JText :: _('FOOTER_LINE1');
  27  }
  28  
  29  if (JString::strpos($line1, '%sitename%')) {
  30      $lineone = str_replace('%sitename%', $csite_name, $line1);
  31  } else {
  32      $lineone = $line1;
  33  }
  34  
  35  require(JModuleHelper::getLayoutPath('mod_footer'));


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