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

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

', 'ampforwp'); $content .= __('
','ampforwp'); $options = array ( 'content' => $content, 'position' => array ('edge' => 'left', 'align' => 'left') ); } if ($show_pointer) { $this->ampforwp_pointer_script ($id, $options, __('Dismiss', 'ampforwp'), $button2, $function); } } function get_admin_url($page, $tab) { $url = admin_url(); $url .= $page.'?tab='.$tab; return $url; } function ampforwp_pointer_script ($id, $options, $button1, $button2=false, $function='') { ?>