Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.39 KB | None | 0 0
  1. <?php
  2. /** @var $block MagentoFrameworkViewElementTemplate */
  3. /** @var $helper MagentoSearchHelperData */
  4. $helper = $this->helper('MagentoSearchHelperData');
  5. ?>
  6. <div class="block block-search">
  7. <div class="block block-title"><strong><?php /* @escapeNotVerified */ echo __('Search'); ?></strong></div>
  8. <div class="block block-content">
  9. <form class="form minisearch" id="search_mini_form" action="<?php /* @escapeNotVerified */ echo $helper->getResultUrl() ?>" method="get">
  10. <div class="field search">
  11. <label class="label" for="search" data-role="minisearch-label">
  12. <span><?php /* @escapeNotVerified */ echo __('Search'); ?></span>
  13. </label>
  14. <div class="control">
  15. <input id="search"
  16. data-mage-init='{"quickSearch":{
  17. "formSelector":"#search_mini_form",
  18. "url":"<?php /* @escapeNotVerified */ echo $block->getUrl('search/ajax/suggest', ['_secure' => $block->getRequest()->isSecure()]); ?>",
  19. "destinationSelector":"#search_autocomplete"}
  20. }'
  21. type="text"
  22. name="<?php /* @escapeNotVerified */ echo $helper->getQueryParamName() ?>"
  23. value="<?php /* @escapeNotVerified */ echo $helper->getEscapedQueryText() ?>"
  24. placeholder="<?php /* @escapeNotVerified */ echo __('Search...'); ?>"
  25. class="input-text"
  26. maxlength="<?php /* @escapeNotVerified */ echo $helper->getMaxQueryLength();?>"
  27. role="combobox"
  28. aria-haspopup="false"
  29. aria-autocomplete="both"
  30. autocomplete="off"/>
  31. <div id="search_autocomplete" class="search-autocomplete"></div>
  32. <?php echo $block->getChildHtml() ?>
  33. </div>
  34. </div>
  35. <div class="actions">
  36. <button type="submit"
  37. title="<?php echo $block->escapeHtml(__('Search')) ?>"
  38. class="action search">
  39. <span><?php /* @escapeNotVerified */ echo __('Search'); ?></span>
  40. </button>
  41. </div>
  42. </form>
  43. </div>
  44. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement