class-ad-groups-list.php
9 years ago
class-ad-type.php
9 years ago
class-licenses.php
9 years ago
class-menu.php
9 years ago
class-meta-box.php
9 years ago
class-notices.php
9 years ago
class-options.php
9 years ago
class-overview-widgets.php
9 years ago
class-settings.php
9 years ago
class-shortcode-creator.php
9 years ago
notices.php
9 years ago
shortcode-creator-l10n.php
10 years ago
notices.php
65 lines
| 1 | <?php |
| 2 | /** |
| 3 | * array with admin notices |
| 4 | */ |
| 5 | $advanced_ads_admin_notices = apply_filters( 'advanced-ads-notices', array( |
| 6 | // email tutorial |
| 7 | 'nl_intro' => array( |
| 8 | 'type' => 'info', |
| 9 | 'text' => sprintf(__( 'Advanced Ads successfully installed. <a href="%s" class="button button-primary">Create your first ad</a>', 'advanced-ads' ), admin_url( 'post-new.php?post_type=advanced_ads' )), |
| 10 | 'global' => true |
| 11 | ), |
| 12 | // email tutorial |
| 13 | 'nl_first_steps' => array( |
| 14 | 'type' => 'subscribe', |
| 15 | 'text' => __( 'Thank you for activating <strong>Advanced Ads</strong>. Would you like to receive the first steps via email?', 'advanced-ads' ), |
| 16 | 'confirm_text' => __( 'Yes, send it', 'advanced-ads' ), |
| 17 | 'global' => true |
| 18 | ), |
| 19 | // free add-ons |
| 20 | 'nl_free_addons' => array( |
| 21 | 'type' => 'subscribe', |
| 22 | '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 | 'confirm_text' => __( 'Add me now', 'advanced-ads' ), |
| 24 | 'global' => true |
| 25 | ), |
| 26 | // adsense newsletter group |
| 27 | 'nl_adsense' => array( |
| 28 | 'type' => 'subscribe', |
| 29 | '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 | 'confirm_text' => __( 'Subscribe me now', 'advanced-ads' ), |
| 31 | 'global' => true |
| 32 | ), |
| 33 | // if users updated from a previous version to 1.7 |
| 34 | '1.7' => array( |
| 35 | 'type' => 'update', |
| 36 | 'text' => 'Advanced Ads 1.7 made changes to the Display Conditions interface. Please check your settings and the <a href="https://wpadvancedads.com/manual/display-conditions/" target="_blank">manual</a>, if you are using them.', |
| 37 | ), |
| 38 | // missing license codes |
| 39 | 'license_invalid' => array( |
| 40 | 'type' => 'plugin_error', |
| 41 | 'text' => __( 'One or more license keys for <strong>Advanced Ads add-ons are invalid or missing</strong>.', 'advanced-ads' ) . ' ' . sprintf( __( 'Please add valid license keys <a href="%s">here</a>.', 'advanced-ads' ), get_admin_url( 1, 'admin.php?page=advanced-ads-settings#top#licenses' ) ), |
| 42 | 'global' => true |
| 43 | ), |
| 44 | // license expired |
| 45 | 'license_expired' => array( |
| 46 | 'type' => 'plugin_error', |
| 47 | 'text' => sprintf( __( '<strong>Advanced Ads</strong> license(s) expired. Support and updates are disabled. Please visit <a href="%s"> the license page</a> for more information.', 'advanced-ads' ), admin_url( 'admin.php?page=advanced-ads-settings#top#licenses' ) ), |
| 48 | 'global' => true |
| 49 | ), |
| 50 | // please review |
| 51 | 'review' => array( |
| 52 | 'type' => 'info', |
| 53 | 'text' => sprintf( __( '<img src="%3$s" alt="Thomas" width="80" height="115" class="advads-review-image"/>You are using <strong>Advanced Ads</strong> for some time now. Thank you! If you need my help then please visit the <a href="%1$s" target="_blank">Support page</a> to get free help.</p><h3>Thanks for your Review</h3><p>If you share my passion and find Advanced Ads useful then please <a href="%2$s" target="_blank">leave a 5-star review on wordpress.org</a>.</p><p><em>Thomas</em>', 'advanced-ads' ), ADVADS_URL . 'support/#utm_source=advanced-ads&utm_medium=link&utm_campaign=notice-review', 'https://wordpress.org/support/plugin/advanced-ads/reviews/#postform', ADVADS_BASE_URL . 'admin/assets/img/thomas.png' ), |
| 54 | 'global' => false |
| 55 | ), |
| 56 | // adblocker assets expired |
| 57 | 'assets_expired' => array( |
| 58 | 'type' => 'update', |
| 59 | 'text' => sprintf( __('Some assets were changed. Please <strong>rebuild the asset folder</strong> in the <a href="%s">Advanced Ads settings</a> to update the ad blocker disguise.', 'advanced-ads' ), admin_url( 'admin.php?page=advanced-ads-settings' ) ), |
| 60 | 'global' => true |
| 61 | ), |
| 62 | |
| 63 | )); |
| 64 | |
| 65 |