mirror of
https://github.com/danpros/htmly.git
synced 2026-04-18 19:46:21 +05:30
404 pages rendreed within layout
Before this pull request, the 404 and 404-search templates where handled as full HTML pages without the page context (layout). With this pull request both pages are rendered inside the selected themes layout. Additionally the 404 template now contains the "search form" and the homepage link. All Themes are already updated with the above changes.
This commit is contained in:
parent
9b37682f25
commit
41ae84a129
17 changed files with 133 additions and 168 deletions
|
|
@ -1,21 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link href='<?php echo site_url() ?>favicon.ico' rel='icon' type='image/x-icon'/>
|
||||
<meta charset="utf-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" user-scalable="no"/>
|
||||
<title>Search results not found! - <?php echo blog_title() ?></title>
|
||||
<link href="<?php echo site_url() ?>themes/default/css/style.css" rel="stylesheet"/>
|
||||
<link href="//fonts.googleapis.com/css?family=Open+Sans:400,700" rel="stylesheet" type="text/css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="center message">
|
||||
<h1>Search results not found!</h1>
|
||||
<div class="search-404">
|
||||
<?php echo search() ?>
|
||||
<?php if (!empty($breadcrumb)): ?>
|
||||
<div class="breadcrumb"><?php echo $breadcrumb ?></div>
|
||||
<?php endif; ?>
|
||||
<section class="inpage post section">
|
||||
<div class="section-inner">
|
||||
<div class="content">
|
||||
<div class="item">
|
||||
<h1 class="title">Search results not found!</h1>
|
||||
<p>Please search again, or would you like to try our <a href="<?php echo site_url() ?>">homepage</a> instead?</p>
|
||||
<div class="search-404">
|
||||
<?php echo search() ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p>Please search again, or would you like to try our <a href="<?php echo site_url() ?>">homepage</a> instead?</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
</section>
|
||||
|
|
|
|||
|
|
@ -1,18 +1,14 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link href='<?php echo site_url() ?>favicon.ico' rel='icon' type='image/x-icon'/>
|
||||
<meta charset="utf-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" user-scalable="no"/>
|
||||
<title>404 Not Found - <?php echo blog_title() ?></title>
|
||||
<link href="<?php echo site_url() ?>themes/default/css/style.css" rel="stylesheet"/>
|
||||
<link href="//fonts.googleapis.com/css?family=Open+Sans:400,700" rel="stylesheet" type="text/css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="center message">
|
||||
<h1>This page doesn't exist!</h1>
|
||||
<p>Would you like to try our <a href="<?php echo site_url() ?>">homepage</a> instead?</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
<?php if (!empty($breadcrumb)): ?>
|
||||
<div class="breadcrumb"><?php echo $breadcrumb ?></div>
|
||||
<?php endif; ?>
|
||||
<section class="inpage post section">
|
||||
<div class="section-inner">
|
||||
<div class="content">
|
||||
<div class="item">
|
||||
<h1 class="title">This page doesn't exist!</h1>
|
||||
<p>Please search to find what you're looking for or visit our <a href="<?php echo site_url() ?>">homepage</a> instead.</p>
|
||||
<?php echo search() ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
|
@ -6,7 +6,9 @@
|
|||
<?php echo head_contents();?>
|
||||
<title><?php echo $title;?></title>
|
||||
<meta name="description" content="<?php echo $description; ?>"/>
|
||||
<link rel="canonical" href="<?php echo $canonical; ?>" />
|
||||
<?php if($canonical): ?>
|
||||
<link rel="canonical" href="<?php echo $canonical; ?>" />
|
||||
<?php endif; ?>
|
||||
<?php if (publisher()): ?>
|
||||
<link href="<?php echo publisher() ?>" rel="publisher" /><?php endif; ?>
|
||||
<link href="//fonts.googleapis.com/css?family=Lato:300,400,300italic,400italic" rel="stylesheet" type="text/css">
|
||||
|
|
|
|||
|
|
@ -1,21 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link href='<?php echo site_url() ?>favicon.ico' rel='icon' type='image/x-icon'/>
|
||||
<meta charset="utf-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" user-scalable="no"/>
|
||||
<title>Search results not found! - <?php echo blog_title() ?></title>
|
||||
<link href="<?php echo site_url() ?>themes/clean/css/style.css" rel="stylesheet"/>
|
||||
<link href="//fonts.googleapis.com/css?family=Open+Sans+Condensed:700&subset=latin,cyrillic-ext" rel="stylesheet"/>
|
||||
</head>
|
||||
<body>
|
||||
<div class="center message">
|
||||
<h1>Search results not found!</h1>
|
||||
<div class="search">
|
||||
<?php echo search() ?>
|
||||
<?php if (!empty($breadcrumb)): ?>
|
||||
<div class="breadcrumb"><?php echo $breadcrumb ?></div>
|
||||
<?php endif; ?>
|
||||
<div class="post">
|
||||
<div class="main">
|
||||
<h1 class="title-post">Search results not found!</h1>
|
||||
<p>Please search again, or would you like to try our <a href="<?php echo site_url() ?>">homepage</a> instead?</p>
|
||||
<div class="search-404">
|
||||
<?php echo search() ?>
|
||||
</div>
|
||||
</div>
|
||||
<p>Please search again, or would you like to try our <a href="<?php echo site_url() ?>">homepage</a> instead?</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,18 +1,10 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link href='<?php echo site_url() ?>favicon.ico' rel='icon' type='image/x-icon'/>
|
||||
<meta charset="utf-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" user-scalable="no"/>
|
||||
<title>404 Not Found - <?php echo blog_title() ?></title>
|
||||
<link href="<?php echo site_url() ?>themes/clean/css/style.css" rel="stylesheet"/>
|
||||
<link href="//fonts.googleapis.com/css?family=Open+Sans+Condensed:700&subset=latin,cyrillic-ext" rel="stylesheet"/>
|
||||
</head>
|
||||
<body>
|
||||
<div class="center message">
|
||||
<h1>This page doesn't exist!</h1>
|
||||
<p>Would you like to try our <a href="<?php echo site_url() ?>">homepage</a> instead?</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
<?php if (!empty($breadcrumb)): ?>
|
||||
<div class="breadcrumb"><?php echo $breadcrumb ?></div>
|
||||
<?php endif; ?>
|
||||
<div class="post">
|
||||
<div class="main">
|
||||
<h1 class="title-post">This page doesn't exist!</h1>
|
||||
<p>Please search to find what you're looking for or visit our <a href="<?php echo site_url() ?>">homepage</a> instead.</p>
|
||||
<?php echo search() ?>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -4,7 +4,9 @@
|
|||
<?php echo head_contents() ?>
|
||||
<title><?php echo $title;?></title>
|
||||
<meta name="description" content="<?php echo $description; ?>"/>
|
||||
<link rel="canonical" href="<?php echo $canonical; ?>" />
|
||||
<?php if($canonical): ?>
|
||||
<link rel="canonical" href="<?php echo $canonical; ?>" />
|
||||
<?php endif; ?>
|
||||
<link href="<?php echo site_url() ?>themes/clean/css/style.css" rel="stylesheet"/>
|
||||
<link href="//fonts.googleapis.com/css?family=Open+Sans+Condensed:700&subset=latin,cyrillic-ext" rel="stylesheet"/>
|
||||
<?php if (publisher()): ?>
|
||||
|
|
|
|||
|
|
@ -1,21 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link href='<?php echo site_url() ?>favicon.ico' rel='icon' type='image/x-icon'/>
|
||||
<meta charset="utf-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" user-scalable="no"/>
|
||||
<title>Search results not found! - <?php echo blog_title() ?></title>
|
||||
<link href="<?php echo site_url() ?>themes/default/css/style.css" rel="stylesheet"/>
|
||||
<link href="//fonts.googleapis.com/css?family=Open+Sans:400,700" rel="stylesheet" type="text/css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="center message">
|
||||
<h1>Search results not found!</h1>
|
||||
<div class="search-404">
|
||||
<?php echo search() ?>
|
||||
<?php if (!empty($breadcrumb)): ?>
|
||||
<div class="breadcrumb"><?php echo $breadcrumb ?></div>
|
||||
<?php endif; ?>
|
||||
<div class="post">
|
||||
<div class="main">
|
||||
<h1 class="title-post">Search results not found!</h1>
|
||||
<p>Please search again, or would you like to try our <a href="<?php echo site_url() ?>">homepage</a> instead?</p>
|
||||
<div class="search-404">
|
||||
<?php echo search() ?>
|
||||
</div>
|
||||
</div>
|
||||
<p>Please search again, or would you like to try our <a href="<?php echo site_url() ?>">homepage</a> instead?</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,18 +1,10 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link href='<?php echo site_url() ?>favicon.ico' rel='icon' type='image/x-icon'/>
|
||||
<meta charset="utf-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" user-scalable="no"/>
|
||||
<title>404 Not Found - <?php echo blog_title() ?></title>
|
||||
<link href="<?php echo site_url() ?>themes/default/css/style.css" rel="stylesheet"/>
|
||||
<link href="//fonts.googleapis.com/css?family=Open+Sans:400,700" rel="stylesheet" type="text/css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="center message">
|
||||
<h1>This page doesn't exist!</h1>
|
||||
<p>Would you like to try our <a href="<?php echo site_url() ?>">homepage</a> instead?</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
<?php if (!empty($breadcrumb)): ?>
|
||||
<div class="breadcrumb"><?php echo $breadcrumb ?></div>
|
||||
<?php endif; ?>
|
||||
<div class="post">
|
||||
<div class="main">
|
||||
<h1 class="title-post">This page doesn't exist!</h1>
|
||||
<p>Please search to find what you're looking for or visit our <a href="<?php echo site_url() ?>">homepage</a> instead.</p>
|
||||
<?php echo search() ?>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -414,6 +414,11 @@ table.post-list td a {
|
|||
float: right;
|
||||
}
|
||||
|
||||
.error-404 .post #search-form,
|
||||
.error-404-search .post #search-form {
|
||||
float: none;
|
||||
}
|
||||
|
||||
.search-input {
|
||||
margin: 0;
|
||||
padding: 4px 15px;
|
||||
|
|
@ -519,7 +524,7 @@ h1.title-post a:hover, h2.title-index a:hover {
|
|||
padding-top: 0;
|
||||
}
|
||||
|
||||
.infront .first, .inpost .post, .intag .first, .inarchive .first, .insearch .first {
|
||||
.infront .first, .inpost .post, .intag .first, .inarchive .first, .insearch .first, .error-404 .post, .error-404-search .post {
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,9 @@
|
|||
<?php echo head_contents() ?>
|
||||
<title><?php echo $title;?></title>
|
||||
<meta name="description" content="<?php echo $description; ?>"/>
|
||||
<link rel="canonical" href="<?php echo $canonical; ?>" />
|
||||
<?php if($canonical): ?>
|
||||
<link rel="canonical" href="<?php echo $canonical; ?>" />
|
||||
<?php endif; ?>
|
||||
<link href="<?php echo site_url() ?>themes/default/css/style.css" rel="stylesheet"/>
|
||||
<link href="//fonts.googleapis.com/css?family=Open+Sans:400,700" rel="stylesheet" type="text/css">
|
||||
<?php if (publisher()): ?>
|
||||
|
|
|
|||
|
|
@ -1,21 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link href='<?php echo site_url() ?>favicon.ico' rel='icon' type='image/x-icon'/>
|
||||
<meta charset="utf-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" user-scalable="no"/>
|
||||
<title>Search results not found! - <?php echo blog_title() ?></title>
|
||||
<link href="<?php echo site_url() ?>themes/logs/css/style.css" rel="stylesheet"/>
|
||||
<link href="//fonts.googleapis.com/css?family=Open+Sans:400,700" rel="stylesheet" type="text/css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="center message">
|
||||
<h1>Search results not found!</h1>
|
||||
<div class="search-404">
|
||||
<?php echo search() ?>
|
||||
<?php if (!empty($breadcrumb)): ?>
|
||||
<div class="breadcrumb"><?php echo $breadcrumb ?></div>
|
||||
<?php endif; ?>
|
||||
<div class="post">
|
||||
<div class="main">
|
||||
<h1 class="title-post">Search results not found!</h1>
|
||||
<p>Please search again, or would you like to try our <a href="<?php echo site_url() ?>">homepage</a> instead?</p>
|
||||
<div class="search-404">
|
||||
<?php echo search() ?>
|
||||
</div>
|
||||
</div>
|
||||
<p>Please search again, or would you like to try our <a href="<?php echo site_url() ?>">homepage</a> instead?</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,18 +1,10 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link href='<?php echo site_url() ?>favicon.ico' rel='icon' type='image/x-icon'/>
|
||||
<meta charset="utf-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" user-scalable="no"/>
|
||||
<title>404 Not Found - <?php echo blog_title() ?></title>
|
||||
<link href="<?php echo site_url() ?>themes/logs/css/style.css" rel="stylesheet"/>
|
||||
<link href="//fonts.googleapis.com/css?family=Open+Sans:400,700" rel="stylesheet" type="text/css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="center message">
|
||||
<h1>This page doesn't exist!</h1>
|
||||
<p>Would you like to try our <a href="<?php echo site_url() ?>">homepage</a> instead?</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
<?php if (!empty($breadcrumb)): ?>
|
||||
<div class="breadcrumb"><?php echo $breadcrumb ?></div>
|
||||
<?php endif; ?>
|
||||
<div class="post">
|
||||
<div class="main">
|
||||
<h1 class="title-post">This page doesn't exist!</h1>
|
||||
<p>Please search to find what you're looking for or visit our <a href="<?php echo site_url() ?>">homepage</a> instead.</p>
|
||||
<?php echo search() ?>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -332,6 +332,10 @@ ul li, ol li {
|
|||
#search-form {
|
||||
float: right;
|
||||
}
|
||||
.error-404 .post #search-form,
|
||||
.error-404-search .post #search-form {
|
||||
float: none;
|
||||
}
|
||||
|
||||
.search-input {
|
||||
border: 1px solid #E5E5E5;
|
||||
|
|
|
|||
|
|
@ -4,7 +4,9 @@
|
|||
<?php echo head_contents() ?>
|
||||
<title><?php echo $title;?></title>
|
||||
<meta name="description" content="<?php echo $description; ?>"/>
|
||||
<link rel="canonical" href="<?php echo $canonical; ?>" />
|
||||
<?php if($canonical): ?>
|
||||
<link rel="canonical" href="<?php echo $canonical; ?>" />
|
||||
<?php endif; ?>
|
||||
<link href="<?php echo site_url() ?>themes/logs/css/style.css" rel="stylesheet"/>
|
||||
<link href="//fonts.googleapis.com/css?family=Open+Sans:400,700" rel="stylesheet" type="text/css">
|
||||
<?php if (publisher()): ?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue