forked from tonik/theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path404.php
36 lines (31 loc) · 782 Bytes
/
404.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
namespace Tonik\Theme\NotFound;
/*
|------------------------------------------------------------------
| 404 Controller
|------------------------------------------------------------------
|
| The template controller for displaying 404 error pages.
| It is displayed when website content was not found.
|
*/
use function Tonik\Theme\App\template;
/**
* Renders 404 page header.
*
* @see resources/templates/index.tpl.php
*/
function render_header()
{
template('partials/header', [
'title' => __('Not Found'),
'lead' => __('The page you are looking for no longer exists.'),
]);
}
add_action('theme/index/header', 'Tonik\Theme\NotFound\render_header');
/**
* Renders 404 page.
*
* @see resources/templates/index.tpl.php
*/
template('index');