First pass at Blade templating
This commit is contained in:
28
templates/layouts/base.blade.php
Normal file
28
templates/layouts/base.blade.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<!doctype html>
|
||||
<html {!! language_attributes() !!}>
|
||||
@include('partials.head')
|
||||
<body {!! body_class() !!}>
|
||||
<!--[if IE]>
|
||||
<div class="alert alert-warning">
|
||||
{!! _e('You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.', 'sage') !!}
|
||||
</div>
|
||||
<![endif]-->
|
||||
{!! do_action('get_header') !!}
|
||||
@include('partials.header')
|
||||
<div class="wrap container" role="document">
|
||||
<div class="content row">
|
||||
<main class="main">
|
||||
@yield('content')
|
||||
</main>
|
||||
{{--@if(App\display_sidebar())--}}
|
||||
{{--<aside class="sidebar">--}}
|
||||
{{--{!! App\template_part('partials/sidebar') !!}--}}
|
||||
{{--</aside>--}}
|
||||
{{--@endif--}}
|
||||
</div>
|
||||
</div>
|
||||
{!! do_action('get_footer') !!}
|
||||
@include('partials.footer')
|
||||
{!! wp_footer() !!}
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,32 +0,0 @@
|
||||
<!doctype html>
|
||||
<html <?php language_attributes(); ?>>
|
||||
<?php get_template_part('partials/head'); ?>
|
||||
<body <?php body_class(); ?>>
|
||||
<!--[if IE]>
|
||||
<div class="alert alert-warning">
|
||||
<?php _e('You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.', 'sage'); ?>
|
||||
</div>
|
||||
<![endif]-->
|
||||
<?php
|
||||
do_action('get_header');
|
||||
get_template_part('partials/header');
|
||||
?>
|
||||
<div class="wrap container" role="document">
|
||||
<div class="content row">
|
||||
<main class="main">
|
||||
<?php include App\template()->main(); ?>
|
||||
</main>
|
||||
<?php if (App\display_sidebar()) : ?>
|
||||
<aside class="sidebar">
|
||||
<?php App\template_part('partials/sidebar'); ?>
|
||||
</aside>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
do_action('get_footer');
|
||||
get_template_part('partials/footer');
|
||||
wp_footer();
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user