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

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. * @deprecated 12.5
  11. *
  12. * @codeCoverageIgnore
  13. */
  14. class WPSEO_Config_Field_Google_Search_Console_Intro extends WPSEO_Config_Field {
  15. /**
  16. * WPSEO_Config_Field_Social_Profiles_Intro constructor.
  17. *
  18. * @deprecated 12.5
  19. *
  20. * @codeCoverageIgnore
  21. */
  22. public function __construct() {
  23. _deprecated_function( __METHOD__, 'WPSEO 12.5' );
  24. parent::__construct( 'googleSearchConsoleIntro', 'HTML' );
  25. $html =
  26. sprintf(
  27. /* 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. */
  28. esc_html__( '%1$s integrates with Google Search Console, a must-have tool for site owners. It provides you with information about the health of your site. Don\'t have a Google account or is your site not activated yet? Find out %2$show to connect Google Search Console to your site%3$s.', 'wordpress-seo' ),
  29. 'Yoast SEO',
  30. '<a href="' . esc_url( WPSEO_Shortlinker::get( 'https://yoa.st/1ex' ) ) . '" target="_blank">',
  31. '</a>'
  32. );
  33. $disclaimer = __( 'Note: we don\'t store your data in any way and don\'t have full access to your account. Your privacy is safe with us.', 'wordpress-seo' );
  34. $html = '<p>' . $html . '</p><small>' . esc_html( $disclaimer ) . '</small>';
  35. $this->set_property( 'html', $html );
  36. }
  37. }