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

<div class="updraft_advert_bottom">
	<div class="updraft_advert_content_right">
		<h4 class="updraft_advert_heading">
			<?php
				if (!empty($prefix)) echo esc_html($prefix).' ';
				echo esc_html($title);
			?>
		</h4>
		<p>
			<?php
				echo wp_kses_post($text);

				if (isset($discount_code)) echo ' <b>'.esc_html($discount_code).'</b>';
				
				if (!empty($button_link) && (!empty($button_meta) || !empty($button_text))) {
			?>
			<a class="updraft_notice_link" href="<?php echo esc_attr(apply_filters('updraftplus_com_link', $button_link));?>"><?php
				global $updraftplus_admin;
				$updraftplus_admin->include_template(
					'wp-admin/notices/button-label.php',
					false,
					array(
						'button_meta' => isset($button_meta) ? $button_meta : '',
						'button_text' => isset($button_text) ? $button_text : ''
					)
				);
				?></a>
			<?php
				}
			?>
		</p>
	</div>
	<div class="clear"></div>
</div>
