code
— PHP, Javascript, SASS, or CSS code.@include('partials.blah')
— include a partial template from ./resources/views/partials@yield('content')
— specifies where the template itself (like single.php) can inject a section of content@php .. @endphp
— this is how you embed PHP into a Blade template@if (Appdisplay_sidebar())
— the display_sidebar()
function is defined in ./app/helpers.php (which just calls ./app/filters.php) and you can alter it to provide some logic about when to display your main sidebarcontainer
and col-md-8
. This is because Sage tries to stay CSS-framework-agnostic; assuming you’re using Bootstrap, you’ll need to edit those into the layouts yourself.@yield
. My ./resources/views/page.blade.php is seriously as simple as just this:@extends('layouts.blank')
indicates that it uses the layout in ./resources/views/layouts/blank.blade.php.wp_nav_menu($primarymenu)
part will call back to ./app/Controllers/App.php to display the menu. You’ll need to add a method there to do that:@import
s plus:init()
function which will run as soon as the DOM has loaded; it is blank, so you can define the contents! They also contain a finalize()
function which runs after init()
. home.js runs on just the homepage, and common.js runs on all pages (including the homepage).<head>
.