Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
link.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 ?>
9 <li class="item link compare" data-bind="scope: 'compareProducts'" data-role="compare-products-link">
10  <a class="action compare no-display" title="<?= /* @escapeNotVerified */ __('Compare Products') ?>"
11  data-bind="attr: {'href': compareProducts().listUrl}, css: {'no-display': !compareProducts().count}"
12  >
13  <?= /* @escapeNotVerified */ __('Compare Products') ?>
14  <span class="counter qty" data-bind="text: compareProducts().countCaption"></span>
15  </a>
16 </li>
17 <script type="text/x-magento-init">
18 {"[data-role=compare-products-link]": {"Magento_Ui/js/core/app": <?= /* @escapeNotVerified */ $block->getJsLayout() ?>}}
19 </script>
__()
Definition: __.php:13
$block
Definition: block.php:8