@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | <ul class="business-list"> |
| 15 | 15 | <?php |
| 16 | 16 | $prevlevel = ''; |
| 17 | - foreach ($rows as $row) { ?> |
|
| 17 | + foreach ($rows as $row) { ?> |
|
| 18 | 18 | <?php if ($row['htype'] == 10) { |
| 19 | 19 | if ($prevlevel == 'sub') { ?> |
| 20 | 20 | </ul> |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | <?php } ?> |
| 50 | 50 | </a> |
| 51 | 51 | <?php } |
| 52 | - if (isset($row['excerpt'])) { ?> |
|
| 52 | + if (isset($row['excerpt'])) { ?> |
|
| 53 | 53 | <p class="business-list__excerpt"> |
| 54 | 54 | <?= trim_characters($row['excerpt'], 0, 200) ?> |
| 55 | 55 | </p> |
@@ -32,9 +32,9 @@ |
||
| 32 | 32 | </div> |
| 33 | 33 | </div> |
| 34 | 34 | <?php } else { |
| 35 | - $section = false; |
|
| 36 | - include '_section_content.php'; |
|
| 37 | - } ?> |
|
| 35 | + $section = false; |
|
| 36 | + include '_section_content.php'; |
|
| 37 | + } ?> |
|
| 38 | 38 | |
| 39 | 39 | </div> |
| 40 | 40 | |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -foreach($data['rows'] as $speech) { ?> |
|
| 3 | +foreach ($data['rows'] as $speech) { ?> |
|
| 4 | 4 | |
| 5 | 5 | <?php |
| 6 | 6 | |
@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | $body = preg_replace('# (S\d[O0WF]-\d+)[, ]#', ' <a href="/spwrans/?spid=$1">$1</a> ', $body); |
| 16 | 16 | $body = preg_replace_callback( |
| 17 | 17 | '#<citation id="uk\.org\.publicwhip/(.*?)/(.*?)">\[(.*?)\]</citation>#', |
| 18 | - function ($matches) { |
|
| 18 | + function($matches) { |
|
| 19 | 19 | if ($matches[1] == 'spor') { |
| 20 | 20 | $href_segment = 'sp/?g'; |
| 21 | 21 | } elseif ($matches[1] == 'spwa') { |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | <div class="debate-speech__speaker-and-content"> |
| 120 | 120 | <?php } ?> |
| 121 | 121 | |
| 122 | - <?php if(isset($speech['speaker']) && count($speech['speaker']) > 0) { ?> |
|
| 122 | + <?php if (isset($speech['speaker']) && count($speech['speaker']) > 0) { ?> |
|
| 123 | 123 | <h2 class="debate-speech__speaker"> |
| 124 | 124 | <?php |
| 125 | 125 | |
@@ -193,7 +193,7 @@ discard block |
||
| 193 | 193 | <?php } ?> |
| 194 | 194 | |
| 195 | 195 | <?php if (isset($speech['mp_vote'])) { |
| 196 | - $mp_vote = [ 'vote' => $speech['mp_vote']['vote'] ]; |
|
| 196 | + $mp_vote = ['vote' => $speech['mp_vote']['vote']]; |
|
| 197 | 197 | if (isset($speech['before_mp'])) { |
| 198 | 198 | $before_mp = $speech['before_mp']; |
| 199 | 199 | } |
@@ -167,7 +167,7 @@ |
||
| 167 | 167 | <?php # XXX |
| 168 | 168 | if ($data['info']['major'] == 8 && preg_match('#\d{4}-\d\d-\d\d\.(.*?)\.q#', $speech['gid'], $m)) { |
| 169 | 169 | ?><p class="debate-speech__question_id"><small> |
| 170 | - <?= "Question $m[1]" ?> |
|
| 170 | + <?= "question $m[1]" ?> |
|
| 171 | 171 | </small></p> |
| 172 | 172 | <?php } ?> |
| 173 | 173 | |
@@ -124,32 +124,32 @@ discard block |
||
| 124 | 124 | <?php |
| 125 | 125 | |
| 126 | 126 | $speaker = $speech['speaker']; |
| 127 | - $speaker_name = ucfirst($speaker['name']); |
|
| 128 | - |
|
| 129 | - [$image_url, $size] = MySociety\TheyWorkForYou\Utility\Member::findMemberImage( |
|
| 130 | - $speaker['person_id'], |
|
| 131 | - true, |
|
| 132 | - $data['info']['major'] == 101 ? 'lord' : 'general' |
|
| 133 | - ); |
|
| 134 | - |
|
| 135 | - if (count($speaker['office'])) { |
|
| 136 | - $desc = []; |
|
| 137 | - foreach ($speaker['office'] as $off) { |
|
| 138 | - $desc[] = $off['pretty']; |
|
| 139 | - } |
|
| 140 | - $speaker_position = join(', ', $desc); |
|
| 141 | - } else { |
|
| 142 | - $speaker_position = _htmlentities($speaker['party']); |
|
| 143 | - if ($speaker['house'] == 1 && |
|
| 127 | + $speaker_name = ucfirst($speaker['name']); |
|
| 128 | + |
|
| 129 | + [$image_url, $size] = MySociety\TheyWorkForYou\Utility\Member::findMemberImage( |
|
| 130 | + $speaker['person_id'], |
|
| 131 | + true, |
|
| 132 | + $data['info']['major'] == 101 ? 'lord' : 'general' |
|
| 133 | + ); |
|
| 134 | + |
|
| 135 | + if (count($speaker['office'])) { |
|
| 136 | + $desc = []; |
|
| 137 | + foreach ($speaker['office'] as $off) { |
|
| 138 | + $desc[] = $off['pretty']; |
|
| 139 | + } |
|
| 140 | + $speaker_position = join(', ', $desc); |
|
| 141 | + } else { |
|
| 142 | + $speaker_position = _htmlentities($speaker['party']); |
|
| 143 | + if ($speaker['house'] == 1 && |
|
| 144 | 144 | $speaker['party'] != 'Speaker' && |
| 145 | 145 | $speaker['party'] != 'Deputy Speaker' && |
| 146 | 146 | $speaker['constituency'] |
| 147 | - ) { |
|
| 148 | - $speaker_position .= ', ' . $speaker['constituency']; |
|
| 149 | - } |
|
| 150 | - } |
|
| 147 | + ) { |
|
| 148 | + $speaker_position .= ', ' . $speaker['constituency']; |
|
| 149 | + } |
|
| 150 | + } |
|
| 151 | 151 | |
| 152 | - ?> |
|
| 152 | + ?> |
|
| 153 | 153 | <a href="<?= $speech['speaker']['url'] ?>"> |
| 154 | 154 | <img src="<?= $image_url ?>" alt="Photo of <?= $speaker_name ?>"> |
| 155 | 155 | <strong class="debate-speech__speaker__name"><?= $speaker_name ?></strong> |
@@ -165,8 +165,8 @@ discard block |
||
| 165 | 165 | <?php } ?> |
| 166 | 166 | |
| 167 | 167 | <?php # XXX |
| 168 | - if ($data['info']['major'] == 8 && preg_match('#\d{4}-\d\d-\d\d\.(.*?)\.q#', $speech['gid'], $m)) { |
|
| 169 | - ?><p class="debate-speech__question_id"><small> |
|
| 168 | + if ($data['info']['major'] == 8 && preg_match('#\d{4}-\d\d-\d\d\.(.*?)\.q#', $speech['gid'], $m)) { |
|
| 169 | + ?><p class="debate-speech__question_id"><small> |
|
| 170 | 170 | <?= "Question $m[1]" ?> |
| 171 | 171 | </small></p> |
| 172 | 172 | <?php } ?> |
@@ -193,15 +193,15 @@ discard block |
||
| 193 | 193 | <?php } ?> |
| 194 | 194 | |
| 195 | 195 | <?php if (isset($speech['mp_vote'])) { |
| 196 | - $mp_vote = [ 'vote' => $speech['mp_vote']['vote'] ]; |
|
| 197 | - if (isset($speech['before_mp'])) { |
|
| 198 | - $before_mp = $speech['before_mp']; |
|
| 199 | - } |
|
| 200 | - if (isset($speech['after_mp'])) { |
|
| 201 | - $after_mp = $speech['after_mp']; |
|
| 202 | - } |
|
| 203 | - include dirname(__FILE__) . '/../divisions/_your_mp.php'; |
|
| 204 | - } ?> |
|
| 196 | + $mp_vote = [ 'vote' => $speech['mp_vote']['vote'] ]; |
|
| 197 | + if (isset($speech['before_mp'])) { |
|
| 198 | + $before_mp = $speech['before_mp']; |
|
| 199 | + } |
|
| 200 | + if (isset($speech['after_mp'])) { |
|
| 201 | + $after_mp = $speech['after_mp']; |
|
| 202 | + } |
|
| 203 | + include dirname(__FILE__) . '/../divisions/_your_mp.php'; |
|
| 204 | + } ?> |
|
| 205 | 205 | <div class="debate-speech__division__details"> |
| 206 | 206 | <?php include dirname(__FILE__) . '/../divisions/_votes.php'; ?> |
| 207 | 207 | </div> |
@@ -1,7 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | $divisions_to_link = []; |
| 4 | -foreach($data['rows'] as $speech) { |
|
| 4 | +foreach ($data['rows'] as $speech) { |
|
| 5 | 5 | |
| 6 | 6 | # Only care about divisions... |
| 7 | 7 | if ($speech['htype'] != 14) { |
@@ -85,13 +85,13 @@ |
||
| 85 | 85 | |
| 86 | 86 | <p><strong>Chairpersons</strong></p> |
| 87 | 87 | <ul> |
| 88 | - <?php foreach($committee['chairmen'] as $chair) { ?> |
|
| 88 | + <?php foreach ($committee['chairmen'] as $chair) { ?> |
|
| 89 | 89 | <li><?= $chair['name'] ?> (<?= $chair['attending'] ?>)</li> |
| 90 | 90 | <?php } ?> |
| 91 | 91 | </ul> |
| 92 | 92 | <p><strong>Members</strong></p> |
| 93 | 93 | <ul> |
| 94 | - <?php foreach($committee['members'] as $chair) { ?> |
|
| 94 | + <?php foreach ($committee['members'] as $chair) { ?> |
|
| 95 | 95 | <li><?= $chair['name'] ?> (<?= $chair['attending'] ?>)</li> |
| 96 | 96 | <?php } ?> |
| 97 | 97 | </ul> |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | <?php |
| 10 | 10 | # remove the current policy from the list of related policies |
| 11 | 11 | if (isset($policy)) { |
| 12 | - $division['related_policies'] = array_filter($division['related_policies'], function ($related_policy) use ($policy) { |
|
| 12 | + $division['related_policies'] = array_filter($division['related_policies'], function($related_policy) use ($policy) { |
|
| 13 | 13 | return $related_policy['policy_id'] != $policy['policy_id']; |
| 14 | 14 | }); |
| 15 | 15 | } |
@@ -119,7 +119,7 @@ |
||
| 119 | 119 | $policy_direction = $key_vote["person_position"]; |
| 120 | 120 | $policy_group = "highlighted"; |
| 121 | 121 | $party_score_difference = $key_vote["score_difference"]; |
| 122 | - $party_position = $key_vote['party_position'] ; |
|
| 122 | + $party_position = $key_vote['party_position']; |
|
| 123 | 123 | $comparison_party = $data["comparison_party"]; |
| 124 | 124 | $current_party_comparison = $data["current_party_comparison"]; |
| 125 | 125 | $unslugified_comparison_party = ucwords(str_replace('-', ' ', $comparison_party)); |
@@ -113,34 +113,34 @@ discard block |
||
| 113 | 113 | <ul class="vote-descriptions"> |
| 114 | 114 | <?php foreach ($sorted_diffs_only as $policy_id => $diff) { |
| 115 | 115 | |
| 116 | - $key_vote = $diff; |
|
| 117 | - $covid_affected = in_array($policy_id, $covid_policy_list); |
|
| 118 | - $policy_desc = strip_tags($key_vote['policy_text']); |
|
| 119 | - $policy_direction = $key_vote["person_position"]; |
|
| 120 | - $policy_group = "highlighted"; |
|
| 121 | - $party_score_difference = $key_vote["score_difference"]; |
|
| 122 | - $party_position = $key_vote['party_position'] ; |
|
| 123 | - $comparison_party = $data["comparison_party"]; |
|
| 124 | - $current_party_comparison = $data["current_party_comparison"]; |
|
| 125 | - $unslugified_comparison_party = ucwords(str_replace('-', ' ', $comparison_party)); |
|
| 126 | - |
|
| 127 | - if (strlen($unslugified_comparison_party) == 3) { |
|
| 128 | - $unslugified_comparison_party = strtoupper($comparison_party); |
|
| 129 | - } |
|
| 130 | - $description = sprintf( |
|
| 131 | - '%s <b>%s</b> %s; comparable %s MPs <b>%s</b>.', |
|
| 132 | - $full_name, |
|
| 133 | - $diff['person_position'], |
|
| 134 | - strip_tags($diff['policy_text']), |
|
| 135 | - $unslugified_comparison_party, |
|
| 136 | - $diff['party_position'] |
|
| 137 | - ); |
|
| 138 | - $link = $member_url . '/divisions?policy=' . $policy_id; |
|
| 139 | - $link_text = 'Show votes'; |
|
| 140 | - |
|
| 141 | - include '_vote_description.php'; |
|
| 142 | - |
|
| 143 | - } ?> |
|
| 116 | + $key_vote = $diff; |
|
| 117 | + $covid_affected = in_array($policy_id, $covid_policy_list); |
|
| 118 | + $policy_desc = strip_tags($key_vote['policy_text']); |
|
| 119 | + $policy_direction = $key_vote["person_position"]; |
|
| 120 | + $policy_group = "highlighted"; |
|
| 121 | + $party_score_difference = $key_vote["score_difference"]; |
|
| 122 | + $party_position = $key_vote['party_position'] ; |
|
| 123 | + $comparison_party = $data["comparison_party"]; |
|
| 124 | + $current_party_comparison = $data["current_party_comparison"]; |
|
| 125 | + $unslugified_comparison_party = ucwords(str_replace('-', ' ', $comparison_party)); |
|
| 126 | + |
|
| 127 | + if (strlen($unslugified_comparison_party) == 3) { |
|
| 128 | + $unslugified_comparison_party = strtoupper($comparison_party); |
|
| 129 | + } |
|
| 130 | + $description = sprintf( |
|
| 131 | + '%s <b>%s</b> %s; comparable %s MPs <b>%s</b>.', |
|
| 132 | + $full_name, |
|
| 133 | + $diff['person_position'], |
|
| 134 | + strip_tags($diff['policy_text']), |
|
| 135 | + $unslugified_comparison_party, |
|
| 136 | + $diff['party_position'] |
|
| 137 | + ); |
|
| 138 | + $link = $member_url . '/divisions?policy=' . $policy_id; |
|
| 139 | + $link_text = 'Show votes'; |
|
| 140 | + |
|
| 141 | + include '_vote_description.php'; |
|
| 142 | + |
|
| 143 | + } ?> |
|
| 144 | 144 | </ul> |
| 145 | 145 | |
| 146 | 146 | <?php } ?> |
@@ -175,56 +175,56 @@ discard block |
||
| 175 | 175 | |
| 176 | 176 | <ul class="vote-descriptions"> |
| 177 | 177 | <?php foreach ($segment['votes']->positions as $key_vote) { |
| 178 | - $policy_id = $key_vote['policy_id']; |
|
| 179 | - $covid_affected = in_array($policy_id, $covid_policy_list); |
|
| 180 | - $policy_desc = strip_tags($key_vote['policy']); |
|
| 181 | - $policy_direction = $key_vote["position"]; |
|
| 182 | - $policy_group = $segment['key']; |
|
| 183 | - |
|
| 184 | - if (isset($policy_last_update[$policy_id]) && $policy_last_update[$policy_id] > $most_recent) { |
|
| 185 | - $most_recent = $policy_last_update[$policy_id]; |
|
| 186 | - } |
|
| 187 | - |
|
| 188 | - if ($key_vote['has_strong'] || $key_vote['position'] == 'has never voted on') { |
|
| 189 | - $description = ucfirst($key_vote['desc']); |
|
| 190 | - } else { |
|
| 191 | - $description = sprintf( |
|
| 192 | - 'We don’t have enough information to calculate %s’s position on %s.', |
|
| 193 | - $full_name, |
|
| 194 | - $key_vote['policy'] |
|
| 195 | - ); |
|
| 196 | - } |
|
| 197 | - $link = sprintf( |
|
| 198 | - '%s/divisions?policy=%s', |
|
| 199 | - $member_url, |
|
| 200 | - $policy_id |
|
| 201 | - ); |
|
| 202 | - $link_text = $key_vote['position'] != 'has never voted on' ? 'Show votes' : 'Details'; |
|
| 203 | - $comparison_party = $data["comparison_party"]; |
|
| 204 | - |
|
| 205 | - # Unslugify for display |
|
| 206 | - $unslugified_comparison_party = ucwords(str_replace('-', ' ', $comparison_party)); |
|
| 207 | - |
|
| 208 | - if (strlen($unslugified_comparison_party) == 3) { |
|
| 209 | - $unslugified_comparison_party = strtoupper($comparison_party); |
|
| 210 | - } |
|
| 211 | - $min_diff_score = 0; // setting this to 0 means that all comparisons are displayed. |
|
| 212 | - if (isset($sorted_diffs[$policy_id])) { |
|
| 213 | - $diff = $sorted_diffs[$policy_id]; |
|
| 214 | - $party_position = $diff['party_position']; |
|
| 215 | - $party_score_difference = $diff["score_difference"]; |
|
| 216 | - if ($sorted_diffs[$policy_id]['score_difference'] > $min_diff_score && $party_member_count > 1) { |
|
| 217 | - $party_voting_line = sprintf('Comparable %s MPs %s.', $unslugified_comparison_party, $diff['party_position']); |
|
| 218 | - } |
|
| 219 | - } else { |
|
| 220 | - $party_voting_line = null; |
|
| 221 | - $party_position = null; |
|
| 222 | - $party_score_difference = null; |
|
| 223 | - } |
|
| 224 | - |
|
| 225 | - include '_vote_description.php'; |
|
| 226 | - |
|
| 227 | - } ?> |
|
| 178 | + $policy_id = $key_vote['policy_id']; |
|
| 179 | + $covid_affected = in_array($policy_id, $covid_policy_list); |
|
| 180 | + $policy_desc = strip_tags($key_vote['policy']); |
|
| 181 | + $policy_direction = $key_vote["position"]; |
|
| 182 | + $policy_group = $segment['key']; |
|
| 183 | + |
|
| 184 | + if (isset($policy_last_update[$policy_id]) && $policy_last_update[$policy_id] > $most_recent) { |
|
| 185 | + $most_recent = $policy_last_update[$policy_id]; |
|
| 186 | + } |
|
| 187 | + |
|
| 188 | + if ($key_vote['has_strong'] || $key_vote['position'] == 'has never voted on') { |
|
| 189 | + $description = ucfirst($key_vote['desc']); |
|
| 190 | + } else { |
|
| 191 | + $description = sprintf( |
|
| 192 | + 'We don’t have enough information to calculate %s’s position on %s.', |
|
| 193 | + $full_name, |
|
| 194 | + $key_vote['policy'] |
|
| 195 | + ); |
|
| 196 | + } |
|
| 197 | + $link = sprintf( |
|
| 198 | + '%s/divisions?policy=%s', |
|
| 199 | + $member_url, |
|
| 200 | + $policy_id |
|
| 201 | + ); |
|
| 202 | + $link_text = $key_vote['position'] != 'has never voted on' ? 'Show votes' : 'Details'; |
|
| 203 | + $comparison_party = $data["comparison_party"]; |
|
| 204 | + |
|
| 205 | + # Unslugify for display |
|
| 206 | + $unslugified_comparison_party = ucwords(str_replace('-', ' ', $comparison_party)); |
|
| 207 | + |
|
| 208 | + if (strlen($unslugified_comparison_party) == 3) { |
|
| 209 | + $unslugified_comparison_party = strtoupper($comparison_party); |
|
| 210 | + } |
|
| 211 | + $min_diff_score = 0; // setting this to 0 means that all comparisons are displayed. |
|
| 212 | + if (isset($sorted_diffs[$policy_id])) { |
|
| 213 | + $diff = $sorted_diffs[$policy_id]; |
|
| 214 | + $party_position = $diff['party_position']; |
|
| 215 | + $party_score_difference = $diff["score_difference"]; |
|
| 216 | + if ($sorted_diffs[$policy_id]['score_difference'] > $min_diff_score && $party_member_count > 1) { |
|
| 217 | + $party_voting_line = sprintf('Comparable %s MPs %s.', $unslugified_comparison_party, $diff['party_position']); |
|
| 218 | + } |
|
| 219 | + } else { |
|
| 220 | + $party_voting_line = null; |
|
| 221 | + $party_position = null; |
|
| 222 | + $party_score_difference = null; |
|
| 223 | + } |
|
| 224 | + |
|
| 225 | + include '_vote_description.php'; |
|
| 226 | + |
|
| 227 | + } ?> |
|
| 228 | 228 | </ul> |
| 229 | 229 | |
| 230 | 230 | <div class="share-vote-descriptions"> |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | <div> |
| 57 | 57 | <h3 class="browse-content"><?= gettext('Browse content') ?></h3> |
| 58 | 58 | <ul> |
| 59 | - <?php foreach($sidebar_links as $date) { ?> |
|
| 59 | + <?php foreach ($sidebar_links as $date) { ?> |
|
| 60 | 60 | <li> |
| 61 | 61 | <a href="#<?= strftime('%Y-%m-%d', strtotime($date)) ?>"> |
| 62 | 62 | <?= strftime('%e %b %Y', strtotime($date)) ?> |
@@ -116,19 +116,19 @@ discard block |
||
| 116 | 116 | <?php } ?> |
| 117 | 117 | |
| 118 | 118 | <?php |
| 119 | - if( |
|
| 120 | - $members || |
|
| 119 | + if( |
|
| 120 | + $members || |
|
| 121 | 121 | (isset($constituencies) && count($constituencies) > 0) || |
| 122 | 122 | ($alertsearch) |
| 123 | - ) { |
|
| 124 | - /* We need to disambiguate the user's instructions */ |
|
| 125 | - $member_options = false; |
|
| 126 | - ?> |
|
| 123 | + ) { |
|
| 124 | + /* We need to disambiguate the user's instructions */ |
|
| 125 | + $member_options = false; |
|
| 126 | + ?> |
|
| 127 | 127 | <div class="alert-section alert-section--disambiguation"> |
| 128 | 128 | <div class="alert-section__primary"> |
| 129 | 129 | |
| 130 | 130 | <?php if ($members) { |
| 131 | - $member_options = true; ?> |
|
| 131 | + $member_options = true; ?> |
|
| 132 | 132 | <h3><?= sprintf(gettext('Sign up for alerts when people matching <i>%s</i> speaks'), _htmlspecialchars($alertsearch)) ?></h3> |
| 133 | 133 | <ul> |
| 134 | 134 | <?php |
@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | <input type="hidden" name="email" value="<?= _htmlspecialchars($email) ?>"> |
| 141 | 141 | <input type="hidden" name="pid" value="<?= $row['person_id'] ?>"> |
| 142 | 142 | <?php |
| 143 | - $name = member_full_name($row['house'], $row['title'], $row['given_name'], $row['family_name'], $row['lordofname']); |
|
| 143 | + $name = member_full_name($row['house'], $row['title'], $row['given_name'], $row['family_name'], $row['lordofname']); |
|
| 144 | 144 | if ($row['constituency']) { |
| 145 | 145 | $name .= ' (' . gettext($row['constituency']) . ')'; |
| 146 | 146 | } |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | <?php } ?> |
| 155 | 155 | |
| 156 | 156 | <?php if (isset($constituencies) && count($constituencies) > 0) { |
| 157 | - $member_options = true; ?> |
|
| 157 | + $member_options = true; ?> |
|
| 158 | 158 | <h3><?= sprintf(gettext('Sign up for alerts when MPs for constituencies matching <i>%s</i> speaks'), _htmlspecialchars($alertsearch)) ?></h3> |
| 159 | 159 | <ul> |
| 160 | 160 | <?php foreach ($constituencies as $constituency => $member) { ?> |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | <?php } ?> |
| 173 | 173 | |
| 174 | 174 | <?php if ($alertsearch) { |
| 175 | - if ($member_options) { ?> |
|
| 175 | + if ($member_options) { ?> |
|
| 176 | 176 | <h3><?= gettext('Sign up for alerts for topics') ?></h3> |
| 177 | 177 | <?php } else { ?> |
| 178 | 178 | <h3><?= gettext('Great! Can you just confirm what you mean?') ?></h3> |
@@ -202,8 +202,8 @@ discard block |
||
| 202 | 202 | want? You will only get an alert if all of these |
| 203 | 203 | are mentioned in the same debate.') ?> |
| 204 | 204 | <?php if (isset($member_alertsearch)) { |
| 205 | - printf(gettext('Did you mean to get alerts for when your representative mentions something instead? If so maybe you want to subscribe to…')); |
|
| 206 | - } ?> |
|
| 205 | + printf(gettext('Did you mean to get alerts for when your representative mentions something instead? If so maybe you want to subscribe to…')); |
|
| 206 | + } ?> |
|
| 207 | 207 | </em> |
| 208 | 208 | <?php } ?> |
| 209 | 209 | </li> |
@@ -287,9 +287,9 @@ discard block |
||
| 287 | 287 | <h3> |
| 288 | 288 | <?php |
| 289 | 289 | $name = $pid_member->full_name(); |
| 290 | - if ($pid_member->constituency()) { |
|
| 291 | - $name .= ' (' . _htmlspecialchars($pid_member->constituency()) . ')'; |
|
| 292 | - } ?> |
|
| 290 | + if ($pid_member->constituency()) { |
|
| 291 | + $name .= ' (' . _htmlspecialchars($pid_member->constituency()) . ')'; |
|
| 292 | + } ?> |
|
| 293 | 293 | <?= sprintf(gettext('Sign up for an alert when %s speaks.'), $name) ?> |
| 294 | 294 | </h3> |
| 295 | 295 | <?php } elseif ($keyword) { ?> |
@@ -116,7 +116,7 @@ |
||
| 116 | 116 | <?php } ?> |
| 117 | 117 | |
| 118 | 118 | <?php |
| 119 | - if( |
|
| 119 | + if ( |
|
| 120 | 120 | $members || |
| 121 | 121 | (isset($constituencies) && count($constituencies) > 0) || |
| 122 | 122 | ($alertsearch) |