horizontal-notice.php
63 lines
| 1 | <?php if (!defined('EASY_UPDATES_MANAGER_MAIN_PATH')) die('No direct access allowed'); ?> |
| 2 | |
| 3 | <div class="updraft-ad-container updated"> |
| 4 | <div class="updraft_notice_container"> |
| 5 | <div class="updraft_advert_content_left"> |
| 6 | <img src="<?php echo EASY_UPDATES_MANAGER_URL.'images/'.$image; ?>" width="60" height="60" alt="<?php _e('notice image', 'stops-core-theme-and-plugin-updates'); ?>" /> |
| 7 | </div> |
| 8 | <div class="updraft_advert_content_right"> |
| 9 | <h3 class="updraft_advert_heading"> |
| 10 | <?php |
| 11 | if (!empty($prefix)) echo $prefix.' '; |
| 12 | echo $title; |
| 13 | ?> |
| 14 | <div class="updraft-advert-dismiss"> |
| 15 | <?php if (!empty($dismiss_time)) { ?> |
| 16 | <a href="#" onclick="jQuery('.updraft-ad-container').slideUp(); jQuery.post(ajaxurl, {action: 'easy_updates_manager_ajax', subaction: '<?php echo $dismiss_time; ?>', nonce: '<?php echo wp_create_nonce('easy-updates-manager-ajax-nonce'); ?>' });"><?php _e('Dismiss', 'stops-core-theme-and-plugin-updates'); ?></a> |
| 17 | <?php } else { ?> |
| 18 | <a href="#" onclick="jQuery('.updraft-ad-container').slideUp();"><?php _e('Dismiss', 'stops-core-theme-and-plugin-updates'); ?></a> |
| 19 | <?php } ?> |
| 20 | </div> |
| 21 | </h3> |
| 22 | <p> |
| 23 | <?php |
| 24 | echo $text; |
| 25 | $button_text = ''; |
| 26 | if (isset($discount_code)) echo ' <b>' . $discount_code . '</b>'; |
| 27 | |
| 28 | if (!empty($button_link) && !empty($button_meta)) { |
| 29 | // Check which Message is going to be used. |
| 30 | if ('updraftcentral' == $button_meta) { |
| 31 | $button_text = __('Get UpdraftCentral', 'stops-core-theme-and-plugin-updates'); |
| 32 | } elseif ('review' == $button_meta) { |
| 33 | $button_text = __('Review "Easy Updates Manager"', 'stops-core-theme-and-plugin-updates'); |
| 34 | } elseif ('updraftplus' == $button_meta) { |
| 35 | $button_text = __('Get UpdraftPlus', 'stops-core-theme-and-plugin-updates'); |
| 36 | } elseif ('signup' == $button_meta) { |
| 37 | $button_text = __('Sign up', 'stops-core-theme-and-plugin-updates'); |
| 38 | } elseif ('go_there' == $button_meta) { |
| 39 | $button_text = __('Go there', 'stops-core-theme-and-plugin-updates'); |
| 40 | } elseif ('wpo-premium' == $button_meta) { |
| 41 | $button_text = __('Find out more.', 'stops-core-theme-and-plugin-updates'); |
| 42 | } elseif ('keyy' == $button_meta) { |
| 43 | $button_text = __('Get Keyy', 'stops-core-theme-and-plugin-updates'); |
| 44 | } elseif ('wp-optimize' == $button_meta) { |
| 45 | $button_text = __('Get WP-Optimize', 'stops-core-theme-and-plugin-updates'); |
| 46 | } elseif ('metaslider' == $button_meta) { |
| 47 | $button_text = __('Get MetaSlider', 'stops-core-theme-and-plugin-updates'); |
| 48 | } elseif ('eum_survey' == $button_meta) { |
| 49 | $button_text = __('Take Survey', 'stops-core-theme-and-plugin-updates'); |
| 50 | } elseif ('eum_rate' == $button_meta) { |
| 51 | $button_text = __('Rate Plugin', 'stops-core-theme-and-plugin-updates'); |
| 52 | } elseif ('eum_premium' == $button_meta) { |
| 53 | $button_text = __('Get Premium', 'stops-core-theme-and-plugin-updates'); |
| 54 | } |
| 55 | $easy_updates_manager->easy_updates_manager_url($button_link, $button_text, null, 'class="updraft_notice_link"'); |
| 56 | } |
| 57 | ?> |
| 58 | </p> |
| 59 | </div> |
| 60 | </div> |
| 61 | <div class="clear"></div> |
| 62 | </div> |
| 63 |