Constants

SECTION

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

HEADLINE_GENERAL

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

HEADLINE_EPRIVACY_USA

HEADLINE_EPRIVACY_USA =self::SECTION . '-headline-eprivacy-usa'

HEADLINE_AGE_NOTICE

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

HEADLINE_LIST_SERVICES_NOTICE

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

HEADLINE_BLOCKER

HEADLINE_BLOCKER =self::SECTION . '-headline-blocker'

SETTING

SETTING =RCB_OPT_PREFIX . '-banner-texts'

SETTING_BLOCKER

SETTING_BLOCKER =RCB_OPT_PREFIX . '-blocker-texts'

SETTING_HEADLINE

SETTING_HEADLINE =self::SETTING . '-headline'

SETTING_DESCRIPTION

SETTING_DESCRIPTION =self::SETTING . '-description'

SETTING_EPRIVACY_USA

SETTING_EPRIVACY_USA =self::SETTING . '-eprivacy-usa'

SETTING_AGE_NOTICE

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

SETTING_AGE_NOTICE_BLOCKER

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

SETTING_LIST_SERVICES_NOTICE

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

SETTING_ACCEPT_ALL

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

SETTING_ACCEPT_ESSENTIALS

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

SETTING_ACCEPT_INDIVIDUAL

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

SETTING_POWERED_BY_TEXT

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

SETTING_BLOCKER_HEADLINE

SETTING_BLOCKER_HEADLINE =self::SETTING_BLOCKER . '-headline'

SETTING_BLOCKER_LOAD_BUTTON

SETTING_BLOCKER_LOAD_BUTTON =self::SETTING_BLOCKER . '-load-button'

SETTING_BLOCKER_ACCEPT_INFO

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

POWERED_BY_TEXTS_WEIGHTS

POWERED_BY_TEXTS_WEIGHTS =array(25, 25, 25, 10, 10, 5) :array<mixed,integer>

Matches the indexed array of `getPoweredByLinkTexts`.

Methods

getPluginConstantPrefix()

getPluginConstantPrefix(): string

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

Returns

string

args()

args()

Return arguments for this section.

getDescription()

getDescription()

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

getEPrivacyUSANotice()

getEPrivacyUSANotice()

Return a notice HTML for the customize description when US data processing is deactivated.

getAgeNoticeNotice()

getAgeNoticeNotice()

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

getListServicesNotice()

getListServicesNotice()

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

getConsentForwardingCustomHostsNotice()

getConsentForwardingCustomHostsNotice()

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

getDefaultButtonTexts()

getDefaultButtonTexts()

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

getRandomPoweredByText()

getRandomPoweredByText()

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

getPoweredByLinkTexts()

getPoweredByLinkTexts(boolean  $translate = true)

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

Parameters

boolean $translate

Translate the powered by texts by gettext

applyBlockerTextsBackwardsCompatibility()

applyBlockerTextsBackwardsCompatibility(array  $revision,boolean  $independent)

Since 1.10: Moved the texts to the customizer, but keep for backwards-compatibility.

Parameters

array $revision
boolean $independent

new_version_installation_after_2_6_5()

new_version_installation_after_2_6_5(string|false  $installed)

Delete the already known, randomly selected powered-by text and regenerate it.

Parameters

string|false $installed