has_premium = KeyController::HasValidPremiumKey(); $KeyStatus = KeyController::GetKeyStatus(); if (!$KeyStatus['active'] || $KeyStatus['expired'] || !$KeyStatus['verified'] || $KeyStatus['exceeded']) { $this->issue_detected = true; } } $this->subtitle = $subtitle; if ($hide_navigation_items) { $this->hide_navigation_items = true; $this->pages = array(); $this->Render(); return; } // No need to verify nonce here, as we are simply reading the value to determine the current page // phpcs:ignore WordPress.Security.NonceVerification.Recommended $this->active_page = isset($_GET['page']) ? sanitize_text_field(wp_unslash($_GET['page'])) : DashboardController::DASHBOARD; $pages = array_merge(array(DashboardController::MENU_SLUG => __("Dashboard", "superb-blocks")), apply_filters('superbaddons/admin/navigation/pages', array())); $this->pages = array_merge($pages, array( DashboardController::PAGE_WIZARD => __("Theme Designer", "superb-blocks"), DashboardController::ADDITIONAL_CSS => __("Custom CSS", "superb-blocks"), DashboardController::SETTINGS => __("Settings", "superb-blocks"), DashboardController::SUPPORT => __("Support", "superb-blocks"), )); $this->Render(); } private function Render() { ?>