Move <main> and .sidebar markup out of PHP
Add more efficient LESS with variables Add new line to _variables.less Add sidebar class to body element instead of main element Change body sidebar class to .sidebar-active Change body sidebar class to .sidebar-primary Correct spacing issues
This commit is contained in:
4
base.php
4
base.php
@@ -14,11 +14,11 @@
|
||||
|
||||
<div class="wrap container" role="document">
|
||||
<div class="content row">
|
||||
<main class="main <?php echo roots_main_class(); ?>" role="main">
|
||||
<main class="main" role="main">
|
||||
<?php include roots_template_path(); ?>
|
||||
</main><!-- /.main -->
|
||||
<?php if (roots_display_sidebar()) : ?>
|
||||
<aside class="sidebar <?php echo roots_sidebar_class(); ?>" role="complementary">
|
||||
<aside class="sidebar" role="complementary">
|
||||
<?php include roots_sidebar_path(); ?>
|
||||
</aside><!-- /.sidebar -->
|
||||
<?php endif; ?>
|
||||
|
||||
Reference in New Issue
Block a user