Description
Footer navbar component supports custom content such as: dropdown menus, multi level menus, language selects, forms fields, date pickers etc.
This section contains HTML Markup to create fixed footer. This markup define where to add css classes to make footer fixed.
-
Line no 2:Contain the
.navbar
to support custom contents. - Line no 4, 5, 6, 10, 16:Contain the custom content such as: dropdown menus, multi level menus, language selects, forms fields, date pickers etc.
<!-- START FOOTER CUSTOM--> <footer class="navbar fixed-bottom content container-fluid footer footer-light footer-shadow"> <ul class="nav navbar-nav ml-1"> <li class="nav-item"><a href="#" class="nav-link text-muted">Terms of use</a></li> <li class="nav-item"><a href="#" class="nav-link text-muted">Privacy Policy</a></li> <li class="dropdown dropdown-language nav-item"><a href="#" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="dropdown-toggle nav-link"><i class="flag-icon flag-icon-gb"></i><span class="selected-language">English</span><i class="caret"></i></a> <div aria-labelledby="dropdown-flag" class="dropdown-menu dropdown-menu-right"><a href="#" class="dropdown-item"><i class="flag-icon flag-icon-gb"></i> English</a><a href="#" class="dropdown-item"><i class="flag-icon flag-icon-es"></i> Spanish</a><a href="#" class="dropdown-item"><i class="flag-icon flag-icon-pt"></i> Portuguese</a><a href="#" class="dropdown-item"><i class="flag-icon flag-icon-fr"></i> French</a></div> </li> </ul> <form class="form-inline float-right"> <div class="input-group mb-0 mt-0"><span class="input-group-btn"> <button type="button" class="btn btn-secondary"><i class="icon-monitor3"></i></button></span> <input type="text" placeholder="Quick search..." aria-label="Amount" class="form-control"><span class="input-group-btn"> <button type="button" class="btn btn-outline-success">Go!</button></span> </div> <button type="button" class="btn btn-outline-primary"><i class="fa fa-heart-o"></i> Logut</button> </form> </footer> <!-- END FOOTER CUSTOM-->
Stack Admin use JADE as template engine to generate pages and whole template quickly using node js, for getting start with JADE usage & template generating process please refer template documentation.
JADE Code
To generate custom footer fixed page or template, you need to use following JADE code.
-
Line no 20-21:
footerConfig
block has afooterType
variable, it contains footer specific classes in that you need to add'footer-fixed'
class. -
Line no 25-26:You can use
'footer-light'
,'footer-dark'
&'footer-transparent'
color options. -
Line no 20-21:Block
footer
uses customfooter-custom.jade
file contain custom component supports custom content such as: dropdown menus, multi level menus, language selects, forms fields, date pickers etc. You cna create your own new JADE file also and include it to use for custom footer. -
Line no 36-37:
content
block has content section html file includedinclude ../contents/footer-components.html
, which can be customizable on page level.
If you want to use this layout on page level you need to define it on page it self. This template has one example jade file for fixed footer footer-components.jade
, however you can use it on template level but it will generate whole template footer fixed.
block pageVars - var pageTitle = "Footer Components" - var pageSubTitle = "Footer custom components" - var description = "Footer support custom components to provide more usability." - var activeMenu = "footer-components" extends template append footerConfig - var footerType = "fixed-bottom" - var footerColor = "footer-light" - var footerBorder = true //- Template includes //------------------- block footer include ../templates/sections/footer/footer-custom append breadcrumbs +breadcrumbs([{url:"index.html",name:"Home"},{url:"#",name:"Footer"}, {name:"Footer Components"}]) //- Include page content in page block append content include ../contents/footer-components.html //- Vendor CSS //------------------------------ //- Add Vendor specific CSS append vendorcss //- Page CSS //------------------------------ //- Add custom page specific CSS append pagecss //- Vendor JS //------------------------------ //- Add vendor specific JS append vendorjs //- Page JS //------------------------------ //- Add custom page specific JS append pagejs