PageRenderTime 54ms CodeModel.GetById 51ms app.highlight 2ms RepoModel.GetById 0ms app.codeStats 0ms

/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/**
 9 * Class WPSEO_Config_Field_Upsell_Configuration_Service
10 */
11class WPSEO_Config_Field_Upsell_Configuration_Service extends WPSEO_Config_Field {
12
13	/**
14	 * WPSEO_Config_Field_Upsell_Configuration_Service constructor.
15	 */
16	public function __construct() {
17		parent::__construct( 'upsellConfigurationService', 'HTML' );
18
19		$intro_text = sprintf(
20			/* translators: %1$s expands to Yoast SEO. */
21			__( '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' ),
22			'Yoast SEO'
23		);
24
25		$upsell_text = sprintf(
26			/* Translators: %1$s expands to Yoast SEO, %2$s expands to Yoast SEO Premium, %3$s opens the link, %4$s closes the link. */
27			__( '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' ),
28			'Yoast SEO',
29			'Yoast SEO Premium',
30			'<a target="_blank" href="' . WPSEO_Shortlinker::get( 'https://yoa.st/configuration-package' ) . '">',
31			'</a>'
32		);
33
34		$html  = '<p>' . esc_html( $intro_text ) . '</p>';
35		$html .= '<p><em>' . wp_kses( $upsell_text, array(
36				'a' => array(
37					'target' => array( '_blank' ),
38					'href'   => array(),
39				),
40			) ) . '</em></p>';
41
42
43		$this->set_property( 'html', $html );
44	}
45}