summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2013-08-04 20:24:19 +0200
committerAndreas Gohr <andi@splitbrain.org>2013-08-04 20:24:19 +0200
commit1dd40c86eb47f24a2e7c7022592fd9cd25ff07f2 (patch)
treedaf98b5872b3fe958284307d7c01d47a5c1e05d7 /lib
parent5d7f3164ea4199d7cf1215a1a8a5785218c9e149 (diff)
downloadrpg-1dd40c86eb47f24a2e7c7022592fd9cd25ff07f2.tar.gz
rpg-1dd40c86eb47f24a2e7c7022592fd9cd25ff07f2.tar.bz2
added intros
Diffstat (limited to 'lib')
-rw-r--r--lib/plugins/extension/admin.php6
-rw-r--r--lib/plugins/extension/helper/gui.php22
-rw-r--r--lib/plugins/extension/lang/en/intro_plugins.txt1
-rw-r--r--lib/plugins/extension/lang/en/intro_search.txt1
-rw-r--r--lib/plugins/extension/lang/en/intro_templates.txt1
5 files changed, 25 insertions, 6 deletions
diff --git a/lib/plugins/extension/admin.php b/lib/plugins/extension/admin.php
index 39ce9e947..ee180192d 100644
--- a/lib/plugins/extension/admin.php
+++ b/lib/plugins/extension/admin.php
@@ -125,14 +125,14 @@ class admin_plugin_extension extends DokuWiki_Admin_Plugin {
switch($this->gui->currentTab()){
case 'search':
- echo 'search interface';
+ $this->gui->tabSearch();
break;
case 'templates':
- $this->gui->templateList();
+ $this->gui->tabTemplates();
break;
case 'plugins':
default:
- $this->gui->pluginList();
+ $this->gui->tabPlugins();
}
diff --git a/lib/plugins/extension/helper/gui.php b/lib/plugins/extension/helper/gui.php
index 41afc2069..7c83a3854 100644
--- a/lib/plugins/extension/helper/gui.php
+++ b/lib/plugins/extension/helper/gui.php
@@ -16,11 +16,15 @@ class helper_plugin_extension_gui extends DokuWiki_Plugin {
protected $tabs = array('plugins', 'templates', 'search');
-
- public function pluginList(){
+ /**
+ * display the plugin tab
+ */
+ public function tabPlugins(){
/* @var Doku_Plugin_Controller $plugin_controller */
global $plugin_controller;
+ echo $this->locale_xhtml('intro_plugins');
+
$pluginlist = $plugin_controller->getList('', true);
/* @var helper_plugin_extension_extension $extension */
$extension = $this->loadHelper('extension_extension');
@@ -35,7 +39,12 @@ class helper_plugin_extension_gui extends DokuWiki_Plugin {
$list->render();
}
- public function templateList(){
+ /**
+ * Display the template tab
+ */
+ public function tabTemplates(){
+ echo $this->locale_xhtml('intro_templates');
+
// FIXME do we have a real way?
$tpllist = glob(DOKU_INC.'lib/tpl/*', GLOB_ONLYDIR);
$tpllist = array_map('basename', $tpllist);
@@ -54,6 +63,13 @@ class helper_plugin_extension_gui extends DokuWiki_Plugin {
}
/**
+ * Display the search tab
+ */
+ public function tabSearch(){
+ echo $this->locale_xhtml('intro_search');
+ }
+
+ /**
* Print the tab navigation
*
* @fixme style active one
diff --git a/lib/plugins/extension/lang/en/intro_plugins.txt b/lib/plugins/extension/lang/en/intro_plugins.txt
new file mode 100644
index 000000000..ef180135e
--- /dev/null
+++ b/lib/plugins/extension/lang/en/intro_plugins.txt
@@ -0,0 +1 @@
+Here you can view, enable and disable installed plugins. \ No newline at end of file
diff --git a/lib/plugins/extension/lang/en/intro_search.txt b/lib/plugins/extension/lang/en/intro_search.txt
new file mode 100644
index 000000000..003c99c61
--- /dev/null
+++ b/lib/plugins/extension/lang/en/intro_search.txt
@@ -0,0 +1 @@
+Here you can search for available plugins and templates for DokuWiki. Be sure to read more about Plugin Security before installing FIXME add link \ No newline at end of file
diff --git a/lib/plugins/extension/lang/en/intro_templates.txt b/lib/plugins/extension/lang/en/intro_templates.txt
new file mode 100644
index 000000000..2b3af727b
--- /dev/null
+++ b/lib/plugins/extension/lang/en/intro_templates.txt
@@ -0,0 +1 @@
+Here you can view, enable and disable installed templates. Note that only one template can be activated at a time. \ No newline at end of file