@@ -5,20 +5,20 @@ |
||
5 | 5 | class Error503Controller extends PageController |
6 | 6 | { |
7 | 7 | |
8 | - protected function set_head_data() |
|
9 | - { |
|
10 | - $this->set_header_method('send503'); |
|
11 | - $this->add_css('normalize'); |
|
12 | - $this->add_css('503'); |
|
8 | + protected function set_head_data() |
|
9 | + { |
|
10 | + $this->set_header_method('send503'); |
|
11 | + $this->add_css('normalize'); |
|
12 | + $this->add_css('503'); |
|
13 | 13 | |
14 | - $this->set_title("Jacob Emerick's 503 Page"); |
|
15 | - $this->set_description('Global 503 page for sites under jacobemerick.com. Page not found!'); |
|
16 | - $this->set_keywords(array()); |
|
17 | - } |
|
14 | + $this->set_title("Jacob Emerick's 503 Page"); |
|
15 | + $this->set_description('Global 503 page for sites under jacobemerick.com. Page not found!'); |
|
16 | + $this->set_keywords(array()); |
|
17 | + } |
|
18 | 18 | |
19 | - protected function set_body_data() |
|
20 | - { |
|
21 | - $this->set_body_view('/503'); |
|
22 | - } |
|
19 | + protected function set_body_data() |
|
20 | + { |
|
21 | + $this->set_body_view('/503'); |
|
22 | + } |
|
23 | 23 | |
24 | 24 | } |
@@ -2,11 +2,11 @@ discard block |
||
2 | 2 | |
3 | 3 | Loader::load('controller', '/PageController'); |
4 | 4 | |
5 | -class Error503Controller extends PageController |
|
6 | -{ |
|
5 | +class Error503Controller extends PageController |
|
6 | +{ |
|
7 | 7 | |
8 | - protected function set_head_data() |
|
9 | - { |
|
8 | + protected function set_head_data() |
|
9 | + { |
|
10 | 10 | $this->set_header_method('send503'); |
11 | 11 | $this->add_css('normalize'); |
12 | 12 | $this->add_css('503'); |
@@ -16,8 +16,8 @@ discard block |
||
16 | 16 | $this->set_keywords(array()); |
17 | 17 | } |
18 | 18 | |
19 | - protected function set_body_data() |
|
20 | - { |
|
19 | + protected function set_body_data() |
|
20 | + { |
|
21 | 21 | $this->set_body_view('/503'); |
22 | 22 | } |
23 | 23 |
@@ -5,13 +5,13 @@ |
||
5 | 5 | class Error301Controller extends PageController |
6 | 6 | { |
7 | 7 | |
8 | - public function __construct($uri) |
|
9 | - { |
|
10 | - Header::redirect($uri); |
|
11 | - exit; |
|
12 | - } |
|
8 | + public function __construct($uri) |
|
9 | + { |
|
10 | + Header::redirect($uri); |
|
11 | + exit; |
|
12 | + } |
|
13 | 13 | |
14 | - protected function set_head_data() {} |
|
15 | - protected function set_body_data() {} |
|
14 | + protected function set_head_data() {} |
|
15 | + protected function set_body_data() {} |
|
16 | 16 | |
17 | 17 | } |
@@ -2,16 +2,20 @@ |
||
2 | 2 | |
3 | 3 | Loader::load('controller', '/PageController'); |
4 | 4 | |
5 | -class Error301Controller extends PageController |
|
6 | -{ |
|
5 | +class Error301Controller extends PageController |
|
6 | +{ |
|
7 | 7 | |
8 | - public function __construct($uri) |
|
9 | - { |
|
8 | + public function __construct($uri) |
|
9 | + { |
|
10 | 10 | Header::redirect($uri); |
11 | 11 | exit; |
12 | 12 | } |
13 | 13 | |
14 | - protected function set_head_data() {} |
|
15 | - protected function set_body_data() {} |
|
14 | + protected function set_head_data() |
|
15 | + { |
|
16 | +} |
|
17 | + protected function set_body_data() |
|
18 | + { |
|
19 | +} |
|
16 | 20 | |
17 | 21 | } |
@@ -5,15 +5,15 @@ |
||
5 | 5 | abstract class DefaultPageController extends PageController |
6 | 6 | { |
7 | 7 | |
8 | - protected function set_head_data() |
|
9 | - { |
|
10 | - $this->add_css('normalize'); |
|
11 | - $this->add_css('home'); |
|
12 | - } |
|
8 | + protected function set_head_data() |
|
9 | + { |
|
10 | + $this->add_css('normalize'); |
|
11 | + $this->add_css('home'); |
|
12 | + } |
|
13 | 13 | |
14 | - protected function set_body_data() |
|
15 | - { |
|
16 | - $this->set_body('activity_array', $this->get_recent_activity()); |
|
17 | - } |
|
14 | + protected function set_body_data() |
|
15 | + { |
|
16 | + $this->set_body('activity_array', $this->get_recent_activity()); |
|
17 | + } |
|
18 | 18 | |
19 | 19 | } |
@@ -2,17 +2,17 @@ |
||
2 | 2 | |
3 | 3 | Loader::load('controller', '/PageController'); |
4 | 4 | |
5 | -abstract class DefaultPageController extends PageController |
|
6 | -{ |
|
5 | +abstract class DefaultPageController extends PageController |
|
6 | +{ |
|
7 | 7 | |
8 | - protected function set_head_data() |
|
9 | - { |
|
8 | + protected function set_head_data() |
|
9 | + { |
|
10 | 10 | $this->add_css('normalize'); |
11 | 11 | $this->add_css('home'); |
12 | 12 | } |
13 | 13 | |
14 | - protected function set_body_data() |
|
15 | - { |
|
14 | + protected function set_body_data() |
|
15 | + { |
|
16 | 16 | $this->set_body('activity_array', $this->get_recent_activity()); |
17 | 17 | } |
18 | 18 |
@@ -5,32 +5,32 @@ |
||
5 | 5 | final class AboutController extends DefaultPageController |
6 | 6 | { |
7 | 7 | |
8 | - private static $TITLE = 'About | Jacob Emerick'; |
|
9 | - private static $DESCRIPTION = 'Some basic information about Jacob Emerick and his past, web development, and hiking adventures'; |
|
8 | + private static $TITLE = 'About | Jacob Emerick'; |
|
9 | + private static $DESCRIPTION = 'Some basic information about Jacob Emerick and his past, web development, and hiking adventures'; |
|
10 | 10 | |
11 | - private static $KEYWORD_ARRAY = array( |
|
12 | - 'Jacob Emerick', |
|
13 | - 'jacobemerick', |
|
14 | - 'jpemeric', |
|
15 | - 'about', |
|
16 | - 'bio', |
|
17 | - 'web developer', |
|
18 | - 'hiker'); |
|
11 | + private static $KEYWORD_ARRAY = array( |
|
12 | + 'Jacob Emerick', |
|
13 | + 'jacobemerick', |
|
14 | + 'jpemeric', |
|
15 | + 'about', |
|
16 | + 'bio', |
|
17 | + 'web developer', |
|
18 | + 'hiker'); |
|
19 | 19 | |
20 | - protected function set_head_data() |
|
21 | - { |
|
22 | - $this->set_title(self::$TITLE); |
|
23 | - $this->set_description(self::$DESCRIPTION); |
|
24 | - $this->set_keywords(self::$KEYWORD_ARRAY); |
|
20 | + protected function set_head_data() |
|
21 | + { |
|
22 | + $this->set_title(self::$TITLE); |
|
23 | + $this->set_description(self::$DESCRIPTION); |
|
24 | + $this->set_keywords(self::$KEYWORD_ARRAY); |
|
25 | 25 | |
26 | - parent::set_head_data(); |
|
27 | - } |
|
26 | + parent::set_head_data(); |
|
27 | + } |
|
28 | 28 | |
29 | - protected function set_body_data() |
|
30 | - { |
|
31 | - $this->set_body_view('About'); |
|
29 | + protected function set_body_data() |
|
30 | + { |
|
31 | + $this->set_body_view('About'); |
|
32 | 32 | |
33 | - parent::set_body_data(); |
|
34 | - } |
|
33 | + parent::set_body_data(); |
|
34 | + } |
|
35 | 35 | |
36 | 36 | } |
37 | 37 | \ No newline at end of file |
@@ -2,8 +2,8 @@ discard block |
||
2 | 2 | |
3 | 3 | Loader::load('controller', 'home/DefaultPageController'); |
4 | 4 | |
5 | -final class AboutController extends DefaultPageController |
|
6 | -{ |
|
5 | +final class AboutController extends DefaultPageController |
|
6 | +{ |
|
7 | 7 | |
8 | 8 | private static $TITLE = 'About | Jacob Emerick'; |
9 | 9 | private static $DESCRIPTION = 'Some basic information about Jacob Emerick and his past, web development, and hiking adventures'; |
@@ -17,8 +17,8 @@ discard block |
||
17 | 17 | 'web developer', |
18 | 18 | 'hiker'); |
19 | 19 | |
20 | - protected function set_head_data() |
|
21 | - { |
|
20 | + protected function set_head_data() |
|
21 | + { |
|
22 | 22 | $this->set_title(self::$TITLE); |
23 | 23 | $this->set_description(self::$DESCRIPTION); |
24 | 24 | $this->set_keywords(self::$KEYWORD_ARRAY); |
@@ -26,8 +26,8 @@ discard block |
||
26 | 26 | parent::set_head_data(); |
27 | 27 | } |
28 | 28 | |
29 | - protected function set_body_data() |
|
30 | - { |
|
29 | + protected function set_body_data() |
|
30 | + { |
|
31 | 31 | $this->set_body_view('About'); |
32 | 32 | |
33 | 33 | parent::set_body_data(); |
@@ -5,22 +5,22 @@ |
||
5 | 5 | final class TermsController extends DefaultPageController |
6 | 6 | { |
7 | 7 | |
8 | - protected function set_head_data() |
|
9 | - { |
|
10 | - $this->set_title("Terms of Use for Jacob Emerick's Sites"); |
|
11 | - $this->set_description("Some basic (and boring) legal jargon and perferred usage of the content on Jacob Emerick's sites. Includes re-use terms and advice on retracing hikes."); |
|
12 | - $this->set_keywords(array('terms of use', 'legal', 'accountability', 'trespassing', 'Jacob Emerick')); |
|
8 | + protected function set_head_data() |
|
9 | + { |
|
10 | + $this->set_title("Terms of Use for Jacob Emerick's Sites"); |
|
11 | + $this->set_description("Some basic (and boring) legal jargon and perferred usage of the content on Jacob Emerick's sites. Includes re-use terms and advice on retracing hikes."); |
|
12 | + $this->set_keywords(array('terms of use', 'legal', 'accountability', 'trespassing', 'Jacob Emerick')); |
|
13 | 13 | |
14 | - parent::set_head_data(); |
|
15 | - } |
|
14 | + parent::set_head_data(); |
|
15 | + } |
|
16 | 16 | |
17 | - protected function set_body_data() |
|
18 | - { |
|
19 | - $this->set_body('top_data', array('title' => 'Terms of Use')); |
|
17 | + protected function set_body_data() |
|
18 | + { |
|
19 | + $this->set_body('top_data', array('title' => 'Terms of Use')); |
|
20 | 20 | |
21 | - $this->set_body('body_view', 'Terms'); |
|
21 | + $this->set_body('body_view', 'Terms'); |
|
22 | 22 | |
23 | - parent::set_body_data(); |
|
24 | - } |
|
23 | + parent::set_body_data(); |
|
24 | + } |
|
25 | 25 | |
26 | 26 | } |
@@ -2,11 +2,11 @@ discard block |
||
2 | 2 | |
3 | 3 | Loader::load('controller', 'site/DefaultPageController'); |
4 | 4 | |
5 | -final class TermsController extends DefaultPageController |
|
6 | -{ |
|
5 | +final class TermsController extends DefaultPageController |
|
6 | +{ |
|
7 | 7 | |
8 | - protected function set_head_data() |
|
9 | - { |
|
8 | + protected function set_head_data() |
|
9 | + { |
|
10 | 10 | $this->set_title("Terms of Use for Jacob Emerick's Sites"); |
11 | 11 | $this->set_description("Some basic (and boring) legal jargon and perferred usage of the content on Jacob Emerick's sites. Includes re-use terms and advice on retracing hikes."); |
12 | 12 | $this->set_keywords(array('terms of use', 'legal', 'accountability', 'trespassing', 'Jacob Emerick')); |
@@ -14,8 +14,8 @@ discard block |
||
14 | 14 | parent::set_head_data(); |
15 | 15 | } |
16 | 16 | |
17 | - protected function set_body_data() |
|
18 | - { |
|
17 | + protected function set_body_data() |
|
18 | + { |
|
19 | 19 | $this->set_body('top_data', array('title' => 'Terms of Use')); |
20 | 20 | |
21 | 21 | $this->set_body('body_view', 'Terms'); |
@@ -7,42 +7,42 @@ |
||
7 | 7 | final class ChangelogController extends DefaultPageController |
8 | 8 | { |
9 | 9 | |
10 | - protected function set_head_data() |
|
11 | - { |
|
12 | - $this->set_title("Changelog for Jacob Emerick's Sites"); |
|
13 | - $this->set_description("Listing of the last changes done on the framework behind Jacob Emerick's websites. Yeah, he's down with that version control."); |
|
14 | - $this->set_keywords(array('changelog', 'version control', 'code', 'comments', 'Jacob Emerick')); |
|
10 | + protected function set_head_data() |
|
11 | + { |
|
12 | + $this->set_title("Changelog for Jacob Emerick's Sites"); |
|
13 | + $this->set_description("Listing of the last changes done on the framework behind Jacob Emerick's websites. Yeah, he's down with that version control."); |
|
14 | + $this->set_keywords(array('changelog', 'version control', 'code', 'comments', 'Jacob Emerick')); |
|
15 | 15 | |
16 | - parent::set_head_data(); |
|
17 | - } |
|
16 | + parent::set_head_data(); |
|
17 | + } |
|
18 | 18 | |
19 | - protected function set_body_data() |
|
20 | - { |
|
21 | - parent::set_body_data(); |
|
19 | + protected function set_body_data() |
|
20 | + { |
|
21 | + parent::set_body_data(); |
|
22 | 22 | |
23 | - $this->set_body('top_data', array('title' => 'Change Log')); |
|
23 | + $this->set_body('top_data', array('title' => 'Change Log')); |
|
24 | 24 | |
25 | - $this->set_body('body_data', $this->get_changelog()); |
|
26 | - $this->set_body('body_view', 'Changelog'); |
|
27 | - } |
|
25 | + $this->set_body('body_data', $this->get_changelog()); |
|
26 | + $this->set_body('body_view', 'Changelog'); |
|
27 | + } |
|
28 | 28 | |
29 | - private function get_changelog() |
|
30 | - { |
|
29 | + private function get_changelog() |
|
30 | + { |
|
31 | 31 | global $container; |
32 | 32 | $changelogRepository = new MysqlChangelogRepository($container['db_connection_locator']); |
33 | 33 | $changelog_result = $changelogRepository->getChanges(40); |
34 | 34 | |
35 | - foreach($changelog_result as $change) |
|
36 | - { |
|
37 | - $changelog[] = (object) array( |
|
38 | - 'date' => (object) array( |
|
39 | - 'stamp' => date('c', strtotime($change['datetime'])), |
|
40 | - 'short' => date('M j', strtotime($change['datetime'])), |
|
41 | - 'friendly' => date('F j, Y g:i A', strtotime($change['datetime']))), |
|
42 | - 'message' => $change['message_short']); |
|
43 | - } |
|
35 | + foreach($changelog_result as $change) |
|
36 | + { |
|
37 | + $changelog[] = (object) array( |
|
38 | + 'date' => (object) array( |
|
39 | + 'stamp' => date('c', strtotime($change['datetime'])), |
|
40 | + 'short' => date('M j', strtotime($change['datetime'])), |
|
41 | + 'friendly' => date('F j, Y g:i A', strtotime($change['datetime']))), |
|
42 | + 'message' => $change['message_short']); |
|
43 | + } |
|
44 | 44 | |
45 | - return array('changelog' => $changelog); |
|
46 | - } |
|
45 | + return array('changelog' => $changelog); |
|
46 | + } |
|
47 | 47 | |
48 | 48 | } |
@@ -4,11 +4,11 @@ discard block |
||
4 | 4 | |
5 | 5 | Loader::load('controller', 'site/DefaultPageController'); |
6 | 6 | |
7 | -final class ChangelogController extends DefaultPageController |
|
8 | -{ |
|
7 | +final class ChangelogController extends DefaultPageController |
|
8 | +{ |
|
9 | 9 | |
10 | - protected function set_head_data() |
|
11 | - { |
|
10 | + protected function set_head_data() |
|
11 | + { |
|
12 | 12 | $this->set_title("Changelog for Jacob Emerick's Sites"); |
13 | 13 | $this->set_description("Listing of the last changes done on the framework behind Jacob Emerick's websites. Yeah, he's down with that version control."); |
14 | 14 | $this->set_keywords(array('changelog', 'version control', 'code', 'comments', 'Jacob Emerick')); |
@@ -16,8 +16,8 @@ discard block |
||
16 | 16 | parent::set_head_data(); |
17 | 17 | } |
18 | 18 | |
19 | - protected function set_body_data() |
|
20 | - { |
|
19 | + protected function set_body_data() |
|
20 | + { |
|
21 | 21 | parent::set_body_data(); |
22 | 22 | |
23 | 23 | $this->set_body('top_data', array('title' => 'Change Log')); |
@@ -26,8 +26,8 @@ discard block |
||
26 | 26 | $this->set_body('body_view', 'Changelog'); |
27 | 27 | } |
28 | 28 | |
29 | - private function get_changelog() |
|
30 | - { |
|
29 | + private function get_changelog() |
|
30 | + { |
|
31 | 31 | global $container; |
32 | 32 | $changelogRepository = new MysqlChangelogRepository($container['db_connection_locator']); |
33 | 33 | $changelog_result = $changelogRepository->getChanges(40); |
@@ -32,7 +32,7 @@ |
||
32 | 32 | $changelogRepository = new MysqlChangelogRepository($container['db_connection_locator']); |
33 | 33 | $changelog_result = $changelogRepository->getChanges(40); |
34 | 34 | |
35 | - foreach($changelog_result as $change) |
|
35 | + foreach ($changelog_result as $change) |
|
36 | 36 | { |
37 | 37 | $changelog[] = (object) array( |
38 | 38 | 'date' => (object) array( |
@@ -5,20 +5,20 @@ |
||
5 | 5 | final class HomeController extends DefaultPageController |
6 | 6 | { |
7 | 7 | |
8 | - protected function set_head_data() |
|
9 | - { |
|
10 | - $this->set_title("Jacob Emerick's Site Information | General and Technical Information"); |
|
11 | - $this->set_description("Meta information about Jacob Emerick's websites and content. Introduces the man behind the code, discusses the reasons behind the sites, and goes into some technical background of the custom framework."); |
|
12 | - $this->set_keywords(array('site', 'technical', 'support', 'help', 'information', 'Jacob Emerick')); |
|
8 | + protected function set_head_data() |
|
9 | + { |
|
10 | + $this->set_title("Jacob Emerick's Site Information | General and Technical Information"); |
|
11 | + $this->set_description("Meta information about Jacob Emerick's websites and content. Introduces the man behind the code, discusses the reasons behind the sites, and goes into some technical background of the custom framework."); |
|
12 | + $this->set_keywords(array('site', 'technical', 'support', 'help', 'information', 'Jacob Emerick')); |
|
13 | 13 | |
14 | - parent::set_head_data(); |
|
15 | - } |
|
14 | + parent::set_head_data(); |
|
15 | + } |
|
16 | 16 | |
17 | - protected function set_body_data() |
|
18 | - { |
|
19 | - $this->set_body('body_view', 'Home'); |
|
17 | + protected function set_body_data() |
|
18 | + { |
|
19 | + $this->set_body('body_view', 'Home'); |
|
20 | 20 | |
21 | - parent::set_body_data(); |
|
22 | - } |
|
21 | + parent::set_body_data(); |
|
22 | + } |
|
23 | 23 | |
24 | 24 | } |
25 | 25 | \ No newline at end of file |
@@ -2,11 +2,11 @@ discard block |
||
2 | 2 | |
3 | 3 | Loader::load('controller', 'site/DefaultPageController'); |
4 | 4 | |
5 | -final class HomeController extends DefaultPageController |
|
6 | -{ |
|
5 | +final class HomeController extends DefaultPageController |
|
6 | +{ |
|
7 | 7 | |
8 | - protected function set_head_data() |
|
9 | - { |
|
8 | + protected function set_head_data() |
|
9 | + { |
|
10 | 10 | $this->set_title("Jacob Emerick's Site Information | General and Technical Information"); |
11 | 11 | $this->set_description("Meta information about Jacob Emerick's websites and content. Introduces the man behind the code, discusses the reasons behind the sites, and goes into some technical background of the custom framework."); |
12 | 12 | $this->set_keywords(array('site', 'technical', 'support', 'help', 'information', 'Jacob Emerick')); |
@@ -14,8 +14,8 @@ discard block |
||
14 | 14 | parent::set_head_data(); |
15 | 15 | } |
16 | 16 | |
17 | - protected function set_body_data() |
|
18 | - { |
|
17 | + protected function set_body_data() |
|
18 | + { |
|
19 | 19 | $this->set_body('body_view', 'Home'); |
20 | 20 | |
21 | 21 | parent::set_body_data(); |
@@ -5,13 +5,13 @@ |
||
5 | 5 | class Error303Controller extends PageController |
6 | 6 | { |
7 | 7 | |
8 | - public function __construct($uri) |
|
9 | - { |
|
10 | - Header::redirect($uri, 303); |
|
11 | - exit; |
|
12 | - } |
|
8 | + public function __construct($uri) |
|
9 | + { |
|
10 | + Header::redirect($uri, 303); |
|
11 | + exit; |
|
12 | + } |
|
13 | 13 | |
14 | - protected function set_head_data() {} |
|
15 | - protected function set_body_data() {} |
|
14 | + protected function set_head_data() {} |
|
15 | + protected function set_body_data() {} |
|
16 | 16 | |
17 | 17 | } |
@@ -2,16 +2,20 @@ |
||
2 | 2 | |
3 | 3 | Loader::load('controller', '/PageController'); |
4 | 4 | |
5 | -class Error303Controller extends PageController |
|
6 | -{ |
|
5 | +class Error303Controller extends PageController |
|
6 | +{ |
|
7 | 7 | |
8 | - public function __construct($uri) |
|
9 | - { |
|
8 | + public function __construct($uri) |
|
9 | + { |
|
10 | 10 | Header::redirect($uri, 303); |
11 | 11 | exit; |
12 | 12 | } |
13 | 13 | |
14 | - protected function set_head_data() {} |
|
15 | - protected function set_body_data() {} |
|
14 | + protected function set_head_data() |
|
15 | + { |
|
16 | +} |
|
17 | + protected function set_body_data() |
|
18 | + { |
|
19 | +} |
|
16 | 20 | |
17 | 21 | } |
@@ -5,58 +5,58 @@ |
||
5 | 5 | class Error404Controller extends PageController |
6 | 6 | { |
7 | 7 | |
8 | - protected function set_head_data() |
|
9 | - { |
|
10 | - $this->set_header_method('send404'); |
|
11 | - $this->add_css('normalize'); |
|
12 | - $this->add_css('404'); |
|
8 | + protected function set_head_data() |
|
9 | + { |
|
10 | + $this->set_header_method('send404'); |
|
11 | + $this->add_css('normalize'); |
|
12 | + $this->add_css('404'); |
|
13 | 13 | |
14 | - $this->set_title("Jacob Emerick's 404 Page"); |
|
15 | - $this->set_head('description', 'Global 404 page for sites under jacobemerick.com. Page not found!'); |
|
16 | - $this->set_head('keywords', ''); |
|
17 | - } |
|
14 | + $this->set_title("Jacob Emerick's 404 Page"); |
|
15 | + $this->set_head('description', 'Global 404 page for sites under jacobemerick.com. Page not found!'); |
|
16 | + $this->set_head('keywords', ''); |
|
17 | + } |
|
18 | 18 | |
19 | - protected function set_body_data() |
|
20 | - { |
|
21 | - $this->set_body('site_list', $this->get_sites()); |
|
19 | + protected function set_body_data() |
|
20 | + { |
|
21 | + $this->set_body('site_list', $this->get_sites()); |
|
22 | 22 | |
23 | - $this->set_body_view('/404'); |
|
24 | - } |
|
23 | + $this->set_body_view('/404'); |
|
24 | + } |
|
25 | 25 | |
26 | - private function get_sites() |
|
27 | - { |
|
26 | + private function get_sites() |
|
27 | + { |
|
28 | 28 | return [ |
29 | - [ |
|
29 | + [ |
|
30 | 30 | 'url' => 'https://home.jacobemerick.com/', |
31 | 31 | 'title' => "Jacob Emerick's Home", |
32 | 32 | 'name' => 'Home' |
33 | - ], |
|
34 | - [ |
|
33 | + ], |
|
34 | + [ |
|
35 | 35 | 'url' => 'https://blog.jacobemerick.com/', |
36 | 36 | 'title' => "Jacob Emerick's Blog", |
37 | 37 | 'name' => 'Blog' |
38 | - ], |
|
39 | - [ |
|
38 | + ], |
|
39 | + [ |
|
40 | 40 | 'url' => 'https://lifestream.jacobemerick.com/', |
41 | 41 | 'title' => "Jacob Emerick's Lifestream", |
42 | 42 | 'name' => 'Lifestream' |
43 | - ], |
|
44 | - [ |
|
43 | + ], |
|
44 | + [ |
|
45 | 45 | 'url' => 'https://map.jacobemerick.com/', |
46 | 46 | 'title' => "Jacob Emerick's Hiking Map", |
47 | 47 | 'name' => 'Map' |
48 | - ], |
|
49 | - [ |
|
48 | + ], |
|
49 | + [ |
|
50 | 50 | 'url' => 'https://portfolio.jacobemerick.com/', |
51 | 51 | 'title' => "Jacob Emerick's Portfolio", |
52 | 52 | 'name' => 'Portfolio', |
53 | - ], |
|
54 | - [ |
|
53 | + ], |
|
54 | + [ |
|
55 | 55 | 'url' => 'https://www.waterfallsofthekeweenaw.com/', |
56 | 56 | 'title' => 'Waterfalls of the Keweenaw', |
57 | 57 | 'name' => 'Waterfalls' |
58 | - ] |
|
59 | - ]; |
|
60 | - } |
|
58 | + ] |
|
59 | + ]; |
|
60 | + } |
|
61 | 61 | |
62 | 62 | } |
@@ -2,11 +2,11 @@ discard block |
||
2 | 2 | |
3 | 3 | Loader::load('controller', '/PageController'); |
4 | 4 | |
5 | -class Error404Controller extends PageController |
|
6 | -{ |
|
5 | +class Error404Controller extends PageController |
|
6 | +{ |
|
7 | 7 | |
8 | - protected function set_head_data() |
|
9 | - { |
|
8 | + protected function set_head_data() |
|
9 | + { |
|
10 | 10 | $this->set_header_method('send404'); |
11 | 11 | $this->add_css('normalize'); |
12 | 12 | $this->add_css('404'); |
@@ -16,15 +16,15 @@ discard block |
||
16 | 16 | $this->set_head('keywords', ''); |
17 | 17 | } |
18 | 18 | |
19 | - protected function set_body_data() |
|
20 | - { |
|
19 | + protected function set_body_data() |
|
20 | + { |
|
21 | 21 | $this->set_body('site_list', $this->get_sites()); |
22 | 22 | |
23 | 23 | $this->set_body_view('/404'); |
24 | 24 | } |
25 | 25 | |
26 | - private function get_sites() |
|
27 | - { |
|
26 | + private function get_sites() |
|
27 | + { |
|
28 | 28 | return [ |
29 | 29 | [ |
30 | 30 | 'url' => 'https://home.jacobemerick.com/', |