File tree Expand file tree Collapse file tree 3 files changed +22
-6
lines changed
app/code/Magento/AdminAdobeIms Expand file tree Collapse file tree 3 files changed +22
-6
lines changed Original file line number Diff line number Diff line change 11
11
use Magento \Framework \View \Result \Layout ;
12
12
use Magento \AdminAdobeIms \Service \ImsConfig ;
13
13
14
+ /**
15
+ * Plugin to add Adobe ims layout handle when module is active
16
+ */
14
17
class AddAdobeImsLayoutHandlePlugin
15
18
{
16
19
/** @var ImsConfig */
@@ -26,6 +29,8 @@ public function __construct(
26
29
}
27
30
28
31
/**
32
+ * Add our admin hand only when on the login page and module is active
33
+ *
29
34
* @param Layout $subject
30
35
* @param Layout $result
31
36
* @return Layout
Original file line number Diff line number Diff line change @@ -13,21 +13,32 @@ $viewModel = $block->getLinkViewModel();
13
13
?>
14
14
<?php if ($ viewModel ->isActive ()): ?>
15
15
<div class="adobe-ims-sign-in-modal spectrum-Modal is-open spectrum-Typography">
16
- <div class="spectrum-Dialog spectrum-Dialog--medium spectrum-Dialog--noDivider" role="dialog" tabindex="-1" aria-modal="true">
16
+ <div class="spectrum-Dialog spectrum-Dialog--medium spectrum-Dialog--noDivider"
17
+ role="dialog"
18
+ tabindex="-1"
19
+ aria-modal="true">
17
20
<div class="spectrum-Dialog-grid">
18
- <h1 class="spectrum-Dialog-heading spectrum-Heading spectrum-Heading--sizeXL"><?= $ escaper ->escapeHtml (__ ('Sign In ' )) ?> </h1>
21
+ <h1 class="spectrum-Dialog-heading spectrum-Heading spectrum-Heading--sizeXL">
22
+ <?= $ escaper ->escapeHtml (__ ('Sign In ' )) ?>
23
+ </h1>
19
24
20
25
<section class="adobe-ims-sign-in-dialog spectrum-Dialog-content">
21
26
<?= $ block ->getChildHtml ('messages ' ) ?>
22
27
23
28
<p class="spectrum-Body spectrum-Body--sizeM adobe-ims-organization-note">
24
- <?= $ escaper ->escapeHtml (__ ('This Commerce instance is managed by an organization. Contact your organization administrator to request access. ' )) ?>
29
+ <?= $ escaper ->escapeHtml (
30
+ __ (
31
+ 'This Commerce instance is managed by an organization. Contact your organization administrator to request access. '
32
+ )
33
+ ) ?>
25
34
</p>
26
35
27
36
<div class="adobe-ims-button">
28
37
<button class="spectrum-Button spectrum-Button--fill spectrum-Button--accent spectrum-Button--sizeL"
29
38
onclick="location.href='<?= $ escaper ->escapeUrl ($ viewModel ->getButtonLink ()) ?> '">
30
- <span class="spectrum-Button-label"><?= $ escaper ->escapeHtml (__ ('Sign in with Adobe ID ' )) ?> </span>
39
+ <span class="spectrum-Button-label">
40
+ <?= $ escaper ->escapeHtml (__ ('Sign in with Adobe ID ' )) ?>
41
+ </span>
31
42
</button>
32
43
</div>
33
44
</section>
Original file line number Diff line number Diff line change 12
12
<svg class="spectrum-Icon spectrum-Icon--sizeM spectrum-InLineAlert-icon" focusable="false" aria-hidden="true">
13
13
<use xlink:href="#spectrum-icon-18-Alert" />
14
14
</svg>
15
- <div class="spectrum-InLineAlert-header"><?php echo $ block ->getData ('headline ' ); ?> </div>
16
- <div class="spectrum-InLineAlert-content"><?php echo $ block ->getData ('message ' ); ?> </div>
15
+ <div class="spectrum-InLineAlert-header"><?= $ block ->getData ('headline ' ); ?> </div>
16
+ <div class="spectrum-InLineAlert-content"><?= $ block ->getData ('message ' ); ?> </div>
17
17
</div>
18
18
You can’t perform that action at this time.
0 commit comments