Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
totalbar.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
9 ?>
10 <?php if (sizeof($block->getTotals()) > 0): ?>
11 <div class="dashboard-totals" id="dashboard_diagram_totals">
12  <ul class="dashboard-totals-list">
13  <?php foreach ($block->getTotals() as $_total): ?>
14  <li class="dashboard-totals-item">
15  <span class="dashboard-totals-label"><?= /* @escapeNotVerified */ $_total['label'] ?></span>
16  <strong class="dashboard-totals-value">
17  <?= /* @escapeNotVerified */ $_total['value'] ?>
18  <span class="dashboard-totals-decimals"><?= /* @escapeNotVerified */ $_total['decimals'] ?></span>
19  </strong>
20  </li>
21  <?php endforeach; ?>
22  </ul>
23 </div>
24 <?php endif; ?>
if(sizeof( $block->getTotals()) > 0)($block->getTotals() as $_total) endif
Definition: totalbar.phtml:10
$block
Definition: block.php:8
if( $totals &&count( $totals) > 0)( $totals as $total)($total['grand']) endforeach
Definition: totalbar.phtml:18