Commit 85b1cd1d authored by Penny Leach's avatar Penny Leach
Browse files

basic wireframes for adminplugins

parent 4f93715a
......@@ -27,14 +27,32 @@
define('INTERNAL', 1);
define('ADMIN', 1);
require(dirname(dirname(dirname(__FILE__))) . '/init.php');
require_once('form.php');
$plugintype = param_alpha('plugintype');
$pluginname = param_alpha('pluginname');
$type = param_alpha('type', null);
if ($plugintype == 'artefact' && empty($type)) {
safe_require($plugintype, $pluginname);
if ($plugintype == 'artefact') {
$type = param_alpha('type');
$classname = generate_artefact_class_name($type);
}
else {
$type = null;
$classname = generate_class_name($plugintype, $pluginname);
}
if (!call_static_method($classname, 'has_config')) {
throw new InvalidArgumentException("$classname doesn't have config options available");
}
$form = call_static_method($classname, 'get_config_options');
$smarty = smarty();
//$smarty->assign('form', form($form));
$smarty->assign('plugintype', $plugintype);
$smarty->assign('pluginname', $pluginname);
$smarty->assign('type', $type);
$smarty->display('admin/plugins/pluginconfig.tpl');
?>
\ No newline at end of file
{include file='header.tpl'}
<h2>Administration</h2>
<h2>Plugin Administration</h2>
{foreach from=$plugins key='plugintype' item='plugins'}
<h4>{str tag='plugintype'}: {$plugintype}</h4>
......
{include file='header.tpl'}
<h2>Plugin Administration: {$plugintype}: {$pluginname}{if $type}: {$type}{/if}</h2>
{include file='footer.tpl'}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment