10 <div
class=
"dashboard-diagram">
11 <div
class=
"dashboard-diagram-switcher">
12 <label
for=
"order_<?= $block->getHtmlId() ?>_period" 13 class=
"label"><?=
__(
'Select Range:') ?></label>
14 <select
name=
"period" id=
"order_<?= $block->getHtmlId() ?>_period" 15 onchange=
"changeDiagramsPeriod(this);" class=
"admin__control-select">
16 <?php
foreach ($this->helper(
'Magento\Backend\Helper\Dashboard\Data')->getDatePeriods() as
$value =>
$label): ?>
17 <?php
if (in_array(
$value, [
'custom'])) {
20 <option
value=
"<?= /* @escapeNotVerified */ $value ?>" 21 <?php
if (
$block->getRequest()->getParam(
'period') ==
$value): ?> selected=
"selected"<?php
endif; ?>
26 <?php
if (
$block->getCount()): ?>
27 <div
class=
"dashboard-diagram-image">
28 <img src=
"<?= /* @escapeNotVerified */ $block->getChartUrl(false) ?>" class=
"dashboard-diagram-chart" alt=
"Chart" title=
"Chart" />
31 <div
class=
"dashboard-diagram-nodata">
32 <span><?=
__(
'No Data Found') ?></span>
$block setTitle( 'CMS Block Title') -> setIdentifier('fixture_block') ->setContent('< h1 >Fixture Block Title</h1 >< a href=" store url</a><p> Config value
if( $block->getCount())(false) ?>" class endif
foreach( $this->helper( 'Magento\Backend\Helper\Dashboard\Data') ->getDatePeriods() as $value=> $label)(in_array($value, ['custom'])) if($block->getRequest() ->getParam('period')==$value) endforeach