Cookiebot_WP::get_cbid(), 'is_ms' => false, 'cookiebot_gdpr_url' => 'https://www.cookiebot.com/' . Cookiebot_WP::get_manager_language() . '/gdpr', 'cookiebot_logo' => CYBOT_COOKIEBOT_PLUGIN_URL . 'cookiebot-logo.png', 'supported_languages' => Supported_Languages::get(), 'current_lang' => cookiebot_get_language_from_setting( true ), 'is_wp_consent_api_active' => $consent_api_helper->is_wp_consent_api_active(), 'm_default' => $consent_api_helper->get_default_wp_consent_api_mapping(), 'm' => $consent_api_helper->get_wp_consent_api_mapping(), 'cookie_blocking_mode' => Cookiebot_WP::get_cookie_blocking_mode(), 'network_auto' => Cookiebot_WP::check_network_auto_blocking_mode(), 'add_language_gif_url' => asset_url( 'img/guide_add_language.gif' ), ); /* Check if multisite */ if ( is_multisite() ) { // Receive settings from multisite - this might change the way we render the form $args['network_cbid'] = get_site_option( 'cookiebot-cbid', '' ); $args['network_scrip_tag_uc_attr'] = get_site_option( 'cookiebot-script-tag-uc-attribute', 'custom' ); $args['network_scrip_tag_cd_attr'] = get_site_option( 'cookiebot-script-tag-cd-attribute', 'custom' ); $args['is_ms'] = true; } wp_enqueue_style( 'cookiebot-consent-mapping-table', asset_url( 'css/backend/consent_mapping_table.css' ), null, Cookiebot_WP::COOKIEBOT_PLUGIN_VERSION ); wp_enqueue_style( 'cookiebot-settings-page-css', asset_url( 'css/backend/settings-page.css' ), null, Cookiebot_WP::COOKIEBOT_PLUGIN_VERSION ); wp_enqueue_script( 'cookiebot-settings-page-js', asset_url( 'js/backend/settings-page.js' ), null, Cookiebot_WP::COOKIEBOT_PLUGIN_VERSION, true ); wp_localize_script( 'cookiebot-settings-page-js', 'cookiebot_settings', array( 'cookieBlockingMode' => $args['cookie_blocking_mode'] ) ); include_view( 'admin/settings/settings-page.php', $args ); } }