|
15 | 15 | <div
|
16 | 16 | data-mage-init='{"toolbarEntry": {}}'
|
17 | 17 | class="notifications-wrapper admin__action-dropdown-wrap"
|
18 |
| - data-notification-count="<?php /* @escapeNotVerified */ echo $notificationCount; ?>"> |
| 18 | + data-notification-count="<?= /* @escapeNotVerified */ $notificationCount ?>"> |
19 | 19 | <?php if ($notificationCount > 0) : ?>
|
20 | 20 | <a
|
21 |
| - href="<?php /* @escapeNotVerified */ echo $block->getUrl('adminhtml/notification/index'); ?>" |
| 21 | + href="<?= /* @escapeNotVerified */ $block->getUrl('adminhtml/notification/index') ?>" |
22 | 22 | class="notifications-action admin__action-dropdown"
|
23 | 23 | data-mage-init='{"dropdown":{}}'
|
24 |
| - title="<?php /* @escapeNotVerified */ echo __('Notifications'); ?>" |
| 24 | + title="<?= /* @escapeNotVerified */ __('Notifications') ?>" |
25 | 25 | data-toggle="dropdown">
|
26 | 26 | <span class="notifications-counter">
|
27 |
| - <?php /* @escapeNotVerified */ echo ($notificationCount > $notificationCounterMax) ? $notificationCounterMax . '+' : $notificationCount; ?> |
| 27 | + <?= /* @escapeNotVerified */ ($notificationCount > $notificationCounterMax) ? $notificationCounterMax . '+' : $notificationCount ?> |
28 | 28 | </span>
|
29 | 29 | </a>
|
30 | 30 | <ul
|
31 | 31 | class="admin__action-dropdown-menu"
|
32 |
| - data-mark-as-read-url="<?php /* @escapeNotVerified */ echo $block->getUrl('adminhtml/notification/ajaxMarkAsRead'); ?>"> |
| 32 | + data-mark-as-read-url="<?= /* @escapeNotVerified */ $block->getUrl('adminhtml/notification/ajaxMarkAsRead') ?>"> |
33 | 33 | <?php foreach ($block->getLatestUnreadNotifications() as $notification) : ?>
|
34 | 34 | <?php /** @var $notification \Magento\AdminNotification\Model\Inbox*/ ?>
|
35 | 35 | <li class="notifications-entry<?php if ($notification->getSeverity() == 1): ?> notifications-critical<?php endif; ?>"
|
36 |
| - data-notification-id="<?php /* @escapeNotVerified */ echo $notification->getId(); ?>" |
| 36 | + data-notification-id="<?= /* @escapeNotVerified */ $notification->getId() ?>" |
37 | 37 | data-notification-severity="<?php if ($notification->getSeverity() == 1): ?>1<?php endif; ?>">
|
38 | 38 | <?php
|
39 | 39 | $notificationDescription = $block->escapeHtml($notification->getDescription());
|
40 | 40 | $notificationDescriptionLength = $block->getNotificationDescriptionLength();
|
41 | 41 | ?>
|
42 | 42 | <strong class="notifications-entry-title">
|
43 |
| - <?php echo $block->escapeHtml($notification->getTitle()); ?> |
| 43 | + <?= $block->escapeHtml($notification->getTitle()) ?> |
44 | 44 | </strong>
|
45 | 45 | <?php if (strlen($notificationDescription) > $notificationDescriptionLength) : ?>
|
46 | 46 | <p class="notifications-entry-description _cutted">
|
47 | 47 | <span class="notifications-entry-description-start">
|
48 |
| - <?php /* @escapeNotVerified */ echo substr($notificationDescription, 0, $notificationDescriptionLength); ?> |
| 48 | + <?= /* @escapeNotVerified */ substr($notificationDescription, 0, $notificationDescriptionLength) ?> |
49 | 49 | </span>
|
50 | 50 | <span class="notifications-entry-description-end">
|
51 |
| - <?php /* @escapeNotVerified */ echo substr($notificationDescription, $notificationDescriptionLength); ?> |
| 51 | + <?= /* @escapeNotVerified */ substr($notificationDescription, $notificationDescriptionLength) ?> |
52 | 52 | </span>
|
53 | 53 | </p>
|
54 | 54 | <?php else : ?>
|
55 | 55 | <p class="notifications-entry-description">
|
56 |
| - <?php /* @escapeNotVerified */ echo $notificationDescription; ?> |
| 56 | + <?= /* @escapeNotVerified */ $notificationDescription ?> |
57 | 57 | </p>
|
58 | 58 | <?php endif; ?>
|
59 | 59 | <time class="notifications-entry-time">
|
60 |
| - <?php /* @escapeNotVerified */ echo $block->formatNotificationDate($notification->getDateAdded()); ?> |
| 60 | + <?= /* @escapeNotVerified */ $block->formatNotificationDate($notification->getDateAdded()) ?> |
61 | 61 | </time>
|
62 | 62 | <button
|
63 | 63 | type="button"
|
64 | 64 | class="notifications-close"
|
65 |
| - title="<?php /* @escapeNotVerified */ echo __('Close'); ?>" |
| 65 | + title="<?= /* @escapeNotVerified */ __('Close') ?>" |
66 | 66 | ></button>
|
67 | 67 | </li>
|
68 | 68 | <?php endforeach; ?>
|
69 | 69 | <li class="notifications-entry notifications-entry-last">
|
70 | 70 | <a
|
71 |
| - href="<?php /* @escapeNotVerified */ echo $block->getUrl('adminhtml/notification/index'); ?>" |
| 71 | + href="<?= /* @escapeNotVerified */ $block->getUrl('adminhtml/notification/index') ?>" |
72 | 72 | class="action-tertiary action-more">
|
73 |
| - <?php /* @escapeNotVerified */ echo __('See All (') ?><span class="notifications-counter"><?php /* @escapeNotVerified */ echo $notificationCount ?></span><?php /* @escapeNotVerified */ echo __(' unread)'); ?> |
| 73 | + <?= /* @escapeNotVerified */ __('See All (') ?><span class="notifications-counter"><?= /* @escapeNotVerified */ $notificationCount ?></span><?= /* @escapeNotVerified */ __(' unread)') ?> |
74 | 74 | </a>
|
75 | 75 | </li>
|
76 | 76 | </ul>
|
77 | 77 | <?php else : ?>
|
78 | 78 | <a
|
79 | 79 | class="notifications-action admin__action-dropdown"
|
80 |
| - href="<?php /* @escapeNotVerified */ echo $block->getUrl('adminhtml/notification/index'); ?>" |
81 |
| - title="<?php /* @escapeNotVerified */ echo __('Notifications'); ?>"> |
| 80 | + href="<?= /* @escapeNotVerified */ $block->getUrl('adminhtml/notification/index') ?>" |
| 81 | + title="<?= /* @escapeNotVerified */ __('Notifications') ?>"> |
82 | 82 | </a>
|
83 | 83 | <?php endif; ?>
|
84 | 84 | </div>
|
0 commit comments