From c02049bf20424dc93f7a2b047a5ea88856ac08b2 Mon Sep 17 00:00:00 2001 From: DanielSeifert Date: Sun, 27 Feb 2011 11:55:21 +0000 Subject: [PATCH] modcfg pages added --- .gitattributes | 9 + .../out/admin/de/d3_googleanalytics_lang.php | 27 ++ .../admin/tpl/d3_cfg_googleanalytics_main.tpl | 238 ++++++++++++++++++ copy_this/admin/d3_cfg_googleanalytics.php | 30 +++ .../admin/d3_cfg_googleanalytics_licence.php | 31 +++ .../admin/d3_cfg_googleanalytics_list.php | 35 +++ .../admin/d3_cfg_googleanalytics_main.php | 32 +++ copy_this/modules/d3GoogleAnalytics/menu.xml | 11 + setup+doku/install_pe_ce.sql | 2 + setup+doku/update.sql | 2 + 10 files changed, 417 insertions(+) create mode 100644 changed_full/440-447/out/admin/de/d3_googleanalytics_lang.php create mode 100644 changed_full/440-447/out/admin/tpl/d3_cfg_googleanalytics_main.tpl create mode 100644 copy_this/admin/d3_cfg_googleanalytics.php create mode 100644 copy_this/admin/d3_cfg_googleanalytics_licence.php create mode 100644 copy_this/admin/d3_cfg_googleanalytics_list.php create mode 100644 copy_this/admin/d3_cfg_googleanalytics_main.php create mode 100644 copy_this/modules/d3GoogleAnalytics/menu.xml create mode 100644 setup+doku/install_pe_ce.sql create mode 100644 setup+doku/update.sql diff --git a/.gitattributes b/.gitattributes index 6c73f7a..c90ff89 100644 --- a/.gitattributes +++ b/.gitattributes @@ -146,12 +146,19 @@ Sources/doku/12_gaTrackingOverview-Dateien/local_extensions.css -text Sources/doku/12_gaTrackingOverview-Dateien/semantic_headers.css -text Sources/doku/12_gaTrackingOverview-Dateien/star_off.gif -text Sources/doku/12_gaTrackingOverview.html -text +changed_full/440-447/out/admin/de/d3_googleanalytics_lang.php -text +changed_full/440-447/out/admin/tpl/d3_cfg_googleanalytics_main.tpl -text changed_full/440-447/out/basic/tpl/_footer.tpl -text changed_full/440-447/out/basic/tpl/basket.tpl -text changed_full/440-447/out/basic/tpl/dyn/mini_basket.tpl -text changed_full/440-447/out/basic/tpl/inc/d3GoogleAnalytics.tpl -text changed_full/440-447/out/basic/tpl/inc/popup_basket.tpl -text changed_full/440-447/out/basic/tpl/user.tpl -text +copy_this/admin/d3_cfg_googleanalytics.php -text +copy_this/admin/d3_cfg_googleanalytics_licence.php -text +copy_this/admin/d3_cfg_googleanalytics_list.php -text +copy_this/admin/d3_cfg_googleanalytics_main.php -text +copy_this/modules/d3GoogleAnalytics/menu.xml -text copy_this/modules/d3GoogleAnalytics/views/d3_oxcmp_utils_googleAnalytics.php -text setup+doku/Google[!!-~]Analytics-Installation.pdf -text setup+doku/adwords_1.png -text @@ -159,3 +166,5 @@ setup+doku/adwords_2.png -text setup+doku/analytics_1.png -text setup+doku/analytics_2.png -text setup+doku/install.txt -text +setup+doku/install_pe_ce.sql -text +setup+doku/update.sql -text diff --git a/changed_full/440-447/out/admin/de/d3_googleanalytics_lang.php b/changed_full/440-447/out/admin/de/d3_googleanalytics_lang.php new file mode 100644 index 0000000..f987054 --- /dev/null +++ b/changed_full/440-447/out/admin/de/d3_googleanalytics_lang.php @@ -0,0 +1,27 @@ + 'ISO-8859-15', +'d3mxd3modules' => 'Dł Module', +'d3mxgoogleanalytics' => 'Google Analytics', +'d3mxgoogleanalytics_settings' => 'Einstellungen', +'d3tbclgoogleanalytics_main' => 'Stamm', + +'D3_GOOGLEANALYTICS_CFG_TITLE' => 'Google Analytics Schnittstelle - Einstellungen', +); + + +/* + +[{ oxmultilang ident="GENERAL_YOUWANTTODELETE" }] + + +*/ diff --git a/changed_full/440-447/out/admin/tpl/d3_cfg_googleanalytics_main.tpl b/changed_full/440-447/out/admin/tpl/d3_cfg_googleanalytics_main.tpl new file mode 100644 index 0000000..8057f85 --- /dev/null +++ b/changed_full/440-447/out/admin/tpl/d3_cfg_googleanalytics_main.tpl @@ -0,0 +1,238 @@ +[{include file="headitem.tpl" title="D3_GOOGLEANALYTICS_CFG_TITLE"|oxmultilangassign}] + + + + + + + +[{ if $readonly}] + [{assign var="readonly" value="readonly disabled"}] +[{else}] + [{assign var="readonly" value=""}] +[{/if}] + +
+ [{ $oViewConf->getHiddenSid() }] + + + + +
+ +
+ [{ $oViewConf->getHiddenSid() }] + + + + + + + +
+ + + + + + +
+ + + + + + + + + +
+ [{oxmultilang ident="D3_CFG_MOD_GENERAL_MODULEACTIVE"}] + + + d3_cfg_mod__oxactive->value == 1}]checked[{/if}]> +
+ [{if $value->d3_cfg_mod__blMultiVariants_debug == 1}][{/if}][{oxmultilang ident="D3_CFG_MOD_GENERAL_DEBUGACTIVE"}][{if $value->d3_cfg_mod__blMultiVariants_debug == 1}][{/if}]  + + + d3_cfg_mod__blMultiVariants_debug == 1}]checked[{/if}]> +
+
+ [{assign var="blD3HasLog" value=$oView->checkD3Log() }] + + + + + + + + + +
+ [{if $blD3HasLog}] + [{oxmultilang ident="D3_CFG_MOD_GENERAL_MODULELOGGING"}] + [{/if}] + + [{if $blD3HasLog}] + + [{/if}] +
+   + +   +
+
+ + [{if $oView->getValueStatus() == 'error'}] +
+ [{oxmultilang ident="D3_CFG_MOD_GENERAL_NOCONFIG_DESC"}]
+ + + [{else}] + +
+
+ + + [{oxmultilang ident="D3_MULTIVAR_MAIN"}] + + +
+
+ [{oxmultilang ident="D3_MULTIVAR_MAIN_USEAJAX"}] +
+
+ + d3_cfg_mod__blMultiVariants_useAjax == 1}]checked[{/if}]> + [{ oxinputhelp ident="D3_MULTIVAR_MAIN_USEAJAX_DESC" }] +
+
+
+
+
+ [{oxmultilang ident="D3_MULTIVAR_MAIN_SEPARATOR"}] +
+
+ + [{ oxinputhelp ident="D3_MULTIVAR_MAIN_SEPARATOR_DESC" }] +
+
+
+
+
+ + + + + +

+ + +
+
+
+ + [{/if}] + + +[{include file="bottomitem.tpl"}] + + \ No newline at end of file diff --git a/copy_this/admin/d3_cfg_googleanalytics.php b/copy_this/admin/d3_cfg_googleanalytics.php new file mode 100644 index 0000000..122a062 --- /dev/null +++ b/copy_this/admin/d3_cfg_googleanalytics.php @@ -0,0 +1,30 @@ +. + * + * @link http://www.oxidmodule.com + * @link http://www.shopmodule.com + * @copyright (C) D3 Data Development + */ + +class d3_cfg_multivariants extends d3_cfg_mod_ +{ + + public function render() + { + $this->_aViewData['sListClass'] = 'd3_cfg_googleanalytics_list'; + $this->_aViewData['sMainClass'] = 'd3_cfg_googleanalytics_main'; + return parent::render(); + } +} \ No newline at end of file diff --git a/copy_this/admin/d3_cfg_googleanalytics_licence.php b/copy_this/admin/d3_cfg_googleanalytics_licence.php new file mode 100644 index 0000000..56b294d --- /dev/null +++ b/copy_this/admin/d3_cfg_googleanalytics_licence.php @@ -0,0 +1,31 @@ +. + * + * @link http://www.oxidmodule.com + * @link http://www.shopmodule.com + * @copyright (C) D3 Data Development + */ + + +class d3_cfg_googleanalytics_licence extends d3_cfg_mod_licence { + + protected $_sModId = 'd3_googleanalytics'; + + protected $_hasLicence = false; + + protected $_hasNewsletterForm = false; + + protected $_hasUpdate = true; +} diff --git a/copy_this/admin/d3_cfg_googleanalytics_list.php b/copy_this/admin/d3_cfg_googleanalytics_list.php new file mode 100644 index 0000000..868e0de --- /dev/null +++ b/copy_this/admin/d3_cfg_googleanalytics_list.php @@ -0,0 +1,35 @@ +. + * + * @link http://www.oxidmodule.com + * @link http://www.shopmodule.com + * @copyright (C) D3 Data Development + */ + +class d3_cfg_multivariants_list extends d3_cfg_mod_list +{ + + protected $_blD3ShowLangSwitch = true; + + public function render() + { + parent::render(); + + $this->_aViewData["default_edit"] = "d3_cfg_googleanalytics_main"; + + return $this->_sThisTemplate; + } + +} \ No newline at end of file diff --git a/copy_this/admin/d3_cfg_googleanalytics_main.php b/copy_this/admin/d3_cfg_googleanalytics_main.php new file mode 100644 index 0000000..5ff8069 --- /dev/null +++ b/copy_this/admin/d3_cfg_googleanalytics_main.php @@ -0,0 +1,32 @@ +. + * + * @link http://www.oxidmodule.com + * @link http://www.shopmodule.com + * @copyright (C) D3 Data Development + */ + +class d3_cfg_googleanalytics_main extends d3_cfg_mod_main +{ + protected $_sThisTemplate = 'd3_cfg_googleanalytics_main.tpl'; + + protected $_sModId = 'd3_googleanalytics'; + + public function checkD3Log() + { + // there are no reasons to log anything + return false; + } +} \ No newline at end of file diff --git a/copy_this/modules/d3GoogleAnalytics/menu.xml b/copy_this/modules/d3GoogleAnalytics/menu.xml new file mode 100644 index 0000000..7f227d3 --- /dev/null +++ b/copy_this/modules/d3GoogleAnalytics/menu.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/setup+doku/install_pe_ce.sql b/setup+doku/install_pe_ce.sql new file mode 100644 index 0000000..131b87a --- /dev/null +++ b/setup+doku/install_pe_ce.sql @@ -0,0 +1,2 @@ +REPLACE INTO `d3_cfg_mod` (`OXID`, `OXSHOPID`, `OXMODID`, `OXNAME`, `OXACTIVE`, `OXSERIAL`, `OXINSTALLDATE`, `OXVERSION`, `OXSHOPVERSION`, `OXISMODULELOG`, `OXREQUIREMENTS`, `OXVALUE`, `OXVALUE_1`, `OXVALUE_2`, `OXREVISION`, `OXNEWREVISION`) VALUES +('504bcce44c2539d8905980e80630ddf5', 'oxbaseshop', 'd3_googleanalytics', 'Google Analytics', 1, '', NOW(), '2.1.0', 'PE4 / CE4', 0, '', '', '', '', 9, 9); \ No newline at end of file diff --git a/setup+doku/update.sql b/setup+doku/update.sql new file mode 100644 index 0000000..421a77a --- /dev/null +++ b/setup+doku/update.sql @@ -0,0 +1,2 @@ +# ==== 2.0.0 PE4 => 2.1.0 PE4 / EE4 / CE4 ==== +UPDATE `d3_cfg_mod` SET `OXVERSION` = '2.1.0', `OXINSTALLDATE` = NOW(), `OXREVISION` = '9', `OXNEWREVISION` = '9' WHERE `OXMODID` = 'd3_googleanalytics';