Documentation

Texts
in package
Uses UtilsProvider

Cookie banner texts.

Table of Contents

Constants

HEADLINE_AGE_NOTICE  = self::SECTION . '-headline-age-notice'
HEADLINE_BLOCKER  = self::SECTION . '-headline-blocker'
HEADLINE_CONSENT_FORWARDING  = self::SECTION . '-headline-consent-forwarding'
HEADLINE_DATA_PROCESSING_IN_UNSAFE_COUNTRIES  = self::SECTION . '-headline-data-processing-in-unsafe-countries'
HEADLINE_GENERAL  = self::SECTION . '-headline-general'
HEADLINE_LIST_SERVICES_NOTICE  = self::SECTION . '-headline-list-services-notice'
HEADLINE_STICKY  = self::SECTION . '-headline-sticky'
POWERED_BY_TEXTS_WEIGHTS  = [25, 25, 25, 10, 10, 5]
Matches the indexed array of `getPoweredByLinkTexts`.
SECTION  = \DevOwl\RealCookieBanner\view\BannerCustomize::PANEL_MAIN . '-texts'
SETTING  = RCB_OPT_PREFIX . '-banner-texts'
SETTING_ACCEPT_ALL  = self::SETTING . '-accept-all'
SETTING_ACCEPT_ESSENTIALS  = self::SETTING . '-accept-essentials'
SETTING_ACCEPT_INDIVIDUAL  = self::SETTING . '-accept-individual'
SETTING_AGE_NOTICE  = self::SETTING . '-age-notice'
SETTING_AGE_NOTICE_BLOCKER  = self::SETTING . '-age-notice-blocker'
SETTING_BLOCKER  = RCB_OPT_PREFIX . '-blocker-texts'
SETTING_BLOCKER_ACCEPT_INFO  = self::SETTING_BLOCKER . '-accept-info'
SETTING_BLOCKER_HEADLINE  = self::SETTING_BLOCKER . '-headline'
SETTING_BLOCKER_LINK_SHOW_MISSING  = self::SETTING_BLOCKER . '-link-show-missing'
SETTING_BLOCKER_LOAD_BUTTON  = self::SETTING_BLOCKER . '-load-button'
SETTING_CONSENT_FORWARDING  = self::SETTING . '-consent-forwarding'
SETTING_DATA_PROCESSING_IN_UNSAFE_COUNTRIES  = self::SETTING . '-data-processing-in-unsafe-countries'
SETTING_DESCRIPTION  = self::SETTING . '-description'
SETTING_HEADLINE  = self::SETTING . '-headline'
SETTING_LIST_LEGITIMATE_INTEREST_SERVICES_NOTICE  = self::SETTING . '-list-legitimate-interest-services-notice'
SETTING_LIST_SERVICES_NOTICE  = self::SETTING . '-list-services-notice'
SETTING_POWERED_BY_TEXT  = self::SETTING . '-powered-by'
SETTING_STICKY  = RCB_OPT_PREFIX . '-sticky-texts'
SETTING_STICKY_CHANGE  = self::SETTING_STICKY . '-change'
SETTING_STICKY_HISTORY  = self::SETTING_STICKY . '-history'
SETTING_STICKY_REVOKE  = self::SETTING_STICKY . '-revoke'
SETTING_STICKY_REVOKE_SUCCESS_MESSAGE  = self::SETTING_STICKY . '-revoke-success-message'

Methods

args()  : mixed
Return arguments for this section.
getAgeNoticeNotice()  : mixed
Return a notice HTML for the customize description when age notice is deactivated.
getConsentForwardingCustomHostsNotice()  : mixed
Return a notice HTML for the customize description when RCB's Consent Forwarding is deactivated.
getDataProcessingInUnsafeCountriesNotice()  : mixed
Return a notice HTML for the customize description when data processing in unsafe countries is deactivated.
getDefaultButtonTexts()  : mixed
Get the button default texts. The naming is a bit weird but it also returns texts for headlines, age notice and content blocker.
getDescription()  : mixed
Return HTML for the customize description about "Texts" at the top.
getListServicesNotice()  : mixed
Return a notice HTML for the customize description when list-services notice is deactivated.
getPluginConstantPrefix()  : string
Get the prefix of this plugin so composer packages can dynamically build other constant values on it.
getPoweredByLinkTexts()  : mixed
Get the allowed "powered-by" texts so the user can choose a text.
getRandomPoweredByText()  : mixed
Randomly get and set the powered-by text per WordPress installation.

Constants

HEADLINE_AGE_NOTICE

public mixed HEADLINE_AGE_NOTICE = self::SECTION . '-headline-age-notice'

HEADLINE_BLOCKER

public mixed HEADLINE_BLOCKER = self::SECTION . '-headline-blocker'
public mixed HEADLINE_CONSENT_FORWARDING = self::SECTION . '-headline-consent-forwarding'

HEADLINE_DATA_PROCESSING_IN_UNSAFE_COUNTRIES

public mixed HEADLINE_DATA_PROCESSING_IN_UNSAFE_COUNTRIES = self::SECTION . '-headline-data-processing-in-unsafe-countries'

HEADLINE_GENERAL

public mixed HEADLINE_GENERAL = self::SECTION . '-headline-general'

HEADLINE_LIST_SERVICES_NOTICE

public mixed HEADLINE_LIST_SERVICES_NOTICE = self::SECTION . '-headline-list-services-notice'

HEADLINE_STICKY

public mixed HEADLINE_STICKY = self::SECTION . '-headline-sticky'

POWERED_BY_TEXTS_WEIGHTS

Matches the indexed array of `getPoweredByLinkTexts`.

public array<string|int, int> POWERED_BY_TEXTS_WEIGHTS = [25, 25, 25, 10, 10, 5]

SECTION

public mixed SECTION = \DevOwl\RealCookieBanner\view\BannerCustomize::PANEL_MAIN . '-texts'

SETTING

public mixed SETTING = RCB_OPT_PREFIX . '-banner-texts'

SETTING_ACCEPT_ALL

public mixed SETTING_ACCEPT_ALL = self::SETTING . '-accept-all'

SETTING_ACCEPT_ESSENTIALS

public mixed SETTING_ACCEPT_ESSENTIALS = self::SETTING . '-accept-essentials'

SETTING_ACCEPT_INDIVIDUAL

public mixed SETTING_ACCEPT_INDIVIDUAL = self::SETTING . '-accept-individual'

SETTING_AGE_NOTICE

public mixed SETTING_AGE_NOTICE = self::SETTING . '-age-notice'

SETTING_AGE_NOTICE_BLOCKER

public mixed SETTING_AGE_NOTICE_BLOCKER = self::SETTING . '-age-notice-blocker'

SETTING_BLOCKER

public mixed SETTING_BLOCKER = RCB_OPT_PREFIX . '-blocker-texts'

SETTING_BLOCKER_ACCEPT_INFO

public mixed SETTING_BLOCKER_ACCEPT_INFO = self::SETTING_BLOCKER . '-accept-info'

SETTING_BLOCKER_HEADLINE

public mixed SETTING_BLOCKER_HEADLINE = self::SETTING_BLOCKER . '-headline'
public mixed SETTING_BLOCKER_LINK_SHOW_MISSING = self::SETTING_BLOCKER . '-link-show-missing'

SETTING_BLOCKER_LOAD_BUTTON

public mixed SETTING_BLOCKER_LOAD_BUTTON = self::SETTING_BLOCKER . '-load-button'
public mixed SETTING_CONSENT_FORWARDING = self::SETTING . '-consent-forwarding'

SETTING_DATA_PROCESSING_IN_UNSAFE_COUNTRIES

public mixed SETTING_DATA_PROCESSING_IN_UNSAFE_COUNTRIES = self::SETTING . '-data-processing-in-unsafe-countries'

SETTING_DESCRIPTION

public mixed SETTING_DESCRIPTION = self::SETTING . '-description'

SETTING_HEADLINE

public mixed SETTING_HEADLINE = self::SETTING . '-headline'

SETTING_LIST_LEGITIMATE_INTEREST_SERVICES_NOTICE

public mixed SETTING_LIST_LEGITIMATE_INTEREST_SERVICES_NOTICE = self::SETTING . '-list-legitimate-interest-services-notice'

SETTING_LIST_SERVICES_NOTICE

public mixed SETTING_LIST_SERVICES_NOTICE = self::SETTING . '-list-services-notice'

SETTING_POWERED_BY_TEXT

public mixed SETTING_POWERED_BY_TEXT = self::SETTING . '-powered-by'

SETTING_STICKY

public mixed SETTING_STICKY = RCB_OPT_PREFIX . '-sticky-texts'

SETTING_STICKY_CHANGE

public mixed SETTING_STICKY_CHANGE = self::SETTING_STICKY . '-change'

SETTING_STICKY_HISTORY

public mixed SETTING_STICKY_HISTORY = self::SETTING_STICKY . '-history'

SETTING_STICKY_REVOKE

public mixed SETTING_STICKY_REVOKE = self::SETTING_STICKY . '-revoke'

SETTING_STICKY_REVOKE_SUCCESS_MESSAGE

public mixed SETTING_STICKY_REVOKE_SUCCESS_MESSAGE = self::SETTING_STICKY . '-revoke-success-message'

Methods

args()

Return arguments for this section.

public args() : mixed

getAgeNoticeNotice()

Return a notice HTML for the customize description when age notice is deactivated.

public static getAgeNoticeNotice() : mixed

getConsentForwardingCustomHostsNotice()

Return a notice HTML for the customize description when RCB's Consent Forwarding is deactivated.

public static getConsentForwardingCustomHostsNotice() : mixed

getDataProcessingInUnsafeCountriesNotice()

Return a notice HTML for the customize description when data processing in unsafe countries is deactivated.

public static getDataProcessingInUnsafeCountriesNotice() : mixed

getDefaultButtonTexts()

Get the button default texts. The naming is a bit weird but it also returns texts for headlines, age notice and content blocker.

public static getDefaultButtonTexts() : mixed

getDescription()

Return HTML for the customize description about "Texts" at the top.

public static getDescription() : mixed

getListServicesNotice()

Return a notice HTML for the customize description when list-services notice is deactivated.

public static getListServicesNotice() : mixed

getPluginConstantPrefix()

Get the prefix of this plugin so composer packages can dynamically build other constant values on it.

public getPluginConstantPrefix() : string
Tags
codeCoverageIgnore

It only returns a string with the constant prefix

Return values
string

getPoweredByLinkTexts()

Get the allowed "powered-by" texts so the user can choose a text.

public static getPoweredByLinkTexts([bool $translate = true ]) : mixed
Parameters
$translate : bool = true

Translate the powered by texts by gettext

getRandomPoweredByText()

Randomly get and set the powered-by text per WordPress installation.

public static getRandomPoweredByText() : mixed

        
On this page

Search results