page_title = __( 'Geolocation', 'wpconsent-cookies-banner-privacy-suite' ); parent::__construct(); } /** * Override the output method so we can add our form markup for this page. * * @return void */ public function output() { $this->output_header(); ?>
get_location_groups(); ?> get_location_groups_list_content( $location_groups ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } /** * Get the content for the location groups list. * * @param array $location_groups Array of location groups. * * @return string */ public function get_location_groups_list_content( $location_groups ) { if ( empty( $location_groups ) ) { return ''; } ob_start(); ?>| format_locations_display( $group['locations'] ), array( 'span' => array( 'class' => array() ) ) ); ?> | __( 'Block Script', 'wpconsent-cookies-banner-privacy-suite' ), 'enable_content_blocking' => __( 'Content Blocking', 'wpconsent-cookies-banner-privacy-suite' ), 'show_banner' => __( 'Show Banner', 'wpconsent-cookies-banner-privacy-suite' ), 'enable_consent_floating' => __( 'Show Settings Button', 'wpconsent-cookies-banner-privacy-suite' ), ); foreach ( $consent_settings as $key => $label ) { $is_enabled = ! empty( $group[ $key ] ); $checkmark_class = $is_enabled ? 'consent-setting-checkmark-enabled' : 'consent-setting-checkmark-disabled'; $checkmark = $is_enabled ? '✓' : '✗'; ?> | |||||