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>
This commit is contained in:
23
index.php
23
index.php
@@ -1,21 +1,2 @@
|
||||
<?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 MAIN_CLASSES; ?>" role="main">
|
||||
<div class="page-header">
|
||||
<h1><?php _e('Latest Posts', 'roots');?></h1>
|
||||
</div>
|
||||
<?php get_template_part('loop', 'index'); ?>
|
||||
</div><!-- /#main -->
|
||||
<?php roots_main_after(); ?>
|
||||
<?php roots_sidebar_before(); ?>
|
||||
<aside id="sidebar" class="<?php echo SIDEBAR_CLASSES; ?>" role="complementary">
|
||||
<?php roots_sidebar_inside_before(); ?>
|
||||
<?php get_sidebar(); ?>
|
||||
<?php roots_sidebar_inside_after(); ?>
|
||||
</aside><!-- /#sidebar -->
|
||||
<?php roots_sidebar_after(); ?>
|
||||
</div><!-- /#content -->
|
||||
<?php roots_content_after(); ?>
|
||||
<?php get_footer(); ?>
|
||||
<?php get_template_part('templates/page', 'header'); ?>
|
||||
<?php get_template_part('templates/content', get_post_format()); ?>
|
||||
Reference in New Issue
Block a user