32 'css' => $this->plugins_css,
33 'js' => $this->plugins_js
45 $js_path = $_SERVER[
"DOCUMENT_ROOT"] .
'/frontend/public/static/js/plugins/' . $name .
'.js';
46 $css_path = $_SERVER[
"DOCUMENT_ROOT"] .
'/frontend/public/static/js/plugins/' . $name .
'.js';
50 if (file_exists($js_path) &&
51 file_exists($css_path)) {
52 $this->plugins_js[] = $name;
53 $this->plugins_css[] = $name;
57 if (file_exists($css_path)) {
58 $this->plugins_css[] = $name;
62 if (file_exists($js_path)) {
63 $this->plugins_js[] = $name;
76 "de_DE" =>
"flag-icon-de",
77 "en_US" =>
"flag-icon-gb");
78 return $codes[$_SESSION[
'lang-code']];
registerPlugin($name, $type=PluginType::NORMAL)