get('/contact.php', mkiRedirect('/contact')); $router->get('/contact.html', mkiRedirect('/contact')); $router->get('/nintendo', mkiRedirect('/contact')); $router->get('/nintendo.php', mkiRedirect('/contact')); $router->get('/contact', function() { $contact = [ [ 'id' => 'contact', 'title' => 'Direct Contact', 'items' => [ [ 'id' => 'email', 'name' => 'E-mail', 'icon' => 'fmi fmi-email', 'display' => 'contact@flash.moe', 'link' => 'mailto:contact@flash.moe', ], ], ], [ 'id' => 'communities', 'title' => 'Communities & Social Media', 'items' => [ [ 'id' => 'flashii', 'name' => 'Flashii', 'icon' => 'fmi fmi-flashii', 'display' => 'flash', 'link' => '//flashii.net/profile.php?u=1', ], [ 'id' => 'twitter', 'name' => 'Twitter', 'icon' => 'fmi fmi-twitter', 'display' => '@smugwave', 'link' => '//twitter.com/smugwave', ], [ 'id' => 'youtube', 'name' => 'YouTube', 'icon' => 'fmi fmi-youtube', 'display' => 'flashwave', 'link' => '//youtube.com/c/flashwave', ], [ 'id' => 'github', 'name' => 'Github', 'icon' => 'fmi fmi-github', 'display' => 'flashwave', 'link' => '//github.com/flashwave', ], [ 'id' => 'lastfm', 'name' => 'Last.fm', 'icon' => 'fmi fmi-lastfm', 'display' => 'flashwave_', 'link' => '//last.fm/user/flashwave_', ], ], ], ]; $body = fm_component('header', [ 'title' => 'flash.moe / contact', ]); foreach($contact as $section) { $body .= <<

{$section['title']}

HTML; foreach($section['items'] as $social) { $body .= '
'; if(isset($social['link'])) { $body .= ''; } else { $body .= ''; } $body .= <<
HTML; } $body .= ''; } $body .= fm_component('footer'); return $body; });