@@ -9,12 +9,12 @@ |
||
9 | 9 | // Set the directory based on the chamber |
10 | 10 | if ($chamber == "northern-ireland-assembly") { |
11 | 11 | $dir = RAWDATA . 'scrapedxml/regmem-ni'; |
12 | -} elseif ($chamber == "scottish-parliament"){ |
|
12 | +} elseif ($chamber == "scottish-parliament") { |
|
13 | 13 | $dir = RAWDATA . 'scrapedxml/regmem-scotparl'; |
14 | -} elseif ($chamber == "senedd"){ |
|
15 | - if (LANGUAGE == "en"){ |
|
14 | +} elseif ($chamber == "senedd") { |
|
15 | + if (LANGUAGE == "en") { |
|
16 | 16 | $dir = RAWDATA . 'scrapedxml/regmem-senedd-en'; |
17 | - } elseif (LANGUAGE == "cy"){ |
|
17 | + } elseif (LANGUAGE == "cy") { |
|
18 | 18 | $dir = RAWDATA . 'scrapedxml/regmem-senedd-cy'; |
19 | 19 | } |
20 | 20 | } |
@@ -10,9 +10,12 @@ |
||
10 | 10 | <?php endforeach; ?> |
11 | 11 | <?php $detail = $upper_detail; ?> |
12 | 12 | </ul> |
13 | - <?php else : ?> |
|
13 | + <?php else { |
|
14 | + : ?> |
|
14 | 15 | <?php if ($detail->value): ?> |
15 | 16 | <span class="interest-detail-value"><?= htmlspecialchars($detail->value) ?></span> |
16 | - <?php endif; ?> |
|
17 | + <?php endif; |
|
18 | +} |
|
19 | +?> |
|
17 | 20 | <?php endif; ?> |
18 | 21 | </li> |
19 | 22 | \ No newline at end of file |
@@ -7,9 +7,12 @@ discard block |
||
7 | 7 | <?php if ($entry->content): ?> |
8 | 8 | <?php if ($entry->info_type == "subentry"): ?> |
9 | 9 | <h6 class="interest-summary"><?= htmlspecialchars($entry->content) ?></h6> |
10 | - <?php else: ?> |
|
10 | + <?php else { |
|
11 | + : ?> |
|
11 | 12 | <h4 class="interest-summary"><?= htmlspecialchars($entry->content) ?></h4> |
12 | - <?php endif; ?> |
|
13 | + <?php endif; |
|
14 | +} |
|
15 | +?> |
|
13 | 16 | <?php endif; ?> |
14 | 17 | <ul class="interest-details-list"> |
15 | 18 | <?php foreach ($entry->details as $detail): ?> |
@@ -26,14 +29,17 @@ discard block |
||
26 | 29 | <?php endif; ?> |
27 | 30 | </ul> |
28 | 31 | |
29 | - <?php else: ?> |
|
32 | + <?php else { |
|
33 | + : ?> |
|
30 | 34 | <?php if ($entry->content): ?> |
31 | 35 | <?php // This is a more mininal style of entry, don't use the header structure, just print the xml content ?> |
32 | 36 | <?php if ($entry->content_format == "xml") : ?> |
33 | 37 | <?= $entry->content ?> |
34 | 38 | <?php else: ?> |
35 | 39 | <p class="interest-content"><?= htmlspecialchars($entry->content) ?></p> |
36 | - <?php endif; ?> |
|
40 | + <?php endif; |
|
41 | +} |
|
42 | +?> |
|
37 | 43 | <?php endif; ?> |
38 | 44 | <?php endif; ?> |
39 | 45 |