diff --git a/include/top.php b/include/top.php index 21e04534a..1df93301e 100755 --- a/include/top.php +++ b/include/top.php @@ -18,6 +18,7 @@ */ use Models\Module; +use Models\Plugin; use Util\FileSystem; include_once __DIR__.'/../core.php'; @@ -63,6 +64,8 @@ foreach (App::getAssets()['print'] as $style) { } if (Auth::check()) { + $has_plugins = Plugin::where('idmodule_to', $id_module)->where('position', 'tab_main')->where('enabled', 1)->count(); + echo '