/**
* Bootstrap classes if sidebar
**/
public function sidebarCss()
{
return 'col-lg-8';
}
/**
* Classes if no sidebar
**/
public function noSidebarCss()
{
if (is_front_page()) {
return 'small-12';
} else {
return 'col-lg-8 offset-lg-2';
}
}
The problem is with bbpress.
I had to add this bbpress.php file to make bbpress work within sage:
<?php
echo App\Template('page');
The main bbpress page works correctly, but if I go to any subpages within bbpress, I get the variable warning.
Solution:
It wasn’t injecting data from the App controller to the Page template for bbpress.
Below is the solution, pass the data to the template.
<?php
echo App\template('page', $__data);
Thank you Roots forums!!!