class-field-google-search-console-intro.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. * WPSEO plugin file.
  4. *
  5. * @package WPSEO\Admin\ConfigurationUI
  6. */
  7. /**
  8. * Class WPSEO_Config_Field_Google_Search_Console_Intro
  9. */
  10. class WPSEO_Config_Field_Google_Search_Console_Intro extends WPSEO_Config_Field {
  11. /**
  12. * WPSEO_Config_Field_Social_Profiles_Intro constructor.
  13. */
  14. public function __construct() {
  15. parent::__construct( 'googleSearchConsoleIntro', 'HTML' );
  16. $html = sprintf(
  17. /* translators: %1$s is the plugin name, %2$s is a link start tag to a Yoast help page, %3$s is the link closing tag. */
  18. esc_html__(
  19. '%1$s integrates with Google Search Console, a must-have tool for site owners.
  20. It provides you with information about the health of your site.
  21. Don\'t have a Google account or is your site not activated yet?
  22. Find out %2$show to connect Google Search Console to your site.%3$s',
  23. 'wordpress-seo'
  24. ),
  25. 'Yoast SEO',
  26. '<a href="' . esc_url( WPSEO_Shortlinker::get( 'https://yoa.st/1ex' ) ) . '">',
  27. '</a>'
  28. );
  29. $disclaimer = __( 'Note: we don\'t store your data in any way and don\'t have full access to your account.
  30. Your privacy is safe with us.', 'wordpress-seo' );
  31. $html = '<p>' . $html . '</p><small>' . esc_html( $disclaimer ) . '</small>';
  32. $this->set_property( 'html', $html );
  33. }
  34. }