Add plugin update notification to dashboard.
Signed-off-by: Thomas Hochstein <thh@inter.net>
This commit is contained in:
parent
6cee25afdc
commit
9999a5b0e1
@ -56,6 +56,11 @@ if (is_array($output)) {
|
||||
} else {
|
||||
$data['updateButton'] = $output;
|
||||
}
|
||||
if (serendipity_plugin_api::hook_event('backend_plugins_upgradecount', $output)) {
|
||||
$data['pluginUpdates'] = $output;
|
||||
} else {
|
||||
$data['pluginUpdates'] = '';
|
||||
}
|
||||
|
||||
$cjoin = ($serendipity['serendipityUserlevel'] == USERLEVEL_EDITOR) ? "
|
||||
LEFT JOIN {$serendipity['dbPrefix']}authors a ON (e.authorid = a.authorid)
|
||||
|
@ -37,6 +37,15 @@
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
{if $pluginUpdates}
|
||||
<section id="dashboard_plugin_updates">
|
||||
<h3>{$CONST.UPDATE_NOTIFICATION}</h3>
|
||||
|
||||
<span class="msg_notice"><span class="icon-info-circled" aria-hidden="true"></span> {$pluginUpdates}</span>
|
||||
</section>
|
||||
<hr class="separator">
|
||||
{/if}
|
||||
|
||||
{if $no_create !== true}
|
||||
<section id="dashboard_comments" class="equal_heights quick_list dashboard_widget">
|
||||
<h3>{if 'adminComments'|checkPermission}<a href="serendipity_admin.php?serendipity[adminModule]=comments">{/if}{$CONST.COMMENTS}{if 'adminComments'|checkPermission}</a>{/if}</h3>
|
||||
|
Loading…
x
Reference in New Issue
Block a user