*/
use AdvancedAds\Utilities\WordPress;
if ( ! defined( 'NOTICE_TYPES' ) ) {
define(
'NOTICE_TYPES',
[
'info' => 'info',
'subscribe' => 'subscribe',
'error' => 'plugin_error',
'promo' => 'promo',
]
);
}
// These add-on names correspond to the names in the class of constants from ADDONS_NON_COMPATIBLE_VERSIONS.
$manual_addons = [
'advanced-ads-page-peel' => [
'title' => 'Advanced Ads Page Peel',
'zip' => esc_url( 'https://wpadvancedads.com/wp-content/uploads/advanced-ads-page-peel.zip' ),
'link' => esc_url( 'https://wpadvancedads.com/manual/how-to-install-an-add-on/?utm_source=advanced-ads&utm_medium=link&utm_campaign=notice-update-pagepeel-a220' ),
],
'advanced-ads-browser-language' => [
'title' => 'Advanced Ads Browser Language Visitor Condition',
'zip' => esc_url( 'https://wpadvancedads.com/wp-content/uploads/advanced-ads-browser-language.zip' ),
'link' => esc_url( 'https://wpadvancedads.com/manual/how-to-install-an-add-on/?utm_source=advanced-ads&utm_medium=link&utm_campaign=notice-update-browserlang-a220' ),
],
'slider-ads' => [
'title' => 'Advanced Ads Ad Slider',
'zip' => esc_url( 'https://wpadvancedads.com/wp-content/uploads/advanced-ads-slider.zip' ),
'link' => esc_url( 'https://wpadvancedads.com/manual/how-to-install-an-add-on/?utm_source=advanced-ads&utm_medium=link&utm_campaign=notice-update-adslider-a220' ),
],
];
$advanced_ads_admin_notices = [
// email tutorial.
'nl_first_steps' => [
'type' => NOTICE_TYPES['subscribe'],
'text' => __( 'Thank you for activating Advanced Ads. Would you like to receive the first steps via email?', 'advanced-ads' ),
'confirm_text' => __( 'Yes, send it', 'advanced-ads' ),
'global' => true,
],
// free add-ons.
'nl_free_addons' => [
'type' => NOTICE_TYPES['subscribe'],
'text' => __( 'Hey, welcome to Advanced Ads! Join our newsletter and snag 2 free add-ons plus our email intro course. It’s the perfect way to get started smoothly!', 'advanced-ads' ),
'confirm_text' => __( 'Subscribe me now', 'advanced-ads' ),
'global' => false,
],
// adsense newsletter group.
'nl_adsense' => [
'type' => NOTICE_TYPES['subscribe'],
'text' => __( 'Learn more about how and how much you can earn with AdSense and Advanced Ads from my dedicated newsletter.', 'advanced-ads' ),
'global' => true,
],
// missing license codes.
'license_invalid' => [
'type' => NOTICE_TYPES['error'],
'text' => __( 'One or more license keys for Advanced Ads add-ons are invalid or missing.', 'advanced-ads' ) . ' '
/* translators: %s is a target URL. */
. sprintf( __( 'Please add valid license keys here.', 'advanced-ads' ), get_admin_url( null, 'admin.php?page=advanced-ads-settings#top#licenses' ) ),
],
// please review.
'review' => [
'type' => NOTICE_TYPES['info'],
// 'text' => '
'
'text' => '
' . __( '… ads created using Advanced Ads.', 'advanced-ads' ) . '
' . '' . __( 'Do you find the plugin useful and would like to thank us for updates, fixing bugs and improving your ad setup?', 'advanced-ads' ) . '
' . '' . /* translators: this belongs to our message asking the user for a review. You can find a nice equivalent in your own language. */ __( 'When you give 5-stars, an actual person does a little happy dance!', 'advanced-ads' ) . '
' . '' . ' ' . __( 'Sure, I appreciate your work', 'advanced-ads' ) . '' . ' ' . __( 'Yes, but help me first to solve a problem, please', 'advanced-ads' ) . '' . '