mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-12-12 14:35:35 +00:00
45 lines
950 B
PHP
45 lines
950 B
PHP
|
<?php
|
||
|
|
||
|
declare( strict_types=1 );
|
||
|
|
||
|
namespace MediaWiki\Skins\Citizen\Components;
|
||
|
|
||
|
use MessageLocalizer;
|
||
|
|
||
|
/**
|
||
|
* CitizenComponentFooter component
|
||
|
* FIXME: Need unit test
|
||
|
*/
|
||
|
class CitizenComponentFooter implements CitizenComponent {
|
||
|
/** @var MessageLocalizer */
|
||
|
private $localizer;
|
||
|
|
||
|
/** @var array */
|
||
|
private $footerData;
|
||
|
|
||
|
/**
|
||
|
* @param MessageLocalizer $localizer
|
||
|
* @param array $footerData
|
||
|
*/
|
||
|
public function __construct(
|
||
|
MessageLocalizer $localizer,
|
||
|
array $footerData
|
||
|
) {
|
||
|
$this->localizer = $localizer;
|
||
|
$this->footerData = $footerData;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @inheritDoc
|
||
|
*/
|
||
|
public function getTemplateData(): array {
|
||
|
$localizer = $this->localizer;
|
||
|
$footerData = $this->footerData;
|
||
|
|
||
|
return $footerData + [
|
||
|
'msg-citizen-footer-desc' => $localizer->msg( "citizen-footer-desc" )->inContentLanguage()->parse(),
|
||
|
'msg-citizen-footer-tagline' => $localizer->msg( "citizen-footer-tagline" )->inContentLanguage()->parse()
|
||
|
];
|
||
|
}
|
||
|
}
|