Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
form.mini.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 ?>
9 <?php
12 $helper = $this->helper(\Magento\Search\Helper\Data::class);
13 ?>
14 <div class="block block-search">
15  <div class="block block-title"><strong><?= /* @escapeNotVerified */ __('Search') ?></strong></div>
16  <div class="block block-content">
17  <form class="form minisearch" id="search_mini_form" action="<?= /* @escapeNotVerified */ $helper->getResultUrl() ?>" method="get">
18  <div class="field search">
19  <label class="label" for="search" data-role="minisearch-label">
20  <span><?= /* @escapeNotVerified */ __('Search') ?></span>
21  </label>
22  <div class="control">
23  <input id="search"
24  data-mage-init='{"quickSearch":{
25  "formSelector":"#search_mini_form",
26  "url":"<?= /* @escapeNotVerified */ $helper->getSuggestUrl()?>",
27  "destinationSelector":"#search_autocomplete"}
28  }'
29  type="text"
30  name="<?= /* @escapeNotVerified */ $helper->getQueryParamName() ?>"
31  value="<?= /* @escapeNotVerified */ $helper->getEscapedQueryText() ?>"
32  placeholder="<?= /* @escapeNotVerified */ __('Search entire store here...') ?>"
33  class="input-text"
34  maxlength="<?= /* @escapeNotVerified */ $helper->getMaxQueryLength() ?>"
35  role="combobox"
36  aria-haspopup="false"
37  aria-autocomplete="both"
38  autocomplete="off"/>
39  <div id="search_autocomplete" class="search-autocomplete"></div>
40  <?= $block->getChildHtml() ?>
41  </div>
42  </div>
43  <div class="actions">
44  <button type="submit"
45  title="<?= $block->escapeHtml(__('Search')) ?>"
46  class="action search">
47  <span><?= /* @escapeNotVerified */ __('Search') ?></span>
48  </button>
49  </div>
50  </form>
51  </div>
52 </div>
$block setTitle( 'CMS Block Title') -> setIdentifier('fixture_block') ->setContent('< h1 >Fixture Block Title</h1 >< a href=" store url</a><p> Config value
Definition: block.php:9
if( $form)() ?>< script > require(['jquery' mage mage
Definition: save.phtml:15
__()
Definition: __.php:13
jquery extjs ext tree mage adminhtml form
Definition: tree.phtml:41
$block
Definition: block.php:8
$helper
Definition: form.mini.phtml:12