Permalink
Browse files

rewrite error page

  • Loading branch information...
Bloggerschmidt committed Feb 14, 2018
1 parent 95945b8 commit 094d36da7c5a92a429c7e3a79a995a873d6aa2ad
Showing with 32 additions and 24 deletions.
  1. +25 −14 css/error.css
  2. +7 −7 error.php
  3. +0 −3 offline.php
39 css/error.css 100755 → 100644
@@ -1,26 +1,37 @@
/* ERROR
========================================================================== */
html,
body {
background:#fff;
color:#000;
font-family:Arial,Helvetica,Sans Serif;
font-size:78%;
margin:0;
padding:0;
text-align:center;
height: 100vh;
}
body {
color: #111;
font-family: Arial,Sans Serif;
font-size: 1rem;
margin: 0;
padding: 0;
text-align: center;
}
#error {
margin:0;
padding:0;
padding-top:40px;
padding-bottom:60px;
width:814px;
margin: 0 auto;
padding: 20px;
max-width: 100%;
}
@media (min-width: 768px) {
#error {
padding-top: 32vh;
max-width: 400px;
}
}
h1 {
margin:0 0 20px 0;
margin:0 0 20px 0;
}
.search label {
display:none
display:none
}
14 error.php 100755 → 100644
@@ -2,17 +2,17 @@
// variables
$app = JFactory::getApplication();
$doc = JFactory::getDocument();
$tpath = $this->baseurl.'/templates/'.$this->template;
?><!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;" /> <!-- mobile viewport optimized -->
<link rel="stylesheet" href="<?php echo $tpath; ?>/css/error.css?v=1">
<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>
@@ -22,16 +22,16 @@
<?php echo htmlspecialchars($app->getCfg('sitename')); ?>
</h1>
<p>
<?php
echo $this->error->getCode().' - '.$this->error->getMessage();
<?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'); ?>:
<?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
@@ -6,9 +6,6 @@
// generator tag
$this->setGenerator(null);
// Add JavaScript Frameworks
JHtml::_('bootstrap.framework');
// load css
JHtml::_('stylesheet', 'normalize.css', array('version' => 'auto', 'relative' => true));
JHtml::_('stylesheet', 'offline.css', array('version' => 'auto', 'relative' => true));

0 comments on commit 094d36d

Please sign in to comment.