Added footer, added radio buttons for single option polls, fixed voting bug

This commit is contained in:
2021-04-04 12:04:00 +02:00
parent 50750c6808
commit 44d0940e23
7 changed files with 61 additions and 16 deletions

View File

@ -51,7 +51,18 @@ function get_page_header(
. $greeting
. '<div class="spacer"></div>'
. $logout_link
. '</header>';
. '</header><main>';
}
function get_page_footer()
{
$version = json_decode(file_get_contents(__DIR__ . '/composer.json'), true)['version'];
return '</main><footer>'
. '<a href="https://phlaym.net/git/phlaym/Pfadlock/releases/tag/'.$version.'">Version ' . $version . '</a>'
. '<a href="https://phlaym.net/git/phlaym/Dragonpolls" title="Source"><div class="linkcontents">'
. file_get_contents(__DIR__.'/icons/home.svg')
. '<span class="linklabel">Source Code</span></div></a>'
. '</footer></body></html>';
}
function redirect($to)