Skip to content

Commit

Permalink
NEW: Show Updates Count in Installed Plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
aljawaid committed May 14, 2023
1 parent 2c99175 commit 9ca1e90
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Template/plugin/show.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,12 @@ function sortPlugins(&$arr)
<?php
$installedCount = count($plugins);
$incompatibleCount = count($incompatible_plugins);
$updateCount = count($updatables);
?>
<div class="plugin-count">
<?= t('You have %s plugins installed', $installedCount) ?>&nbsp;<?= ($incompatibleCount > 0) ? t('and %s incompatible plugin(s)', $incompatibleCount) : '' ?>
<?= t('You have %s plugins installed', $installedCount) ?>
<strong><?= ($updateCount > 0) ? t('with %s updates available', $updateCount) : '' ?></strong>
<?= ($incompatibleCount > 0) ? t('and %s incompatible plugin(s)', $incompatibleCount) : '' ?>
</div>
<?php if ($installedCount > 10): ?>
<a id="PluginBottom" href="#PluginTop" title="<?= t('Go to the bottom of the page') ?>" class="btn-action"><i class="fa fa-level-down" aria-hidden="true"></i> <?= t('Bottom') ?></a>
Expand Down

1 comment on commit 9ca1e90

@aljawaid
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#42

Please sign in to comment.