Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
search_data.phtml
Go to the documentation of this file.
1 <?php
6 // @codingStandardsIgnoreFile
10 ?>
11 <?php
13 $data = $block->getItems();
14 if (count($data)):?>
15  <dl class="block">
16  <dt class="title"><?= /* @escapeNotVerified */ __($block->getTitle()) ?></dt>
17  <?php foreach ($data as $additionalInfo) : ?>
18  <dd class="item">
19  <a href="<?= /* @escapeNotVerified */ $block->getLink($additionalInfo->getQueryText()) ?>"
20  ><?= $block->escapeHtml($additionalInfo->getQueryText()) ?></a>
21  <?php if ($block->isShowResultsCount()): ?>
22  <span class="count"><?= /* @escapeNotVerified */ $additionalInfo->getResultsCount() ?></span>
23  <?php endif; ?>
24  </dd>
25  <?php endforeach; ?>
26  </dl>
27 <?php endif; ?>
if(!defined( 'PHP_VERSION_ID')||!(PHP_VERSION_ID===70002||PHP_VERSION_ID===70004||PHP_VERSION_ID >=70006))
Definition: bootstrap.php:14
endforeach
__()
Definition: __.php:13
$block
Definition: block.php:8
endif
$data