PageRenderTime 19ms CodeModel.GetById 16ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 1ms

/wp-content/plugins/wordpress-seo/admin/views/tabs/social/pinterest.php

https://bitbucket.org/carloskikea/helpet
PHP | 40 lines | 24 code | 7 blank | 9 comment | 1 complexity | c6efab5f7bfd1b9573de595c261fb34a MD5 | raw file
 1<?php
 2/**
 3 * WPSEO plugin file.
 4 *
 5 * @package WPSEO\Admin\Views
 6 */
 7
 8/**
 9 * @var Yoast_Form $yform
10 */
11
12if ( ! defined( 'WPSEO_VERSION' ) ) {
13	header( 'Status: 403 Forbidden' );
14	header( 'HTTP/1.1 403 Forbidden' );
15	exit();
16}
17
18echo '<h2>' . esc_html__( 'Pinterest settings', 'wordpress-seo' ) . '</h2>';
19
20printf(
21	'<p>%s</p>',
22	esc_html__( 'Pinterest uses Open Graph metadata just like Facebook, so be sure to keep the Open Graph checkbox on the Facebook tab checked if you want to optimize your site for Pinterest.', 'wordpress-seo' )
23);
24printf(
25	'<p>%s</p>',
26	esc_html__( 'If you have already confirmed your website with Pinterest, you can skip the step below.', 'wordpress-seo' )
27);
28
29echo '<p>';
30printf(
31	/* translators: %1$s / %2$s expands to a link to pinterest.com's help page. */
32	esc_html__( 'To %1$sconfirm your site with Pinterest%2$s, add the meta tag here:', 'wordpress-seo' ),
33	'<a target="_blank" href="https://help.pinterest.com/en/articles/confirm-your-website#meta_tag">',
34	'</a>'
35);
36echo '</p>';
37
38$yform->textinput( 'pinterestverify', __( 'Pinterest confirmation', 'wordpress-seo' ) );
39
40do_action( 'wpseo_admin_pinterest_section' );