* TESTING MULTIPLE OVERLAYS
                $ajxpNode->mergeMetadata(array(
                         "overlay_icon"  => "shared.png"
                    ), true);
                */
            }
        }
    }
    static function filterXml(&$value)
    {
        $instance = AJXP_PluginsService::getInstance()->findPlugin("gui", "ajax");
        if ($instance === false) {
            return;
        }
        $confs = $instance->getConfigs();
        $theme = $confs["GUI_THEME"];
        if (!defined("AJXP_THEME_FOLDER")) {
            define("CLIENT_RESOURCES_FOLDER", AJXP_PLUGINS_FOLDER . "/gui.ajax/res");
            define("AJXP_THEME_FOLDER", CLIENT_RESOURCES_FOLDER . "/themes/" . $theme);
        }
        $value = str_replace(array("AJXP_CLIENT_RESOURCES_FOLDER", "AJXP_CURRENT_VERSION"), array(CLIENT_RESOURCES_FOLDER, AJXP_VERSION), $value);
        if (isset($_SESSION["AJXP_SERVER_PREFIX_URI"])) {
            $value = str_replace("AJXP_THEME_FOLDER", $_SESSION["AJXP_SERVER_PREFIX_URI"] . "plugins/gui.ajax/res/themes/" . $theme, $value);
        } else {
            $value = str_replace("AJXP_THEME_FOLDER", "plugins/gui.ajax/res/themes/" . $theme, $value);
        }
        return $value;
    }
}
AJXP_Controller::registerIncludeHook("xml.filter", array("AJXP_ClientDriver", "filterXml"));
示例#2
0
 public function init($options)
 {
     parent::init($options);
     \AJXP_Controller::registerIncludeHook("repository.list", array($this, "populateRemotes"));
     \AJXP_Controller::registerIncludeHook("repository.search", array($this, "remoteRepositoryById"));
 }