Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
85b1cd1d
Commit
85b1cd1d
authored
Nov 16, 2006
by
Penny Leach
Browse files
basic wireframes for adminplugins
parent
4f93715a
Changes
3
Hide whitespace changes
Inline
Side-by-side
htdocs/admin/plugins/pluginconfig.php
View file @
85b1cd1d
...
...
@@ -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
htdocs/theme/default/templates/admin/plugins/index.tpl
View file @
85b1cd1d
{
include
file
=
'header.tpl'
}
<h2>
Administration
</h2>
<h2>
Plugin
Administration
</h2>
{
foreach
from
=
$plugins
key
=
'plugintype'
item
=
'plugins'
}
<h4>
{
str
tag
=
'plugintype'
}
:
{
$plugintype
}
</h4>
...
...
htdocs/theme/default/templates/admin/plugins/pluginconfig.tpl
0 → 100644
View file @
85b1cd1d
{
include
file
=
'header.tpl'
}
<h2>
Plugin Administration:
{
$plugintype
}
:
{
$pluginname
}{
if
$type
}
:
{
$type
}{/
if
}
</h2>
{
include
file
=
'footer.tpl'
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment