refactor(core): ♻️ drop getFooterIcons

This commit is contained in:
alistair3149 2022-10-03 16:14:59 -04:00
parent 273df31b4d
commit 4f74f0b4ad
No known key found for this signature in database
3 changed files with 1 additions and 37 deletions

View file

@ -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;
}
}

View file

@ -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
*

View file

@ -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>