File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
app/code/Magento/Persistent/view/frontend Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 4
4
* See COPYING.txt for license details.
5
5
*/
6
6
?>
7
- <?php if ($ block ->getCustomerId ()) :?>
8
- <span>
9
- <a <?= /* @noEscape */ $ block ->getLinkAttributes ()?> ><?= $ block ->escapeHtml (__ ('Not you? ' ));?> </a>
10
- </span>
11
- <?php endif ;?>
12
7
<script type="application/javascript">
13
8
window.persistent = <?= /* @noEscape */ $ block ->getConfig (); ?> ;
9
+ window.notYou = '<span> <a <?= /* @noEscape */ $ block ->getLinkAttributes ()?> >'
10
+ + '<?= $ block ->escapeHtml (__ ("Not you? " ));?> </a></span>';
14
11
</script>
15
12
<script type="text/x-magento-init">
16
13
{
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ define([
40
40
41
41
$ ( this ) . attr ( 'data-bind' , html ) ;
42
42
$ ( this ) . html ( html ) ;
43
+ $ ( this ) . after ( window . notYou ) ;
43
44
} ) ;
44
45
}
45
46
}
You can’t perform that action at this time.
0 commit comments