Add ids as link targets to spartacus web pages.

Using the plugin name should make for unique
ids without illegal characters.

Signed-off-by: Thomas Hochstein <thh@inter.net>
This commit is contained in:
Thomas Hochstein 2018-03-18 10:50:44 +01:00
parent f0fb6e0b18
commit c2a9c691df

View file

@ -326,7 +326,7 @@ class emerge_spartacus {
$author = isset($plugin_data['properties']['author']) ? $plugin_data['properties']['author'] : 'Serendipity Team';
$x = '';
$x .= '<div class="plugin">';
$x .= '<div class="plugin" id="' . $this->encode($plugin_name) . '">';
$x .= '<h4 class="plugin_summary">' . $this->encode($plugin_data['properties']['name']) . '</h4>';
$x .= '<dl class="plugin_meta">';
$x .= '<dt class="plugin_name">' . $this->encode($plugin_name) . '</dt>';