<?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>
<div id=ab_admin_notice class=update-nag>
    <h3>Bookly</h3>
    <p><?php printf( __( 'Please do not forget to specify your purchase code in Bookly <a href="%s">settings</a>. Upon providing the code you will have access to free updates of Bookly. Updates may contain functionality improvements and important security fixes.', 'bookly' ), AB_Utils::escAdminUrl( AB_SettingsController::page_slug, array( 'type' => '_purchase_code' ) ) ) ?></p>
    <p><?php _e( '<b>Important!</b> Please be aware that if your copy of Bookly was not downloaded from Codecanyon (the only channel of Bookly distribution), you may put your website under significant risk - it is very likely that it contains a malicious code, a trojan or a backdoor. Please consider buying a licensed copy of Bookly <a href="http://booking-wp-plugin.com" target="_blank">here</a>.', 'bookly' ) ?></p>
    <a id="ab_dismiss" href="#"><?php _e( 'Dismiss', 'bookly' ) ?></a>
</div>

<script type="text/javascript">
jQuery('a#ab_dismiss').click(function(e) {
    e.preventDefault();
    jQuery('div#ab_admin_notice').hide(300);
    jQuery.ajax({
        url  : '<?php echo admin_url('admin-ajax.php'); ?>',
        data : {action: 'ab_dismiss_admin_notice'}
    });
});
</script>