diff --git a/controllers/presenting.php b/controllers/presenting.php index 4cf17d6063a10f688b56f6b22666d5f666dd06dc..c0058cba9fef6cfe485f3016a99949853da087da 100644 --- a/controllers/presenting.php +++ b/controllers/presenting.php @@ -89,6 +89,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"); $this->best_plugins = MarketPlugin::findBySQL("publiclyvisible = 1 AND approved = 1 ORDER BY rating DESC LIMIT 6"); 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) : ?>