CoreFiles by mySites.guru
mod_footer.php41 lines, 1,020 bytes, from Joomla_4.0.0-alpha3-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha2
md5
2e861ccd5fdd25ec5364af8faa6c5c4d
sha1
f9325f4b7e414f29e0ebe32dbbb6d334c2c7f187
sha256
9f0977708ffb8c030ce0581bed8bbc15784180de26fa4fc884eb435747075aa1
<?php
/**
 * @package     Joomla.Site
 * @subpackage  mod_footer
 *
 * @copyright   Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

use Joomla\CMS\Helper\ModuleHelper;
use Joomla\CMS\Factory;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
use Joomla\String\StringHelper;

$app        = Factory::getApplication();
$date       = Factory::getDate();
$cur_year   = HTMLHelper::_('date', $date, 'Y');
$csite_name = $app->get('sitename');

if (is_int(StringHelper::strpos(Text::_('MOD_FOOTER_LINE1'), '%date%')))
{
	$line1 = str_replace('%date%', $cur_year, Text::_('MOD_FOOTER_LINE1'));
}
else
{
	$line1 = Text::_('MOD_FOOTER_LINE1');
}

if (is_int(StringHelper::strpos($line1, '%sitename%')))
{
	$lineone = str_replace('%sitename%', $csite_name, $line1);
}
else
{
	$lineone = $line1;
}

require ModuleHelper::getLayoutPath('mod_footer', $params->get('layout', 'default'));

No other release has this exact content. See every version of this file.