I've made a sub-theme of the Bootstrap theme; however, I am having trouble understanding where $variables
comes from in the page.vars.php file. I made a little "debug" code to print out the variables - unfortunately, the output is exceptionally large and has some strange outputs. I have edited page.vars.php using the variables already retrieved from the $variables
associative array, e.g. I edited the size of the main content section on the page:
$variables['content_column_class'] = ' class="col-md-8 col-sm-6"';
This suggests there should be a 'content-column-class'
in the $variables
array; however, amazingly when I perform print_r($variables)
it turns out there is none! Furthermore, every variable I have checked that is being accessed in page.vars.php
seemingly does not exist.
I'd like to edit the class
of the primary
/ sidebar_first
sections; however, currently I cannot do this as I don't know how to access them from the $variables
array.
In sum, why does print_r
not output the expected? And, how do I find out what variables are actually in $variables
?