'cookiebot_network', 'updated' => true, ), network_admin_url( 'admin.php' ) ) ); exit; } /** * Cookiebot_WP Cookiebot network setting page * * @throws InvalidArgumentException * @since 2.2.0 * @version 2.2.0 */ public function display() { $cbm = get_site_option( 'cookiebot-cookie-blocking-mode', 'manual' ); wp_enqueue_script( 'cookiebot-network-settings-page-js', asset_url( 'js/backend/network-settings-page.js' ), null, Cookiebot_WP::COOKIEBOT_PLUGIN_VERSION, true ); wp_add_inline_script( 'cookiebot-network-settings-page-js', 'const cookiebotNetworkSettings = ' . wp_json_encode( array( 'cbm' => esc_attr( $cbm ) ) ), 'before' ); wp_enqueue_style( 'cookiebot-settings-page-css', asset_url( 'css/backend/settings-page.css' ), null, Cookiebot_WP::COOKIEBOT_PLUGIN_VERSION ); include_view( 'admin/settings/network-settings-page.php', array( 'cookiebot_gdpr_url' => 'https://www.cookiebot.com/' . Cookiebot_WP::get_manager_language() . '/gdpr', 'logo' => CYBOT_COOKIEBOT_PLUGIN_URL . 'cookiebot-logo.png', 'cbm' => $cbm, ) ); } }