From 3bda49a97154d39e908432ac6714131d82d29822 Mon Sep 17 00:00:00 2001 From: Alex Parsons Date: Wed, 5 Jun 2024 13:32:58 +0000 Subject: [PATCH] Common footer across MP subpages --- .../{_vote_footer.php => _profile_footer.php} | 14 +++++++++ .../templates/html/mp/divisions.php | 2 +- .../templates/html/mp/profile.php | 30 +------------------ .../templates/html/mp/recent.php | 2 +- .../templates/html/mp/register.php | 30 +------------------ .../templates/html/mp/votes.php | 2 +- 6 files changed, 19 insertions(+), 61 deletions(-) rename www/includes/easyparliament/templates/html/mp/{_vote_footer.php => _profile_footer.php} (55%) diff --git a/www/includes/easyparliament/templates/html/mp/_vote_footer.php b/www/includes/easyparliament/templates/html/mp/_profile_footer.php similarity index 55% rename from www/includes/easyparliament/templates/html/mp/_vote_footer.php rename to www/includes/easyparliament/templates/html/mp/_profile_footer.php index 4ce9e62b19..88661d1670 100644 --- a/www/includes/easyparliament/templates/html/mp/_vote_footer.php +++ b/www/includes/easyparliament/templates/html/mp/_profile_footer.php @@ -1,6 +1,8 @@

+

+

voting information on TheyWorkForYou.') ?>

@@ -13,4 +15,16 @@

+ +

+ We’re missing a photo of . + If you have a photo that you can release under + a Creative Commons Attribution-ShareAlike license + or can locate a copyright free photo, + please email it to us. + Please do not email us about copyrighted photos + elsewhere on the internet; we can’t use them. +

+ +
diff --git a/www/includes/easyparliament/templates/html/mp/divisions.php b/www/includes/easyparliament/templates/html/mp/divisions.php index 31b46a07ce..965109b08f 100644 --- a/www/includes/easyparliament/templates/html/mp/divisions.php +++ b/www/includes/easyparliament/templates/html/mp/divisions.php @@ -249,7 +249,7 @@ + include('_profile_footer.php'); ?> diff --git a/www/includes/easyparliament/templates/html/mp/profile.php b/www/includes/easyparliament/templates/html/mp/profile.php index 06529b29fa..396f67e214 100644 --- a/www/includes/easyparliament/templates/html/mp/profile.php +++ b/www/includes/easyparliament/templates/html/mp/profile.php @@ -248,35 +248,7 @@ -
-

- -

Public Whip.'), "https://www.publicwhip.org.uk/mp.php?id=uk.org.publicwhip/member/ $member_id&showall=yes"); ?>

- - -

- - - - - - -

- -

- We’re missing a photo of . - If you have a photo that you can release under - a Creative Commons Attribution-ShareAlike license - or can locate a copyright free photo, - please email it to us. - Please do not email us about copyrighted photos - elsewhere on the internet; we can’t use them. -

- -
+ diff --git a/www/includes/easyparliament/templates/html/mp/recent.php b/www/includes/easyparliament/templates/html/mp/recent.php index 1f2658b1e9..759b11017c 100644 --- a/www/includes/easyparliament/templates/html/mp/recent.php +++ b/www/includes/easyparliament/templates/html/mp/recent.php @@ -49,7 +49,7 @@ + include('_profile_footer.php'); ?> -
-

- -

Public Whip.'), "https://www.publicwhip.org.uk/mp.php?id=uk.org.publicwhip/member/ $member_id&showall=yes"); ?>

- - -

- - - - - - -

- -

- We’re missing a photo of . - If you have a photo that you can release under - a Creative Commons Attribution-ShareAlike license - or can locate a copyright free photo, - please email it to us. - Please do not email us about copyrighted photos - elsewhere on the internet; we can’t use them. -

- -
+ diff --git a/www/includes/easyparliament/templates/html/mp/votes.php b/www/includes/easyparliament/templates/html/mp/votes.php index 85f9a7d208..f0c58ce548 100644 --- a/www/includes/easyparliament/templates/html/mp/votes.php +++ b/www/includes/easyparliament/templates/html/mp/votes.php @@ -269,7 +269,7 @@ - +