forked from tonik/theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path404.php
37 lines (32 loc) · 805 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
37
<?php
namespace App\Theme;
/*
|------------------------------------------------------------------
| 404 Controller
|------------------------------------------------------------------
|
| The template controller for displaying 404 error pages.
| It is displayed when website content was not found.
|
*/
use function App\Theme\template;
/**
* Renders 404 page header.
*
* @see do_action('theme/index/header')
* @uses resources/templates/partials/header.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', 'App\Theme\render_header');
/**
* Renders 404 page.
*
* @uses resources/templates/index.tpl.php
*/
template('index');