These tips and tricks will help you skin Nova faster and easier
var_dump
var_dump()
that you can use to preview the raw content of any variable you see in a template or page file.
For example, if you wanted to inspect the contents of the $panel
variable you could do something like this:
var_dump
function revealed that the variable $panel
contains an array with three items: inbox
, writing
, and dashboard
. Further, each of those items contains another array with a link to the image attached to each panel item. This can help you determine how to use a given variable. For example, if you wanted get the image for the private messages inbox, you now know you can reference it by using $panel['inbox']['src']
.