/*-------------------------------------------------------------
Name: adrotate_welcome_pointer
Purpose: Show dashboard pointers
Since: 3.9.14
-------------------------------------------------------------*/
function adrotate_welcome_pointer() {
$pointer_content = '<h3>AdRotate '.ADROTATE_DISPLAY.'</h3>';
$pointer_content .= '<p>'.__('Thank you for choosing AdRotate. Everything related to AdRotate is in this menu. If you need help getting started take a look at the', 'adrotate').' <a href="http:\/\/ajdg.solutions\/manuals\/adrotate-manuals\/" target="_blank">'.__('manuals', 'adrotate').'</a> '.__('and', 'adrotate').' <a href="https:\/\/ajdg.solutions\/forums\/forum\/adrotate-for-wordpress\/" target="_blank">'.__('forums', 'adrotate').'</a>. These links are also available in the help tab in the top right.</p>';
$pointer_content .= '<p><strong>AdRotate Professional - <a href="admin.php?page=adrotate-pro">Learn more »</a></strong><br />If you like AdRotate, consider upgrading to AdRotate Pro and benefit from many <a href="admin.php?page=adrotate-pro">extra features</a> to make your campaigns more profitable!</p>';
$pointer_content .= '<p><strong>Ad blockers</strong><br />Disable your ad blocker in your browser so your adverts and dashboard show up correctly. AdRotate Pro has a <a href="admin.php?page=adrotate-pro">disguise feature</a> for adverts to help you avoid ad blockers.</p>';
?>
<script type="text/javascript">
jQuery(document).ready(function($) {
$('#toplevel_page_adrotate').pointer({
'content':'<?php echo $pointer_content; ?>',
'position':{ 'edge':'left', 'align':'middle' },
close: function() {
$.post(ajaxurl, {
pointer:'adrotatefree_'+<?php echo ADROTATE_VERSION.ADROTATE_DB_VERSION; ?>,
action:'dismiss-wp-pointer'
});
}
}).pointer("open");
});
</script>
<?php
}
Dismiss button create by this code not working. A popup is sticked in administration panel all the time.