class-ad-groups-list.php
8 years ago
class-ad-type.php
8 years ago
class-licenses.php
8 years ago
class-menu.php
8 years ago
class-meta-box.php
8 years ago
class-notices.php
8 years ago
class-options.php
9 years ago
class-overview-widgets.php
8 years ago
class-settings.php
8 years ago
class-shortcode-creator.php
9 years ago
notices.php
8 years ago
shortcode-creator-l10n.php
10 years ago
notices.php
67 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 | ), |
| 43 | // please review |
| 44 | 'review' => array( |
| 45 | 'type' => 'info', |
| 46 | 'text' => '<img src="' . ADVADS_BASE_URL . 'admin/assets/img/thomas.png" alt="Thomas" width="80" height="115" class="advads-review-image"/>' |
| 47 | . '<p>' . sprintf(__( 'You’ve successfully <strong>created %s ads using Advanced Ads</strong>.', 'advanced-ads' ), Advanced_Ads::get_number_of_ads() ) . '</p>' |
| 48 | . '<p>' . __( 'Do you find Advanced Ads useful and would like to keep us motivated? Please help us with a review.', 'advanced-ads' ) . '</p>' |
| 49 | . '<p><em>Thomas & Team</em></p>' |
| 50 | . '<p>' |
| 51 | . '<span class="dashicons dashicons-external"></span> <strong><a href="https://wordpress.org/support/plugin/advanced-ads/reviews/?rate=5#new-post" target=_"blank">' . __( 'Sure, I’ll rate the plugin', 'advanced-ads' ) . '</a></strong>' |
| 52 | . ' <span class="dashicons dashicons-smiley"></span> <a href="javascript:void(0)" target=_"blank" class="advads-notice-dismiss">' . __( 'I already did', 'advanced-ads' ) . '</a>' |
| 53 | . ' <span class="dashicons dashicons-sos"></span> <a href="'. ADVADS_URL . 'support/#utm_source=advanced-ads&utm_medium=link&utm_campaign=notice-review" target=_"blank">' . __( 'I am not happy, please help', 'advanced-ads' ) . '</a>' |
| 54 | . '<br/><br/><span class="dashicons dashicons-clock"></span> <a href="javascript:void(0)" target=_"blank" class="advads-notice-hide">' . __( 'Ask me later', 'advanced-ads' ) . '</a>' |
| 55 | . '</p>', |
| 56 | 'global' => false |
| 57 | ), |
| 58 | // adblocker assets expired |
| 59 | 'assets_expired' => array( |
| 60 | 'type' => 'update', |
| 61 | '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' ) ), |
| 62 | 'global' => true |
| 63 | ), |
| 64 | |
| 65 | )); |
| 66 | |
| 67 |