2011-02-27 00:25:02 +01:00
|
|
|
<?php
|
|
|
|
|
2012-12-21 11:20:32 +01:00
|
|
|
/**
|
|
|
|
* 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/>.
|
|
|
|
*
|
|
|
|
* @link http://www.oxidmodule.com
|
|
|
|
* @link http://www.shopmodule.com
|
|
|
|
* @copyright (C) D3 Data Development
|
|
|
|
*/
|
|
|
|
|
2011-02-27 00:25:02 +01:00
|
|
|
class d3_oxcmp_utils_googleAnalytics extends d3_oxcmp_utils_googleAnalytics_parent
|
|
|
|
{
|
2011-02-27 21:21:16 +01:00
|
|
|
private $_sModId = 'd3_googleanalytics';
|
2012-12-21 11:17:54 +01:00
|
|
|
|
2011-02-27 21:21:16 +01:00
|
|
|
private $_oSet;
|
2012-12-21 11:17:54 +01:00
|
|
|
|
2012-12-21 11:20:32 +01:00
|
|
|
/**
|
|
|
|
* @return null
|
|
|
|
*/
|
2011-02-27 00:25:02 +01:00
|
|
|
public function render()
|
|
|
|
{
|
|
|
|
$ret = parent::render();
|
|
|
|
|
2011-02-27 21:21:16 +01:00
|
|
|
// load module config
|
2012-12-21 11:17:54 +01:00
|
|
|
$this->_oSet = d3_cfg_mod::get($this->_sModId);
|
|
|
|
|
2012-12-21 11:20:32 +01:00
|
|
|
/** @var $oParentView oxView */
|
|
|
|
$oParentView = $this->getParent();
|
|
|
|
$oParentView->addTplParam('blD3GoogleAnalyticsActive', $this->_oSet->getFieldData('oxactive'));
|
|
|
|
$oParentView->addTplParam('oD3GASettings', $this->_oSet);
|
2011-02-27 00:25:02 +01:00
|
|
|
|
|
|
|
return $ret;
|
|
|
|
}
|
|
|
|
}
|