@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | $data = $this->addCommonData($data); |
39 | 39 | } elseif ($date = get_http_var('d')) { |
40 | 40 | $data = $this->display_day($date); |
41 | - if ( !isset($data['template']) ) { |
|
41 | + if (!isset($data['template'])) { |
|
42 | 42 | $data['template'] = 'section/day'; |
43 | 43 | } |
44 | 44 | $data = $this->addCommonData($data); |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | $data = $this->display_section_or_speech(); |
47 | 47 | } else { |
48 | 48 | $data = $this->display_front(); |
49 | - if ( !isset($data['template']) ) { |
|
49 | + if (!isset($data['template'])) { |
|
50 | 50 | $data['template'] = 'section/recent'; |
51 | 51 | } |
52 | 52 | $data['search_sections'] = $this->getSearchSections(); |
@@ -68,10 +68,10 @@ discard block |
||
68 | 68 | $data['recess_major'] = $this->getRecessMajor(); |
69 | 69 | |
70 | 70 | $nextprev = $DATA->page_metadata($this_page, 'nextprev'); |
71 | - if ( isset($nextprev['next']['url']) ) { |
|
71 | + if (isset($nextprev['next']['url'])) { |
|
72 | 72 | $data['next'] = $nextprev['next']; |
73 | 73 | } |
74 | - if ( isset($nextprev['prev']['url']) ) { |
|
74 | + if (isset($nextprev['prev']['url'])) { |
|
75 | 75 | $data['prev'] = $nextprev['prev']; |
76 | 76 | } |
77 | 77 | |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | if (!isset($data['title']) && $parent_page != '') { |
81 | 81 | $data['title'] = $DATA->page_metadata($parent_page, 'title'); |
82 | 82 | } |
83 | - if ( $parent_page ) { |
|
83 | + if ($parent_page) { |
|
84 | 84 | $data['parent_title'] = $DATA->page_metadata($parent_page, 'title'); |
85 | 85 | } |
86 | 86 | |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | |
97 | 97 | $urls = array_merge($urls, $this->getViewUrls()); |
98 | 98 | |
99 | - if ( isset($data['info']['page']) ) { |
|
99 | + if (isset($data['info']['page'])) { |
|
100 | 100 | $day = new \MySociety\TheyWorkForYou\Url($data['info']['page']); |
101 | 101 | $urls['day'] = $day; |
102 | 102 | } |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | $DATA->set_page_metadata($this_page, 'title', $year); |
141 | 141 | } |
142 | 142 | |
143 | - $args = array ( 'year' => $year ); |
|
143 | + $args = array('year' => $year); |
|
144 | 144 | $data = $this->list->display('calendar', $args, 'none'); |
145 | 145 | return $data; |
146 | 146 | } |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | protected function display_column($date, $column) { |
149 | 149 | global $this_page; |
150 | 150 | $this_page = $this->page_base; |
151 | - $args = array( 'date' => $date, 'column' => $column ); |
|
151 | + $args = array('date' => $date, 'column' => $column); |
|
152 | 152 | $content = $this->list->display('column', $args, 'none'); |
153 | 153 | |
154 | 154 | $data = array(); |
@@ -168,12 +168,12 @@ discard block |
||
168 | 168 | protected function display_day($date) { |
169 | 169 | global $this_page; |
170 | 170 | $this_page = $this->page_base . 'day'; |
171 | - $args = array ( 'date' => get_http_var('d') ); |
|
171 | + $args = array('date' => get_http_var('d')); |
|
172 | 172 | $data = $this->list->display('date', $args, 'none'); |
173 | 173 | list($year, $month, $day) = explode('-', $date); |
174 | - $args = array( 'year' => $year, 'month' => $month, 'day' => $day); |
|
174 | + $args = array('year' => $year, 'month' => $month, 'day' => $day); |
|
175 | 175 | $calendar = $this->list->display('calendar', $args, 'none'); |
176 | - if ( isset($calendar['years']) ) { |
|
176 | + if (isset($calendar['years'])) { |
|
177 | 177 | $data['calendar'] = $calendar['years']; |
178 | 178 | } |
179 | 179 | return $data; |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | global $DATA, $this_page, $THEUSER; |
184 | 184 | |
185 | 185 | # += as we *don't* want to override any already supplied argument |
186 | - $args += array ( |
|
186 | + $args += array( |
|
187 | 187 | 'gid' => get_http_var('id'), |
188 | 188 | 's' => get_http_var('s'), // Search terms to be highlighted. |
189 | 189 | 'member_id' => get_http_var('m'), // Member's speeches to be highlighted. |
@@ -200,14 +200,14 @@ discard block |
||
200 | 200 | if ($this->major == 6) { |
201 | 201 | # Magically (as in I can't remember quite why), pbc_clause will |
202 | 202 | # contain the new URL without any change... |
203 | - $URL->remove( array('id') ); |
|
203 | + $URL->remove(array('id')); |
|
204 | 204 | } else { |
205 | - $URL->insert( array('id'=>$e->getMessage()) ); |
|
205 | + $URL->insert(array('id'=>$e->getMessage())); |
|
206 | 206 | } |
207 | 207 | # put the search term back in so highlighting works. |
208 | 208 | # NB: as we don't see the # part of the URL we lose this :( |
209 | - if ( $args['s'] !== '' ) { |
|
210 | - $URL->insert( array('s'=>$args['s']) ); |
|
209 | + if ($args['s'] !== '') { |
|
210 | + $URL->insert(array('s'=>$args['s'])); |
|
211 | 211 | } |
212 | 212 | redirect($URL->generate('none'), 301); |
213 | 213 | } |
@@ -284,7 +284,7 @@ discard block |
||
284 | 284 | if (array_key_exists('text_heading', $data['info'])) { |
285 | 285 | // avoid having Clause 1 etc as the alert text search string on PBC pages as it's |
286 | 286 | // almost certainly not what the person wants |
287 | - if ( $this->major == 6 ) { |
|
287 | + if ($this->major == 6) { |
|
288 | 288 | $data['email_alert_text'] = $data['section_title']; |
289 | 289 | } else { |
290 | 290 | $data['email_alert_text'] = $data['info']['text_heading']; |
@@ -331,7 +331,7 @@ discard block |
||
331 | 331 | $body = preg_replace('#<phrase class="honfriend" id="uk.org.publicwhip/member/(\d+)" name="([^"]*?)">(.*?\s*\((.*?)\))</phrase>#', '<a href="/mp/?m=$1" title="Our page on $2 - \'$3\'">$4</a>', $body); |
332 | 332 | $body = preg_replace('#<phrase class="honfriend" name="([^"]*?)" person_id="uk.org.publicwhip/person/(\d+)">(.*?\s*\((.*?)\))</phrase>#', '<a href="/mp/?p=$2" title="Our page on $1 - \'$3\'">$4</a>', $body); |
333 | 333 | $body = preg_replace_callback('#<phrase class="offrep" id="(.*?)/(\d+)-(\d+)-(\d+)\.(.*?)">(.*?)</phrase>#', function($matches) { |
334 | - return '<a href="/search/?pop=1&s=date:' . $matches[2] . $matches[3] . $matches[4] . '+column:' . $matches[5] . '+section:' . $matches[1] .'">' . str_replace("Official Report", "Hansard", $matches[6]) . '</a>'; |
|
334 | + return '<a href="/search/?pop=1&s=date:' . $matches[2] . $matches[3] . $matches[4] . '+column:' . $matches[5] . '+section:' . $matches[1] . '">' . str_replace("Official Report", "Hansard", $matches[6]) . '</a>'; |
|
335 | 335 | }, $body); |
336 | 336 | #$body = preg_replace('#<phrase class="offrep" id="((.*?)/(\d+)-(\d+)-(\d+)\.(.*?))">(.*?)</phrase>#e', "\"<a href='/search/?pop=1&s=date:$3$4$5+column:$6+section:$2&match=$1'>\" . str_replace('Official Report', 'Hansard', '$7') . '</a>'", $body); |
337 | 337 | $bodies[] = $body; |
@@ -364,7 +364,7 @@ discard block |
||
364 | 364 | $data['section_title'] = ''; |
365 | 365 | $subsection_title = ''; |
366 | 366 | $rows = count($data['rows']); |
367 | - for ($i=0; $i<$rows; $i++) { |
|
367 | + for ($i = 0; $i < $rows; $i++) { |
|
368 | 368 | $row = $data['rows'][$i]; |
369 | 369 | $htype = $row['htype']; |
370 | 370 | // HPOS should be defined below if it's needed; otherwise default to 0 |
@@ -387,7 +387,7 @@ discard block |
||
387 | 387 | # Voting links |
388 | 388 | $data['rows'][$i]['voting_data'] = ''; |
389 | 389 | if (isset($row['votes'])) { |
390 | - $data['rows'][$i]['voting_data'] = $this->generate_votes( $row['votes'], $row['epobject_id'], $row['gid'] ); |
|
390 | + $data['rows'][$i]['voting_data'] = $this->generate_votes($row['votes'], $row['epobject_id'], $row['gid']); |
|
391 | 391 | } |
392 | 392 | |
393 | 393 | # Annotation link |
@@ -424,62 +424,62 @@ discard block |
||
424 | 424 | |
425 | 425 | private function getCountryDetails() { |
426 | 426 | $details = array( |
427 | - 1 => array ( |
|
427 | + 1 => array( |
|
428 | 428 | 'country' => 'UK', |
429 | 429 | 'assembly' => 'uk-commons', |
430 | 430 | 'location' => '– in the House of Commons' |
431 | 431 | ), |
432 | - 2 => array ( |
|
432 | + 2 => array( |
|
433 | 433 | 'country' => 'UK', |
434 | 434 | 'assembly' => 'uk-commons', |
435 | 435 | 'location' => '– in Westminster Hall' |
436 | 436 | ), |
437 | - 3 => array ( |
|
437 | + 3 => array( |
|
438 | 438 | 'country' => 'UK', |
439 | 439 | 'assembly' => 'uk-commons', |
440 | 440 | 'location' => 'written question – answered' |
441 | 441 | ), |
442 | - 4 => array ( |
|
442 | + 4 => array( |
|
443 | 443 | 'country' => 'UK', |
444 | 444 | 'assembly' => 'uk-commons', |
445 | 445 | 'location' => 'written statement – made' |
446 | 446 | ), |
447 | - 5 => array ( |
|
447 | + 5 => array( |
|
448 | 448 | 'country' => 'NORTHERN IRELAND', |
449 | 449 | 'assembly' => 'ni', |
450 | 450 | 'location' => '– in the Northern Ireland Assembly' |
451 | 451 | ), |
452 | - 6 => array ( |
|
452 | + 6 => array( |
|
453 | 453 | 'country' => 'UK', |
454 | 454 | 'assembly' => 'uk-commons', |
455 | 455 | 'location' => '– in a Public Bill Committee' |
456 | 456 | ), |
457 | - 7 => array ( |
|
457 | + 7 => array( |
|
458 | 458 | 'country' => 'SCOTLAND', |
459 | 459 | 'assembly' => 'scotland', |
460 | 460 | 'location' => '– in the Scottish Parliament' |
461 | 461 | ), |
462 | - 8 => array ( |
|
462 | + 8 => array( |
|
463 | 463 | 'country' => 'SCOTLAND', |
464 | 464 | 'assembly' => 'scotland', |
465 | 465 | 'location' => '– Scottish Parliament written question – answered' |
466 | 466 | ), |
467 | - 9 => array ( |
|
467 | + 9 => array( |
|
468 | 468 | 'country' => 'LONDON', |
469 | 469 | 'assembly' => 'london-assembly', |
470 | 470 | 'location' => 'Questions to the Mayor of London – answered' |
471 | 471 | ), |
472 | - 10 => array ( |
|
472 | + 10 => array( |
|
473 | 473 | 'country' => 'WALES', |
474 | 474 | 'assembly' => 'senedd', |
475 | 475 | 'location' => '– in the Welsh Parliament' |
476 | 476 | ), |
477 | - 11 => array ( |
|
477 | + 11 => array( |
|
478 | 478 | 'country' => 'WALES', |
479 | 479 | 'assembly' => 'senedd', |
480 | 480 | 'location' => '– Senedd Cymru' |
481 | 481 | ), |
482 | - 101 => array ( |
|
482 | + 101 => array( |
|
483 | 483 | 'country' => 'UK', |
484 | 484 | 'assembly' => 'uk-lords', |
485 | 485 | 'location' => '– in the House of Lords' |
@@ -512,7 +512,7 @@ discard block |
||
512 | 512 | global $DATA, $this_page; |
513 | 513 | $this_page = $this->page_base . 'front'; |
514 | 514 | $data = array(); |
515 | - if ( $this->index_template ) { |
|
515 | + if ($this->index_template) { |
|
516 | 516 | $data['template'] = $this->index_template; |
517 | 517 | } |
518 | 518 | |
@@ -522,7 +522,7 @@ discard block |
||
522 | 522 | |
523 | 523 | $content['calendar'] = $class->display('calendar', array('months' => 1), 'none'); |
524 | 524 | |
525 | - if ( $rssurl = $DATA->page_metadata($this_page, 'rss') ) { |
|
525 | + if ($rssurl = $DATA->page_metadata($this_page, 'rss')) { |
|
526 | 526 | $content['rssurl'] = $rssurl; |
527 | 527 | } |
528 | 528 | |
@@ -537,7 +537,7 @@ discard block |
||
537 | 537 | } |
538 | 538 | |
539 | 539 | //$totalcomments, $comment, $commenturl |
540 | - function generate_commentteaser ($row) { |
|
540 | + function generate_commentteaser($row) { |
|
541 | 541 | // Returns HTML for the one fragment of comment and link for the sidebar. |
542 | 542 | // $totalcomments is the number of comments this item has on it. |
543 | 543 | // $comment is an array like: |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | |
40 | 40 | if ($last_postcode == $postcode) { |
41 | 41 | $return_value = $mp_only ? $last_postcode_value['WMC'] : $last_postcode_value; |
42 | - twfy_debug ("TIME", "Postcode $postcode looked up last time, is " . ( is_array($return_value) ? implode(', ', $return_value) : $return_value )); |
|
42 | + twfy_debug("TIME", "Postcode $postcode looked up last time, is " . (is_array($return_value) ? implode(', ', $return_value) : $return_value)); |
|
43 | 43 | return $return_value; |
44 | 44 | } |
45 | 45 | |
@@ -82,9 +82,9 @@ discard block |
||
82 | 82 | $name = explode('|', $name); |
83 | 83 | if ($country == 'W') { |
84 | 84 | return array('WMC' => $name[0], 'WAC' => $name[1], 'WAE' => $name[2]); |
85 | - } elseif ($country == 'S' || count($name)==3) { |
|
85 | + } elseif ($country == 'S' || count($name) == 3) { |
|
86 | 86 | return array('WMC' => $name[0], 'SPC' => $name[1], 'SPE' => $name[2]); |
87 | - } elseif ($country == 'N' || count($name)==2) { |
|
87 | + } elseif ($country == 'N' || count($name) == 2) { |
|
88 | 88 | return array('WMC' => $name[0], 'NIE' => $name[1]); |
89 | 89 | } else { |
90 | 90 | return array('WMC' => $name[0]); |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | |
119 | 119 | $r = json_decode($file, true); |
120 | 120 | if (!$r) { |
121 | - trigger_error("Postcode database is not working. Content:\n".$file.", request: ". $filename, E_USER_WARNING); |
|
121 | + trigger_error("Postcode database is not working. Content:\n" . $file . ", request: " . $filename, E_USER_WARNING); |
|
122 | 122 | return ''; |
123 | 123 | } |
124 | 124 | if (isset($r['error']) || !isset($r['areas'])) { |
@@ -52,7 +52,9 @@ discard block |
||
52 | 52 | $ret = self::postcodeFetchFromMapit($postcode); |
53 | 53 | } |
54 | 54 | |
55 | - if (is_string($ret)) return $ret; |
|
55 | + if (is_string($ret)) { |
|
56 | + return $ret; |
|
57 | + } |
|
56 | 58 | |
57 | 59 | $last_postcode = $postcode; |
58 | 60 | $last_postcode_value = $ret; |
@@ -126,8 +128,9 @@ discard block |
||
126 | 128 | } |
127 | 129 | $areas = array(); |
128 | 130 | foreach ($r['areas'] as $row) { |
129 | - if (in_array($row['type'], array('WMC', 'SPC', 'SPE', 'NIE', 'WAC', 'WAE'))) |
|
130 | - $areas[$row['type']] = $row['name']; |
|
131 | + if (in_array($row['type'], array('WMC', 'SPC', 'SPE', 'NIE', 'WAC', 'WAE'))) { |
|
132 | + $areas[$row['type']] = $row['name']; |
|
133 | + } |
|
131 | 134 | } |
132 | 135 | |
133 | 136 | if (!isset($areas['WMC'])) { |
@@ -65,10 +65,10 @@ discard block |
||
65 | 65 | |
66 | 66 | */ |
67 | 67 | |
68 | -$page = array ( |
|
68 | +$page = array( |
|
69 | 69 | |
70 | 70 | // Things used on EVERY page, unless overridden for a page: |
71 | - 'default' => array ( |
|
71 | + 'default' => array( |
|
72 | 72 | 'parent' => '', |
73 | 73 | 'session_vars' => array('super_debug'), |
74 | 74 | 'sitetitle' => 'TheyWorkForYou', |
@@ -78,122 +78,122 @@ discard block |
||
78 | 78 | |
79 | 79 | // KEEP THE PAGES IN ALPHABETICAL ORDER! TA. |
80 | 80 | |
81 | - 'about' => array ( |
|
81 | + 'about' => array( |
|
82 | 82 | 'title' => gettext('About us'), |
83 | 83 | 'url' => 'about/' |
84 | 84 | ), |
85 | - 'parliaments' => array ( |
|
85 | + 'parliaments' => array( |
|
86 | 86 | 'title' => 'Parliaments and assemblies', |
87 | 87 | 'url' => 'parliaments/' |
88 | 88 | ), |
89 | 89 | |
90 | - 'alert_stats' => array ( |
|
90 | + 'alert_stats' => array( |
|
91 | 91 | 'title' => 'Email alerts statistics', |
92 | 92 | 'parent' => 'admin', |
93 | 93 | 'url' => 'admin/alert_stats.php', |
94 | 94 | ), |
95 | - 'admin_badusers' => array ( |
|
95 | + 'admin_badusers' => array( |
|
96 | 96 | 'title' => 'Bad users', |
97 | 97 | 'parent' => 'admin', |
98 | 98 | 'url' => 'admin/badusers.php' |
99 | 99 | ), |
100 | - 'admin_home' => array ( |
|
100 | + 'admin_home' => array( |
|
101 | 101 | 'title' => 'Home', |
102 | 102 | 'parent' => 'admin', |
103 | 103 | 'url' => 'admin/' |
104 | 104 | ), |
105 | - 'admin_comments' => array ( |
|
105 | + 'admin_comments' => array( |
|
106 | 106 | 'title' => 'Recent comments', |
107 | 107 | 'parent' => 'admin', |
108 | 108 | 'url' => 'admin/comments.php' |
109 | 109 | ), |
110 | - 'admin_commentreport' => array ( |
|
110 | + 'admin_commentreport' => array( |
|
111 | 111 | 'title' => 'Processing a comment report', |
112 | 112 | 'parent' => 'admin', |
113 | 113 | 'url' => 'admin/report.php', |
114 | - 'session_vars' => array ('rid', 'cid') |
|
114 | + 'session_vars' => array('rid', 'cid') |
|
115 | 115 | ), |
116 | - 'admin_commentreports' => array ( |
|
116 | + 'admin_commentreports' => array( |
|
117 | 117 | 'title' => 'Outstanding comment reports', |
118 | 118 | 'parent' => 'admin', |
119 | 119 | 'url' => 'admin/reports.php' |
120 | 120 | ), |
121 | - 'admin_failedsearches' => array ( |
|
121 | + 'admin_failedsearches' => array( |
|
122 | 122 | 'title' => 'Failed searches', |
123 | 123 | 'parent' => 'admin', |
124 | 124 | 'url' => 'admin/failedsearches.php' |
125 | 125 | ), |
126 | - 'admin_glossary' => array ( |
|
126 | + 'admin_glossary' => array( |
|
127 | 127 | 'title' => 'Manage glossary entries', |
128 | 128 | 'parent' => 'admin', |
129 | 129 | 'url' => 'admin/glossary.php' |
130 | 130 | ), |
131 | - 'admin_glossary_pending' => array ( |
|
131 | + 'admin_glossary_pending' => array( |
|
132 | 132 | 'title' => 'Review pending glossary entries', |
133 | 133 | 'parent' => 'admin', |
134 | 134 | 'url' => 'admin/glossary_pending.php' |
135 | 135 | ), |
136 | - 'admin_searchlogs' => array ( |
|
136 | + 'admin_searchlogs' => array( |
|
137 | 137 | 'title' => 'Recent searches', |
138 | 138 | 'parent' => 'admin', |
139 | 139 | 'url' => 'admin/searchlogs.php' |
140 | 140 | ), |
141 | - 'admin_popularsearches' => array ( |
|
141 | + 'admin_popularsearches' => array( |
|
142 | 142 | 'title' => 'Popular searches in last 30 days (first 1000)', |
143 | 143 | 'parent' => 'admin', |
144 | 144 | 'url' => 'admin/popularsearches.php' |
145 | 145 | ), |
146 | - 'admin_statistics' => array ( |
|
146 | + 'admin_statistics' => array( |
|
147 | 147 | 'title' => 'General statistics', |
148 | 148 | 'parent' => 'admin', |
149 | 149 | 'url' => 'admin/statistics.php' |
150 | 150 | ), |
151 | - 'admin_reportstats' => array ( |
|
151 | + 'admin_reportstats' => array( |
|
152 | 152 | 'title' => 'Reporting statistics', |
153 | 153 | 'parent' => 'admin', |
154 | 154 | 'url' => 'admin/reporting_stats.php' |
155 | 155 | ), |
156 | - 'admin_photos' => array ( |
|
156 | + 'admin_photos' => array( |
|
157 | 157 | 'title' => 'Photo upload/attribution', |
158 | 158 | 'parent' => 'admin', |
159 | 159 | 'url' => 'admin/photos.php', |
160 | 160 | ), |
161 | - 'admin_profile_message' => array ( |
|
161 | + 'admin_profile_message' => array( |
|
162 | 162 | 'title' => 'Profile message banner', |
163 | 163 | 'parent' => 'admin', |
164 | 164 | 'url' => 'admin/profile-message.php', |
165 | 165 | ), |
166 | - 'admin_mpurls' => array ( |
|
166 | + 'admin_mpurls' => array( |
|
167 | 167 | 'title' => 'MP Websites', |
168 | 168 | 'parent' => 'admin', |
169 | 169 | 'url' => 'admin/websites.php', |
170 | 170 | ), |
171 | - 'admin_policies' => array ( |
|
171 | + 'admin_policies' => array( |
|
172 | 172 | 'title' => 'MP Policy details', |
173 | 173 | 'parent' => 'admin', |
174 | 174 | 'url' => 'admin/policies.php', |
175 | 175 | ), |
176 | - 'admin_banner' => array ( |
|
176 | + 'admin_banner' => array( |
|
177 | 177 | 'title' => 'Edit Banner', |
178 | 178 | 'parent' => 'admin', |
179 | 179 | 'url' => 'admin/banner.php', |
180 | 180 | ), |
181 | - 'admin_featured' => array ( |
|
181 | + 'admin_featured' => array( |
|
182 | 182 | 'title' => 'Featured debates', |
183 | 183 | 'parent' => 'admin', |
184 | 184 | 'url' => 'admin/featured.php', |
185 | 185 | ), |
186 | - 'admin_topics' => array ( |
|
186 | + 'admin_topics' => array( |
|
187 | 187 | 'title' => 'Topics', |
188 | 188 | 'parent' => 'admin', |
189 | 189 | 'url' => 'admin/topics.php', |
190 | 190 | ), |
191 | - 'admin_edittopics' => array ( |
|
191 | + 'admin_edittopics' => array( |
|
192 | 192 | 'title' => 'Edit Topic', |
193 | 193 | 'parent' => 'admin_topics', |
194 | 194 | 'url' => 'admin/edittopic.php', |
195 | 195 | ), |
196 | - 'admin_wikipedia' => array ( |
|
196 | + 'admin_wikipedia' => array( |
|
197 | 197 | 'title' => 'Wikipedia links', |
198 | 198 | 'parent' => 'admin', |
199 | 199 | 'url' => 'admin/wikipedia.php', |
@@ -201,8 +201,8 @@ discard block |
||
201 | 201 | |
202 | 202 | // Added by Richard Allan for email alert functions |
203 | 203 | |
204 | - 'alert' => array ( |
|
205 | - 'menu' => array ( |
|
204 | + 'alert' => array( |
|
205 | + 'menu' => array( |
|
206 | 206 | 'text' => 'Email Alerts', |
207 | 207 | 'title' => "Set up alerts for updates on an MP or Peer by email", |
208 | 208 | 'sidebar' => 'alert' |
@@ -211,35 +211,35 @@ discard block |
||
211 | 211 | 'title' => 'TheyWorkForYou Email Alerts', |
212 | 212 | 'url' => 'alert/', |
213 | 213 | ), |
214 | - 'alertwelcome' => array ( |
|
214 | + 'alertwelcome' => array( |
|
215 | 215 | 'title' => 'Email Alerts', |
216 | 216 | 'url' => 'alert/', |
217 | 217 | ), |
218 | 218 | |
219 | 219 | // End of ALERTS additions |
220 | 220 | |
221 | - 'api_front' => array ( |
|
222 | - 'menu' => array ( |
|
221 | + 'api_front' => array( |
|
222 | + 'menu' => array( |
|
223 | 223 | 'text' => 'API', |
224 | 224 | 'title' => 'Access our data' |
225 | 225 | ), |
226 | 226 | 'title' => 'TheyWorkForYou API', |
227 | 227 | 'url' => 'api/' |
228 | 228 | ), |
229 | - 'api_doc_front' => array ( |
|
230 | - 'menu' => array ( |
|
229 | + 'api_doc_front' => array( |
|
230 | + 'menu' => array( |
|
231 | 231 | 'text' => 'API', |
232 | 232 | 'title' => 'Access our data' |
233 | 233 | ), |
234 | 234 | 'parent' => 'api_front', |
235 | 235 | 'url' => 'api/' |
236 | 236 | ), |
237 | - 'api_key' => array ( |
|
237 | + 'api_key' => array( |
|
238 | 238 | 'title' => 'Plan and keys', |
239 | 239 | 'parent' => 'api_front', |
240 | 240 | 'url' => 'api/key' |
241 | 241 | ), |
242 | - 'api_invoices' => array ( |
|
242 | + 'api_invoices' => array( |
|
243 | 243 | 'title' => 'Invoices', |
244 | 244 | 'parent' => 'api_front', |
245 | 245 | 'url' => 'api/invoices' |
@@ -250,69 +250,69 @@ discard block |
||
250 | 250 | 'url' => 'boundaries/', |
251 | 251 | ), |
252 | 252 | |
253 | - 'calendar_summary' => array ( |
|
254 | - 'menu' => array ( |
|
253 | + 'calendar_summary' => array( |
|
254 | + 'menu' => array( |
|
255 | 255 | 'text' => 'Upcoming', |
256 | 256 | 'title' => '', |
257 | 257 | ), |
258 | 258 | 'parent' => 'hansard', |
259 | 259 | 'url' => 'calendar/' |
260 | 260 | ), |
261 | - 'calendar_future_head' => array ( |
|
261 | + 'calendar_future_head' => array( |
|
262 | 262 | 'parent' => 'calendar_summary', |
263 | 263 | 'title' => 'Upcoming business', |
264 | 264 | 'url' => 'calendar/' |
265 | 265 | ), |
266 | - 'calendar_future' => array ( |
|
266 | + 'calendar_future' => array( |
|
267 | 267 | 'parent' => 'calendar_future_head', |
268 | 268 | 'url' => 'calendar/' |
269 | 269 | ), |
270 | - 'calendar_today_head' => array ( |
|
270 | + 'calendar_today_head' => array( |
|
271 | 271 | 'parent' => 'calendar_summary', |
272 | 272 | 'title' => 'Today’s business', |
273 | 273 | 'url' => 'calendar/' |
274 | 274 | ), |
275 | - 'calendar_today' => array ( |
|
275 | + 'calendar_today' => array( |
|
276 | 276 | 'parent' => 'calendar_today_head', |
277 | 277 | 'url' => 'calendar/' |
278 | 278 | ), |
279 | - 'calendar_past_head' => array ( |
|
279 | + 'calendar_past_head' => array( |
|
280 | 280 | 'parent' => 'calendar_summary', |
281 | 281 | 'title' => 'Previous business', |
282 | 282 | 'url' => 'calendar/' |
283 | 283 | ), |
284 | - 'calendar_past' => array ( |
|
284 | + 'calendar_past' => array( |
|
285 | 285 | 'parent' => 'calendar_past_head', |
286 | 286 | 'url' => 'calendar/' |
287 | 287 | ), |
288 | 288 | |
289 | - 'cards' => array ( |
|
289 | + 'cards' => array( |
|
290 | 290 | 'title' => 'MP Stats Cards', |
291 | 291 | 'url' => 'cards/' |
292 | 292 | ), |
293 | 293 | |
294 | - 'campaign_foi' => array ( |
|
294 | + 'campaign_foi' => array( |
|
295 | 295 | 'title' => 'Freedom of Information (Parliament) Order 2009', |
296 | 296 | 'url' => 'foiorder2009/' |
297 | 297 | ), |
298 | - 'campaign' => array ( |
|
298 | + 'campaign' => array( |
|
299 | 299 | 'title' => '', #Free Our Bills!', |
300 | 300 | 'url' => 'freeourbills/' |
301 | 301 | ), |
302 | - 'campaign_edm' => array ( |
|
302 | + 'campaign_edm' => array( |
|
303 | 303 | 'title' => 'Early Day Motion', |
304 | 304 | 'parent' => 'campaign', |
305 | 305 | 'url' => 'freeourbills/' |
306 | 306 | ), |
307 | 307 | |
308 | - 'commentreport' => array ( |
|
308 | + 'commentreport' => array( |
|
309 | 309 | 'title' => 'Reporting a comment', |
310 | 310 | 'url' => 'report/', |
311 | - 'session_vars' => array ('id') |
|
311 | + 'session_vars' => array('id') |
|
312 | 312 | ), |
313 | 313 | |
314 | - 'comments_recent' => array ( |
|
315 | - 'menu' => array ( |
|
314 | + 'comments_recent' => array( |
|
315 | + 'menu' => array( |
|
316 | 316 | 'text' => 'Recent comments', |
317 | 317 | 'title' => "Recently posted comments" |
318 | 318 | ), |
@@ -321,8 +321,8 @@ discard block |
||
321 | 321 | 'url' => 'comments/recent/' |
322 | 322 | ), |
323 | 323 | |
324 | - 'contact' => array ( |
|
325 | - 'menu' => array ( |
|
324 | + 'contact' => array( |
|
325 | + 'menu' => array( |
|
326 | 326 | 'text' => gettext('Contact'), |
327 | 327 | 'title' => '', |
328 | 328 | ), |
@@ -333,23 +333,23 @@ discard block |
||
333 | 333 | 'title' => gettext('News'), |
334 | 334 | 'url' => 'https://www.mysociety.org/category/projects/theyworkforyou/' |
335 | 335 | ), |
336 | - 'debate' => array ( |
|
336 | + 'debate' => array( |
|
337 | 337 | 'parent' => 'debatesfront', |
338 | 338 | 'url' => 'debates/', |
339 | - 'session_vars' => array ('id'), |
|
339 | + 'session_vars' => array('id'), |
|
340 | 340 | ), |
341 | - 'debates' => array ( |
|
341 | + 'debates' => array( |
|
342 | 342 | 'parent' => 'debatesfront', |
343 | 343 | 'url' => 'debates/', |
344 | - 'session_vars' => array ('id'), |
|
344 | + 'session_vars' => array('id'), |
|
345 | 345 | ), |
346 | - 'debatesday' => array ( |
|
346 | + 'debatesday' => array( |
|
347 | 347 | 'parent' => 'debatesfront', |
348 | - 'session_vars' => array ('d'), |
|
348 | + 'session_vars' => array('d'), |
|
349 | 349 | 'url' => 'debates/', |
350 | 350 | ), |
351 | - 'alldebatesfront' => array ( |
|
352 | - 'menu' => array ( |
|
351 | + 'alldebatesfront' => array( |
|
352 | + 'menu' => array( |
|
353 | 353 | 'text' => 'Debates', |
354 | 354 | 'title' => "Debates in the House of Commons, Westminster Hall, and the House of Lords" |
355 | 355 | ), |
@@ -358,8 +358,8 @@ discard block |
||
358 | 358 | 'rss' => 'rss/debates.rss', |
359 | 359 | 'url' => 'debates/' |
360 | 360 | ), |
361 | - 'debatesfront' => array ( |
|
362 | - 'menu' => array ( |
|
361 | + 'debatesfront' => array( |
|
362 | + 'menu' => array( |
|
363 | 363 | 'text' => 'Commons debates', |
364 | 364 | 'title' => "Debates in the House of Commons" |
365 | 365 | ), |
@@ -368,12 +368,12 @@ discard block |
||
368 | 368 | 'rss' => 'rss/debates.rss', |
369 | 369 | 'url' => 'debates/' |
370 | 370 | ), |
371 | - 'debatesyear' => array ( |
|
371 | + 'debatesyear' => array( |
|
372 | 372 | 'parent' => 'debatesfront', |
373 | 373 | 'url' => 'debates/' |
374 | 374 | ), |
375 | - 'divisions_recent' => array ( |
|
376 | - 'menu' => array ( |
|
375 | + 'divisions_recent' => array( |
|
376 | + 'menu' => array( |
|
377 | 377 | 'text' => 'Recent Votes', |
378 | 378 | 'title' => '' |
379 | 379 | ), |
@@ -381,13 +381,13 @@ discard block |
||
381 | 381 | 'title' => 'Recent Votes', |
382 | 382 | 'url' => 'divisions/' |
383 | 383 | ), |
384 | - 'divisions_vote' => array ( |
|
384 | + 'divisions_vote' => array( |
|
385 | 385 | 'parent' => 'divisions_recent', |
386 | 386 | 'title' => 'Vote', |
387 | 387 | 'url' => 'divisions/division.php', |
388 | 388 | 'session_vars' => array('vote'), |
389 | 389 | ), |
390 | - 'epvote' => array ( |
|
390 | + 'epvote' => array( |
|
391 | 391 | 'url' => 'vote/' |
392 | 392 | ), |
393 | 393 | |
@@ -396,19 +396,19 @@ discard block |
||
396 | 396 | 'title' => 'TheyWorkForYou Google gadget', |
397 | 397 | ), |
398 | 398 | |
399 | - 'glossary' => array ( |
|
399 | + 'glossary' => array( |
|
400 | 400 | 'heading' => 'Glossary', |
401 | 401 | 'parent' => 'help_us_out', |
402 | 402 | 'url' => 'glossary/' |
403 | 403 | ), |
404 | - 'glossary_item' => array ( |
|
404 | + 'glossary_item' => array( |
|
405 | 405 | 'heading' => 'Glossary heading', |
406 | 406 | 'parent' => 'help_us_out', |
407 | 407 | 'url' => 'glossary/', |
408 | - 'session_vars' => array ('g') |
|
408 | + 'session_vars' => array('g') |
|
409 | 409 | ), |
410 | - 'hansard' => array ( |
|
411 | - 'menu' => array ( |
|
410 | + 'hansard' => array( |
|
411 | + 'menu' => array( |
|
412 | 412 | 'text' => 'UK Parliament', |
413 | 413 | 'title' => "Houses of Parliament debates, Written Answers, Statements, Westminster Hall debates, and Bill Committees" |
414 | 414 | ), |
@@ -416,16 +416,16 @@ discard block |
||
416 | 416 | 'url' => '' |
417 | 417 | ), |
418 | 418 | // Hansard landing page |
419 | - 'hansard_landing' => array ( |
|
419 | + 'hansard_landing' => array( |
|
420 | 420 | 'title' => 'Hansard', |
421 | 421 | 'url' => 'search-hansard/', |
422 | 422 | ), |
423 | - 'help' => array ( |
|
423 | + 'help' => array( |
|
424 | 424 | 'title' => gettext('Help - Frequently Asked Questions'), |
425 | 425 | 'url' => 'help/' |
426 | 426 | ), |
427 | - 'help_us_out' => array ( |
|
428 | - 'menu' => array ( |
|
427 | + 'help_us_out' => array( |
|
428 | + 'menu' => array( |
|
429 | 429 | 'text' => 'Glossary', |
430 | 430 | 'title' => "Parliament's jargon explained" |
431 | 431 | ), |
@@ -434,77 +434,77 @@ discard block |
||
434 | 434 | 'url' => 'addterm/', |
435 | 435 | 'sidebar' => 'glossary_add' |
436 | 436 | ), |
437 | - 'home' => array ( |
|
437 | + 'home' => array( |
|
438 | 438 | 'title' => "UK Parliament", |
439 | 439 | 'rss' => 'news/index.rdf', |
440 | 440 | 'url' => '' |
441 | 441 | ), |
442 | - 'houserules' => array ( |
|
442 | + 'houserules' => array( |
|
443 | 443 | 'title' => 'House rules', |
444 | 444 | 'url' => 'houserules/' |
445 | 445 | ), |
446 | 446 | |
447 | - 'linktous' => array ( |
|
447 | + 'linktous' => array( |
|
448 | 448 | 'title' => gettext('Link to us'), |
449 | 449 | 'heading' => gettext('How to link to us'), |
450 | 450 | 'url' => 'help/linktous/' |
451 | 451 | ), |
452 | - 'api' => array ( |
|
452 | + 'api' => array( |
|
453 | 453 | 'title' => gettext('API'), |
454 | 454 | 'heading' => gettext('API - Query the TheyWorkForYou database'), |
455 | 455 | 'url' => 'api/' |
456 | 456 | ), |
457 | - 'data' => array ( |
|
457 | + 'data' => array( |
|
458 | 458 | 'title' => gettext('Raw Data'), |
459 | 459 | 'heading' => gettext('Raw data (XML) - the data behind TheyWorkForYou and Public Whip'), |
460 | 460 | 'url' => 'http://parser.theyworkforyou.com' |
461 | 461 | ), |
462 | - 'devmailinglist' => array ( |
|
462 | + 'devmailinglist' => array( |
|
463 | 463 | 'title' => gettext('Developer mailing list'), |
464 | 464 | 'url' => 'https://groups.google.com/a/mysociety.org/forum/#!forum/theyworkforyou' |
465 | 465 | ), |
466 | - 'code' => array ( |
|
466 | + 'code' => array( |
|
467 | 467 | 'title' => gettext('Source code'), |
468 | 468 | 'heading' => gettext('TheyWorkForYou Source code'), |
469 | 469 | 'url' => 'https://github.com/mysociety/theyworkforyou' |
470 | 470 | ), |
471 | - 'irc' => array ( |
|
471 | + 'irc' => array( |
|
472 | 472 | 'title' => 'IRC chat channel', |
473 | 473 | 'heading' => 'IRC chat channel', |
474 | 474 | 'url' => 'http://www.irc.mysociety.org/' |
475 | 475 | ), |
476 | - 'australia' => array ( |
|
476 | + 'australia' => array( |
|
477 | 477 | 'title' => 'Australia', |
478 | 478 | 'heading' => 'Open Australia', |
479 | 479 | 'url' => 'http://www.openaustralia.org/' |
480 | 480 | ), |
481 | - 'ireland' => array ( |
|
481 | + 'ireland' => array( |
|
482 | 482 | 'title' => 'Ireland', |
483 | 483 | 'heading' => 'TheyWorkForYou for the Houses of the Oireachtas', |
484 | 484 | 'url' => 'http://www.kildarestreet.com/' |
485 | 485 | ), |
486 | - 'mzalendo' => array ( |
|
486 | + 'mzalendo' => array( |
|
487 | 487 | 'title' => 'Mzalendo', |
488 | 488 | 'heading' => 'Keeping an eye on the Kenyan Parliament', |
489 | 489 | 'url' => 'http://info.mzalendo.com/' |
490 | 490 | ), |
491 | - 'lordsdebate' => array ( |
|
491 | + 'lordsdebate' => array( |
|
492 | 492 | 'parent' => 'lordsdebatesfront', |
493 | 493 | 'url' => 'lords/', |
494 | - 'session_vars' => array ('id'), |
|
494 | + 'session_vars' => array('id'), |
|
495 | 495 | ), |
496 | - 'lordsdebates' => array ( |
|
496 | + 'lordsdebates' => array( |
|
497 | 497 | 'parent' => 'lordsdebatesfront', |
498 | 498 | 'url' => 'lords/', |
499 | - 'session_vars' => array ('id'), |
|
499 | + 'session_vars' => array('id'), |
|
500 | 500 | ), |
501 | - 'lordsdebatesday' => array ( |
|
501 | + 'lordsdebatesday' => array( |
|
502 | 502 | 'parent' => 'lordsdebatesfront', |
503 | - 'session_vars' => array ('d'), |
|
503 | + 'session_vars' => array('d'), |
|
504 | 504 | 'url' => 'lords/', |
505 | 505 | ), |
506 | - 'lordsdebatesfront' => array ( |
|
507 | - 'menu' => array ( |
|
506 | + 'lordsdebatesfront' => array( |
|
507 | + 'menu' => array( |
|
508 | 508 | 'text' => 'Lords debates', |
509 | 509 | 'title' => "House of Lords debates" |
510 | 510 | ), |
@@ -513,24 +513,24 @@ discard block |
||
513 | 513 | 'rss' => 'rss/lords.rss', |
514 | 514 | 'url' => 'lords/' |
515 | 515 | ), |
516 | - 'lordsdebatesyear' => array ( |
|
516 | + 'lordsdebatesyear' => array( |
|
517 | 517 | 'parent' => 'lordsdebatesfront', |
518 | 518 | 'url' => 'lords/' |
519 | 519 | ), |
520 | 520 | |
521 | 521 | // Parliament landing page |
522 | - 'parliament_landing' => array ( |
|
522 | + 'parliament_landing' => array( |
|
523 | 523 | 'title' => 'Parliament', |
524 | 524 | 'url' => 'parliament/', |
525 | 525 | ), |
526 | 526 | |
527 | - 'peer' => array ( |
|
527 | + 'peer' => array( |
|
528 | 528 | 'parent' => 'peers', |
529 | 529 | 'title' => 'Peer', |
530 | 530 | 'url' => 'peer/' |
531 | 531 | ), |
532 | - 'peers' => array ( |
|
533 | - 'menu' => array ( |
|
532 | + 'peers' => array( |
|
533 | + 'menu' => array( |
|
534 | 534 | 'text' => 'Lords', |
535 | 535 | 'title' => "List of all Lords" |
536 | 536 | ), |
@@ -538,8 +538,8 @@ discard block |
||
538 | 538 | 'title' => '', |
539 | 539 | 'url' => 'peers/' |
540 | 540 | ), |
541 | -'overview' => array ( |
|
542 | - 'menu' => array ( |
|
541 | +'overview' => array( |
|
542 | + 'menu' => array( |
|
543 | 543 | 'text' => 'Overview', |
544 | 544 | 'title' => "Overview of the UK Parliament" |
545 | 545 | ), |
@@ -548,50 +548,50 @@ discard block |
||
548 | 548 | 'rss' => 'news/index.rdf', |
549 | 549 | 'url' => '' |
550 | 550 | ), |
551 | - 'mla' => array ( |
|
551 | + 'mla' => array( |
|
552 | 552 | 'parent' => 'mlas', |
553 | 553 | 'title' => 'Find your MLA', |
554 | 554 | 'url' => 'mla/' |
555 | 555 | ), |
556 | - 'mlas' => array ( |
|
556 | + 'mlas' => array( |
|
557 | 557 | 'parent' => 'ni_home', |
558 | - 'menu' => array ( |
|
558 | + 'menu' => array( |
|
559 | 559 | 'text' => 'MLAs', |
560 | 560 | 'title' => "List of all Members of the Northern Ireland Assembly (MLAs)" |
561 | 561 | ), |
562 | 562 | 'title' => '', |
563 | 563 | 'url' => 'mlas/' |
564 | 564 | ), |
565 | - 'msps' => array ( |
|
565 | + 'msps' => array( |
|
566 | 566 | 'parent' => 'sp_home', |
567 | - 'menu' => array ( |
|
567 | + 'menu' => array( |
|
568 | 568 | 'text' => 'MSPs', |
569 | 569 | 'title' => "List of Members of the Scottish Parliament (MSPs)" |
570 | 570 | ), |
571 | 571 | 'title' => '', |
572 | 572 | 'url' => 'msps/' |
573 | 573 | ), |
574 | - 'msp' => array ( |
|
574 | + 'msp' => array( |
|
575 | 575 | 'parent' => 'msps', |
576 | 576 | 'title' => 'Find your MSP', |
577 | 577 | 'url' => 'msp/' |
578 | 578 | ), |
579 | 579 | /* Not 'Your MP', whose name is 'yourmp'... */ |
580 | - 'mp' => array ( |
|
580 | + 'mp' => array( |
|
581 | 581 | 'parent' => 'mps', |
582 | 582 | 'title' => 'Find your MP', |
583 | 583 | 'url' => 'mp/' |
584 | 584 | ), |
585 | - 'emailfriend' => array ( |
|
585 | + 'emailfriend' => array( |
|
586 | 586 | 'title' => 'Send this page to a friend', |
587 | 587 | 'url' => 'email/' |
588 | 588 | ), |
589 | 589 | // The directory MPs' RSS feeds are stored in. |
590 | - 'mp_rss' => array ( |
|
590 | + 'mp_rss' => array( |
|
591 | 591 | 'url' => 'rss/mp/' |
592 | 592 | ), |
593 | - 'mps' => array ( |
|
594 | - 'menu' => array ( |
|
593 | + 'mps' => array( |
|
594 | + 'menu' => array( |
|
595 | 595 | 'text' => 'MPs', |
596 | 596 | 'title' => "List of all Members of Parliament (MPs)" |
597 | 597 | ), |
@@ -602,16 +602,16 @@ discard block |
||
602 | 602 | |
603 | 603 | /* Northern Ireland Assembly */ |
604 | 604 | 'ni_home' => array( |
605 | - 'menu' => array ( |
|
605 | + 'menu' => array( |
|
606 | 606 | 'text' => 'Northern Ireland Assembly', |
607 | 607 | 'title' => 'Full authority over <em>transferred matters</em>, which include agriculture, education, employment, the environment and health' |
608 | 608 | ), |
609 | 609 | 'title' => 'Northern Ireland Assembly', |
610 | 610 | 'url' => 'ni/' |
611 | 611 | ), |
612 | - 'nioverview' => array ( |
|
612 | + 'nioverview' => array( |
|
613 | 613 | 'parent' => 'ni_home', |
614 | - 'menu' => array ( |
|
614 | + 'menu' => array( |
|
615 | 615 | 'text' => 'Debates', |
616 | 616 | 'title' => "Overview of the Northern Ireland Assembly debates" |
617 | 617 | ), |
@@ -619,23 +619,23 @@ discard block |
||
619 | 619 | 'rss' => 'rss/ni.rss', |
620 | 620 | 'url' => 'ni/' |
621 | 621 | ), |
622 | - 'nidebate' => array ( |
|
622 | + 'nidebate' => array( |
|
623 | 623 | 'parent' => 'nidebatesfront', |
624 | 624 | 'url' => 'ni/', |
625 | - 'session_vars' => array ('id'), |
|
625 | + 'session_vars' => array('id'), |
|
626 | 626 | ), |
627 | - 'nidebates' => array ( |
|
627 | + 'nidebates' => array( |
|
628 | 628 | 'parent' => 'nidebatesfront', |
629 | 629 | 'url' => 'ni/', |
630 | - 'session_vars' => array ('id'), |
|
630 | + 'session_vars' => array('id'), |
|
631 | 631 | ), |
632 | - 'nidebatesday' => array ( |
|
632 | + 'nidebatesday' => array( |
|
633 | 633 | 'parent' => 'nidebatesfront', |
634 | - 'session_vars' => array ('d'), |
|
634 | + 'session_vars' => array('d'), |
|
635 | 635 | 'url' => 'ni/', |
636 | 636 | ), |
637 | - 'nidebatesfront' => array ( |
|
638 | - 'menu' => array ( |
|
637 | + 'nidebatesfront' => array( |
|
638 | + 'menu' => array( |
|
639 | 639 | 'text' => 'Debates', |
640 | 640 | 'title' => "Northern Ireland Assembly debates" |
641 | 641 | ), |
@@ -644,7 +644,7 @@ discard block |
||
644 | 644 | 'rss' => 'rss/ni.rss', |
645 | 645 | 'url' => 'ni/' |
646 | 646 | ), |
647 | - 'nidebatesyear' => array ( |
|
647 | + 'nidebatesyear' => array( |
|
648 | 648 | 'parent' => 'nidebatesfront', |
649 | 649 | 'url' => 'ni/' |
650 | 650 | ), |
@@ -652,7 +652,7 @@ discard block |
||
652 | 652 | /* London Assembly */ |
653 | 653 | |
654 | 654 | 'london_home' => array( |
655 | - 'menu' => array ( |
|
655 | + 'menu' => array( |
|
656 | 656 | 'text' => 'London Assembly', |
657 | 657 | 'title' => 'Members of the London Assembly, answers from the Mayor of London' |
658 | 658 | ), |
@@ -660,9 +660,9 @@ discard block |
||
660 | 660 | 'url' => 'london/' |
661 | 661 | ), |
662 | 662 | |
663 | - 'london-assembly-members' => array ( |
|
663 | + 'london-assembly-members' => array( |
|
664 | 664 | 'parent' => 'london_home', |
665 | - 'menu' => array ( |
|
665 | + 'menu' => array( |
|
666 | 666 | 'text' => 'London Assembly Members', |
667 | 667 | 'title' => "List of Members of the London Assembly)" |
668 | 668 | ), |
@@ -670,48 +670,48 @@ discard block |
||
670 | 670 | 'url' => 'london-assembly-members/' |
671 | 671 | ), |
672 | 672 | |
673 | - 'london-assembly-member' => array ( |
|
673 | + 'london-assembly-member' => array( |
|
674 | 674 | 'parent' => 'london-assembly-members', |
675 | 675 | 'title' => 'Find your London Assembly Member', |
676 | 676 | 'url' => 'london-assembly-member/' |
677 | 677 | ), |
678 | 678 | |
679 | - 'lmqs' => array ( |
|
679 | + 'lmqs' => array( |
|
680 | 680 | 'parent' => 'london_home', |
681 | 681 | 'url' => 'london/', |
682 | - 'session_vars' => array ('id') |
|
682 | + 'session_vars' => array('id') |
|
683 | 683 | ), |
684 | - 'lmqsday' => array ( |
|
684 | + 'lmqsday' => array( |
|
685 | 685 | 'parent' => 'london_home', |
686 | 686 | 'url' => 'london/', |
687 | 687 | ), |
688 | - 'lmqsfront' => array ( |
|
688 | + 'lmqsfront' => array( |
|
689 | 689 | 'parent' => 'london_home', |
690 | - 'menu' => array ( |
|
690 | + 'menu' => array( |
|
691 | 691 | 'text' => 'Questions to the Mayor of London', |
692 | 692 | 'title' => "Questions to the Mayor of London" |
693 | 693 | ), |
694 | 694 | 'title' => 'questions to the Mayor of London', |
695 | 695 | 'url' => 'london/', |
696 | 696 | ), |
697 | - 'lmqsyear' => array ( |
|
697 | + 'lmqsyear' => array( |
|
698 | 698 | 'parent' => 'london_home', |
699 | 699 | 'url' => 'london/', |
700 | 700 | ), |
701 | 701 | |
702 | - 'otheruseredit' => array ( |
|
702 | + 'otheruseredit' => array( |
|
703 | 703 | 'pg' => 'editother', |
704 | 704 | 'title' => "Editing a user's data", |
705 | 705 | 'url' => 'user/' |
706 | 706 | ), |
707 | - 'privacy' => array ( |
|
707 | + 'privacy' => array( |
|
708 | 708 | 'title' => gettext('Privacy Policy'), |
709 | 709 | 'url' => 'privacy/' |
710 | 710 | ), |
711 | 711 | |
712 | 712 | /* Public bill committees */ |
713 | - 'pbc_front' => array ( |
|
714 | - 'menu' => array ( |
|
713 | + 'pbc_front' => array( |
|
714 | + 'menu' => array( |
|
715 | 715 | 'text' => 'Bill Committees', |
716 | 716 | 'title' => "Public Bill Committees (formerly Standing Committees) debates" |
717 | 717 | ), |
@@ -729,17 +729,17 @@ discard block |
||
729 | 729 | 'title' => '', |
730 | 730 | 'url' => 'pbc/', |
731 | 731 | 'parent' => 'pbc_front', |
732 | - 'session_vars' => array ('bill'), |
|
732 | + 'session_vars' => array('bill'), |
|
733 | 733 | ), |
734 | 734 | 'pbc_clause' => array( |
735 | 735 | 'parent' => 'pbc_front', |
736 | 736 | 'url' => 'pbc/', |
737 | - 'session_vars' => array ('id'), |
|
737 | + 'session_vars' => array('id'), |
|
738 | 738 | ), |
739 | 739 | 'pbc_speech' => array( |
740 | 740 | 'parent' => 'pbc_front', |
741 | 741 | 'url' => 'pbc/', |
742 | - 'session_vars' => array ('id'), |
|
742 | + 'session_vars' => array('id'), |
|
743 | 743 | ), |
744 | 744 | |
745 | 745 | 'people' => array( |
@@ -751,57 +751,57 @@ discard block |
||
751 | 751 | 'url' => '', |
752 | 752 | ), |
753 | 753 | |
754 | - 'raw' => array ( |
|
754 | + 'raw' => array( |
|
755 | 755 | 'title' => 'Raw data', |
756 | 756 | 'url' => 'raw/' |
757 | 757 | ), |
758 | 758 | |
759 | - 'regmem' => array ( |
|
759 | + 'regmem' => array( |
|
760 | 760 | 'title' => 'Changes to the Register of Members\' Interests', |
761 | 761 | 'url' => 'regmem/' |
762 | 762 | ), |
763 | 763 | |
764 | - 'regmem_date' => array ( |
|
764 | + 'regmem_date' => array( |
|
765 | 765 | 'url' => 'regmem/', |
766 | 766 | 'parent' => 'regmem' |
767 | 767 | ), |
768 | 768 | |
769 | - 'regmem_mp' => array ( |
|
769 | + 'regmem_mp' => array( |
|
770 | 770 | 'url' => 'regmem/', |
771 | 771 | 'parent' => 'regmem' |
772 | 772 | ), |
773 | 773 | |
774 | - 'regmem_diff' => array ( |
|
774 | + 'regmem_diff' => array( |
|
775 | 775 | 'url' => 'regmem/', |
776 | 776 | 'parent' => 'regmem' |
777 | 777 | ), |
778 | 778 | |
779 | - 'royal' => array ( |
|
779 | + 'royal' => array( |
|
780 | 780 | 'parent' => 'hansard', |
781 | 781 | 'title' => 'Royal', |
782 | 782 | 'url' => 'royal/', |
783 | 783 | ), |
784 | 784 | |
785 | - 'topic' => array ( |
|
785 | + 'topic' => array( |
|
786 | 786 | 'parent' => 'topics', |
787 | 787 | 'url' => 'topic/topic.php', |
788 | 788 | ), |
789 | 789 | |
790 | - 'topics' => array ( |
|
790 | + 'topics' => array( |
|
791 | 791 | 'title' => 'Topics', |
792 | 792 | 'url' => 'topic/', |
793 | 793 | ), |
794 | 794 | |
795 | - 'search' => array ( |
|
795 | + 'search' => array( |
|
796 | 796 | 'sidebar' => 'search', |
797 | 797 | 'url' => 'search/', |
798 | 798 | 'robots' => 'noindex, nofollow', |
799 | 799 | 'heading' => '', |
800 | - 'session_vars' => array ('q', 's', 'pid', 'o', 'pop') |
|
800 | + 'session_vars' => array('q', 's', 'pid', 'o', 'pop') |
|
801 | 801 | ), |
802 | 802 | |
803 | - 'sitenews' => array ( |
|
804 | - 'menu' => array ( |
|
803 | + 'sitenews' => array( |
|
804 | + 'menu' => array( |
|
805 | 805 | 'text' => 'TheyWorkForYou news', |
806 | 806 | 'title' => "News about changes to this website" |
807 | 807 | ), |
@@ -811,68 +811,68 @@ discard block |
||
811 | 811 | 'title' => 'TheyWorkForYou news', |
812 | 812 | 'url' => 'news/' |
813 | 813 | ), |
814 | - 'sitenews_archive' => array ( |
|
814 | + 'sitenews_archive' => array( |
|
815 | 815 | 'parent' => 'sitenews', |
816 | 816 | 'rss' => 'news/index.rdf', |
817 | 817 | 'sidebar' => 'sitenews', |
818 | 818 | 'title' => 'Archive', |
819 | 819 | 'url' => 'news/archives/' |
820 | 820 | ), |
821 | - 'sitenews_atom' => array ( |
|
821 | + 'sitenews_atom' => array( |
|
822 | 822 | 'url' => 'news/atom.xml' |
823 | 823 | ), |
824 | - 'sitenews_date' => array ( |
|
824 | + 'sitenews_date' => array( |
|
825 | 825 | 'parent' => 'sitenews', |
826 | 826 | 'rss' => 'news/index.rdf', |
827 | 827 | 'sidebar' => 'sitenews' |
828 | 828 | ), |
829 | - 'sitenews_individual' => array ( |
|
829 | + 'sitenews_individual' => array( |
|
830 | 830 | 'parent' => 'sitenews', |
831 | 831 | 'rss' => 'news/index.rdf', |
832 | 832 | 'sidebar' => 'sitenews', |
833 | 833 | ), |
834 | - 'sitenews_rss1' => array ( |
|
834 | + 'sitenews_rss1' => array( |
|
835 | 835 | 'url' => 'news/index.rdf' |
836 | 836 | ), |
837 | - 'sitenews_rss2' => array ( |
|
837 | + 'sitenews_rss2' => array( |
|
838 | 838 | 'url' => 'news/index.xml' |
839 | 839 | ), |
840 | 840 | |
841 | 841 | /* Scottish Parliament */ |
842 | 842 | 'sp_home' => array( |
843 | - 'menu' => array ( |
|
843 | + 'menu' => array( |
|
844 | 844 | 'text' => 'Scottish Parliament', |
845 | 845 | 'title' => 'Scottish education, health, agriculture, justice, prisons and other devolved areas. Some tax-varying powers' |
846 | 846 | ), |
847 | 847 | 'title' => 'Scottish Parliament', |
848 | 848 | 'url' => 'scotland/' |
849 | 849 | ), |
850 | - 'spoverview' => array ( |
|
850 | + 'spoverview' => array( |
|
851 | 851 | 'parent' => 'sp_home', |
852 | - 'menu' => array ( |
|
852 | + 'menu' => array( |
|
853 | 853 | 'text' => 'Overview', |
854 | 854 | 'title' => "Overview of the Scottish Parliament" |
855 | 855 | ), |
856 | 856 | 'title' => '', |
857 | 857 | 'url' => 'scotland/' |
858 | 858 | ), |
859 | - 'spdebate' => array ( |
|
859 | + 'spdebate' => array( |
|
860 | 860 | 'parent' => 'spdebatesfront', |
861 | 861 | 'url' => 'sp/', |
862 | - 'session_vars' => array ('id'), |
|
862 | + 'session_vars' => array('id'), |
|
863 | 863 | ), |
864 | - 'spdebates' => array ( |
|
864 | + 'spdebates' => array( |
|
865 | 865 | 'parent' => 'spdebatesfront', |
866 | 866 | 'url' => 'sp/', |
867 | - 'session_vars' => array ('id'), |
|
867 | + 'session_vars' => array('id'), |
|
868 | 868 | ), |
869 | - 'spdebatesday' => array ( |
|
869 | + 'spdebatesday' => array( |
|
870 | 870 | 'parent' => 'spdebatesfront', |
871 | - 'session_vars' => array ('d'), |
|
871 | + 'session_vars' => array('d'), |
|
872 | 872 | 'url' => 'sp/', |
873 | 873 | ), |
874 | - 'spdebatesfront' => array ( |
|
875 | - 'menu' => array ( |
|
874 | + 'spdebatesfront' => array( |
|
875 | + 'menu' => array( |
|
876 | 876 | 'text' => 'Debates', |
877 | 877 | 'title' => '' |
878 | 878 | ), |
@@ -881,21 +881,21 @@ discard block |
||
881 | 881 | 'url' => 'sp/' |
882 | 882 | ), |
883 | 883 | |
884 | - 'spdebatesyear' => array ( |
|
884 | + 'spdebatesyear' => array( |
|
885 | 885 | 'parent' => 'spdebatesfront', |
886 | 886 | 'url' => 'sp/' |
887 | 887 | ), |
888 | - 'spwrans' => array ( |
|
888 | + 'spwrans' => array( |
|
889 | 889 | 'parent' => 'spwransfront', |
890 | 890 | 'url' => 'spwrans/', |
891 | 891 | #'session_vars' => array ('id'), |
892 | 892 | ), |
893 | - 'spwransday' => array ( |
|
893 | + 'spwransday' => array( |
|
894 | 894 | 'parent' => 'spwransfront', |
895 | 895 | 'url' => 'spwrans/' |
896 | 896 | ), |
897 | - 'spwransfront' => array ( |
|
898 | - 'menu' => array ( |
|
897 | + 'spwransfront' => array( |
|
898 | + 'menu' => array( |
|
899 | 899 | 'text' => 'Written Answers', |
900 | 900 | 'title' => '' |
901 | 901 | ), |
@@ -908,31 +908,31 @@ discard block |
||
908 | 908 | 'title' => 'For questions asked by ', |
909 | 909 | 'url' => 'spwrans/' |
910 | 910 | ), |
911 | - 'spwransyear' => array ( |
|
911 | + 'spwransyear' => array( |
|
912 | 912 | 'parent' => 'spwransfront', |
913 | 913 | 'url' => 'spwrans/' |
914 | 914 | ), |
915 | 915 | |
916 | 916 | // Topic pages |
917 | 917 | |
918 | - 'topic' => array ( |
|
918 | + 'topic' => array( |
|
919 | 919 | 'url' => 'topic/', |
920 | 920 | 'title' => 'Topics' |
921 | 921 | ), |
922 | 922 | |
923 | - 'topicbenefits' => array ( |
|
923 | + 'topicbenefits' => array( |
|
924 | 924 | 'url' => 'topic/benefits', |
925 | 925 | 'parent' => 'topic', |
926 | 926 | 'title' => 'Benefits' |
927 | 927 | ), |
928 | 928 | |
929 | - 'topiccrimestats' => array ( |
|
929 | + 'topiccrimestats' => array( |
|
930 | 930 | 'url' => 'topic/crime-stats', |
931 | 931 | 'parent' => 'topic', |
932 | 932 | 'title' => 'Crime Statistics' |
933 | 933 | ), |
934 | 934 | |
935 | - 'topicnhs' => array ( |
|
935 | + 'topicnhs' => array( |
|
936 | 936 | 'url' => 'topic/nhs', |
937 | 937 | 'parent' => 'topic', |
938 | 938 | 'title' => 'NHS' |
@@ -947,29 +947,29 @@ discard block |
||
947 | 947 | 'url' => 'user/alerts/', |
948 | 948 | 'parent' => 'userviewself' |
949 | 949 | ), |
950 | - 'userchangepc' => array ( |
|
950 | + 'userchangepc' => array( |
|
951 | 951 | 'title' => 'Change your postcode', |
952 | 952 | 'url' => 'user/changepc/' |
953 | 953 | ), |
954 | - 'userconfirm' => array ( |
|
954 | + 'userconfirm' => array( |
|
955 | 955 | 'url' => 'user/confirm/' |
956 | 956 | ), |
957 | - 'userconfirmed' => array ( |
|
957 | + 'userconfirmed' => array( |
|
958 | 958 | 'sidebar' => 'userconfirmed', |
959 | 959 | 'title' => 'Welcome to TheyWorkForYou!', |
960 | 960 | 'url' => 'user/confirm/' |
961 | 961 | ), |
962 | - 'userconfirmfailed' => array ( |
|
962 | + 'userconfirmfailed' => array( |
|
963 | 963 | 'title' => 'Oops!', |
964 | 964 | 'url' => 'user/confirm/' |
965 | 965 | ), |
966 | - 'useredit' => array ( |
|
966 | + 'useredit' => array( |
|
967 | 967 | 'pg' => 'edit', |
968 | 968 | 'title' => 'Edit your details', |
969 | 969 | 'url' => 'user/' |
970 | 970 | ), |
971 | - 'userjoin' => array ( |
|
972 | - 'menu' => array ( |
|
971 | + 'userjoin' => array( |
|
972 | + 'menu' => array( |
|
973 | 973 | 'text' => gettext('Join'), |
974 | 974 | 'title' => gettext("Joining is free and allows you to manage your email alerts") |
975 | 975 | ), |
@@ -978,8 +978,8 @@ discard block |
||
978 | 978 | 'title' => gettext('Join TheyWorkForYou'), |
979 | 979 | 'url' => 'user/' |
980 | 980 | ), |
981 | - 'userlogin' => array ( |
|
982 | - 'menu' => array ( |
|
981 | + 'userlogin' => array( |
|
982 | + 'menu' => array( |
|
983 | 983 | 'text' => gettext('Sign in'), |
984 | 984 | 'title' => gettext("If you've already joined, sign in to your account") |
985 | 985 | ), |
@@ -988,33 +988,33 @@ discard block |
||
988 | 988 | 'url' => 'user/login/' |
989 | 989 | ), |
990 | 990 | |
991 | - 'userlogout' => array ( |
|
992 | - 'menu' => array ( |
|
991 | + 'userlogout' => array( |
|
992 | + 'menu' => array( |
|
993 | 993 | 'text' => 'Sign out', |
994 | 994 | 'title' => "Sign out" |
995 | 995 | ), |
996 | 996 | 'url' => 'user/logout/' |
997 | 997 | ), |
998 | - 'userpassword' => array ( |
|
998 | + 'userpassword' => array( |
|
999 | 999 | 'title' => 'Change password', |
1000 | 1000 | 'url' => 'user/password/' |
1001 | 1001 | ), |
1002 | - 'userprompt' => array ( |
|
1002 | + 'userprompt' => array( |
|
1003 | 1003 | 'title' => 'Please sign in', |
1004 | 1004 | 'url' => 'user/prompt/' |
1005 | 1005 | ), |
1006 | - 'userview' => array ( |
|
1006 | + 'userview' => array( |
|
1007 | 1007 | 'session_vars' => array('u'), |
1008 | 1008 | 'url' => 'user/' |
1009 | 1009 | ), |
1010 | - 'userviewself' => array ( |
|
1011 | - 'menu' => array ( |
|
1010 | + 'userviewself' => array( |
|
1011 | + 'menu' => array( |
|
1012 | 1012 | 'text' => 'Your details', |
1013 | 1013 | 'title' => "View and edit your details" |
1014 | 1014 | ), |
1015 | 1015 | 'url' => 'user/' |
1016 | 1016 | ), |
1017 | - 'userwelcome' => array ( |
|
1017 | + 'userwelcome' => array( |
|
1018 | 1018 | 'title' => 'Welcome!', |
1019 | 1019 | 'url' => 'user/' |
1020 | 1020 | ), |
@@ -1028,22 +1028,22 @@ discard block |
||
1028 | 1028 | 'title' => 'Senedd Cymru / Welsh Parliament', |
1029 | 1029 | 'url' => 'senedd/' |
1030 | 1030 | ), |
1031 | - 'mss' => array ( |
|
1031 | + 'mss' => array( |
|
1032 | 1032 | 'parent' => 'wales_home', |
1033 | - 'menu' => array ( |
|
1033 | + 'menu' => array( |
|
1034 | 1034 | 'text' => gettext('MSs'), |
1035 | 1035 | 'title' => gettext("List of Members of the Senedd (MSs)") |
1036 | 1036 | ), |
1037 | 1037 | 'title' => '', |
1038 | 1038 | 'url' => 'mss/' |
1039 | 1039 | ), |
1040 | - 'ms' => array ( |
|
1040 | + 'ms' => array( |
|
1041 | 1041 | 'parent' => 'mss', |
1042 | 1042 | 'title' => gettext('Find your MS'), |
1043 | 1043 | 'url' => 'ms/' |
1044 | 1044 | ), |
1045 | - 'yourms' => array ( |
|
1046 | - 'menu' => array ( |
|
1045 | + 'yourms' => array( |
|
1046 | + 'menu' => array( |
|
1047 | 1047 | 'text' => gettext('Your MSs'), |
1048 | 1048 | 'title' => gettext("Find out about your Members of the Welsh Parliament") |
1049 | 1049 | ), |
@@ -1053,9 +1053,9 @@ discard block |
||
1053 | 1053 | 'url' => 'ms/' |
1054 | 1054 | ), |
1055 | 1055 | |
1056 | - 'seneddoverview' => array ( |
|
1056 | + 'seneddoverview' => array( |
|
1057 | 1057 | 'parent' => 'wales_home', |
1058 | - 'menu' => array ( |
|
1058 | + 'menu' => array( |
|
1059 | 1059 | 'text' => gettext('Record'), |
1060 | 1060 | 'title' => gettext("Overview of the Senedd debates") |
1061 | 1061 | ), |
@@ -1063,23 +1063,23 @@ discard block |
||
1063 | 1063 | 'rss' => 'rss/senedd.rss', |
1064 | 1064 | 'url' => 'senedd/' |
1065 | 1065 | ), |
1066 | - 'senedddebate' => array ( |
|
1066 | + 'senedddebate' => array( |
|
1067 | 1067 | 'parent' => 'senedddebatesfront', |
1068 | 1068 | 'url' => 'senedd/', |
1069 | - 'session_vars' => array ('id'), |
|
1069 | + 'session_vars' => array('id'), |
|
1070 | 1070 | ), |
1071 | - 'senedddebates' => array ( |
|
1071 | + 'senedddebates' => array( |
|
1072 | 1072 | 'parent' => 'senedddebatesfront', |
1073 | 1073 | 'url' => 'senedd/', |
1074 | - 'session_vars' => array ('id'), |
|
1074 | + 'session_vars' => array('id'), |
|
1075 | 1075 | ), |
1076 | - 'senedddebatesday' => array ( |
|
1076 | + 'senedddebatesday' => array( |
|
1077 | 1077 | 'parent' => 'senedddebatesfront', |
1078 | - 'session_vars' => array ('d'), |
|
1078 | + 'session_vars' => array('d'), |
|
1079 | 1079 | 'url' => 'senedd/', |
1080 | 1080 | ), |
1081 | - 'senedddebatesfront' => array ( |
|
1082 | - 'menu' => array ( |
|
1081 | + 'senedddebatesfront' => array( |
|
1082 | + 'menu' => array( |
|
1083 | 1083 | 'text' => 'Debates', |
1084 | 1084 | 'title' => gettext("Senedd debates") |
1085 | 1085 | ), |
@@ -1088,29 +1088,29 @@ discard block |
||
1088 | 1088 | 'rss' => 'rss/senedd.rss', |
1089 | 1089 | 'url' => 'senedd/' |
1090 | 1090 | ), |
1091 | - 'senedddebatesyear' => array ( |
|
1091 | + 'senedddebatesyear' => array( |
|
1092 | 1092 | 'parent' => 'senedddebatesfront', |
1093 | 1093 | 'url' => 'senedd/' |
1094 | 1094 | ), |
1095 | 1095 | |
1096 | 1096 | /* Westminster Hall */ |
1097 | - 'whall' => array ( |
|
1097 | + 'whall' => array( |
|
1098 | 1098 | 'parent' => 'whallfront', |
1099 | 1099 | 'url' => 'whall/', |
1100 | - 'session_vars' => array ('id'), |
|
1100 | + 'session_vars' => array('id'), |
|
1101 | 1101 | ), |
1102 | - 'whalls' => array ( |
|
1102 | + 'whalls' => array( |
|
1103 | 1103 | 'parent' => 'whallfront', |
1104 | 1104 | 'url' => 'whall/', |
1105 | - 'session_vars' => array ('id'), |
|
1105 | + 'session_vars' => array('id'), |
|
1106 | 1106 | ), |
1107 | - 'whallday' => array ( |
|
1107 | + 'whallday' => array( |
|
1108 | 1108 | 'parent' => 'whallfront', |
1109 | - 'session_vars' => array ('d'), |
|
1109 | + 'session_vars' => array('d'), |
|
1110 | 1110 | 'url' => 'whall/', |
1111 | 1111 | ), |
1112 | - 'whallfront' => array ( |
|
1113 | - 'menu' => array ( |
|
1112 | + 'whallfront' => array( |
|
1113 | + 'menu' => array( |
|
1114 | 1114 | 'text' => 'Westminster Hall', |
1115 | 1115 | 'title' => "Westminster Hall debates" |
1116 | 1116 | ), |
@@ -1119,23 +1119,23 @@ discard block |
||
1119 | 1119 | 'rss' => 'rss/whall.rss', |
1120 | 1120 | 'url' => 'whall/' |
1121 | 1121 | ), |
1122 | - 'whallyear' => array ( |
|
1122 | + 'whallyear' => array( |
|
1123 | 1123 | 'parent' => 'whallfront', |
1124 | 1124 | 'url' => 'whall/' |
1125 | 1125 | ), |
1126 | 1126 | |
1127 | - 'wms' => array ( |
|
1127 | + 'wms' => array( |
|
1128 | 1128 | 'parent' => 'wranswmsfront', |
1129 | 1129 | 'url' => 'wms/', |
1130 | 1130 | 'session_vars' => array('id') |
1131 | 1131 | ), |
1132 | - 'wmsday' => array ( |
|
1132 | + 'wmsday' => array( |
|
1133 | 1133 | 'parent' => 'wmsfront', |
1134 | 1134 | 'session_vars' => array('d'), |
1135 | 1135 | 'url' => 'wms/' |
1136 | 1136 | ), |
1137 | - 'wmsfront' => array ( |
|
1138 | - 'menu' => array ( |
|
1137 | + 'wmsfront' => array( |
|
1138 | + 'menu' => array( |
|
1139 | 1139 | 'text' => 'Written Ministerial Statements', |
1140 | 1140 | 'title' => '' |
1141 | 1141 | ), |
@@ -1144,22 +1144,22 @@ discard block |
||
1144 | 1144 | 'rss' => 'rss/wms.rss', |
1145 | 1145 | 'url' => 'wms/' |
1146 | 1146 | ), |
1147 | - 'wmsyear' => array ( |
|
1147 | + 'wmsyear' => array( |
|
1148 | 1148 | 'parent' => 'wmsfront', |
1149 | 1149 | 'url' => 'wms/' |
1150 | 1150 | ), |
1151 | 1151 | |
1152 | - 'wrans' => array ( |
|
1152 | + 'wrans' => array( |
|
1153 | 1153 | 'parent' => 'wranswmsfront', |
1154 | 1154 | 'url' => 'wrans/', |
1155 | - 'session_vars' => array ('id') |
|
1155 | + 'session_vars' => array('id') |
|
1156 | 1156 | ), |
1157 | - 'wransday' => array ( |
|
1157 | + 'wransday' => array( |
|
1158 | 1158 | 'parent' => 'wransfront', |
1159 | 1159 | 'url' => 'wrans/' |
1160 | 1160 | ), |
1161 | - 'wransfront' => array ( |
|
1162 | - 'menu' => array ( |
|
1161 | + 'wransfront' => array( |
|
1162 | + 'menu' => array( |
|
1163 | 1163 | 'text' => 'Written Answers', |
1164 | 1164 | 'title' => "Written Answers" |
1165 | 1165 | ), |
@@ -1172,13 +1172,13 @@ discard block |
||
1172 | 1172 | 'title' => 'For questions asked by ', |
1173 | 1173 | 'url' => 'wrans/' |
1174 | 1174 | ), |
1175 | - 'wransyear' => array ( |
|
1175 | + 'wransyear' => array( |
|
1176 | 1176 | 'parent' => 'wransfront', |
1177 | 1177 | 'url' => 'wrans/' |
1178 | 1178 | ), |
1179 | 1179 | |
1180 | - 'wranswmsfront' => array ( |
|
1181 | - 'menu' => array ( |
|
1180 | + 'wranswmsfront' => array( |
|
1181 | + 'menu' => array( |
|
1182 | 1182 | 'text' => 'Written Answers', |
1183 | 1183 | 'title' => 'Written Answers and Statements', |
1184 | 1184 | ), |
@@ -1195,8 +1195,8 @@ discard block |
||
1195 | 1195 | 'title' => 'Your representative', |
1196 | 1196 | 'url' => 'your/', |
1197 | 1197 | ), |
1198 | - 'yourmp' => array ( |
|
1199 | - 'menu' => array ( |
|
1198 | + 'yourmp' => array( |
|
1199 | + 'menu' => array( |
|
1200 | 1200 | 'text' => gettext('Your MP'), |
1201 | 1201 | 'title' => gettext("Find out about your Member of Parliament") |
1202 | 1202 | ), |
@@ -1205,8 +1205,8 @@ discard block |
||
1205 | 1205 | 'url' => 'mp/', |
1206 | 1206 | 'parent' => 'mps', |
1207 | 1207 | ), |
1208 | - 'yourmp_recent' => array ( |
|
1209 | - 'menu' => array ( |
|
1208 | + 'yourmp_recent' => array( |
|
1209 | + 'menu' => array( |
|
1210 | 1210 | 'text' => 'Recent appearances', |
1211 | 1211 | 'title' => "Recent speeches and written answers by this MP" |
1212 | 1212 | ), |
@@ -1214,8 +1214,8 @@ discard block |
||
1214 | 1214 | 'title' => "Your MP's recent appearances in parliament", |
1215 | 1215 | 'url' => 'mp/?recent=1' |
1216 | 1216 | ), |
1217 | - 'yourmsp' => array ( |
|
1218 | - 'menu' => array ( |
|
1217 | + 'yourmsp' => array( |
|
1218 | + 'menu' => array( |
|
1219 | 1219 | 'text' => 'Your MSPs', |
1220 | 1220 | 'title' => "Find out about your Members of the Scottish Parliament" |
1221 | 1221 | ), |
@@ -1224,8 +1224,8 @@ discard block |
||
1224 | 1224 | 'title' => 'Your MSPs', |
1225 | 1225 | 'url' => 'msp/' |
1226 | 1226 | ), |
1227 | - 'yourmla' => array ( |
|
1228 | - 'menu' => array ( |
|
1227 | + 'yourmla' => array( |
|
1228 | + 'menu' => array( |
|
1229 | 1229 | 'text' => 'Your MLAs', |
1230 | 1230 | 'title' => "Find out about your Members of the Legislative Assembly" |
1231 | 1231 | ), |
@@ -1241,38 +1241,38 @@ discard block |
||
1241 | 1241 | // The text displayed on the page itself will also be this, |
1242 | 1242 | // UNLESS the section has a 'heading', in which case that's used instead. |
1243 | 1243 | |
1244 | -$section = array ( |
|
1244 | +$section = array( |
|
1245 | 1245 | |
1246 | 1246 | |
1247 | - 'about' => array ( |
|
1247 | + 'about' => array( |
|
1248 | 1248 | 'title' => 'About Us' |
1249 | 1249 | ), |
1250 | - 'admin' => array ( |
|
1250 | + 'admin' => array( |
|
1251 | 1251 | 'title' => 'Admin' |
1252 | 1252 | ), |
1253 | - 'debates' => array ( |
|
1253 | + 'debates' => array( |
|
1254 | 1254 | 'title' => 'Debates', |
1255 | 1255 | 'heading' => 'House of Commons Debates' |
1256 | 1256 | ), |
1257 | - 'help_us_out' => array ( |
|
1257 | + 'help_us_out' => array( |
|
1258 | 1258 | 'title' => 'Help Us Out' |
1259 | 1259 | ), |
1260 | - 'hansard' => array ( |
|
1260 | + 'hansard' => array( |
|
1261 | 1261 | 'title' => 'Hansard' |
1262 | 1262 | ), |
1263 | - 'home' => array ( |
|
1263 | + 'home' => array( |
|
1264 | 1264 | 'title' => 'Home' |
1265 | 1265 | ), |
1266 | - 'mp' => array ( |
|
1266 | + 'mp' => array( |
|
1267 | 1267 | 'title' => 'Your MP' |
1268 | 1268 | ), |
1269 | - 'search' => array ( |
|
1269 | + 'search' => array( |
|
1270 | 1270 | 'title' => 'Search' |
1271 | 1271 | ), |
1272 | - 'sitenews' => array ( |
|
1272 | + 'sitenews' => array( |
|
1273 | 1273 | 'title' => 'TheyWorkForYou news' |
1274 | 1274 | ), |
1275 | - 'wrans' => array ( |
|
1275 | + 'wrans' => array( |
|
1276 | 1276 | 'title' => 'Written Answers' |
1277 | 1277 | ) |
1278 | 1278 |