@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | $path = URLDecode::getPiece(1); |
29 | 29 | $this->county = CountyCollector::getByAlias($path); |
30 | 30 | |
31 | - if(!$this->county) |
|
31 | + if (!$this->county) |
|
32 | 32 | $this->eject(); |
33 | 33 | |
34 | 34 | parent::__construct(); |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | { |
39 | 39 | $meta_array = array(); |
40 | 40 | |
41 | - $meta_array['title'] = "{$this->county->name} Waterfalls | " . self::$WEBSITE_TITLE; |
|
41 | + $meta_array['title'] = "{$this->county->name} Waterfalls | ".self::$WEBSITE_TITLE; |
|
42 | 42 | $meta_array['description'] = $this->county->description; |
43 | 43 | $meta_array['keywords'] = $this->get_keyword_array(); |
44 | 44 | |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | { |
50 | 50 | $meta_array = array(); |
51 | 51 | |
52 | - $meta_array['title'] = sprintf(self::$DEFAULT_TITLE . ' | ' . self::$WEBSITE_TITLE, $this->county->name, $this->page, $this->page_count); |
|
52 | + $meta_array['title'] = sprintf(self::$DEFAULT_TITLE.' | '.self::$WEBSITE_TITLE, $this->county->name, $this->page, $this->page_count); |
|
53 | 53 | $meta_array['description'] = sprintf(self::$DEFAULT_DESCRIPTION, $this->page, $this->page_count, $this->county->name); |
54 | 54 | $meta_array['keywords'] = $this->get_keyword_array(); |
55 | 55 |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | $alias = URLDecode::getPiece(3); |
28 | 28 | $this->tag = LogTagCollector::getTag($alias); |
29 | 29 | |
30 | - if(!$this->tag) |
|
30 | + if (!$this->tag) |
|
31 | 31 | $this->eject(); |
32 | 32 | |
33 | 33 | parent::__construct(); |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | { |
38 | 38 | $meta_array = array(); |
39 | 39 | |
40 | - $meta_array['title'] = "{$this->tag->name} | " . self::$WEBSITE_TITLE; |
|
40 | + $meta_array['title'] = "{$this->tag->name} | ".self::$WEBSITE_TITLE; |
|
41 | 41 | $meta_array['description'] = $this->tag->name; |
42 | 42 | $meta_array['keywords'] = $this->get_keyword_array(); |
43 | 43 | |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | { |
49 | 49 | $meta_array = array(); |
50 | 50 | |
51 | - $meta_array['title'] = sprintf(self::$DEFAULT_TITLE . ' | ' . self::$WEBSITE_TITLE, $this->companion->name, $this->page, $this->page_count); |
|
51 | + $meta_array['title'] = sprintf(self::$DEFAULT_TITLE.' | '.self::$WEBSITE_TITLE, $this->companion->name, $this->page, $this->page_count); |
|
52 | 52 | $meta_array['description'] = sprintf(self::$DEFAULT_DESCRIPTION, $this->page, $this->page_count, $this->tag->name); |
53 | 53 | $meta_array['keywords'] = $this->get_keyword_array(); |
54 | 54 |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | $alias = URLDecode::getPiece(2); |
27 | 27 | $this->period = PeriodCollector::getByAlias($alias); |
28 | 28 | |
29 | - if(!$this->period) |
|
29 | + if (!$this->period) |
|
30 | 30 | $this->eject(); |
31 | 31 | |
32 | 32 | parent::__construct(); |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | { |
37 | 37 | $meta_array = array(); |
38 | 38 | |
39 | - $meta_array['title'] = "Hiking Stories - {$this->period->name} | " . self::$WEBSITE_TITLE; |
|
39 | + $meta_array['title'] = "Hiking Stories - {$this->period->name} | ".self::$WEBSITE_TITLE; |
|
40 | 40 | $meta_array['description'] = $this->period->description; |
41 | 41 | $meta_array['keywords'] = $this->get_keyword_array(); |
42 | 42 | |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | { |
48 | 48 | $meta_array = array(); |
49 | 49 | |
50 | - $meta_array['title'] = sprintf(self::$DEFAULT_TITLE . ' | ' . self::$WEBSITE_TITLE, $this->period->name, $this->page, $this->page_count); |
|
50 | + $meta_array['title'] = sprintf(self::$DEFAULT_TITLE.' | '.self::$WEBSITE_TITLE, $this->period->name, $this->page, $this->page_count); |
|
51 | 51 | $meta_array['description'] = sprintf(self::$DEFAULT_DESCRIPTION, $this->page, $this->page_count, $this->period->name); |
52 | 52 | $meta_array['keywords'] = $this->get_keyword_array(); |
53 | 53 |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | $alias = URLDecode::getPiece(2); |
28 | 28 | $this->companion = CompanionCollector::getByAlias($alias); |
29 | 29 | |
30 | - if(!$this->companion) |
|
30 | + if (!$this->companion) |
|
31 | 31 | $this->eject(); |
32 | 32 | |
33 | 33 | parent::__construct(); |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | { |
38 | 38 | $meta_array = array(); |
39 | 39 | |
40 | - $meta_array['title'] = "Hiking Stories with {$this->companion->name} | " . self::$WEBSITE_TITLE; |
|
40 | + $meta_array['title'] = "Hiking Stories with {$this->companion->name} | ".self::$WEBSITE_TITLE; |
|
41 | 41 | $meta_array['description'] = $this->companion->description; |
42 | 42 | $meta_array['keywords'] = $this->get_keyword_array(); |
43 | 43 | |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | { |
49 | 49 | $meta_array = array(); |
50 | 50 | |
51 | - $meta_array['title'] = sprintf(self::$DEFAULT_TITLE . ' | ' . self::$WEBSITE_TITLE, $this->companion->name, $this->page, $this->page_count); |
|
51 | + $meta_array['title'] = sprintf(self::$DEFAULT_TITLE.' | '.self::$WEBSITE_TITLE, $this->companion->name, $this->page, $this->page_count); |
|
52 | 52 | $meta_array['description'] = sprintf(self::$DEFAULT_DESCRIPTION, $this->page, $this->page_count, $this->companion->name); |
53 | 53 | $meta_array['keywords'] = $this->get_keyword_array(); |
54 | 54 |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | $recent_comments = CommentCollector::getRecentWaterfallComments(); |
60 | 60 | |
61 | 61 | $recent_comment_container = array(); |
62 | - foreach($recent_comments as $comment) { |
|
62 | + foreach ($recent_comments as $comment) { |
|
63 | 63 | $body = $comment->body; |
64 | 64 | $body = strip_tags($body); |
65 | 65 | |
@@ -67,10 +67,10 @@ discard block |
||
67 | 67 | $comment_obj->description = Content::instance('SmartTrim', $body)->activate(50); |
68 | 68 | $comment_obj->commenter = $comment->name; |
69 | 69 | if (!empty($comment->log_path)) { |
70 | - $comment_obj->link = Loader::getRootURL() . "{$comment->log_path}/#comment-{$comment->id}"; |
|
70 | + $comment_obj->link = Loader::getRootURL()."{$comment->log_path}/#comment-{$comment->id}"; |
|
71 | 71 | $comment_obj->location = $comment->log_title; |
72 | 72 | } else { |
73 | - $comment_obj->link = Loader::getRootURL() . "{$comment->waterfall_path}/#comment-{$comment->id}"; |
|
73 | + $comment_obj->link = Loader::getRootURL()."{$comment->waterfall_path}/#comment-{$comment->id}"; |
|
74 | 74 | $comment_obj->location = $comment->waterfall_title; |
75 | 75 | } |
76 | 76 |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | { |
33 | 33 | $meta_array = array(); |
34 | 34 | |
35 | - $meta_array['title'] = self::$PRIMARY_TITLE . ' | ' . self::$WEBSITE_TITLE; |
|
35 | + $meta_array['title'] = self::$PRIMARY_TITLE.' | '.self::$WEBSITE_TITLE; |
|
36 | 36 | $meta_array['description'] = self::$PRIMARY_DESCRIPTION; |
37 | 37 | $meta_array['keywords'] = self::$KEYWORD_ARRAY; |
38 | 38 | |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | { |
44 | 44 | $meta_array = array(); |
45 | 45 | |
46 | - $meta_array['title'] = sprintf(self::$SECONDARY_TITLE . ' | ' . self::$WEBSITE_TITLE, $this->page, $this->page_count); |
|
46 | + $meta_array['title'] = sprintf(self::$SECONDARY_TITLE.' | '.self::$WEBSITE_TITLE, $this->page, $this->page_count); |
|
47 | 47 | $meta_array['description'] = sprintf(self::$SECONDARY_DESCRIPTION, $this->page, $this->page_count); |
48 | 48 | $meta_array['keywords'] = self::$KEYWORD_ARRAY; |
49 | 49 |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | { |
33 | 33 | $meta_array = array(); |
34 | 34 | |
35 | - $meta_array['title'] = self::$PRIMARY_TITLE . ' | ' . self::$WEBSITE_TITLE; |
|
35 | + $meta_array['title'] = self::$PRIMARY_TITLE.' | '.self::$WEBSITE_TITLE; |
|
36 | 36 | $meta_array['description'] = self::$PRIMARY_DESCRIPTION; |
37 | 37 | $meta_array['keywords'] = self::$KEYWORD_ARRAY; |
38 | 38 | |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | { |
44 | 44 | $meta_array = array(); |
45 | 45 | |
46 | - $meta_array['title'] = sprintf(self::$SECONDARY_TITLE . ' | ' . self::$WEBSITE_TITLE, $this->page); |
|
46 | + $meta_array['title'] = sprintf(self::$SECONDARY_TITLE.' | '.self::$WEBSITE_TITLE, $this->page); |
|
47 | 47 | $meta_array['description'] = sprintf(self::$SECONDARY_DESCRIPTION, $this->page, $this->page_count); |
48 | 48 | $meta_array['keywords'] = self::$KEYWORD_ARRAY; |
49 | 49 |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | $path = URLDecode::getPiece(1); |
30 | 30 | $this->watercourse = WatercourseCollector::getByAlias($path); |
31 | 31 | |
32 | - if(!$this->watercourse) |
|
32 | + if (!$this->watercourse) |
|
33 | 33 | $this->eject(); |
34 | 34 | |
35 | 35 | parent::__construct(); |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | { |
40 | 40 | $meta_array = array(); |
41 | 41 | |
42 | - $meta_array['title'] = "{$this->watercourse->name} | " . self::$WEBSITE_TITLE; |
|
42 | + $meta_array['title'] = "{$this->watercourse->name} | ".self::$WEBSITE_TITLE; |
|
43 | 43 | $meta_array['description'] = $this->watercourse->description; |
44 | 44 | $meta_array['keywords'] = $this->get_keyword_array(); |
45 | 45 | |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | { |
51 | 51 | $meta_array = array(); |
52 | 52 | |
53 | - $meta_array['title'] = sprintf(self::$DEFAULT_TITLE . ' | ' . self::$WEBSITE_TITLE, $this->watercourse->name, $this->page, $this->page_count); |
|
53 | + $meta_array['title'] = sprintf(self::$DEFAULT_TITLE.' | '.self::$WEBSITE_TITLE, $this->watercourse->name, $this->page, $this->page_count); |
|
54 | 54 | $meta_array['description'] = sprintf(self::$DEFAULT_DESCRIPTION, $this->page, $this->page_count, $this->watercourse->name); |
55 | 55 | $meta_array['keywords'] = $this->get_keyword_array(); |
56 | 56 |
@@ -35,16 +35,16 @@ discard block |
||
35 | 35 | |
36 | 36 | private function process_form() |
37 | 37 | { |
38 | - if(!Request::hasPost() || Request::getPost('submit') != 'Send Message!') |
|
38 | + if (!Request::hasPost() || Request::getPost('submit') != 'Send Message!') |
|
39 | 39 | return (object) array('display' => 'normal'); |
40 | 40 | |
41 | 41 | Loader::load('utility', 'Validate'); |
42 | 42 | $error_result = array(); |
43 | - if(!Validate::checkRequest('post', 'name', 'string')) |
|
43 | + if (!Validate::checkRequest('post', 'name', 'string')) |
|
44 | 44 | $error_result['name'] = 'please enter your name'; |
45 | - if(!Validate::checkRequest('post', 'email', 'string')) |
|
45 | + if (!Validate::checkRequest('post', 'email', 'string')) |
|
46 | 46 | $error_result['email'] = 'please enter a valid email'; |
47 | - if(!Validate::checkRequest('post', 'message', 'string')) |
|
47 | + if (!Validate::checkRequest('post', 'message', 'string')) |
|
48 | 48 | $error_result['message'] = 'please write a message'; |
49 | 49 | |
50 | 50 | $values = (object) array( |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | 'email' => Request::getPost('email'), |
53 | 53 | 'message' => Request::getPost('message')); |
54 | 54 | |
55 | - if(count($error_result) > 0) |
|
55 | + if (count($error_result) > 0) |
|
56 | 56 | { |
57 | 57 | return (object) array( |
58 | 58 | 'display' => 'error', |
@@ -65,8 +65,8 @@ discard block |
||
65 | 65 | ->addTo($container['config']->admin_email) |
66 | 66 | ->setSubject('Home Page Contact') |
67 | 67 | ->setPlainMessage( |
68 | - "Name: {$values->name}\n" . |
|
69 | - "Email: {$values->email}\n" . |
|
68 | + "Name: {$values->name}\n". |
|
69 | + "Email: {$values->email}\n". |
|
70 | 70 | "Message: {$values->message}" |
71 | 71 | ) |
72 | 72 | ->send(); |