This repository has been archived by the owner on Dec 14, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 72
/
error.php
46 lines (40 loc) · 1.43 KB
/
error.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
38
39
40
41
42
43
44
45
46
<?php defined( '_JEXEC' ) or die;
// variables
$app = JFactory::getApplication();
?><!doctype html>
<html lang="<?php echo $this->language; ?>">
<head>
<meta charset="utf-8" />
<title><?php echo $this->error->getCode(); ?> - <?php echo $this->title; ?></title>
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" />
<link href="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template; ?>/css/normalize.css" rel="stylesheet" />
<link href="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template; ?>/css/error.css" rel="stylesheet" />
</head>
<body>
<div align="center">
<div id="error">
<h1>
<?php echo htmlspecialchars($app->getCfg('sitename')); ?>
</h1>
<p>
<?php
echo $this->error->getCode().' - '.$this->error->getMessage();
if (($this->error->getCode()) == '404') {
echo '<br />';
echo JText::_('JERROR_LAYOUT_REQUESTED_RESOURCE_WAS_NOT_FOUND');
}
?>
</p>
<p>
<?php echo JText::_('JERROR_LAYOUT_GO_TO_THE_HOME_PAGE'); ?>:
<a href="<?php echo $this->baseurl; ?>/"><?php echo JText::_('JERROR_LAYOUT_HOME_PAGE'); ?></a>.
</p>
<?php // render module mod_search
$module = new stdClass();
$module->module = 'mod_search';
echo JModuleHelper::renderModule($module);
?>
</div>
</div>
</body>
</html>