class-field-upsell-site-review.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * WPSEO plugin file.
  4. *
  5. * @package WPSEO\Admin\ConfigurationUI
  6. */
  7. /**
  8. * Class WPSEO_Config_Field_Upsell_Site_Review
  9. */
  10. class WPSEO_Config_Field_Upsell_Site_Review extends WPSEO_Config_Field {
  11. /**
  12. * WPSEO_Config_Field_Upsell_Site_Review constructor.
  13. */
  14. public function __construct() {
  15. parent::__construct( 'upsellSiteReview', 'HTML' );
  16. $upsell_text = sprintf(
  17. /* translators: %1$s will be a link to a review explanation page. Text between %2$s and %3$s will be a link to an SEO copywriting course page. */
  18. __( 'If you want more help creating awesome content, check out our %2$sSEO copywriting course%3$s. Do you want to know all about the features of the plugin, consider doing our %1$s!', 'wordpress-seo' ),
  19. '<a href="' . WPSEO_Shortlinker::get( 'https://yoa.st/yoastseotraining' ) . '" target="_blank">Yoast SEO for WordPress training</a>',
  20. '<a href="' . WPSEO_Shortlinker::get( 'https://yoa.st/configuration-wizard-copywrite-course-link' ) . '" target="_blank">',
  21. '</a>'
  22. );
  23. $html = '<p>' .
  24. wp_kses( $upsell_text, array(
  25. 'a' => array(
  26. 'href' => array(),
  27. 'target' => array( '_blank' ),
  28. ),
  29. ) ) .
  30. '</p>';
  31. $this->set_property( 'html', $html );
  32. }
  33. }