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.
.navbar
to support custom contents.
<!-- 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-prepand">
<button type="button" class="btn btn-secondary"><i class="ft-monitor"></i></button></span>
<input type="text" placeholder="Quick search..." aria-label="Amount" class="form-control"><span class="input-group-append">
<button type="button" class="btn btn-outline-success">Go!</button></span>
</div>
<button type="button" class="btn btn-outline-primary"><i class="la la-heart-o"></i> Logut</button>
</form>
</footer>
<!-- END FOOTER CUSTOM-->
Modern Admin use PUG as template engine to generate pages and whole template quickly using node js, for getting start with PUG usage & template generating process please refer template documentation.
To generate custom footer fixed page or template, you need to use following PUG code.
footerConfig
block has a footerType
variable, it contains footer specific classes in that you need to add 'footer-fixed'
class.'footer-light'
,'footer-dark'
& 'footer-transparent'
color options.footer
uses custom footer-custom.pug
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 PUG file also and include it to use for custom footer.content
block has content section html file included include ../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 pug file for fixed footer footer-components.pug
, 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