moved small system plugin icons to separate macro

added small system plugin icons macro call to main template
small system plugin icons disabled for now (discussion?)
This commit is contained in:
lars 2007-02-08 02:16:41 +00:00
parent 706417b330
commit 759b5bcf16
6 changed files with 27 additions and 24 deletions

View File

@ -2,25 +2,6 @@
<?cs call:handle_messages() ?>
<?cs # sort the Plugins - using the most stupid way :)
TODO: this is just an example, remove it or put in macros ?>
<div class="plugin_system_small">
<?cs loop: order = #0, #100, #1
?><?cs # plugins ?><?cs each:x = Settings.PluginList
?><?cs if:x.Types.system && x.Visible.preferences && x.Rank == order ?>
<a href="<?cs
call:link(name(x),'','','','') ?>" title="<?cs
var:html_escape(Lang.Plugins[name(x)].Link) ?>"><img src="<?cs
call:link('icons/' + name(x), '','','','') ?>" alt="<?cs
var:html_escape('icon: ' + x.Name) ?>" />
<?cs
/if ?><?cs
/each ?><?cs
/loop ?>
</div>
<fieldset>
<legend>
<?cs call:show_plugin_icon() ?>

View File

@ -18,7 +18,8 @@
</legend>
<?cs call:show_help(Lang.Plugins.plugin_manager.Help.VolumePlugins) ?>
<table class="plugin_list">
<table class="plugin_list" id="volume_plugins"><?cs
# 'id' is used as a link anchor ?>
<tr>
<th width="40%"></th>
<th colspan="2"><?cs var:html_escape(Lang.Plugins.plugin_manager.Text.WhereVisible) ?></th>
@ -78,7 +79,8 @@
<?cs var:html_escape(Lang.Plugins.plugin_manager.Title.SystemPlugins) ?>
</legend>
<?cs call:show_help(Lang.Plugins.plugin_manager.Help.SystemPlugins) ?>
<table class="plugin_list">
<table class="plugin_list" id="system_plugins"><?cs
# 'id' is used as a link anchor ?>
<tr>
<th width="40%"></th>
<th colspan="2"><?cs var:html_escape(Lang.Plugins.plugin_manager.Text.WhereVisible) ?></th>

View File

@ -240,4 +240,23 @@ def:show_plugin_title() ?>
def:show_plugin_icon() ?>
<img alt="icon: <?cs var:html_escape(Data.ActivePlugin) ?>" src="icons/<?cs
var:html_escape(Data.ActivePlugin) ?>" /> <?cs
/def ?>
/def ?><?cs
# show the icons of all system plugins ?><?cs
def:show_system_plugin_overview() ?>
<div class="plugin_system_overview">
<?cs loop: order = #0, #100, #1
?><?cs # plugins ?><?cs each:x = Settings.PluginList
?><?cs if:x.Types.system && x.Visible.preferences && x.Rank == order ?>
<a href="<?cs
call:link(name(x),'','','','') ?>" title="<?cs
var:html_escape(Lang.Plugins[name(x)].Link) ?>"><img src="<?cs
call:link('icons/' + name(x), '','','','') ?>" alt="<?cs
var:html_escape('icon: ' + x.Name) ?>" />
<?cs
/if ?><?cs
/each ?><?cs
/loop ?>
</div>
<?cs /def ?>

View File

@ -10,6 +10,7 @@
<?cs include:Settings.TemplateFile ?>
<?cs include:Settings.TemplateDir + '/show_volume_footer.cs' ?>
<?cs else ?>
<?cs # remove or enable??? call:show_system_plugin_overview() ?>
<?cs include:Settings.TemplateFile ?>
<?cs /if ?>

View File

@ -349,7 +349,7 @@ div.plugin_system_title img {
padding-right: 10px;
}
div.plugin_system_small img {
div.plugin_system_overview img {
float: left;
width: 24px;
height: 24px;