diff --git a/application/views/system/infocenter/infocenterDetails.php b/application/views/system/infocenter/infocenterDetails.php old mode 100644 new mode 100755 index 07075773f..6ebf5494b --- a/application/views/system/infocenter/infocenterDetails.php +++ b/application/views/system/infocenter/infocenterDetails.php @@ -10,6 +10,7 @@ 'tablesorter' => true, 'tinymce' => true, 'sbadmintemplate' => true, + 'addons' => true, 'customCSSs' => array( 'skin/admintemplate.css', diff --git a/application/views/system/infocenter/stammdaten.php b/application/views/system/infocenter/stammdaten.php old mode 100644 new mode 100755 index eaf27de0b..c666a3ac4 --- a/application/views/system/infocenter/stammdaten.php +++ b/application/views/system/infocenter/stammdaten.php @@ -58,6 +58,7 @@ kontakttyp); ?> + kontakttyp.'">';?> kontakttyp === 'email'): ?> + '?> anmerkung; ?> @@ -106,4 +108,4 @@ - \ No newline at end of file + diff --git a/application/views/templates/FHC-Header.php b/application/views/templates/FHC-Header.php old mode 100644 new mode 100755 index 00d461476..b309f4a22 --- a/application/views/templates/FHC-Header.php +++ b/application/views/templates/FHC-Header.php @@ -15,6 +15,7 @@ $fontawesome = isset($fontawesome) ? $fontawesome : false; $tablesorter = isset($tablesorter) ? $tablesorter : false; $tinymce = isset($tinymce) ? $tinymce : false; $sbadmintemplate = isset($sbadmintemplate) ? $sbadmintemplate : false; +$addons = isset($addons) ? $addons : false; /** * Print the given title of the page @@ -76,6 +77,16 @@ function _generateJSsInclude($JSs) } } +/** + * Generates global JS-Object to pass parms to addon-js-functions + */ +function _generateAddonDataStorageObject() +{ + echo '\n"; +} + ?> @@ -142,6 +153,28 @@ function _generateJSsInclude($JSs) _generateJSsInclude('vendor/BlackrockDigital/startbootstrap-sb-admin-2/dist/js/sb-admin-2.min.js'); } + // load addon hooks JS + if ($addons === true) + { + _generateAddonDataStorageObject(); + + $aktive_addons = array_filter(explode(";", ACTIVE_ADDONS)); + $called_from = $this->router->directory.$this->router->class.'/'.$this->router->method; + foreach ($aktive_addons as $addon) + { + $hookfile = DOC_ROOT.'addons/'.$addon.'/hooks.config.inc.php'; + if (file_exists($hookfile)) + { + include($hookfile); + if (key_exists($called_from, $js_hooks)) + { + foreach ($js_hooks[$called_from] as $js_file) + _generateJSsInclude('addons/'.$addon.'/'.$js_file); + } + } + } + } + // Eventually required JS _generateJSsInclude($customJSs); ?>