A primer on how Nova templates structure your skin
template_{section}.php
otherwise Nova will not be able to find the template file to use it.
Variable | Section(s) |
---|---|
$ajax | admin, main, wiki |
$content | admin, login, main, wiki |
$flash_message | admin, login, main, wiki |
$javascript | admin, login, main, wiki |
$nav_main | admin, main, wiki |
$nav_sub | admin, main, wiki |
$panel_1 | admin, main, wiki |
$panel_2 | admin, main, wiki |
$panel_3 | admin, main, wiki |
$_redirect | admin, login, main, wiki |
$title | admin, login, main, wiki |
$main_nav
) and the secondary navigation ($nav_sub
). The main navigation is consistent throughout the entire site, but the secondary navigation changes depending on the section the user is currently viewing. From a skinning perspective, you won’t need to know what section is showing, only where you want the secondary navigation to be shown on the page.
Navigation elements are rendered as an unordered list (<ul>
) with each navigation element being a list item (<li>
) containing an anchor (<a>
) tag. Both navigations are contained within div
s that can be targeted to style each list individually (.nav-main
and .nav-sub
respectively).
div
with the class .content
and contains three PHP elements: flash messages, the page content, and Ajax elements.
div
element with the class .flash_message
, with an additional class of either .flash-success
, .flash_error
, or .flash_info
that give color styles.$content
variable displays the page’s content, whether it’s text defined in a Nova’s Site Messages, a custom/static generated through a separate view file, or one of Nova’s pre-formatted content pages.$ajax
variable is in your template.$panel_1
, $panel_2
, and $panel_3
. You can put these in any order you want or anywhere on the page.
There is also a $panel
variable that contains the icon for a particular panel pane. (This information is actually set in each individual template, so you’re free to change it.)
Triggering the panel is done with some simple jQuery that can also be found in each individual template.