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 (esc_html__('You are awesome for using AMP!', 'accelerated-mobile-pages'), self::DISPLAY_VERSION) . ''; $content .= '

' . esc_html__('Do you want the latest update on', 'accelerated-mobile-pages') . '' . esc_html__(' AMP ', 'accelerated-mobile-pages') . '' . esc_html__('before others and some best resources on AMP in a single email? - Free just for users of AMP!', 'accelerated-mobile-pages').'

'; $content .= '
'; $options = array ( 'content' => $content, 'position' => array ('edge' => 'left', 'align' => 'left') ); } if ($show_pointer) { $this->ampforwp_pointer_script ($id, $options, esc_html__('No Thanks', 'accelerated-mobile-pages'), $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='') { ?>