wiki->services->get(ParameterBagInterface::class); if ($params->get("yeswiki_version") == "doryphore-test" || ($params->get("yeswiki_version") == "doryphore" && preg_match("/^4\.(?:[2-9]|[1-9][0-9])\.(?:[2-9]|[1-9][0-9])$/", $params->get("yeswiki_release")))){ if(isset($data) && isset($data['action_groups']) && isset($data['action_groups']['management']) && isset($data['action_groups']['management']['actions'])) { $data['action_groups']['management']['actions']['stats'] = [ 'label' => _t('AB_STATS_LABEL'), ]; } } $paths = $this->twigLoader->getPaths("aceditor"); $curExtDirName = basename(dirname(dirname(dirname(__FILE__)))); $curDir = "tools/$curExtDirName/templates/aceditor"; // render next following custom actions-builder.tpl.html $curPos = array_search($curDir,$paths); if ($curPos !== false) { for ($i=($curPos+1); $i < count($paths); $i++) { if ($paths[$i] != $curDir && $this->hasTemplate("{$paths[$i]}/actions-builder.tpl.html")){ echo $this->render("{$paths[$i]}/actions-builder.tpl.html",compact(['data'])); break; } } }