2024-08-08 10:21:22 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace D3\GoogleAnalytics4\Modules\Core;
|
|
|
|
|
|
|
|
use OxidEsales\EshopCommunity\Core\Registry;
|
|
|
|
|
2024-08-08 14:16:25 +02:00
|
|
|
class WidgetControl extends WidgetControl_parent{
|
2024-08-08 10:21:22 +02:00
|
|
|
protected function _getStartController() // phpcs:ignore PSR2.Methods.MethodDeclaration.Underscore
|
|
|
|
{
|
|
|
|
/*
|
|
|
|
* array (
|
|
|
|
'force_sid' => '2pistlaubiq58qtg3moudei0la',
|
|
|
|
'lang' => '0',
|
|
|
|
'actcontrol' => 'details',
|
|
|
|
'anid' => '064471',
|
|
|
|
'cl' => 'oxwarticledetails',
|
|
|
|
'cnid' => '159dd0f2fb2bd6e24ace53a0f1913797',
|
|
|
|
'listtype' => 'list',
|
|
|
|
'nocookie' => '1',
|
|
|
|
'oxwparent' => 'details',
|
|
|
|
'sid' => '2pistlaubiq58qtg3moudei0la',
|
|
|
|
'stoken' => 'A22D0F9E',
|
|
|
|
'varselid' =>
|
|
|
|
array (
|
|
|
|
0 => 'b842982bf522aa839bd88221f562fce8',
|
|
|
|
),
|
|
|
|
)
|
|
|
|
*/
|
|
|
|
|
2024-08-08 14:16:25 +02:00
|
|
|
$sScriptName = $_SERVER['SCRIPT_NAME'];
|
|
|
|
if($sScriptName != '/widget.php')
|
|
|
|
{
|
|
|
|
return parent::getFrontendStartControllerKey();
|
|
|
|
}
|
|
|
|
|
2024-08-08 10:21:22 +02:00
|
|
|
$aParameter = $_GET;
|
2024-08-08 14:16:25 +02:00
|
|
|
if(is_null($aParameter['actcontrol'])
|
2024-08-08 10:21:22 +02:00
|
|
|
&& is_null($aParameter['actcontrol'])
|
2024-08-08 14:16:25 +02:00
|
|
|
&& is_null($aParameter['oxwparent'])
|
2024-08-08 10:21:22 +02:00
|
|
|
)
|
|
|
|
{
|
|
|
|
return 'D3\GoogleAnalytics4\Application\Component\Widget\d3GtmStartWidget';
|
|
|
|
}
|
2024-08-08 14:16:25 +02:00
|
|
|
return parent::getFrontendStartControllerKey();
|
2024-08-08 10:21:22 +02:00
|
|
|
}
|
|
|
|
}
|