forked from roots/sage
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add theme wrapper, re-organize template files
- Implement scribu’s Theme Wrapper (see base.php) - Move templates, comments.php, and searchform.php to templates/ folder - Rename loop- files to content- - Remove all hooks except roots_head and roots_footer - Use templates/page-header.php for page titles - Use head.php for everything in <head>
- Loading branch information
Showing
34 changed files
with
274 additions
and
554 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,15 @@ | ||
<?php get_header(); ?> | ||
<?php roots_content_before(); ?> | ||
<div id="content" class="<?php echo CONTAINER_CLASSES; ?>"> | ||
<?php roots_main_before(); ?> | ||
<div id="main" class="<?php echo FULLWIDTH_CLASSES; ?>" role="main"> | ||
<div class="page-header"> | ||
<h1><?php _e('File Not Found', 'roots'); ?></h1> | ||
</div> | ||
<div class="alert alert-block fade in"> | ||
<a class="close" data-dismiss="alert">×</a> | ||
<p><?php _e('The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.', 'roots'); ?></p> | ||
</div> | ||
<p><?php _e('Please try the following:', 'roots'); ?></p> | ||
<ul> | ||
<li><?php _e('Check your spelling', 'roots'); ?></li> | ||
<li><?php printf(__('Return to the <a href="%s">home page</a>', 'roots'), home_url()); ?></li> | ||
<li><?php _e('Click the <a href="javascript:history.back()">Back</a> button', 'roots'); ?></li> | ||
</ul> | ||
<?php get_search_form(); ?> | ||
</div><!-- /#main --> | ||
<?php roots_main_after(); ?> | ||
</div><!-- /#content --> | ||
<?php roots_content_after(); ?> | ||
<?php get_footer(); ?> | ||
<?php get_template_part('templates/page', 'header'); ?> | ||
|
||
<div class="alert alert-block fade in"> | ||
<a class="close" data-dismiss="alert">×</a> | ||
<p><?php _e('The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.', 'roots'); ?></p> | ||
</div> | ||
|
||
<p><?php _e('Please try the following:', 'roots'); ?></p> | ||
<ul> | ||
<li><?php _e('Check your spelling', 'roots'); ?></li> | ||
<li><?php printf(__('Return to the <a href="%s">home page</a>', 'roots'), home_url()); ?></li> | ||
<li><?php _e('Click the <a href="javascript:history.back()">Back</a> button', 'roots'); ?></li> | ||
</ul> | ||
|
||
<?php get_search_form(); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php get_template_part('templates/head'); ?> | ||
<body <?php body_class(); ?>> | ||
|
||
<!--[if lt IE 7]><div class="alert">Your browser is <em>ancient!</em> <a href="http://browsehappy.com/">Upgrade to a different browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">install Google Chrome Frame</a> to experience this site.</div><![endif]--> | ||
|
||
<?php | ||
// Use Bootstrap's navbar if enabled in config.php | ||
if (current_theme_supports('bootstrap-top-navbar')) { | ||
get_template_part('templates/header-top-navbar'); | ||
} else { | ||
get_template_part('templates/header'); | ||
} | ||
?> | ||
|
||
<div id="wrap" class="container" role="document"> | ||
<div id="content" class="row"> | ||
<div id="main" class="<?php roots_main_class(); ?>" role="main"> | ||
<?php include roots_template_path(); ?> | ||
</div> | ||
<?php if (roots_sidebar()) { ?> | ||
<aside id="sidebar" class="<?php roots_sidebar_class(); ?>" role="complementary"> | ||
<?php get_template_part('templates/sidebar'); ?> | ||
</aside> | ||
<?php } ?> | ||
</div><!-- /#content --> | ||
</div><!-- /#wrap --> | ||
|
||
<?php get_template_part('templates/footer'); ?> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.