GPAISRSettings

GPAISRSettings class.

Defined (1)

The class is defined in the following location(s).

/class.settings.php  
  1. class GPAISRSettings { 
  2. /** 
  3. * pagehook 
  4. * will be set in the menu-function 
  5. * (default value: '') 
  6. * @var string 
  7. * @access private 
  8. * @since 0.7 
  9. */ 
  10. private $_pagehook = ''; 
  11.  
  12.  
  13. /** 
  14. * @var string|null 
  15. * @since 0.7 
  16. */ 
  17. private $_plugin_file = null; 
  18.  
  19.  
  20. /** 
  21. * __construct function. 
  22. * @access public 
  23. * @since 0.7 
  24. * @param $plugin_file 
  25. * @return \GPAISRSettings 
  26. */ 
  27. function __construct( $plugin_file ) { 
  28.  
  29. $this->_plugin_file = $plugin_file; 
  30.  
  31. // Creates the menu 
  32. add_action( 'admin_menu', array( $this, 'menu' ) ); 
  33.  
  34. // Creates the settings (and the settings page) 
  35. add_action( 'admin_init', array( $this, 'settings' ) ); 
  36.  
  37. add_filter( 'plugin_action_links_' . plugin_basename( $this->_plugin_file ), array( 
  38. $this,  
  39. 'plugin_action_links' 
  40. ) ); 
  41.  
  42. add_action( 'admin_notices', array( $this, 'admin_notice' ) ); 
  43.  
  44.  
  45.  
  46. /** 
  47. * scripts function. 
  48. * adds the scripts which are important for add_metabox 
  49. * @access public 
  50. * @return void 
  51. * @since 0.7 
  52. */ 
  53. public function scripts() { 
  54. wp_enqueue_script( 'common' ); 
  55. wp_enqueue_script( 'wp-lists' ); 
  56. wp_enqueue_script( 'postbox' ); 
  57.  
  58.  
  59. /** 
  60. * menu function. 
  61. * will add the menu in the WordPress backend 
  62. * @access public 
  63. * @return void 
  64. * @since 0.7 
  65. */ 
  66. public function menu() { 
  67. $this->_pagehook = add_options_page( __( 'Google+ Author Free', 'gpaisr' ), __( 'Google+ Author Free', 'gpaisr' ), 'administrator', 'gpaisr', array( 
  68. $this,  
  69. 'settings_page' 
  70. ) ); 
  71. add_action( 'load-' . $this->_pagehook, array( $this, 'scripts' ) ); 
  72.  
  73.  
  74. /** 
  75. * settings_page function. 
  76. * creates the settings page content and some metaboxes 
  77. * @access public 
  78. * @return void 
  79. * @since 0.7 
  80. */ 
  81. public function settings_page() { 
  82. // add meteabox "General" 
  83. add_meta_box( 'gpaisr-contentbox-1', __( 'General' ), array( 
  84. $this,  
  85. 'metabox_general' 
  86. ), $this->_pagehook, 'normal', 'core' ); 
  87.  
  88. // add metabox "howto" 
  89. add_meta_box( 'gpaisr-contentbox-2', __( 'What to do', 'gpaisr' ), array( 
  90. $this,  
  91. 'metabox_howto' 
  92. ), $this->_pagehook, 'normal', 'low' ); 
  93.  
  94. // add metabox "settings 
  95. add_meta_box( 'gpaisr-contentbox-3', __( 'Settings' ), array( 
  96. $this,  
  97. 'metabox_settings' 
  98. ), $this->_pagehook, 'normal', 'low' ); 
  99.  
  100. // add metabox "about" 
  101. /** 
  102. add_meta_box( 'gpaisr-contentbox-4', __( 'About', 'gpaisr' ), array( 
  103. $this,  
  104. 'metabox_about' 
  105. ), $this->_pagehook, 'side', 'default' ); 
  106. */ 
  107.  
  108. add_meta_box( 'gpaisr-contentbox-8', __( 'Important Notice', 'gpaisr' ), array( 
  109. $this,  
  110. 'metabox_important_notice' 
  111. ), $this->_pagehook, 'side', 'default' ); 
  112.  
  113. // add metabox "share" 
  114. add_meta_box( 'gpaisr-contentbox-5', __( 'Share', 'gpaisr' ), array( 
  115. $this,  
  116. 'metabox_share' 
  117. ), $this->_pagehook, 'side', 'default' ); 
  118.  
  119. add_meta_box( 'gpaisr-contentbox-7', __( 'Discover', 'gpaisr' ), array( 
  120. $this,  
  121. 'metabox_discover' 
  122. ), $this->_pagehook, 'side', 'default' ); 
  123.  
  124. // add the metabox "links" 
  125. add_meta_box( 'gpaisr-contentbox-6', __( 'Helpful links', 'gpaisr' ), array( 
  126. $this,  
  127. 'metabox_links' 
  128. ), $this->_pagehook, 'side', 'default' ); 
  129.  
  130.  
  131. global $screen_layout_columns; 
  132.  
  133. $lastPostPermalink = get_bloginfo( 'url' ); 
  134. query_posts( 'showposts=1&post_status=publish' ); 
  135. while ( have_posts() ) : the_post(); 
  136. $lastPostPermalink = get_permalink(); 
  137. endwhile; 
  138.  
  139. include_once( 'page.settings.php' ); 
  140.  
  141.  
  142. /** 
  143. * metabox_general function. 
  144. * creates the content for the general metabox 
  145. * @access public 
  146. * @param mixed $data 
  147. * @return void 
  148. * @since 0.6 
  149. */ 
  150. public function metabox_general( $data ) { 
  151. echo '<p>' . __( 'This plugin will replace your author link in your template with your Google+ Profile link to make sure that your Google+ profile picture will be shown in the search results and/or Google News.', 'gpaisr' ) . '</p>'; 
  152. echo '<p>' . __( 'Alternatively the link can be included after the content if your template does not show the author link.', 'gpaisr' ) . '</p>'; 
  153.  
  154. echo '<p><strong>' . __( 'Please note:', 'gpaisr' ) . '</strong> ' . __( 'Google says that there is no guarantee that a Rich Snippet will be shown for your page on actual search results.', 'gpaisr' ) . ' <a href="http://support.google.com/webmasters/bin/answer.py?hl=en&answer=1306778&ctx=cb&src=cb&cbid=-1n2ig3z0a1yr8&cbrank=0" target="_blank">' . __( 'Please click here for more information', 'gpaisr' ) . '</a></p>'; 
  155.  
  156.  
  157. /** 
  158. * metabox_howto function. 
  159. * creates the content for the howto-metabox 
  160. * @access public 
  161. * @param mixed $data 
  162. * @return void 
  163. * @since 0.6 
  164. */ 
  165. public function metabox_howto( $data ) { 
  166. ?> 
  167.  
  168. <h4><?php echo __( 'A) Set up authorship by linking your content to your Google+ profile', 'gpaisr' ); ?></h4> 
  169.  
  170. <ol id="gplisting"> 
  171.  
  172. <li><?php echo sprintf( __( 'Follow this link to open your Google+ profile: %s', 'gpaisr' ), '<a href="http://plus.google.com/me" target="_blank">http://plus.google.com/me</a>' ); ?></li> 
  173.  
  174. <li><?php echo __( 'Copy your Profile-URL from the address bar to clipboard (see picture below):', 'gpaisr' ); ?> 
  175. <br /> 
  176. <img src="<?php echo plugins_url( 'images/gplus-profile.jpg', __FILE__ ); ?>" alt="" style="border: 1px solid black;" /> 
  177. </li> 
  178.  
  179. <li><?php echo __( 'Go to your Wordpress Admin Panel and click Users -> Your Profile. Paste the above mentioned URL to the field where it says "Google+".', 'gpaisr' ); ?> 
  180. <br /> 
  181. <img src="<?php echo plugins_url( 'images/gplus-update-profile.jpg', __FILE__ ); ?>" alt="" style="border: 1px solid black;" /> 
  182. </li> 
  183.  
  184. <li><?php echo __( 'Click Update Profile.', 'gpaisr' ); ?></li> 
  185.  
  186. <li><?php echo __( 'Repeat the above steps with all the other Wordpress authors on your blog.', 'gpaisr' ); ?></li> 
  187.  
  188. </ol> 
  189.  
  190. <br /> 
  191. <h4><?php echo __( 'B) Add a reciprocal link back from your profile to the site you just updated', 'gpaisr' ); ?></h4> 
  192.  
  193. <ol id="gplisting"> 
  194.  
  195. <li><?php echo sprintf( __( 'Follow this link to edit the Contributor To section: %s', 'gpaisr' ), '<a href="http://plus.google.com/me/about/edit/co" target="_blank">http://plus.google.com/me/about/edit/co</a>' ); ?></li> 
  196.  
  197.  
  198. <li><?php echo sprintf( __( 'A dialog will appear. Scroll down to the "Contributor to" section. Click "Add custom link" and enter your website URL: %s', 'gpaisr' ), site_url() ); ?></li> 
  199.  
  200. <li><?php echo sprintf( __( 'Optional: For the label you can use your website title: %s', 'gpaisr' ), get_bloginfo( 'name' ) ); ?></li> 
  201.  
  202. <li><?php echo __( 'If you want, click the drop-down list to specify who can see the link.', 'gpaisr' ); ?></li> 
  203.  
  204. <li><?php echo __( 'Click Save.', 'gpaisr' ); ?></li> 
  205.  
  206. <li><?php echo __( 'Tell your authors that they should also do step B.', 'gpaisr' ); ?></li> 
  207.  
  208. </ol> 
  209.  
  210. <br /> 
  211. <h4><?php echo __( 'C) Test', 'gpaisr' ); ?></h4> 
  212.  
  213. <ol id="gplisting"> 
  214.  
  215. <li><?php echo __( 'To see what author data Google can extract from your page, use the Rich Snippet Testing Tool.', 'gpaisr' ); ?></li> 
  216.  
  217. </ol> 
  218.  
  219. <?php 
  220.  
  221.  
  222. /** 
  223. * metabox_settings function. 
  224. * creates the content for the settings metabox 
  225. * @access public 
  226. * @param mixed $data 
  227. * @return void 
  228. * @since 0.6 
  229. */ 
  230. public function metabox_settings( $data ) { 
  231. ?> 
  232. <form action="options.php" method="post"> 
  233.  
  234. <?php settings_fields( 'gpaisr_options_group' ); ?> 
  235.  
  236. <?php 
  237. do_settings_sections( 'gpaisr' ); 
  238. wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); 
  239. wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false ); 
  240. ?> 
  241.  
  242. <p class="submit" style="float:left;"> 
  243. <input name="Submit" type="submit" class="button-primary" value="<?php esc_attr_e( 'Save Changes' ); ?>" /> 
  244. </p> 
  245. </form> 
  246. <form action="http://www.google.com/webmasters/tools/richsnippets" method="get" target="_blank"> 
  247. <input type="hidden" value="<?php echo $data['lastPostPermalink']; ?>" name="url" /> 
  248.  
  249. <p class="submit"> 
  250. <input name="Submit" type="submit" class="button-primary" value="<?php echo __( 'Test the latest post or page.', 'gpaisr' ); ?>" /> 
  251. </p> 
  252. <br class="clear" /> 
  253. </form> 
  254. <?php 
  255.  
  256.  
  257. /** 
  258. * Shows the "about" metabox 
  259. * @since 0.7 
  260. */ 
  261. /** 
  262. public function metabox_about() { 
  263. ?> 
  264. <a href="http://bit.ly/TO0Z5w" target="_blank"><img src="https://wpbuddy.libra.uberspace.de/secure/wp-buddy-logo.png" alt="WPBuddy Logo" /></a><?php 
  265. */ 
  266.  
  267. /** 
  268. * Shows the user that this is no longer maintained. 
  269. * @since 0.8 
  270. * @access public 
  271. * @return void 
  272. */ 
  273. public function metabox_important_notice() { 
  274. echo '<p>'; 
  275. _e( 'Please note that Google no longer shows author information in search results. This means that you don\'t necessarily need this plugin. Please also note that due to this fact, this plugin will no longer be maintained.', 'gpaisr' ); 
  276. echo '</p>'; 
  277.  
  278. /** 
  279. * metabox_share function. 
  280. * creates the content for the sare side-metabox 
  281. * @access public 
  282. * @param mixed $data 
  283. * @return void 
  284. * @since 0.6 
  285. */ 
  286. public function metabox_share( $data ) { 
  287. ?> 
  288.  
  289. <!-- Google+ Button --> 
  290. <p><div style="width: 220px;" class="g-plusone" data-size="medium" data-annotation="inline" data-href="http://wp-buddy.com/products/plugins/google-authorship-wordpress-plugin/"></div></p> 
  291.  
  292. <!-- Facebook button --> 
  293. <p> 
  294. <div class="fb-like" data-href="http://wp-buddy.com/products/plugins/google-authorship-wordpress-plugin/" data-send="false" data-layout="button_count" data-width="150" data-show-faces="false"></div></p> 
  295.  
  296. <!-- Twitter-Button --> 
  297. <p> 
  298. <a href="https://twitter.com/share" class="twitter-share-button" data-url="http://wp-buddy.com/products/plugins/google-authorship-wordpress-plugin/" data-via="floriansimeth">Tweet</a> 
  299. </p> 
  300. <?php 
  301.  
  302.  
  303. /** 
  304. * metabox_discover function. 
  305. * creates a metabox with the affiliate link to pro-version 
  306. * @access public 
  307. * @param mixed $data 
  308. * @return void 
  309. * @since 0.6 
  310. */ 
  311. public function metabox_discover( $data ) { 
  312. ?> 
  313. <a href="https://wp-buddy.com" target="_blank"><img src="https://wp-buddy.com/secure/google-author-pro.jpg" border="0" alt="" /></a> 
  314. <?php 
  315.  
  316.  
  317. /** 
  318. * settings function. 
  319. * creates the settings-fields in the settings-metabox 
  320. * @access public 
  321. * @return void 
  322. * @since 0.6 
  323. */ 
  324. function settings() { 
  325.  
  326. register_setting( 'gpaisr_options_group', 'gpaisr' ); 
  327.  
  328. add_settings_section( 'gpaisr_section_text', '', array( $this, 'sectionText' ), 'gpaisr' ); 
  329.  
  330. add_settings_field( 'gpaisr_into_header', __( 'Add to the header', 'gpaisr' ), array( 
  331. $this,  
  332. 'field_into_header' 
  333. ), 'gpaisr', 'gpaisr_section_text' ); 
  334.  
  335. add_settings_field( 'gpaisr_replace_author_link', __( 'Replace author link with the Google Profile URL?', 'gpaisr' ), array( 
  336. $this,  
  337. 'field_replacement' 
  338. ), 'gpaisr', 'gpaisr_section_text' ); 
  339.  
  340. add_settings_field( 'gpaisr_hide_author_link_in_content', __( 'Show or hide the link in the content-section?', 'gpaisr' ), array( 
  341. $this,  
  342. 'field_hide' 
  343. ), 'gpaisr', 'gpaisr_section_text' ); 
  344.  
  345. add_settings_field( 'gpaisr_open_in_new_window', __( 'Open the link in a new window?', 'gpaisr' ), array( 
  346. $this,  
  347. 'field_new_window' 
  348. ), 'gpaisr', 'gpaisr_section_text' ); 
  349.  
  350. add_settings_field( 'gpaisr_rss', __( 'Display in Feed?', 'gpaisr' ), array( 
  351. $this,  
  352. 'field_rss' 
  353. ), 'gpaisr', 'gpaisr_section_text' ); 
  354.  
  355. add_settings_field( 'gpaisr_link_text', __( 'Link text', 'gpaisr' ), array( 
  356. $this,  
  357. 'field_link_text' 
  358. ), 'gpaisr', 'gpaisr_section_text' ); 
  359.  
  360. add_settings_field( 'gpaisr_affiliate', '', array( 
  361. $this,  
  362. 'field_affiliate' 
  363. ), 'gpaisr', 'gpaisr_section_text' ); 
  364.  
  365.  
  366.  
  367. /** 
  368. * sectionText function. 
  369. * this is a text-section 
  370. * @access public 
  371. * @return void 
  372. * @since 0.6 
  373. */ 
  374. function sectionText() { 
  375. echo '<p>' . __( 'Not every theme shows the Author-Link right beside a page or an article. In this case activate the link to be included after the content.', 'gpaisr' ); 
  376.  
  377.  
  378. function field_into_header() { 
  379. $options = get_option( 'gpaisr' ); 
  380. if ( ! isset( $options['into_header'] ) ) { 
  381. $options['into_header'] = 0; 
  382. echo "<input " . checked( intval( $options['into_header'] ), 1, false ) . " id='gpaisr_into_header' name='gpaisr[into_header]' type='checkbox' value='1' />"; 
  383. echo ' <small>' . __( '(Recommended. Not visible to the user.)', 'gpaisr' ) . '</small>'; 
  384.  
  385. ?> 
  386. <script type="text/javascript"> 
  387. /* <![CDATA[ */ 
  388. jQuery( document ).ready( function () { 
  389. if ( jQuery( '#gpaisr_into_header' ).is( ':checked' ) ) { 
  390. jQuery( '#gpaisr_into_header' ).closest( 'table' ).find( 'tr:gt(0)' ).hide(); 
  391.  
  392. jQuery( '#gpaisr_into_header' ).on( 'click', function () { 
  393. if ( jQuery( this ).is( ':checked' ) ) { 
  394. jQuery( this ).closest( 'table' ).find( 'tr:gt(0)' ).hide(); 
  395. } else { 
  396. jQuery( this ).closest( 'table' ).find( 'tr:gt(0)' ).show(); 
  397. } ); 
  398. } ); 
  399. /* ]]> */ 
  400. </script> 
  401. <?php 
  402.  
  403. /** 
  404. * field_replacement function. 
  405. * shows the replacement-settings field 
  406. * @access public 
  407. * @return void 
  408. * @since 0.6 
  409. */ 
  410. function field_replacement() { 
  411. $options = get_option( 'gpaisr' ); 
  412. if ( ! isset( $options['replacement'] ) ) { 
  413. $options['replacement'] = 0; 
  414. echo "<input " . ( ( $options['replacement'] == 1 ) ? 'checked="checked"' : '' ) . " id='gpaisr_replace_author_link_1' name='gpaisr[replacement]' type='radio' value='1' /> " . __( 'Yes' ) . ' <small>' . __( '(Please note: Some themes does not support this.)', 'gpaisr' ) . '</small>'; 
  415. echo "<br /><input " . ( ( empty( $options['replacement'] ) ) ? 'checked="checked"' : '' ) . " id='gpaisr_replace_author_link_0' name='gpaisr[replacement]' type='radio' value='0' /> " . __( 'No' ) . '. <small>' . __( 'Instead show it in the content-area (see below)', 'gpaisr' ) . '</small>'; 
  416.  
  417.  
  418. /** 
  419. * field_hide function. 
  420. * displays the show or hide settings field 
  421. * @access public 
  422. * @return void 
  423. * @since 0.6 
  424. */ 
  425. function field_hide() { 
  426. $options = get_option( 'gpaisr' ); 
  427. if ( ! isset( $options['hide'] ) ) { 
  428. $options['hide'] = 0; 
  429. echo "<input " . ( ( $options['hide'] == 1 ) ? 'checked="checked"' : '' ) . " id='gpaisr_replace_hide_1' name='gpaisr[hide]' type='radio' value='1' /> " . __( 'Hide' ) . ' <small>' . __( '(Please not that Google does not like hidden links)', 'gpaisr' ) . '</small>'; 
  430. echo "<br /><input " . ( ( empty( $options['hide'] ) ) ? 'checked="checked"' : '' ) . " id='gpaisr_replace_hide_0' name='gpaisr[hide]' type='radio' value='0' /> " . __( 'Show' ); 
  431.  
  432.  
  433. /** 
  434. * field_new_window function. 
  435. * shows the new window settings field 
  436. * @access public 
  437. * @return void 
  438. * @since 0.6 
  439. */ 
  440. function field_new_window() { 
  441. $options = get_option( 'gpaisr' ); 
  442. echo "<input " . ( ( isset( $options['new_window'] ) && $options['new_window'] == 1 ) ? 'checked="checked"' : '' ) . " id='gpaisr_new_window' name='gpaisr[new_window]' type='checkbox' value='1' />"; 
  443.  
  444.  
  445. /** 
  446. * field_rss function. 
  447. * shows the "no rss" settings field 
  448. * @access public 
  449. * @return void 
  450. * @since 0.6 
  451. */ 
  452. function field_rss() { 
  453. $options = get_option( 'gpaisr' ); 
  454. echo "<input " . ( ( isset( $options['in_feed'] ) && $options['in_feed'] == 1 ) ? 'checked="checked"' : '' ) . " id='gpaisr_in_feed' name='gpaisr[in_feed]' type='checkbox' value='1' /> <small>(" . __( 'Check this if you want to display the Google+ Link inside the feeds.', 'gpaisr' ) . ')</small>'; 
  455.  
  456.  
  457. /** 
  458. * field_link_text function. 
  459. * displays the link text settings field 
  460. * @access public 
  461. * @return void 
  462. * @since 0.6 
  463. */ 
  464. function field_link_text() { 
  465. $options = get_option( 'gpaisr' ); 
  466. echo "<input id='gpaisr_link_text' name='gpaisr[link_text]' size='40' type='text' value='" . ( ( ! isset( $options['link_text'] ) ) ? 'Google+' : $options['link_text'] ) . "' />"; 
  467.  
  468.  
  469. /** 
  470. * field_affiliate function. 
  471. * displays the affiliate link to pro-version 
  472. * @access public 
  473. * @return void 
  474. * @since 0.6 
  475. */ 
  476. function field_affiliate() { 
  477. echo '<a href="http://bit.ly/Wn88bZ" target="_blank">' . __( 'Need more options and an automatic test? Check out the Extended Version of this Plugin', 'gpaisr' ) . '</a>'; 
  478.  
  479.  
  480. /** 
  481. * Adds links to the plugins menu (where the plugins are listed) 
  482. * @param array $links 
  483. * @since 0.7 
  484. * @return array 
  485. */ 
  486. public function plugin_action_links( $links ) { 
  487. $links[] = '<a href="' . get_admin_url( null, 'options-general.php?page=' . str_replace( 'settings_page_', '', $this->_pagehook ) ) . '">' . __( 'Settings', 'gpaisr' ) . '</a>'; 
  488. $links[] = '<a href="http://wp-buddy.com/products/" target="_blank">' . __( 'More Plugins by WPBuddy', 'gpaisr' ) . '</a>'; 
  489.  
  490. return $links; 
  491.  
  492.  
  493. /** 
  494. * Outputs the metabox content for the links 
  495. * @since 0.7 
  496. * @return void 
  497. */ 
  498. public function metabox_links() { 
  499. ?> 
  500. <ul> 
  501. <li> 
  502. <a href="http://wordpress.org/extend/plugins/google-author-information-in-search-results-wordpress-plugin/installation/" target="_blank"><?php echo __( 'Installation manual', 'gpaisr' ); ?></a> 
  503. </li> 
  504. <li> 
  505. <a href="http://wordpress.org/support/plugin/google-author-information-in-search-results-wordpress-plugin" target="_blank"><?php echo __( 'Support forum', 'gpaisr' ); ?></a> 
  506. </li> 
  507. <li> 
  508. <a href="http://wordpress.org/extend/plugins/google-author-information-in-search-results-wordpress-plugin/changelog/" target="_blank"><?php echo __( 'Changelog', 'gpaisr' ); ?></a> 
  509. </li> 
  510. <li><a href="http://bit.ly/ZaaM8S" target="_blank"><?php echo __( 'Get the full version', 'gpaisr' ); ?></a> 
  511. </li> 
  512. <li> 
  513. <a href="http://bit.ly/UlDG4t" target="_blank"><?php echo __( 'More cool stuff by WPBuddy', 'gpaisr' ); ?></a> 
  514. </li> 
  515. </ul> 
  516. <?php 
  517.  
  518.  
  519. /** 
  520. * Informs the user that Google no longer shows author information in search results. 
  521. * @since 0.8 
  522. * @access public 
  523. * @return void 
  524. */ 
  525. public function admin_notice() { 
  526. $notice_checked = get_option( 'gpaisr_notice_checked', false ); 
  527.  
  528. if ( isset( $_GET['check_notice'] ) ) { 
  529. update_option( 'gpaisr_notice_checked', true ); 
  530.  
  531. return; 
  532. if ( (bool) $notice_checked ) { 
  533. return; 
  534. ?> 
  535. <div class="error"> 
  536. <p><?php _e( 'Please note that Google no longer shows author information in search results. This means that you don\'t necessarily need the Google Authorship plugin.', 'gpaisr' ); ?> 
  537. <a href="<?php echo admin_url( 'options-general.php?page=gpaisr&check_notice=1' ); ?>"><?php _e( 'Okay. I know. Thanks.', 'gpaisr' ); ?></a> 
  538. </p> 
  539. </div> 
  540. <?php