From 542917efea7615222e13804ec3bfb90db0196eab Mon Sep 17 00:00:00 2001 From: Matthias Mees Date: Sun, 11 May 2014 21:55:06 +0200 Subject: [PATCH] Adapt collapsible plugin description to list of installed plugins. References #125 --- include/functions_plugins_admin.inc.php | 7 +++++-- templates/2k11/admin/plugins.inc.tpl | 4 ++-- templates/2k11/admin/show_plugins.fnc.tpl | 3 ++- templates/2k11/admin/style.css | 21 +++++++-------------- 4 files changed, 16 insertions(+), 19 deletions(-) diff --git a/include/functions_plugins_admin.inc.php b/include/functions_plugins_admin.inc.php index 7a2dc03c..5589e372 100644 --- a/include/functions_plugins_admin.inc.php +++ b/include/functions_plugins_admin.inc.php @@ -152,9 +152,12 @@ function show_plugins($event_only = false, $sidebars = null) $plugin->introspect($bag); $name = htmlspecialchars($bag->get('name')); - $desc = '['.$cname[0].']'; - $desc .= htmlspecialchars($bag->get('description')); + + $desc = '
'; + $desc .= ''.$cname[0].''; + $desc .= '
' . htmlspecialchars($bag->get('description')) . '
'; $desc .= '' . VERSION . ': ' . $bag->get('version') . ''; + $desc .= '
'; $title = serendipity_plugin_api::get_plugin_title($plugin, '[' . $name . ']'); diff --git a/templates/2k11/admin/plugins.inc.tpl b/templates/2k11/admin/plugins.inc.tpl index cf1f96cf..7bf6b86c 100644 --- a/templates/2k11/admin/plugins.inc.tpl +++ b/templates/2k11/admin/plugins.inc.tpl @@ -81,7 +81,7 @@ {if $plug.description}
- [{$plug.class_name}] + {$plug.class_name}
{$plug.description} @@ -89,7 +89,7 @@
{else}
- [{$plug.class_name}] + {$plug.class_name}
{/if} diff --git a/templates/2k11/admin/show_plugins.fnc.tpl b/templates/2k11/admin/show_plugins.fnc.tpl index 6ab015ae..56188963 100644 --- a/templates/2k11/admin/show_plugins.fnc.tpl +++ b/templates/2k11/admin/show_plugins.fnc.tpl @@ -34,8 +34,9 @@ {$CONST.CONFIGURATION} {/if} + {$plugin_data['desc']} +