Skip to content

Commit

Permalink
Merge pull request #621 from th-h/thh-add-spartacus-links
Browse files Browse the repository at this point in the history
Add Spartacus links to plugin lists.
  • Loading branch information
th-h committed Aug 11, 2019
2 parents 53f6334 + 4e88c87 commit 6924115
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/NEWS
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
Version 2.4-alpha1
------------------------------------------------------------------------

* Add Spartacus links ("more info") to plugin lists.

* Fix/Change: Wording of plugin display ("version") and PHP/smarty
variable names.

* Spartacus: Fix caching of plugin lists in getCachedPlugins().

Version 2.3.0 (10.08.2019)
------------------------------------------------------------------------
Expand Down
9 changes: 9 additions & 0 deletions include/functions_plugins_admin.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,15 @@ function show_plugins($event_only = false, $sidebars = null)
$desc = '<details class="plugin_data">';
$desc .= '<summary><var class="perm_name">'.$cname[0].'</var></summary>';
$desc .= '<div class="plugin_desc clearfix">' . serendipity_specialchars($bag->get('description')) . '</div>';
if (!empty($plugin_data['path'])) {
if ($event_only) {
$spartacus_type = 'event';
} else {
$spartacus_type = 'sidebar';
}
$desc .= sprintf('<span class="block_level"><a href="http://spartacus.s9y.org/index.php?mode=bygroups_%s_%s#%s">%s</a></span>',
$spartacus_type, $serendipity['lang'], $plugin_data['path'], PLUGIN_LINK_SPARTACUS);
}
$desc .= '<span class="block_level">' . ucfirst(VERSION) . ': ' . $bag->get('version') . '</span>';
$desc .= '</details>';

Expand Down
2 changes: 2 additions & 0 deletions lang/UTF-8/serendipity_lang_de.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -1130,3 +1130,5 @@
@define('MAINTENANCE_MODE_TIME', 'Wartungsmodus aktiv bis');
@define('MAINTENANCE_MODE_ACTIVATE', 'Aktivieren');
@define('MAINTENANCE_MODE_DEACTIVATE', 'Deaktivieren');

@define('PLUGIN_LINK_SPARTACUS', 'Weitere Informationen');
2 changes: 2 additions & 0 deletions lang/serendipity_lang_de.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -1130,3 +1130,5 @@
@define('MAINTENANCE_MODE_TIME', 'Wartungsmodus aktiv bis');
@define('MAINTENANCE_MODE_ACTIVATE', 'Aktivieren');
@define('MAINTENANCE_MODE_DEACTIVATE', 'Deaktivieren');

@define('PLUGIN_LINK_SPARTACUS', 'Weitere Informationen');
2 changes: 2 additions & 0 deletions lang/serendipity_lang_en.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -1129,3 +1129,5 @@
@define('MAINTENANCE_MODE_TIME', 'Will be active until');
@define('MAINTENANCE_MODE_ACTIVATE', 'Activate');
@define('MAINTENANCE_MODE_DEACTIVATE', 'Deactivate');

@define('PLUGIN_LINK_SPARTACUS', 'More information');
3 changes: 3 additions & 0 deletions templates/2k11/admin/plugins.inc.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@
{if ! empty($plug.version)}
<li class="plugin_version"><b>{$CONST.VERSION|capitalize}:</b> {$plug.version}</li>
{/if}
{if ! empty($plug.pluginlocation) && $plug.pluginlocation != 'local'}
<li class="plugin_link"><a href="http://spartacus.s9y.org/index.php?mode=bygroups_{$plug.plugintype}_{$lang}#{$plug.class_name|escape}">{$CONST.PLUGIN_LINK_SPARTACUS}</a></li>
{/if}
{if ! empty($plug.website)}
<li class="plugin_web"><a href="{$plug.website|escape}">{$CONST.PLUGIN_DOCUMENTATION}</a></li>
{/if}
Expand Down

0 comments on commit 6924115

Please sign in to comment.