From f19607c780c14ba3ab2235951b34d158df2a1a67 Mon Sep 17 00:00:00 2001 From: camer0n Date: Mon, 3 Mar 2025 14:17:44 -0800 Subject: [PATCH] Issue #5350 Add default values for admin links when creating a plugin from scratch. --- e107_handlers/e_pluginbuilder_class.php | 27 ++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/e107_handlers/e_pluginbuilder_class.php b/e107_handlers/e_pluginbuilder_class.php index 5f06d952a..add136960 100644 --- a/e107_handlers/e_pluginbuilder_class.php +++ b/e107_handlers/e_pluginbuilder_class.php @@ -658,9 +658,6 @@ $content .= '}'; function pluginXml() { - - //TODO Plugin.xml Form Fields. . - $data = array( 'main' => array('name','lang','version','date', 'compatibility'), 'author' => array('name','url'), @@ -890,6 +887,30 @@ $content .= '}'; $size = 20; break; + case 'adminLinks-url': + // $help = ''; + $default = 'admin_config.php'; + $size = 20; + break; + + case 'adminLinks-description': + $default = 'LAN_CONFIGURE'; + $type = 'text'; + break; + + case 'adminLinks-icon': + $default = 'images/icon_32.png'; + break; + + case 'adminLinks-iconSmall': + $default = 'images/icon_16.png'; + break; + + + case 'adminLinks-icon128': + $default = 'images/icon_128.png'; + break; + default: break;