Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
view.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
10 ?>
11 
12 <?php if ($this->helper('Magento\Wishlist\Helper\Data')->isAllow()) : ?>
13  <?= ($block->getChildHtml('wishlist.rss.link')) ?>
14  <form class="form-wishlist-items" id="wishlist-view-form"
15  data-mage-init='{"wishlist":{
16  "addToCartUrl":<?= /* @noEscape */ $block->getItemAddToCartParams("%item%") ?>,
17  "addAllToCartUrl":<?= /* @noEscape */ $block->getAddAllToCartParams() ?>,
18  "commentString":""},
19  "validation": {}}' action="<?= $block->escapeUrl($block->getUrl('wishlist/index/update', ['wishlist_id' => $block->getWishlistInstance()->getId()])) ?>" method="post">
20  <?= $block->getChildHtml('top') ?>
21  <?php if ($block->hasWishlistItems()): ?>
22  <?= $block->getBlockHtml('formkey') ?>
23  <?php $block->getChildBlock('items')->setItems($block->getWishlistItems()); ?>
24  <?= $block->getChildHtml('items') ?>
25  <?php else: ?>
26  <div class="message info empty"><span><?= $block->escapeHtml(__('You have no items in your wish list.')) ?></span></div>
27  <?php endif ?>
28  <?= $block->getChildHtml('bottom') ?>
29  <div class="actions-toolbar">
30  <div class="primary">
31  <?= $block->getChildHtml('control_buttons') ?>
32  </div>
33  <div class="secondary">
34  <a href="<?= $block->escapeUrl($block->getBackUrl()) ?>" class="action back">
35  <span><?= $block->escapeHtml(__('Back')) ?></span>
36  </a>
37  </div>
38  </div>
39  </form>
40  <script id="form-tmpl" type="text/x-magento-template">
41  <form id="wishlist-hidden-form" method="post" action="<%- data.url %>" class="no-display">
42  <% if (data.qty) { %>
43  <input name="qty" value="<%- data.qty %>">
44  <% } %>
45 
46  <% if (data.item) { %>
47  <input name="item" value="<%- data.item %>">
48  <% } %>
49 
50  <% if (data.entity) { %>
51  <input name="entity" value="<%- data.entity %>">
52  <% } %>
53  </form>
54  </script>
55 <?php endif ?>
$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
if( $block->canShowBlock())( 'Shop By') ?></strong ></div >< div classif( $block->getLayer() ->getState() ->getFilters())() ?>" class endif
Definition: view.phtml:27