PageRenderTime 24ms CodeModel.GetById 16ms app.highlight 3ms RepoModel.GetById 2ms app.codeStats 0ms

/wp-content/plugins/wordpress-seo/admin/config-ui/fields/class-field-social-profiles-intro.php

https://bitbucket.org/carloskikea/helpet
PHP | 33 lines | 16 code | 5 blank | 12 comment | 0 complexity | e9070efdbe9cecb88a8d9a4ce6b17b96 MD5 | raw file
 1<?php
 2/**
 3 * WPSEO plugin file.
 4 *
 5 * @package WPSEO\Admin\ConfigurationUI
 6 */
 7
 8/**
 9 * Class WPSEO_Config_Field_Social_Profiles_Intro
10 */
11class WPSEO_Config_Field_Social_Profiles_Intro extends WPSEO_Config_Field {
12
13	/**
14	 * WPSEO_Config_Field_Social_Profiles_Intro constructor.
15	 */
16	public function __construct() {
17		parent::__construct( 'socialProfilesIntro', 'HTML' );
18
19		$intro_text = sprintf(
20			/* translators: %1$s is the plugin name, %2$s is a link opening tag, %3$s is a link closing tag. */
21			__( '%1$s can tell search engines about your social media profiles.
22 These will be used in Google\'s Knowledge Graph. There are additional
23 sharing options in the %1$s Social settings. %2$sRead more%3$s about these options.', 'wordpress-seo' ),
24			'Yoast SEO',
25			'<a target="_blank" rel="noopener noreferrer" href="' . WPSEO_Shortlinker::get( 'https://yoa.st/1ey' ) . '">',
26			'</a>'
27		);
28
29		$html = '<p>' . $intro_text . '</p>';
30
31		$this->set_property( 'html', $html );
32	}
33}