Skip to content

Commit

Permalink
Add WhereDoIVote link
Browse files Browse the repository at this point in the history
  • Loading branch information
ajparsons committed Jul 3, 2024
1 parent d67c8ac commit 311a874
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions www/includes/easyparliament/templates/html/postcode/ge2024.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,19 @@
}
?>.
</p>
<?php
$wheredoivote_url = 'https://wheredoivote.co.uk/';
if (isset($_GET['address'])) {
$wheredoivote_url .= 'address/' . urlencode($_GET['address']);
} elseif (isset($_GET['pc'])) {
$wheredoivote_url .= 'postcode/' . urlencode($_GET['pc']);
}
?>

<p>
To find out where to vote (your polling station), visit <a href="<?= $wheredoivote_url ?>">WhereDoIVote.co.uk</a>.
</p>

<p>
To understand more about <a href="https://www.mysociety.org/democracy/the-2024-general-election/">how the election will work</a>, you can read <a href="https://www.mysociety.org/democracy/the-2024-general-election/">our 10-point guide</a>.
</p>
Expand Down

0 comments on commit 311a874

Please sign in to comment.