2011-02-27 12:55:21 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This module is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This module is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* For further informations, see <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
2012-12-21 11:16:56 +01:00
|
|
|
* @link http://www.oxidmodule.com
|
|
|
|
* @link http://www.shopmodule.com
|
2013-02-21 14:49:05 +01:00
|
|
|
* @copyright (C) D3 Data Development (Inh. Thomas Dartsch)
|
2011-02-27 12:55:21 +01:00
|
|
|
*/
|
|
|
|
|
2017-11-27 10:57:34 +01:00
|
|
|
class d3_cfg_googleanalytics extends D3\ModCfg\Application\Controller\Admin\d3_cfg_mod_
|
2011-02-27 12:55:21 +01:00
|
|
|
{
|
2012-12-21 11:20:32 +01:00
|
|
|
/**
|
|
|
|
* @return string
|
|
|
|
*/
|
2011-02-27 12:55:21 +01:00
|
|
|
public function render()
|
|
|
|
{
|
2013-02-21 14:49:05 +01:00
|
|
|
$this->addTplParam('sListClass', 'd3_cfg_googleanalytics_list');
|
|
|
|
$this->addTplParam('sMainClass', 'd3_cfg_googleanalytics_main');
|
2011-02-27 12:55:21 +01:00
|
|
|
return parent::render();
|
|
|
|
}
|
2017-06-29 14:21:45 +02:00
|
|
|
|
|
|
|
public function getAdditionalHeadContent()
|
|
|
|
{
|
|
|
|
$oViewConf = oxRegistry::getConfig()->getActiveView()->getViewConfig();
|
|
|
|
$sScriptUrl = $oViewConf->getModuleUrl('d3_googleanalytics', 'out/src/d3_googleanalytics_test.js');
|
|
|
|
|
|
|
|
return parent::getAdditionalHeadContent().'
|
|
|
|
<script src="'.$sScriptUrl.'"></script>
|
|
|
|
<script type="text/javascript">
|
|
|
|
if(null === document.getElementById("SePiRENuJOBWx")){
|
|
|
|
alert("'.oxRegistry::getLang()->translateString('D3_GOOGLEANALYTICS_ADBLOCKER', null, true).'");
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
';
|
|
|
|
}
|
2014-05-02 23:12:23 +02:00
|
|
|
}
|