Skip to content

Commit d5c6076

Browse files
committed
debug settings
1 parent c555954 commit d5c6076

4 files changed

Lines changed: 57 additions & 0 deletions

File tree

view/frontend/layout/default.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@
3232
</referenceBlock>
3333

3434
<referenceContainer name="after.body.start">
35+
<block
36+
name="Tagging_GTM.debug-action"
37+
template="Tagging_GTM::luma/debug-action.phtml"
38+
ifconfig="GTM/settings/enabled"
39+
/>
3540
<block
3641
name="Tagging_GTM.iframe"
3742
template="Tagging_GTM::iframe.phtml"

view/frontend/layout/hyva_default.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
1313
<body>
1414
<referenceContainer name="after.body.start">
15+
<block
16+
name="Tagging_GTM.debug-action"
17+
template="Tagging_GTM::hyva/debug-action.phtml"
18+
ifconfig="GTM/settings/enabled"
19+
/>
1520
<block
1621
name="Tagging_GTM.pusher-script"
1722
template="Tagging_GTM::hyva/script-pusher.phtml"
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
declare(strict_types=1);
3+
4+
use Magento\Framework\View\Element\Template;
5+
use Magento\Framework\App\ObjectManager;
6+
7+
/** @var Template $block */
8+
$objectManager = ObjectManager::getInstance();
9+
$request = $objectManager->get(\Magento\Framework\App\RequestInterface::class);
10+
$fullActionName = $request->getFullActionName();
11+
$moduleName = $request->getModuleName();
12+
$controllerName = $request->getControllerName();
13+
$actionName = $request->getActionName();
14+
?>
15+
<div style="position: fixed; top: 0; left: 0; right: 0; background: #ff6b6b; color: white; padding: 10px; z-index: 99999; font-family: monospace; font-size: 14px; box-shadow: 0 2px 10px rgba(0,0,0,0.2);">
16+
<strong>Current Action Debug:</strong><br>
17+
Full Action: <strong><?= $block->escapeHtml($fullActionName) ?></strong><br>
18+
Module: <?= $block->escapeHtml($moduleName) ?> |
19+
Controller: <?= $block->escapeHtml($controllerName) ?> |
20+
Action: <?= $block->escapeHtml($actionName) ?>
21+
</div>
22+
<div style="height: 60px;"></div>
23+
<?php if (isset($hyvaCsp) && $hyvaCsp): ?><?php $hyvaCsp->registerInlineScript() ?><?php endif; ?>
24+
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
declare(strict_types=1);
3+
4+
use Magento\Framework\View\Element\Template;
5+
use Magento\Framework\App\ObjectManager;
6+
7+
/** @var Template $block */
8+
$objectManager = ObjectManager::getInstance();
9+
$request = $objectManager->get(\Magento\Framework\App\RequestInterface::class);
10+
$fullActionName = $request->getFullActionName();
11+
$moduleName = $request->getModuleName();
12+
$controllerName = $request->getControllerName();
13+
$actionName = $request->getActionName();
14+
?>
15+
<div style="position: fixed; top: 0; left: 0; right: 0; background: #ff6b6b; color: white; padding: 10px; z-index: 99999; font-family: monospace; font-size: 14px; box-shadow: 0 2px 10px rgba(0,0,0,0.2);">
16+
<strong>Current Action Debug:</strong><br>
17+
Full Action: <strong><?= $block->escapeHtml($fullActionName) ?></strong><br>
18+
Module: <?= $block->escapeHtml($moduleName) ?> |
19+
Controller: <?= $block->escapeHtml($controllerName) ?> |
20+
Action: <?= $block->escapeHtml($actionName) ?>
21+
</div>
22+
<div style="height: 60px;"></div>
23+

0 commit comments

Comments
 (0)