$label, 'href' => '/module/mining-checker?view=' . rawurlencode($key), 'active' => $activeView === $key, ]; } if ($allowedViews === []) { $allowedViews = ['overview']; } if (!in_array($activeView, $allowedViews, true)) { $activeView = $allowedViews[0]; foreach ($tabs as &$tab) { $tab['active'] = str_ends_with((string) ($tab['href'] ?? ''), 'view=' . $activeView); } unset($tab); } $sectionsJson = json_encode($sections, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES); $moduleCss = file_get_contents(dirname(__DIR__) . '/assets/css/app.css') ?: ''; $moduleJs = file_get_contents(dirname(__DIR__) . '/assets/js/app.js') ?: ''; $moduleJs = str_replace('', '<\/script>', $moduleJs); ?> = module_shell_header('mining-checker', [ 'title' => 'DOGE Mining-Checker', 'tabs' => $tabs, ]) ?>