Skip to content

Commit

Permalink
Add WhereDoIVote link.
Browse files Browse the repository at this point in the history
  • Loading branch information
ajparsons authored and dracos committed Jul 4, 2024
1 parent d67c8ac commit 7cee68b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion www/docs/postcode/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

# 2024 ELECTION EXTRA

$address = get_http_var('address');
$data['address'] = $address = get_http_var('address');
if ($address) {
$dc_data = democracy_club_address($address);
$constituencies = mapit_address($address, $pc);
Expand Down
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 ($address) {
$wheredoivote_url .= 'address/' . urlencode($address);
} else {
$wheredoivote_url .= 'postcode/' . urlencode($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 7cee68b

Please sign in to comment.