Skip to content

Commit

Permalink
Remove GE block from MP pages.
Browse files Browse the repository at this point in the history
  • Loading branch information
dracos committed Jul 5, 2024
1 parent 50ceacb commit ccc444c
Showing 1 changed file with 1 addition and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,40 +45,6 @@
<?php } ?>

<div class="panel">
<h2>General Election 2024</h2>

<p>There is a UK general election on <strong>4th July 2024</strong>
<?php
$date = strtotime("2024-07-04");
$datediff = ceil(($date - time()) / 86400);
if ($datediff > 1) {
echo "($datediff days away)";
} elseif ($datediff > 0) {
echo '(tomorrow!)';
} elseif ($datediff > -86400) {
echo '(today!)';
}
?>.
</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>

<p>Enter your postcode below to learn more about your new constituency and candidates:</p>

<form action="/postcode/">
<label style='font-size:1rem;display:inline' for='postcode'>Postcode:</label>
<input type='text' name='pc' value='' id='postcode' size=8 style="max-width:10em; display: inline; font-size:1rem;">
<input type='submit' value='Look up' class='button'>
</form>

<?php
if ($standing_down_2024) {
echo '<p>This MP is standing down from Parliament at this election.';
}
?>


<hr >
<p>We want MPs to meet the standards and expectations of the people who elected them - <strong>you</strong>!</p>
<p>Learn more about <a href="/support-us/?utm_source=theyworkforyou.com&utm_content=postcode+donate&utm_medium=link&utm_campaign=postcode&how-much=5">our current work</a>, and <a href="https://www.mysociety.org/democracy/who-funds-them/">our new project WhoFundsThem</a> - looking into MPs’ and APPGs’ financial interests.</p>
Expand All @@ -90,4 +56,4 @@
</div>
<p>Learn more about <a href="/support-us/#why-does-mysociety-need-donations-for-these-sites">how we'll use your donation</a> and <a href="/support-us/#i-want-to-be-a-mysociety-supporter">other ways to help</a>.</p>

</div>
</div>

0 comments on commit ccc444c

Please sign in to comment.