Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
searches.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
9 ?>
10 <?php if (count($block->getCollection()->getItems()) > 0): ?>
11  <div class="searches-results">
12  <?php foreach ($block->getCollection()->getItems() as $item): ?>
13  <span><?= /* @escapeNotVerified */ $item->getQueryText() ?></span><br />
14  <?php endforeach; ?>
15  </div>
16 <?php else: ?>
17  <div class="empty-text"><?= /* @escapeNotVerified */ __('There are no search keywords.') ?></div>
18 <?php endif; ?>
foreach( $this->main as $item) endforeach
Definition: side-menu.phtml:10
__()
Definition: __.php:13
$block
Definition: block.php:8
endif
Definition: 404.phtml:116