diff --git a/controllers/presenting.php b/controllers/presenting.php index 737c5ec19fa9529d60735a84812fcf94aa0cba15..f48579f37d81ad7e26430bc8fb8aa7da6ab0e62e 100644 --- a/controllers/presenting.php +++ b/controllers/presenting.php @@ -88,6 +88,8 @@ class PresentingController extends MarketController } $this->plugins = MarketPlugin::findBySQL("publiclyvisible = 1 AND approved = 1 ORDER BY RAND() LIMIT 3"); + + $this->latest_plugins = MarketPlugin::findBySQL("publiclyvisible = 1 AND approved = 1 ORDER BY mkdate DESC LIMIT 5"); $best = DBManager::get()->prepare(" SELECT pluginmarket_plugins.* diff --git a/views/presenting/overview_tiles.php b/views/presenting/overview_tiles.php index 5fec0875bdee6ab8baf5db7f26984b763500c65d..175e15e94bbd8cf69819143de0dca1f4a3681eef 100644 --- a/views/presenting/overview_tiles.php +++ b/views/presenting/overview_tiles.php @@ -1,5 +1,5 @@ <? if ($show_all) : ?> - <h2><?=count($plugins)?> <?= _('Plugins') ?></h2> + <h2><?= count($plugins) ?> <?= _('Plugins') ?></h2> <div class="plugins_shortview"> <? foreach ($plugins as $marketplugin) : ?> <?= $this->render_partial("presenting/_plugin_short.php", compact("marketplugin", "plugin")) ?> @@ -15,6 +15,13 @@ </div> <? endif ?> + <h2><?= _("Neueste Plugins") ?></h2> + <div class="plugins_shortview"> + <? foreach ($latest_plugins as $marketplugin) : ?> + <?= $this->render_partial("presenting/_plugin_short.php", compact("marketplugin", "plugin")) ?> + <? endforeach ?> + </div> + <h2><?= _("Zuf�llige Plugins") ?></h2> <div class="plugins_shortview"> <? foreach ($plugins as $marketplugin) : ?>