mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-09-23 10:19:43 +00:00
refactor(core): ♻️ drop getFooterIcons
This commit is contained in:
parent
273df31b4d
commit
4f74f0b4ad
|
@ -71,33 +71,6 @@ final class Footer extends Partial {
|
|||
];
|
||||
}
|
||||
|
||||
$footerIcons = $skin->getFooterIconsPublic();
|
||||
|
||||
if ( count( $footerIcons ) > 0 ) {
|
||||
$icons = [];
|
||||
foreach ( $footerIcons as $blockName => $blockIcons ) {
|
||||
$html = '';
|
||||
foreach ( $blockIcons as $key => $icon ) {
|
||||
$html .= $skin->makeFooterIcon( $icon );
|
||||
}
|
||||
if ( $html ) {
|
||||
$block = htmlspecialchars( $blockName );
|
||||
$icons[] = [
|
||||
'id' => 'footer-' . $block . 'ico',
|
||||
'html' => $html,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
if ( count( $icons ) > 0 ) {
|
||||
$data['data-citizen-icons'] = [
|
||||
'id' => 'footer-icons',
|
||||
'className' => 'noprint',
|
||||
'array-items' => $icons,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
return $data;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -136,15 +136,6 @@ class SkinCitizen extends SkinMustache {
|
|||
return parent::getFooterLinks();
|
||||
}
|
||||
|
||||
/**
|
||||
* Change access to public, as it is used in partials
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
final public function getFooterIconsPublic() {
|
||||
return parent::getFooterIcons();
|
||||
}
|
||||
|
||||
/**
|
||||
* Change access to public, as it is used in partials
|
||||
*
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
</section>
|
||||
<section class="citizen-footer__bottom">
|
||||
<div id="footer-tagline">{{{msg-citizen-footer-tagline}}}</div>
|
||||
{{#data-citizen-icons}}{{>Footer__row}}{{/data-citizen-icons}}
|
||||
{{#data-footer.data-icons}}{{>Footer__row}}{{/data-footer.data-icons}}
|
||||
</section>
|
||||
</div>
|
||||
</footer>
|
Loading…
Reference in a new issue