@@ -7,7 +7,7 @@ |
||
7 | 7 | |
8 | 8 | $PAGE->page_start(); |
9 | 9 | $PAGE->stripe_start(); |
10 | -$PAGE->block_start(array ('id'=>'intro', 'title'=>'We need your help:')); |
|
10 | +$PAGE->block_start(array('id'=>'intro', 'title'=>'We need your help:')); |
|
11 | 11 | |
12 | 12 | echo '<div id="foi2009">'; |
13 | 13 | echo $foi2009_message; |
@@ -5,12 +5,12 @@ discard block |
||
5 | 5 | $this_page = 'trackback'; |
6 | 6 | |
7 | 7 | // The gid is the gid of the thing being trackedback to. |
8 | -$epobject_id= get_http_var('e'); // eg, '3424' |
|
8 | +$epobject_id = get_http_var('e'); // eg, '3424' |
|
9 | 9 | |
10 | -$url = get_http_var('url'); |
|
10 | +$url = get_http_var('url'); |
|
11 | 11 | $blog_name = get_http_var('blog_name'); |
12 | -$title = get_http_var('title'); |
|
13 | -$excerpt = get_http_var('excerpt'); |
|
12 | +$title = get_http_var('title'); |
|
13 | +$excerpt = get_http_var('excerpt'); |
|
14 | 14 | |
15 | 15 | if ($title == '' && $url == '' && $blog_name == '') { |
16 | 16 | // If it doesn't look like a trackback at all... |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | |
28 | 28 | header('Content-Type: text/xml'); |
29 | 29 | |
30 | - $trackbackdata = array ( |
|
30 | + $trackbackdata = array( |
|
31 | 31 | 'epobject_id' => $epobject_id, |
32 | 32 | 'url' => $url, |
33 | 33 | 'blog_name' => $blog_name, |
@@ -14,7 +14,7 @@ |
||
14 | 14 | } elseif ($constituency == "") { |
15 | 15 | $errors['pc'] = "Sorry, " . _htmlentities($pc) . " isn't a known postcode"; |
16 | 16 | twfy_debug ('MP', "Can't display an MP, as submitted postcode didn't match a constituency"); |
17 | - } else { |
|
17 | + } else { |
|
18 | 18 | $MEMBER = new MEMBER(array('constituency' => $constituency)); |
19 | 19 | if ($MEMBER->person_id()) { |
20 | 20 | // This will cookie the postcode. |
@@ -12,8 +12,8 @@ discard block |
||
12 | 12 | if ($constituency == "CONNECTION_TIMED_OUT") { |
13 | 13 | $errors['pc'] = "Sorry, we couldn't check your postcode right now. Please use the 'All Mps' link above to browse MPs"; |
14 | 14 | } elseif ($constituency == "") { |
15 | - $errors['pc'] = "Sorry, " . _htmlentities($pc) . " isn't a known postcode"; |
|
16 | - twfy_debug ('MP', "Can't display an MP, as submitted postcode didn't match a constituency"); |
|
15 | + $errors['pc'] = "Sorry, "._htmlentities($pc)." isn't a known postcode"; |
|
16 | + twfy_debug('MP', "Can't display an MP, as submitted postcode didn't match a constituency"); |
|
17 | 17 | } else { |
18 | 18 | $MEMBER = new MEMBER(array('constituency' => $constituency)); |
19 | 19 | if ($MEMBER->person_id()) { |
@@ -22,10 +22,10 @@ discard block |
||
22 | 22 | } |
23 | 23 | |
24 | 24 | if ($MEMBER->person_id()) { |
25 | - header('Location: /rss/mp/' . $MEMBER->person_id() . '.rdf'); |
|
25 | + header('Location: /rss/mp/'.$MEMBER->person_id().'.rdf'); |
|
26 | 26 | } |
27 | 27 | } |
28 | 28 | } else { |
29 | - $errors['pc'] = "Sorry, " . _htmlentities($pc) . " isn't a valid postcode"; |
|
30 | - twfy_debug ('MP', "Can't display an MP because the submitted postcode wasn't of a valid form."); |
|
29 | + $errors['pc'] = "Sorry, "._htmlentities($pc)." isn't a valid postcode"; |
|
30 | + twfy_debug('MP', "Can't display an MP because the submitted postcode wasn't of a valid form."); |
|
31 | 31 | } |
@@ -5,7 +5,9 @@ |
||
5 | 5 | |
6 | 6 | $pc = get_http_var('pc'); |
7 | 7 | $pc = preg_replace('#[^a-z0-9 ]#i', '', $pc); |
8 | -if (!$pc) exit; |
|
8 | +if (!$pc) { |
|
9 | + exit; |
|
10 | +} |
|
9 | 11 | |
10 | 12 | if (validate_postcode($pc)) { |
11 | 13 | $constituency = strtolower(MySociety\TheyWorkForYou\Utility\Postcode::postcodeToConstituency($pc)); |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | <?php |
17 | 17 | } |
18 | 18 | |
19 | -$PAGE->block_start(array ('title'=>'Share the \'Free our Bills!\' campaign')); |
|
19 | +$PAGE->block_start(array('title'=>'Share the \'Free our Bills!\' campaign')); |
|
20 | 20 | freeourbills_styles(); |
21 | 21 | |
22 | 22 | freeourbills_share_page(); |
@@ -25,4 +25,4 @@ discard block |
||
25 | 25 | |
26 | 26 | $PAGE->block_end(); |
27 | 27 | $PAGE->stripe_end(); |
28 | -$PAGE->page_end (); |
|
28 | +$PAGE->page_end(); |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | "; |
39 | 39 | $subject = "Help make the laws we have to obey better! - TheyWorkForYou.com"; |
40 | 40 | |
41 | - print '<a href="mailto:?subject=' . rawurlencode($subject) . '&body='. rawurlencode($email) . '">Click here to open a new email and invite your friends, family and colleagues to get involved.</a>'; |
|
41 | + print '<a href="mailto:?subject='.rawurlencode($subject).'&body='.rawurlencode($email).'">Click here to open a new email and invite your friends, family and colleagues to get involved.</a>'; |
|
42 | 42 | } |
43 | 43 | |
44 | 44 | function freeourbills_share_page() { |
@@ -57,8 +57,8 @@ discard block |
||
57 | 57 | function freeourbills_sharethis_link() { |
58 | 58 | print '<p><a href="/freeourbills/doshare"'; |
59 | 59 | #print 'onclick="share(this); return false;"'; |
60 | - print ' title="' . |
|
61 | - _('E-mail this, post to del.icio.us, etc.'). '" class="share_link" rel="nofollow">'. |
|
62 | - _('Share this'). '</a></p>'; |
|
60 | + print ' title="'. |
|
61 | + _('E-mail this, post to del.icio.us, etc.').'" class="share_link" rel="nofollow">'. |
|
62 | + _('Share this').'</a></p>'; |
|
63 | 63 | #freeourbills_share_form(); |
64 | 64 | } |
@@ -144,4 +144,4 @@ |
||
144 | 144 | <?php |
145 | 145 | #$PAGE->block_end(); |
146 | 146 | $PAGE->stripe_end(); |
147 | -$PAGE->page_end (); |
|
147 | +$PAGE->page_end(); |
@@ -138,4 +138,4 @@ |
||
138 | 138 | 'type' => 'html', |
139 | 139 | 'content' => '<p align="center"><img title="Duck-billed platypus" src="bill3.jpg" alt="" hspace="10"></p>' |
140 | 140 | ))); |
141 | -$PAGE->page_end (); |
|
141 | +$PAGE->page_end(); |
@@ -2,8 +2,8 @@ discard block |
||
2 | 2 | # For displaying any debate calendar, day, debate, speech page or related. |
3 | 3 | |
4 | 4 | include_once '../includes/easyparliament/init.php'; |
5 | -include_once INCLUDESPATH . "easyparliament/glossary.php"; |
|
6 | -include_once INCLUDESPATH . "easyparliament/recess.php"; |
|
5 | +include_once INCLUDESPATH."easyparliament/glossary.php"; |
|
6 | +include_once INCLUDESPATH."easyparliament/recess.php"; |
|
7 | 7 | |
8 | 8 | # Redirect shortcut. |
9 | 9 | # We no longer want to use the gid parameter, it's all id. |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | $view = new $class_name(); |
18 | 18 | $data = $view->display(); |
19 | 19 | if ($data) { |
20 | - if ( !empty($data['template']) ) { |
|
20 | + if (!empty($data['template'])) { |
|
21 | 21 | $template = $data['template']; |
22 | 22 | } else { |
23 | 23 | $template = 'section/section'; |
@@ -13,7 +13,7 @@ |
||
13 | 13 | } |
14 | 14 | |
15 | 15 | if ($type = ucfirst(get_http_var('type'))) { |
16 | - $class_name = "MySociety\TheyWorkForYou\SectionView\\${type}View"; |
|
16 | + $class_name = "MySociety\TheyWorkForYou\SectionView\\${type}view"; |
|
17 | 17 | $view = new $class_name(); |
18 | 18 | $data = $view->display(); |
19 | 19 | if ($data) { |
@@ -3,7 +3,7 @@ |
||
3 | 3 | $new_style_template = TRUE; |
4 | 4 | |
5 | 5 | include_once '../../../includes/easyparliament/init.php'; |
6 | -include_once INCLUDESPATH . 'easyparliament/member.php'; |
|
6 | +include_once INCLUDESPATH.'easyparliament/member.php'; |
|
7 | 7 | |
8 | 8 | $alert = new MySociety\TheyWorkForYou\AlertView\Simple($THEUSER); |
9 | 9 | $data = $alert->display(); |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -$new_style_template = TRUE; |
|
3 | +$new_style_template = true; |
|
4 | 4 | |
5 | 5 | include_once '../../../includes/easyparliament/init.php'; |
6 | 6 | include_once INCLUDESPATH . 'easyparliament/member.php'; |