icons added to all system plugins (preliminary)
This commit is contained in:
parent
abacb36dbe
commit
4b6681487e
14 changed files with 64 additions and 4 deletions
|
@ -8,9 +8,7 @@
|
|||
<?cs loop: order = #0, #100, #1
|
||||
?><?cs # plugins ?><?cs each:x = Settings.PluginList
|
||||
?><?cs if:x.Enabled && x.Types.system && x.Rank == order ?>
|
||||
<li><a href="<?cs call:link('plugins/' + name(x),'','','','') ?>" title="<?cs
|
||||
var:html_escape(x.Link) ?>"><?cs var:html_escape(x.Link) ?></a></li><?cs
|
||||
/if ?><?cs
|
||||
<?cs call:show_plugin(name(x)) ?><?cs /if ?><?cs
|
||||
/each ?><?cs
|
||||
/loop ?>
|
||||
|
||||
|
|
|
@ -79,8 +79,15 @@ def:link(path, attr1, value1, attr2, value2)
|
|||
?><?cs /if ?><?cs
|
||||
/def ?><?cs
|
||||
|
||||
|
||||
def:print_form_header(form_name, action) ?><?cs #
|
||||
# the header of a form - including Setting.LinkAttrs
|
||||
?><form name="<?cs var:html_escape(form_name) ?>" action="<?cs call:link(action,"","","","") ?>" method="post" enctype="application/x-www-form-urlencoded" accept-charset="utf-8"><?cs
|
||||
/def ?><?cs
|
||||
|
||||
|
||||
def:show_plugin(plugin) ?><?cs
|
||||
# show the icon and the name of this plugin
|
||||
?><div<?cs each:x=Settings.PluginList[plugin].Types ?> class="plugin_<?cs var:html_escape(name(x)) ?><?cs /each ?>"><img src="<?cs call:link('plugins/' + plugin, 'icon','x','','') ?>" alt="<?cs var:html_escape('icon: ' + plugin) ?>" /><br/><?cs var:html_escape(Settings.PluginList[plugin].Link) ?></div><?cs
|
||||
/def ?>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue