Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
sorter.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
9 ?>
10 <?php
17 ?>
18 <div class="toolbar-sorter sorter">
19  <label class="sorter-label" for="sorter"><?= /* @escapeNotVerified */ __('Sort By') ?></label>
20  <select id="sorter" data-role="sorter" class="sorter-options">
21  <?php foreach ($block->getAvailableOrders() as $_key => $_order): ?>
22  <option value="<?= /* @escapeNotVerified */ $_key ?>"
23  <?php if ($block->isOrderCurrent($_key)): ?>
24  selected="selected"
25  <?php endif; ?>
26  >
27  <?= $block->escapeHtml(__($_order)) ?>
28  </option>
29  <?php endforeach; ?>
30  </select>
31  <?php if ($block->getCurrentDirection() == 'desc'): ?>
32  <a title="<?= /* @escapeNotVerified */ __('Set Ascending Direction') ?>" href="#" class="action sorter-action sort-desc" data-role="direction-switcher" data-value="asc">
33  <span><?= /* @escapeNotVerified */ __('Set Ascending Direction') ?></span>
34  </a>
35  <?php else: ?>
36  <a title="<?= /* @escapeNotVerified */ __('Set Descending Direction') ?>" href="#" class="action sorter-action sort-asc" data-role="direction-switcher" data-value="desc">
37  <span><?= /* @escapeNotVerified */ __('Set Descending Direction') ?></span>
38  </a>
39  <?php endif; ?>
40 </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
foreach( $block->getAvailableOrders() as $_key=> $_order)($block->isOrderCurrent($_key)) endforeach
Definition: sorter.phtml:27
$parentItem $_order
Definition: default.phtml:12
__()
Definition: __.php:13
$block
Definition: block.php:8
endif
Definition: 404.phtml:116