class-field-success-message.php
1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/**
* @package WPSEO\Admin\ConfigurationUI
*/
/**
* Class WPSEO_Config_Field_Success_Message
*/
class WPSEO_Config_Field_Success_Message extends WPSEO_Config_Field {
/**
* WPSEO_Config_Field_Success_Message constructor.
*/
public function __construct() {
parent::__construct( 'successMessage', 'HTML' );
$success_message = sprintf(
/* translators: %1$s expands to Yoast SEO. */
__( 'You've done it! You've set up %1$s, and %1$s will now take care of all the needed technical optimization of your site. To really improve your site's performance in the search results, it's important to start creating content that ranks well for keywords you care about.', 'wordpress-seo' ),
'Yoast SEO'
);
$onpage_seo = sprintf(
/* translators: %1$s expands to Yoast SEO. */
__( 'Check out the video below in which we explain how to use the %1$s metabox when you edit posts or pages', 'wordpress-seo' ),
'Yoast SEO'
);
$content_analysis_video = sprintf(
'<iframe width="560" height="315" src="https://yoa.st/metabox-screencast" title="%s" frameborder="0" allowfullscreen></iframe>',
sprintf(
/* translators: %1$s expands to Yoast SEO. */
__( '%1$s video tutorial', 'wordpress-seo' ),
'Yoast SEO'
)
);
$html = '<p>' . $success_message . '</p>';
$html .= '<p>' . $onpage_seo . '</p>';
$html .= '<div class="yoast-video-container-max-width"><div class="yoast-video-container">' . $content_analysis_video . '</div></div>';
$this->set_property( 'html', $html );
}
}