<?php if (!defined('EASY_UPDATES_MANAGER_MAIN_PATH')) die('No direct access allowed'); ?>

<div class="updraft-ad-container updated">
	<div class="updraft_notice_container">
		<div class="updraft_advert_content_left">
			<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'); ?>" />
		</div>
		<div class="updraft_advert_content_right">
			<h3 class="updraft_advert_heading">
				<?php
				if (!empty($prefix)) echo $prefix.' ';
					echo $title;
				?>
				<div class="updraft-advert-dismiss">
				<?php if (!empty($dismiss_time)) { ?>
					<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>
				<?php } else { ?>
					<a href="#" onclick="jQuery('.updraft-ad-container').slideUp();"><?php _e('Dismiss', 'stops-core-theme-and-plugin-updates'); ?></a>
				<?php } ?>
				</div>
			</h3>
			<p>
				<?php
				echo $text;
					$button_text = '';
					if (isset($discount_code)) echo ' <b>' . $discount_code . '</b>';

					if (!empty($button_link) && !empty($button_meta)) {
					// Check which Message is going to be used.
					if ('updraftcentral' == $button_meta) {
						$button_text = __('Get UpdraftCentral', 'stops-core-theme-and-plugin-updates');
					} elseif ('review' == $button_meta) {
						$button_text = __('Review "Easy Updates Manager"', 'stops-core-theme-and-plugin-updates');
					} elseif ('updraftplus' == $button_meta) {
						$button_text = __('Get UpdraftPlus', 'stops-core-theme-and-plugin-updates');
					} elseif ('signup' == $button_meta) {
						$button_text = __('Sign up', 'stops-core-theme-and-plugin-updates');
					} elseif ('go_there' == $button_meta) {
						$button_text = __('Go there', 'stops-core-theme-and-plugin-updates');
					} elseif ('wpo-premium' == $button_meta) {
						$button_text = __('Find out more.', 'stops-core-theme-and-plugin-updates');
					} elseif ('keyy' == $button_meta) {
						$button_text = __('Get Keyy', 'stops-core-theme-and-plugin-updates');
					} elseif ('wp-optimize' == $button_meta) {
						$button_text = __('Get WP-Optimize', 'stops-core-theme-and-plugin-updates');
					} elseif ('metaslider' == $button_meta) {
						$button_text = __('Get MetaSlider', 'stops-core-theme-and-plugin-updates');
					} elseif ('eum_survey' == $button_meta) {
						$button_text = __('Take Survey', 'stops-core-theme-and-plugin-updates');
					} elseif ('eum_rate' == $button_meta) {
						$button_text = __('Rate Plugin', 'stops-core-theme-and-plugin-updates');
					} elseif ('eum_premium' == $button_meta) {
						$button_text = __('Get Premium', 'stops-core-theme-and-plugin-updates');
					}
					$easy_updates_manager->easy_updates_manager_url($button_link, $button_text, null, 'class="updraft_notice_link"');
					}
				?>
			</p>
		</div>
	</div>
	<div class="clear"></div>
</div>
