@@ -190,11 +190,14 @@ |
||
| 190 | 190 | <?= $recent_appearances['additional_links'] ?> |
| 191 | 191 | <?php endif; ?> |
| 192 | 192 | |
| 193 | - <?php else: ?> |
|
| 193 | + <?php else { |
|
| 194 | + : ?> |
|
| 194 | 195 | |
| 195 | 196 | <p>No recent appearances to display.</p> |
| 196 | 197 | |
| 197 | - <?php endif; ?> |
|
| 198 | + <?php endif; |
|
| 199 | +} |
|
| 200 | +?> |
|
| 198 | 201 | |
| 199 | 202 | </div> |
| 200 | 203 | <?php endif; ?> |
@@ -105,7 +105,7 @@ |
||
| 105 | 105 | <ul class="vote-descriptions"> |
| 106 | 106 | <?php foreach ($sorted_diffs as $policy_id => $score) { |
| 107 | 107 | |
| 108 | - $key_vote = NULL; |
|
| 108 | + $key_vote = null; |
|
| 109 | 109 | $description = sprintf( |
| 110 | 110 | '%s <b>%s</b> %s, while most %s MPs <b>%s</b>.', |
| 111 | 111 | $full_name, |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | |
| 86 | 86 | include '_vote_description.php'; |
| 87 | 87 | |
| 88 | - } ?> |
|
| 88 | + } ?> |
|
| 89 | 89 | </ul> |
| 90 | 90 | |
| 91 | 91 | <p>We have <b>lots more</b> plain English analysis of <?= $full_name ?>’s voting record on issues like health, welfare, taxation and more. Visit <a href="<?= $member_url ?>/votes"><?= $full_name ?>’s full vote analysis page</a> for more.</p> |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | |
| 126 | 126 | include '_vote_description.php'; |
| 127 | 127 | |
| 128 | - } ?> |
|
| 128 | + } ?> |
|
| 129 | 129 | </ul> |
| 130 | 130 | |
| 131 | 131 | <p>We have <b>lots more</b> plain English analysis of <?= $full_name ?>’s voting record on issues like health, welfare, taxation and more. Visit <a href="<?= $member_url ?>/votes"><?= $full_name ?>’s full vote analysis page</a> for more.</p> |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | |
| 155 | 155 | include '_vote_description.php'; |
| 156 | 156 | |
| 157 | - } ?> |
|
| 157 | + } ?> |
|
| 158 | 158 | </ul> |
| 159 | 159 | |
| 160 | 160 | <p>We have <b>lots more</b> plain English analysis of <?= $full_name ?>’s voting record on issues like health, welfare, taxation and more. Visit <a href="<?= $member_url ?>/votes"><?= $full_name ?>’s full vote analysis page</a> for more.</p> |
@@ -416,7 +416,7 @@ discard block |
||
| 416 | 416 | <a href="http://www.publicwhip.org.uk/mp.php?id=uk.org.publicwhip/member/<?= $member_id ?>&showall=yes">Public Whip</a>.</p> |
| 417 | 417 | |
| 418 | 418 | <?php if($image && $image['exists']) { |
| 419 | - if(isset($data['photo_attribution_text'])) { ?> |
|
| 419 | + if(isset($data['photo_attribution_text'])) { ?> |
|
| 420 | 420 | <p> |
| 421 | 421 | <?php if(isset($data['photo_attribution_link'])) { ?> |
| 422 | 422 | Profile photo: |
@@ -426,7 +426,7 @@ discard block |
||
| 426 | 426 | <?php } ?> |
| 427 | 427 | </p> |
| 428 | 428 | <?php } |
| 429 | - } else { ?> |
|
| 429 | + } else { ?> |
|
| 430 | 430 | <p> |
| 431 | 431 | We’re missing a photo of <?= $full_name ?>. |
| 432 | 432 | If you have a photo <em>that you can release under |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | </div> |
| 65 | 65 | <?php endif; ?> |
| 66 | 66 | |
| 67 | - <?php if ( !$current_member[HOUSE_TYPE_COMMONS] ) { ?> |
|
| 67 | + <?php if (!$current_member[HOUSE_TYPE_COMMONS]) { ?> |
|
| 68 | 68 | <?php if (count($policyPositions->positions) > 0) { ?> |
| 69 | 69 | <div class="panel"> |
| 70 | 70 | <a name="votes"></a> |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | |
| 131 | 131 | <p>We have <b>lots more</b> plain English analysis of <?= $full_name ?>’s voting record on issues like health, welfare, taxation and more. Visit <a href="<?= $member_url ?>/votes"><?= $full_name ?>’s full vote analysis page</a> for more.</p> |
| 132 | 132 | |
| 133 | - <?php elseif (count($policyPositions->positions) > 0 ): ?> |
|
| 133 | + <?php elseif (count($policyPositions->positions) > 0): ?> |
|
| 134 | 134 | <?php if (count($party_positions) && $party_member_count > 1) { ?> |
| 135 | 135 | <p> |
| 136 | 136 | <?= $full_name ?> is a <?= $party ?> MP, and on the <b>vast majority</b> of issues votes the <b>same way</b> as other <?= $party ?> MPs. |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | </ul> |
| 159 | 159 | |
| 160 | 160 | <p>We have <b>lots more</b> plain English analysis of <?= $full_name ?>’s voting record on issues like health, welfare, taxation and more. Visit <a href="<?= $member_url ?>/votes"><?= $full_name ?>’s full vote analysis page</a> for more.</p> |
| 161 | - <?php elseif (count($policyPositions->positions) == 0 ): ?> |
|
| 161 | + <?php elseif (count($policyPositions->positions) == 0): ?> |
|
| 162 | 162 | |
| 163 | 163 | <p>No votes to display.</p> |
| 164 | 164 | |
@@ -415,10 +415,10 @@ discard block |
||
| 415 | 415 | of sources. Voting information from |
| 416 | 416 | <a href="http://www.publicwhip.org.uk/mp.php?id=uk.org.publicwhip/member/<?= $member_id ?>&showall=yes">Public Whip</a>.</p> |
| 417 | 417 | |
| 418 | - <?php if($image && $image['exists']) { |
|
| 419 | - if(isset($data['photo_attribution_text'])) { ?> |
|
| 418 | + <?php if ($image && $image['exists']) { |
|
| 419 | + if (isset($data['photo_attribution_text'])) { ?> |
|
| 420 | 420 | <p> |
| 421 | - <?php if(isset($data['photo_attribution_link'])) { ?> |
|
| 421 | + <?php if (isset($data['photo_attribution_link'])) { ?> |
|
| 422 | 422 | Profile photo: |
| 423 | 423 | <a href="<?= $data['photo_attribution_link'] ?>"><?= $data['photo_attribution_text'] ?></a> |
| 424 | 424 | <?php } else { ?> |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <li> |
| 2 | 2 | <?= $description ?> |
| 3 | - <?php if ( $show_link ) { ?> |
|
| 3 | + <?php if ($show_link) { ?> |
|
| 4 | 4 | <a class="vote-description__source" href="<?= $link ?>">Show votes</a> |
| 5 | 5 | <?php if (isset($key_vote)) { ?> |
| 6 | 6 | <a class="vote-description__evidence" href="<?= $link ?>"><?= $key_vote['summary'] ?></a> |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | |
| 29 | 29 | echo '<?xml version="1.0" encoding="iso-8859-1"?>'; |
| 30 | 30 | |
| 31 | - ?> |
|
| 31 | + ?> |
|
| 32 | 32 | <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> |
| 33 | 33 | <svg width="1000" height="500" viewBox="0 0 1000 500" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" font-family="Droid Sans, Trebuchet"> |
| 34 | 34 | |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | <text font-size="24" font-weight="normal" fill="#000000"> |
| 54 | 54 | <?php foreach ($lines as $j=>$line) { ?> |
| 55 | 55 | <tspan x="40" y="<?= $stance_y + $stance_padding_top + $stance_baseline_offset + ($stance_lineheight * $j) ?>"><?php |
| 56 | - if (strpos($line, '*') !== False) { |
|
| 56 | + if (strpos($line, '*') !== false) { |
|
| 57 | 57 | echo preg_replace( |
| 58 | 58 | '#(?:^|[*])([^\r\n *][^*\n]*[^\r\n *])(?:$|[*])#i', |
| 59 | 59 | $tspan_bold_open . '$1' . $tspan_bold_close, |
@@ -3,7 +3,7 @@ |
||
| 3 | 3 | $stances = array(); |
| 4 | 4 | |
| 5 | 5 | foreach ($segment['votes']->positions as $key_vote) { |
| 6 | - if ( $key_vote['has_strong'] || $key_vote['position'] == 'has never voted on' ) { |
|
| 6 | + if ($key_vote['has_strong'] || $key_vote['position'] == 'has never voted on') { |
|
| 7 | 7 | $stance = strip_tags($key_vote['desc'], '<b>'); |
| 8 | 8 | $stance = ucfirst($stance); |
| 9 | 9 | $stance = preg_replace('#</?b>#i', '*', $stance); |
@@ -122,25 +122,25 @@ discard block |
||
| 122 | 122 | <?php } ?> |
| 123 | 123 | |
| 124 | 124 | <?php |
| 125 | - if( |
|
| 126 | - (isset($members) && $members->rows() > 0) || |
|
| 125 | + if( |
|
| 126 | + (isset($members) && $members->rows() > 0) || |
|
| 127 | 127 | (isset($constituencies) && count($constituencies) > 0) || |
| 128 | 128 | ($alertsearch) |
| 129 | - ) { |
|
| 130 | - /* We need to disambiguate the user's instructions */ |
|
| 131 | - $member_options = false; |
|
| 132 | - ?> |
|
| 129 | + ) { |
|
| 130 | + /* We need to disambiguate the user's instructions */ |
|
| 131 | + $member_options = false; |
|
| 132 | + ?> |
|
| 133 | 133 | <div class="alert-section alert-section--disambiguation"> |
| 134 | 134 | <div class="alert-section__primary"> |
| 135 | 135 | |
| 136 | 136 | <?php if (isset($members) && $members->rows() > 0) { |
| 137 | - $member_options = true; ?> |
|
| 137 | + $member_options = true; ?> |
|
| 138 | 138 | <h3>Sign up for alerts when people matching <i><?= _htmlspecialchars($alertsearch) ?></i> speaks</h3> |
| 139 | 139 | <ul> |
| 140 | 140 | <?php |
| 141 | 141 | $q = $members; |
| 142 | 142 | for ($n=0; $n<$q->rows(); $n++) { |
| 143 | - ?> |
|
| 143 | + ?> |
|
| 144 | 144 | <li> |
| 145 | 145 | <form action="<?= $actionurl ?>" method="post"> |
| 146 | 146 | <input type="hidden" name="t" value="<?= _htmlspecialchars($token) ?>"> |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | <?php } ?> |
| 161 | 161 | |
| 162 | 162 | <?php if (isset($constituencies) && count($constituencies) > 0) { |
| 163 | - $member_options = true; ?> |
|
| 163 | + $member_options = true; ?> |
|
| 164 | 164 | <h3>Sign up for alerts when MPs for constituencies matching <i><?= _htmlspecialchars($alertsearch) ?></i> speaks</h3> |
| 165 | 165 | <ul> |
| 166 | 166 | <?php foreach ($constituencies as $constituency => $member) { ?> |
@@ -1,7 +1,7 @@ discard block |
||
| 1 | 1 | <div class="full-page"> |
| 2 | 2 | <div class="full-page__row"> |
| 3 | 3 | |
| 4 | - <?php if ( $message ) { ?> |
|
| 4 | + <?php if ($message) { ?> |
|
| 5 | 5 | <div class="alert-section alert-section--feedback"> |
| 6 | 6 | <div class="alert-section__primary"> |
| 7 | 7 | <h3><?= $message['title'] ?></h3> |
@@ -12,10 +12,10 @@ discard block |
||
| 12 | 12 | </div> |
| 13 | 13 | <?php } ?> |
| 14 | 14 | |
| 15 | - <?php if ( $results ) { ?> |
|
| 15 | + <?php if ($results) { ?> |
|
| 16 | 16 | <div class="alert-section alert-section--feedback"> |
| 17 | 17 | <div class="alert-section__primary"> |
| 18 | - <?php if ( $results == 'alert-confirmed' ) { ?> |
|
| 18 | + <?php if ($results == 'alert-confirmed') { ?> |
|
| 19 | 19 | <h3>Your alert has been confirmed</h3> |
| 20 | 20 | <p> |
| 21 | 21 | You will now receive email alerts for the following criteria: |
@@ -45,32 +45,32 @@ discard block |
||
| 45 | 45 | </div> |
| 46 | 46 | </noscript> |
| 47 | 47 | |
| 48 | - <?php } elseif ( $results == 'alert-suspended' ) { ?> |
|
| 48 | + <?php } elseif ($results == 'alert-suspended') { ?> |
|
| 49 | 49 | <h3>Alert suspended</h3> |
| 50 | 50 | <p> |
| 51 | 51 | You can reactivate the alert at any time, from the sidebar below. |
| 52 | 52 | </p> |
| 53 | 53 | |
| 54 | - <?php } elseif ( $results == 'alert-resumed' ) { ?> |
|
| 54 | + <?php } elseif ($results == 'alert-resumed') { ?> |
|
| 55 | 55 | <h3>Alert resumed</h3> |
| 56 | 56 | <p> |
| 57 | 57 | You will now receive email alerts on any day when there |
| 58 | 58 | are entries in Hansard that match your criteria. |
| 59 | 59 | </p> |
| 60 | 60 | |
| 61 | - <?php } elseif ( $results == 'alert-deleted' ) { ?> |
|
| 61 | + <?php } elseif ($results == 'alert-deleted') { ?> |
|
| 62 | 62 | <h3>Alert deleted</h3> |
| 63 | 63 | <p> |
| 64 | 64 | You will no longer receive this alert. |
| 65 | 65 | </p> |
| 66 | 66 | |
| 67 | - <?php } elseif ( $results == 'all-alerts-deleted' ) { ?> |
|
| 67 | + <?php } elseif ($results == 'all-alerts-deleted') { ?> |
|
| 68 | 68 | <h3>All alerts deleted</h3> |
| 69 | 69 | <p> |
| 70 | 70 | You will no longer receive any alerts. |
| 71 | 71 | </p> |
| 72 | 72 | |
| 73 | - <?php } elseif ( $results == 'alert-fail' ) { ?> |
|
| 73 | + <?php } elseif ($results == 'alert-fail') { ?> |
|
| 74 | 74 | <h3>Hmmm, something’s not right</h3> |
| 75 | 75 | <p> |
| 76 | 76 | The link you followed to reach this page appears to be incomplete. |
@@ -86,14 +86,14 @@ discard block |
||
| 86 | 86 | and let us know, and we'll help out! |
| 87 | 87 | </p> |
| 88 | 88 | |
| 89 | - <?php } elseif ( $results == 'alert-added' ) { ?> |
|
| 89 | + <?php } elseif ($results == 'alert-added') { ?> |
|
| 90 | 90 | <h3>Your alert has been added</h3> |
| 91 | 91 | <p> |
| 92 | 92 | You will now receive email alerts on any day when |
| 93 | 93 | <?= _htmlspecialchars($criteria) ?> in parliament. |
| 94 | 94 | </p> |
| 95 | 95 | |
| 96 | - <?php } elseif ( $results == 'alert-confirmation' ) { ?> |
|
| 96 | + <?php } elseif ($results == 'alert-confirmation') { ?> |
|
| 97 | 97 | <h3>We’re nearly done…</h3> |
| 98 | 98 | <p> |
| 99 | 99 | You should receive an email shortly which will contain a link. |
@@ -101,20 +101,20 @@ discard block |
||
| 101 | 101 | and receive future alerts. Thanks. |
| 102 | 102 | </p> |
| 103 | 103 | |
| 104 | - <?php } elseif ( $results == 'alert-exists' ) { ?> |
|
| 104 | + <?php } elseif ($results == 'alert-exists') { ?> |
|
| 105 | 105 | <h3>You’re already subscribed to that!</h3> |
| 106 | 106 | <p> |
| 107 | 107 | It’s good to know you’re keen though. |
| 108 | 108 | </p> |
| 109 | 109 | |
| 110 | - <?php } elseif ( $results == 'alert-already-signed' ) { ?> |
|
| 110 | + <?php } elseif ($results == 'alert-already-signed') { ?> |
|
| 111 | 111 | <h3>We’re nearly done</h3> |
| 112 | 112 | <p> |
| 113 | 113 | You should receive an email shortly which will contain a link. |
| 114 | 114 | You will need to follow that link to confirm your email address to receive the alert. Thanks. |
| 115 | 115 | </p> |
| 116 | 116 | |
| 117 | - <?php } elseif ( $results == 'alert-fail' ) { ?> |
|
| 117 | + <?php } elseif ($results == 'alert-fail') { ?> |
|
| 118 | 118 | <h3>Alert could not be created</h3> |
| 119 | 119 | <p> |
| 120 | 120 | Sorry, we were unable to create that alert. Please |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | <?php } ?> |
| 129 | 129 | |
| 130 | 130 | <?php |
| 131 | - if( |
|
| 131 | + if ( |
|
| 132 | 132 | (isset($members) && $members->rows() > 0) || |
| 133 | 133 | (isset($constituencies) && count($constituencies) > 0) || |
| 134 | 134 | ($alertsearch) |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | <ul> |
| 146 | 146 | <?php |
| 147 | 147 | $q = $members; |
| 148 | - for ($n=0; $n<$q->rows(); $n++) { |
|
| 148 | + for ($n = 0; $n < $q->rows(); $n++) { |
|
| 149 | 149 | ?> |
| 150 | 150 | <li> |
| 151 | 151 | <form action="<?= $actionurl ?>" method="post"> |
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | <input type="hidden" name="email" value="<?= _htmlspecialchars($email) ?>"> |
| 154 | 154 | <input type="hidden" name="pid" value="<?= $q->field($n, 'person_id') ?>"> |
| 155 | 155 | When |
| 156 | - <?= member_full_name($q->field($n, 'house'), $q->field($n, 'title'), $q->field($n, 'given_name'), $q->field($n, 'family_name'), $q->field($n, 'lordofname') ) ?> |
|
| 156 | + <?= member_full_name($q->field($n, 'house'), $q->field($n, 'title'), $q->field($n, 'given_name'), $q->field($n, 'family_name'), $q->field($n, 'lordofname')) ?> |
|
| 157 | 157 | <?php if ($q->field($n, 'constituency')) { ?> |
| 158 | 158 | (<?= $q->field($n, 'constituency') ?>) |
| 159 | 159 | <?php } ?> |
@@ -184,7 +184,7 @@ discard block |
||
| 184 | 184 | <?php } ?> |
| 185 | 185 | |
| 186 | 186 | <?php if ($alertsearch) { |
| 187 | - if ( $member_options ) { ?> |
|
| 187 | + if ($member_options) { ?> |
|
| 188 | 188 | <h3>Sign up for alerts for topics</h3> |
| 189 | 189 | <?php } else { ?> |
| 190 | 190 | <h3>Great! Can you just confirm what you mean?</h3> |
@@ -198,7 +198,7 @@ discard block |
||
| 198 | 198 | Receive alerts when <?= _htmlspecialchars($alertsearch_pretty) ?> |
| 199 | 199 | <input type="submit" class="button small" value="Subscribe"> |
| 200 | 200 | </form> |
| 201 | - <?php if ( isset($mistakes['multiple']) ) { ?> |
|
| 201 | + <?php if (isset($mistakes['multiple'])) { ?> |
|
| 202 | 202 | <em class="error"> |
| 203 | 203 | You have used a comma in your search term – |
| 204 | 204 | are you sure this is what you want? You cannot |
@@ -207,7 +207,7 @@ discard block |
||
| 207 | 207 | for each individual term. |
| 208 | 208 | </em> |
| 209 | 209 | <?php } ?> |
| 210 | - <?php if ( isset($mistakes['postcode_and']) ) { ?> |
|
| 210 | + <?php if (isset($mistakes['postcode_and'])) { ?> |
|
| 211 | 211 | <em class="error"> |
| 212 | 212 | You have used a postcode and something else in your |
| 213 | 213 | search term – are you sure this is what you |
@@ -256,11 +256,11 @@ discard block |
||
| 256 | 256 | <div class="alert-section__secondary"> |
| 257 | 257 | <?php if ($email_verified) { ?> |
| 258 | 258 | |
| 259 | - <?php if ( $alerts ) { ?> |
|
| 259 | + <?php if ($alerts) { ?> |
|
| 260 | 260 | <?php include('_list.php'); ?> |
| 261 | 261 | <?php } ?> |
| 262 | 262 | |
| 263 | - <?php if ( $current_mp ) { ?> |
|
| 263 | + <?php if ($current_mp) { ?> |
|
| 264 | 264 | <h3>Your MP alert</h3> |
| 265 | 265 | <ul class="alerts-manage__list"> |
| 266 | 266 | <li> |
@@ -1,8 +1,8 @@ discard block |
||
| 1 | - <?php if ( $featured['featured'] ) { ?> |
|
| 1 | + <?php if ($featured['featured']) { ?> |
|
| 2 | 2 | <h2>In the news</h2> |
| 3 | - <?php if ( isset($featured['headline']) ) { ?> |
|
| 3 | + <?php if (isset($featured['headline'])) { ?> |
|
| 4 | 4 | <h3 class="in-the-news__topic"><a href="<?= $featured['list_url'] ?>"><?= $featured['headline'] ?></a></h3> |
| 5 | - <?php if ( isset($featured['context']) ) { ?> |
|
| 5 | + <?php if (isset($featured['context'])) { ?> |
|
| 6 | 6 | <p class="in-the-news__context"><?= $featured['context'] ?></p> |
| 7 | 7 | <?php } ?> |
| 8 | 8 | <?php } ?> |
@@ -15,21 +15,21 @@ discard block |
||
| 15 | 15 | <p class="meta excerpt__category"><a href="<?= $featured['more_url'] ?>"><?= $featured['desc'] ?></a></p> |
| 16 | 16 | <p class="excerpt__statement"> |
| 17 | 17 | <q> |
| 18 | - <?php if ( $featured['child']['speaker'] ) { ?> |
|
| 18 | + <?php if ($featured['child']['speaker']) { ?> |
|
| 19 | 19 | <a href="<?= $featured['child']['speaker']['url'] ?>"><?= $featured['child']['speaker']['name'] ?></a> : |
| 20 | 20 | <?php } ?> |
| 21 | 21 | <?= trim_characters($featured['child']['body'], 0, 200) ?> |
| 22 | 22 | </q> |
| 23 | 23 | </p> |
| 24 | 24 | </div> |
| 25 | - <?php if ( count($featured['related']) ) { ?> |
|
| 25 | + <?php if (count($featured['related'])) { ?> |
|
| 26 | 26 | <div class="in-the-news__key-events"> |
| 27 | 27 | <!-- No maximum, but less than 4 looks best --> |
| 28 | 28 | <ul class="key-events__list"> |
| 29 | 29 | <li> |
| 30 | 30 | <h4>Key events</h4> |
| 31 | 31 | </li> |
| 32 | - <?php foreach ( $featured['related'] as $related ) { ?> |
|
| 32 | + <?php foreach ($featured['related'] as $related) { ?> |
|
| 33 | 33 | <li> |
| 34 | 34 | <a href="<?= $related['list_url'] ?>"><?= $related['parent']['body'] ?></a> |
| 35 | 35 | <p class="meta"><?= format_date($related['hdate'], SHORTDATEFORMAT) ?></p> |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <div class="business-section__primary"> |
| 2 | 2 | <ul class="business-list"> |
| 3 | - <?php foreach ( $data as $item ) { ?> |
|
| 3 | + <?php foreach ($data as $item) { ?> |
|
| 4 | 4 | <li> |
| 5 | 5 | <?php include '_business_list_item.php'; ?> |
| 6 | 6 | </li> |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | foreach ( $years as $year => $months ) { ?> |
| 25 | 25 | <div class="calendar-year"> |
| 26 | 26 | <?php foreach ($months as $month => $dates) { |
| 27 | - include '_calendar.php'; |
|
| 27 | + include '_calendar.php'; |
|
| 28 | 28 | } ?> |
| 29 | 29 | </div> |
| 30 | 30 | <?php } |
@@ -8,20 +8,20 @@ |
||
| 8 | 8 | </div> |
| 9 | 9 | <div class="business-section__solo"> |
| 10 | 10 | <div class="calendar__controls"> |
| 11 | - <?php if ( isset( $prev ) ) { ?> |
|
| 11 | + <?php if (isset($prev)) { ?> |
|
| 12 | 12 | <a href="<?= $prev['url'] ?>" class="calendar__controls__previous">← <?= $prev['title'] ?></a> |
| 13 | 13 | <?php } else { ?> |
| 14 | 14 | <span class="calendar__controls__previous"></span> |
| 15 | 15 | <?php } ?> |
| 16 | 16 | <span class="calendar__controls__current"><?= $year ?></span> |
| 17 | - <?php if ( isset( $next ) ) { ?> |
|
| 17 | + <?php if (isset($next)) { ?> |
|
| 18 | 18 | <a href="<?= $next['url'] ?>" class="calendar__controls__next"><?= $next['title'] ?> →</a> |
| 19 | 19 | <?php } else { ?> |
| 20 | 20 | <span class="calendar__controls__next"></span> |
| 21 | 21 | <?php } ?> |
| 22 | 22 | </div> |
| 23 | - <?php if ( isset($years) ) { |
|
| 24 | - foreach ( $years as $year => $months ) { ?> |
|
| 23 | + <?php if (isset($years)) { |
|
| 24 | + foreach ($years as $year => $months) { ?> |
|
| 25 | 25 | <div class="calendar-year"> |
| 26 | 26 | <?php foreach ($months as $month => $dates) { |
| 27 | 27 | include '_calendar.php'; |
@@ -34,6 +34,6 @@ |
||
| 34 | 34 | </div> |
| 35 | 35 | </div> |
| 36 | 36 | |
| 37 | - <?php $search_title = "Search $title"; include '_search.php'; ?> |
|
| 37 | + <?php $search_title = "search $title"; include '_search.php'; ?> |
|
| 38 | 38 | |
| 39 | 39 | </div> |
@@ -22,14 +22,14 @@ |
||
| 22 | 22 | |
| 23 | 23 | <div class="business-section__primary"> |
| 24 | 24 | <ul class="business-list"> |
| 25 | - <?php foreach ( $content['data'] as $date => $bills ) { ?> |
|
| 25 | + <?php foreach ($content['data'] as $date => $bills) { ?> |
|
| 26 | 26 | <li> |
| 27 | 27 | <span class="business-list__title"> |
| 28 | 28 | <h3> |
| 29 | 29 | <?= $date ?> |
| 30 | 30 | </h3> |
| 31 | 31 | </span> |
| 32 | - <?php foreach ( $bills as $bill ) { ?> |
|
| 32 | + <?php foreach ($bills as $bill) { ?> |
|
| 33 | 33 | <p> |
| 34 | 34 | <a href="<?= $bill['url'] ?>" class="business-list__title"> |
| 35 | 35 | <?= $bill['bill'] ?> – <?= $bill['sitting'] ?> |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | foreach ( $calendar as $year => $months ) { |
| 3 | 3 | foreach ($months as $month => $dates) { |
| 4 | - include '_calendar.php'; |
|
| 4 | + include '_calendar.php'; |
|
| 5 | 5 | } |
| 6 | 6 | } ?> |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | - foreach ( $calendar as $year => $months ) { |
|
| 2 | + foreach ($calendar as $year => $months) { |
|
| 3 | 3 | foreach ($months as $month => $dates) { |
| 4 | 4 | include '_calendar.php'; |
| 5 | 5 | } |