options = is_array($options) ? $options : array(); } /** * Render the complete settings dashboard. * * @return void */ public function render() { $header_fields = $this->get_header_fields(); $feature_fields = $this->get_feature_fields(); $directive_fields = $this->get_csp_directive_fields(); $general_fields = $this->get_csp_general_fields(); $header_total = count($header_fields); $feature_total = count($feature_fields); $header_active = $this->count_enabled(array_keys($header_fields)); $feature_active = $this->count_enabled(array_keys($feature_fields)); $csp_enabled = $this->is_enabled('content_security_policy'); $status = $this->get_security_status($header_active, $header_total, $feature_active, $feature_total); ?>