Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
viewed.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
9 /* @var $block \Magento\Reports\Block\Product\Widget\Viewed */
10 ?>
11 
12 <?php
13 $mode = $block->getViewMode();
14 $type = $block->getType() . '-' . $mode;
15 $class = 'widget viewed' . ' ' . $mode;
16 $title = __('Recently Viewed');
17 ?>
18 <div class="block <?= /* @escapeNotVerified */ $class ?>" id="recently_viewed_container" data-mage-init='{"recentlyViewedProducts":{}}' data-count="<?= /* @escapeNotVerified */ $block->getCount() ?>" style="display: none;">
19  <div class="title">
20  <strong><?= /* @escapeNotVerified */ $title ?></strong>
21  </div>
22  <div class="content">
23  <ol class="products list items <?= /* @escapeNotVerified */ $type ?>">
24  </ol>
25  </div>
26 </div>
$type
Definition: viewed.phtml:14
if( $form)() ?>< script > require(['jquery' mage mage
Definition: save.phtml:15
__()
Definition: __.php:13
$block
Definition: block.php:8
$class
Definition: viewed.phtml:15
$mode
Definition: viewed.phtml:13
$title
Definition: viewed.phtml:16