Breadcrumbs with stats

$5,668

Sales

Description

An example of page header with page title, breadcrumbs, content title and stats.

HTML Markup

This section contains HTML Markup to create page with headers breadcrumbs with stats.

You can use below HTML headers breadcrumbs with stats page header snippet in any type of layout. You can also custom above HTML snippet as per your requirements. Stack has a ready to use 10 different types of page headers.

            
              <div class="content-header row">
                  <div class="content-header-left col-md-6 col-12">
                    <h2 class="content-header-title mb-0">Breadcrumbs with stats</h2>
                    <div class="row breadcrumbs-top">
                      <div class="breadcrumb-wrapper col-12">
                        <ol class="breadcrumb">
                          <li class="breadcrumb-item"><a href="/">Home</a>
                          </li>
                          <li class="breadcrumb-item"><a href="#">Page headers</a>
                          </li>
                          <li class="breadcrumb-item active">Breadcrumbs with stats
                          </li>
                        </ol>
                      </div>
                    </div>
                  </div>
                  <div class="content-header-right col-md-6 col-12">
                    <div class="media">
                      <div class="media-left media-middle width-250 float-right">
                        <div id="sp-stacked-bar-total-sales"></div>
                      </div>
                      <div class="media-body media-right text-right">
                        <h3>$45,668</h3><span class="text-muted">Total Sales</span>
                      </div>
                    </div>
                  </div>
                  <div class="content-header-lead col-12 mt-2">
                    <p class="lead">Page header with page title, breadcrumbs, content title and stats.</p>
                  </div>
                </div>
            
            

JADE Configuration

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 Variables

This table contains required JADE block to generate page with breadcrumb basic.

Block Parameter Description
page-header 'include page-headers/headers-breadcrumbs-with-stats' You need to append page-header block parameter as 'include page-headers/headers-breadcrumbs-with-stats'.
JADE Code

To generate page with breadcrumb basic header or template, you need to use following JADE code.

Line no 22-23: page-header block has a page/template specific configuration parameter, in that for breadcrumb basic header you need to define parameter include page-headers/headers-breadcrumbs-with-stats. However you can create your own page header JADE file in pages/page-headers folder.

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 with breadcrumb basic headers-breadcrumbs-with-stats.jade.

            
                block pageVars
                    - var pageTitle    = "Breadcrumbs with stats"
                    - var pageSubTitle = "Page header with breadcrumbs & stats"
                    - var description  = "Page header with page title, breadcrumbs, content title and stats."
                    - var activeMenu   = "headers-breadcrumbs-with-stats"
                
                extends template
                
                append breadcrumbs
                    +breadcrumbs([{url:"index.html",name:"Home"},{url:"#",name:"Page headers"}, {name:"Breadcrumbs with stats"}])
                
                append page-header
                    include page-headers/breadcrumbs-with-stats
                
                //- Include page content in page block
                append content
                    include ../contents/headers-breadcrumbs-with-stats.html
                
                //- Page specific dependency
                //------------------------------
                
                //- Add custom page specific CSS
                block pagecss
                    link(rel='stylesheet', type='text/css', href='../../../app-assets/css/plugins/ui/prism.min.css')
                
                //- Add custom page specific JS
                block pagejs
                    script(type='text/javascript' ,src='../../../app-assets/vendors/js/ui/prism.min.js')
                    //- Sparkline Chart JS
                    script(src='../../../app-assets/vendors/js/charts/jquery.sparkline.min.js', type='text/javascript')
                    script(type='text/javascript' ,src='../../../app-assets/js/scripts/ui/breadcrumbs-with-stats.js')