/wp-content/plugins/wordpress-seo/admin/config-ui/fields/class-field-upsell-configuration-service.php

https://bitbucket.org/carloskikea/helpet · PHP · 45 lines · 25 code · 7 blank · 13 comment · 0 complexity · 5ceef65f98cd14cc8d849fea4c294563 MD5 · raw file

  1. <?php
  2. /**
  3. * WPSEO plugin file.
  4. *
  5. * @package WPSEO\Admin\ConfigurationUI
  6. */
  7. /**
  8. * Class WPSEO_Config_Field_Upsell_Configuration_Service
  9. */
  10. class WPSEO_Config_Field_Upsell_Configuration_Service extends WPSEO_Config_Field {
  11. /**
  12. * WPSEO_Config_Field_Upsell_Configuration_Service constructor.
  13. */
  14. public function __construct() {
  15. parent::__construct( 'upsellConfigurationService', 'HTML' );
  16. $intro_text = sprintf(
  17. /* translators: %1$s expands to Yoast SEO. */
  18. __( 'Welcome to the %1$s configuration wizard. In a few simple steps we\'ll help you configure your SEO settings to match your website\'s needs!', 'wordpress-seo' ),
  19. 'Yoast SEO'
  20. );
  21. $upsell_text = sprintf(
  22. /* Translators: %1$s expands to Yoast SEO, %2$s expands to Yoast SEO Premium, %3$s opens the link, %4$s closes the link. */
  23. __( 'While we strive to make setting up %1$s as easy as possible, we understand it can be daunting. If you’d rather have us set up %1$s for you (and get a copy of %2$s in the process), order our %3$s%1$s configuration service%4$s here!', 'wordpress-seo' ),
  24. 'Yoast SEO',
  25. 'Yoast SEO Premium',
  26. '<a target="_blank" href="' . WPSEO_Shortlinker::get( 'https://yoa.st/configuration-package' ) . '">',
  27. '</a>'
  28. );
  29. $html = '<p>' . esc_html( $intro_text ) . '</p>';
  30. $html .= '<p><em>' . wp_kses( $upsell_text, array(
  31. 'a' => array(
  32. 'target' => array( '_blank' ),
  33. 'href' => array(),
  34. ),
  35. ) ) . '</em></p>';
  36. $this->set_property( 'html', $html );
  37. }
  38. }