@@ -6,7 +6,7 @@ |
||
6 | 6 | |
7 | 7 | <p><?= $error ?></p> |
8 | 8 | |
9 | - <?php if ( $rep_search_url ) { ?> |
|
9 | + <?php if ($rep_search_url) { ?> |
|
10 | 10 | </div> |
11 | 11 | |
12 | 12 | <div class="full-page__unit"> |
@@ -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> |
@@ -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> |
@@ -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'; |
@@ -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,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 | } |
@@ -19,11 +19,11 @@ |
||
19 | 19 | </div> |
20 | 20 | <div class="full-page"> |
21 | 21 | |
22 | - <?php if ( count($data['rows']) == 0 ) { ?> |
|
22 | + <?php if (count($data['rows']) == 0) { ?> |
|
23 | 23 | <div class="debate-speech"> |
24 | 24 | <div class="full-page__row"> |
25 | 25 | <div class="full-page__unit"> |
26 | - <?php if ( $col_country == 'SCOTLAND' || $col_country == 'NORTHERN IRELAND' ) { ?> |
|
26 | + <?php if ($col_country == 'SCOTLAND' || $col_country == 'NORTHERN IRELAND') { ?> |
|
27 | 27 | We only have information about columns for debates in the House of Commons and the House of Lords. |
28 | 28 | <?php } else { ?> |
29 | 29 | We can't find anything in column <?= $column ?> on <?= $debate_day_human ?>. |
@@ -10,17 +10,17 @@ |
||
10 | 10 | <input type="submit" value="Search" class="button search-section__submit"> |
11 | 11 | </div> |
12 | 12 | </div> |
13 | - <?php if ( isset($search_sections) ) { ?> |
|
14 | - <?php if ( count($search_sections) == 1 ) { ?> |
|
13 | + <?php if (isset($search_sections)) { ?> |
|
14 | + <?php if (count($search_sections) == 1) { ?> |
|
15 | 15 | <input name="section" value="<?= $search_sections[0]['section'] ?>" type="hidden"> |
16 | - <?php } else if ( count($search_sections) > 1 ) { ?> |
|
16 | + <?php } else if (count($search_sections) > 1) { ?> |
|
17 | 17 | <div class="search-section__filters"> |
18 | - <?php foreach ( $search_sections as $section ) { ?> |
|
18 | + <?php foreach ($search_sections as $section) { ?> |
|
19 | 19 | <label><input name="section[]" value="<?= $section['section'] ?>" type="checkbox" checked="checked"><?= $section['title'] ?></label> |
20 | 20 | <?php } ?> |
21 | 21 | </div> |
22 | 22 | <?php } |
23 | - } else if ( isset($section) ) { ?> |
|
23 | + } else if (isset($section)) { ?> |
|
24 | 24 | <input name="section" value="<?= $section ?>" type="hidden"> |
25 | 25 | <?php } ?> |
26 | 26 | </form> |