ID, 'dismissed_wp_pointers', true)); $do_tour = !in_array ('adsforwp_subscribe_pointer', $dismissed); if ($do_tour) { wp_enqueue_style ('wp-pointer'); wp_enqueue_script ('wp-pointer'); add_action('admin_print_footer_scripts', array($this, 'adsforwp_admin_print_footer_scripts')); add_action('admin_head', array($this, 'adsforwp_admin_head')); // Hook to admin head } } function adsforwp_admin_head () { ?> ' . sprintf (__('You are awesome for using Ads for WP!', 'ads-for-wp'), self::DISPLAY_VERSION) . ''; $content .= __('

Do you want the latest on Ads update before others and some best resources on monetization in a single email? - Free just for users of ADS!

', 'ads-for-wp'); $content .= __('
','ads-for-wp'); $options = array ( 'content' => $content, 'position' => array ('edge' => 'top', 'align' => 'left') ); } if ($show_pointer) { $this->adsforwp_pointer_script ($displayID, $options, esc_html__('No Thanks', 'ads-for-wp'), $button2, $function); } } function adsforwp_get_admin_url($page, $tab) { $url = admin_url(); $url .= $page.'?tab='.$tab; return $url; } function adsforwp_pointer_script ($displayID, $options, $button1, $button2=false, $function='') { ?>