nasa / meza

Setup an enterprise MediaWiki server with simple commands
MIT License
18 stars 10 forks source link

Accessibility link in footer to meet 508 Compliance required by NASA #46

Closed cowen23 closed 6 months ago

cowen23 commented 8 months ago

Environment

Issue details

Agency-IT-Outreach sent email on 3/12/24 from Chief Information Officer stating all NASA web sites, both internal and external require a link to NASA's accessibility statement, located at https://www.nasa.gov/accessibility/ in the footer.

One solution could be to:

  1. Add the following to the localsettings.php page: $wgHooks['SkinAddFooterLinks'][] = function ( Skin $skin, string $key, array &$footerlinks ) { if ( $key === 'places' ) { $footerlinks['508link'] = Html::rawElement( 'a',['href' => 'https://www.nasa.gov/accessibility/','rel' => 'noreferrer noopener'],$skin->msg( 'Accessibility-link' )->text()); }; };

  2. Then create a new page at https:///index.php?title=MediaWiki:Accessibility-link and just drop the word ‘Accessibility’ in it.

ndc-rkevans commented 6 months ago

fixed in 39.x with https://github.com/nasa/meza/commit/1697c20fcf34866bf92bc816091e98546d4d1fe0

ndc-rkevans commented 6 months ago

fixed in 39.x with https://github.com/nasa/meza/commit/1697c20fcf34866bf92bc816091e98546d4d1fe0