<?php /** * Copyright 2014 Adobe * All Rights Reserved. */ /** * @var \Magento\Framework\View\Element\Template $block * @var \Magento\Framework\Escaper $escaper */ if ($block->getConfig()->isB2bEnabled()) { $adobeFileUrl = $block->getViewFileUrl('Magento_LoginAsCustomerFrontendUi::images/adobe-icon.svg'); } else { $adobeFileUrl = $block->getViewFileUrl('Magento_LoginAsCustomerFrontendUi::images/magento-icon.svg'); } ?> <?php if ($block->getConfig()->isEnabled()): ?> <div class="lac-notification-sticky" data-mage-init='{"sticky":{"container": "body"}}' data-bind="scope: 'loginAsCustomer'" ><div class="lac-notification clearfix" data-bind="visible: isVisible" style="display: none"><div class="top-container"><div class="lac-notification-icon wrapper"><img class="logo-img" src="<?= $escaper->escapeUrl($adobeFileUrl) ?>" alt="Magento" /></div><div class="lac-notification-text wrapper"><span data-bind="html: notificationText"></span></div><div class="lac-notification-links wrapper"><?= $block->getChildHtml('login-as-customer-notice-links') ?></div></div></div></div><script type="text/x-magento-init">
    {
        "*": {
            "Magento_Ui/js/core/app": {
                "components": {
                    "loginAsCustomer": {
                        "component": "Magento_LoginAsCustomerFrontendUi/js/view/loginAsCustomer"
                    }
                }
            }
        }
    }</script><?php endif; ?>