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.pull/195/head
| @ -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> | |||
| @ -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> | |||
| @ -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> | |||
| @ -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> | |||