Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/advanced.../admin/includes
File: notices.php
<?php // phpcs:ignoreFile
[0] Fix | Delete
/**
[1] Fix | Delete
* Array with admin notices
[2] Fix | Delete
*/
[3] Fix | Delete
$advanced_ads_admin_notices = apply_filters(
[4] Fix | Delete
'advanced-ads-notices',
[5] Fix | Delete
[
[6] Fix | Delete
// email tutorial.
[7] Fix | Delete
'nl_intro' => [
[8] Fix | Delete
'type' => 'info',
[9] Fix | Delete
'text' => Advanced_Ads_Admin_Notices::get_instance()->get_welcome_panel(),
[10] Fix | Delete
'global' => true,
[11] Fix | Delete
],
[12] Fix | Delete
// email tutorial.
[13] Fix | Delete
'nl_first_steps' => [
[14] Fix | Delete
'type' => 'subscribe',
[15] Fix | Delete
'text' => __( 'Thank you for activating <strong>Advanced Ads</strong>. Would you like to receive the first steps via email?', 'advanced-ads' ),
[16] Fix | Delete
'confirm_text' => __( 'Yes, send it', 'advanced-ads' ),
[17] Fix | Delete
'global' => true,
[18] Fix | Delete
],
[19] Fix | Delete
// free add-ons.
[20] Fix | Delete
'nl_free_addons' => [
[21] Fix | Delete
'type' => 'subscribe',
[22] Fix | Delete
'text' => __( 'Thank you for using <strong>Advanced Ads</strong>. Stay informed and receive <strong>2 free add-ons</strong> for joining the newsletter.', 'advanced-ads' ),
[23] Fix | Delete
'confirm_text' => __( 'Add me now', 'advanced-ads' ),
[24] Fix | Delete
'global' => true,
[25] Fix | Delete
],
[26] Fix | Delete
// adsense newsletter group.
[27] Fix | Delete
'nl_adsense' => [
[28] Fix | Delete
'type' => 'subscribe',
[29] Fix | Delete
'text' => __( 'Learn more about how and <strong>how much you can earn with AdSense</strong> and Advanced Ads from my dedicated newsletter.', 'advanced-ads' ),
[30] Fix | Delete
'confirm_text' => __( 'Subscribe me now', 'advanced-ads' ),
[31] Fix | Delete
'global' => true,
[32] Fix | Delete
],
[33] Fix | Delete
// missing license codes.
[34] Fix | Delete
'license_invalid' => [
[35] Fix | Delete
'type' => 'plugin_error',
[36] Fix | Delete
'text' => __( 'One or more license keys for <strong>Advanced Ads add-ons are invalid or missing</strong>.', 'advanced-ads' ) . ' '
[37] Fix | Delete
// translators: %s is a target URL.
[38] Fix | Delete
. sprintf( __( 'Please add valid license keys <a href="%s">here</a>.', 'advanced-ads' ), get_admin_url( null, 'admin.php?page=advanced-ads-settings#top#licenses' ) ),
[39] Fix | Delete
],
[40] Fix | Delete
// please review.
[41] Fix | Delete
'review' => [
[42] Fix | Delete
'type' => 'info',
[43] Fix | Delete
// 'text' => '<img src="' . ADVADS_BASE_URL . 'admin/assets/img/thomas.png" alt="Thomas" width="80" height="115" class="advads-review-image"/>'
[44] Fix | Delete
'text' => '<div style="float: left; font-size: 4em; line-height: 1em; margin-right: 0.5em;">' . Advanced_Ads::get_number_of_ads() . '</div>'
[45] Fix | Delete
. '<div style="float:left;">'
[46] Fix | Delete
. '<p>' . __( '… ads created using <strong>Advanced Ads</strong>.', 'advanced-ads' ) . '</p>'
[47] Fix | Delete
. '<p>' . __( 'Do you find the plugin useful and would like to thank us for updates, fixing bugs and improving your ad setup?', 'advanced-ads' ) . '</p>'
[48] Fix | Delete
. '<p>' .
[49] Fix | Delete
// translators: this belongs to our message asking the user for a review. You can find a nice equivalent in your own language.
[50] Fix | Delete
__( 'When you give 5-stars, an actual person does a little happy dance!', 'advanced-ads' ) . '</p>'
[51] Fix | Delete
. '<p>'
[52] Fix | Delete
. '<span class="dashicons dashicons-external"></span>&nbsp;<strong><a href="https://wordpress.org/support/plugin/advanced-ads/reviews/?rate=5#new-post" target=_"blank">' . __( 'Sure, I appreciate your work', 'advanced-ads' ) . '</a></strong>'
[53] Fix | Delete
. ' &nbsp;&nbsp;<span class="dashicons dashicons-sos"></span>&nbsp;<a href="https://wpadvancedads.com/support/?utm_source=advanced-ads&utm_medium=link&utm_campaign=notice-review" target=_"blank">' . __( 'Yes, but help me first to solve a problem, please', 'advanced-ads' ) . '</a>'
[54] Fix | Delete
. '</p></div>',
[55] Fix | Delete
'global' => false,
[56] Fix | Delete
],
[57] Fix | Delete
// Black Friday 2023 promotion.
[58] Fix | Delete
'bfcm23' => [
[59] Fix | Delete
'type' => 'promo',
[60] Fix | Delete
'text' => sprintf(
[61] Fix | Delete
/* translators: %1$s is the markup for the discount value, %2$s starts a button link, %3$s closes the button link. */
[62] Fix | Delete
__( 'Save %1$s on all products with our Black Friday / Cyber Monday offer! %2$sGet this deal%3$s', 'advanced-ads' ),
[63] Fix | Delete
'<span style="font-weight: bold; font-size: 1.6em; vertical-align: sub;">30%</span>',
[64] Fix | Delete
'<a class="button button-primary" target="_blank" href="https://wpadvancedads.com/pricing/?utm_source=advanced-ads&utm_medium=link&utm_campaign=bfcm-2023">',
[65] Fix | Delete
'</a>'
[66] Fix | Delete
),
[67] Fix | Delete
'global' => true,
[68] Fix | Delete
],
[69] Fix | Delete
// Black Friday 2023 promotion.
[70] Fix | Delete
'promo-10ya' => [
[71] Fix | Delete
'type' => 'promo',
[72] Fix | Delete
'text' => sprintf(
[73] Fix | Delete
/* translators: %1$s is the markup for the discount value, %2$s starts a button link, %3$s closes the button link. */
[74] Fix | Delete
__( 'Advanced Ads is turning 10! Come celebrate with us and enjoy a %1$s discount. %2$sSave now%3$s', 'advanced-ads' ),
[75] Fix | Delete
'<span style="font-weight: bold; font-size: 1.6em; vertical-align: sub;">30%</span>',
[76] Fix | Delete
'<a class="button button-primary" target="_blank" href="https://wpadvancedads.com/10-year-anniversary/?utm_source=advanced-ads&utm_medium=link&utm_campaign=10ya">',
[77] Fix | Delete
'</a>'
[78] Fix | Delete
),
[79] Fix | Delete
'global' => true,
[80] Fix | Delete
],
[81] Fix | Delete
]
[82] Fix | Delete
);
[83] Fix | Delete
[84] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function