first commit

This commit is contained in:
2024-11-10 21:08:49 +01:00
commit 0d932ce5ee
14455 changed files with 2567501 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
<?php
/**
* WPSEO plugin file.
*
* @package WPSEO\Admin\Views
*
* @uses Yoast_Form $yform Form object.
*/
if ( ! defined( 'WPSEO_VERSION' ) ) {
header( 'Status: 403 Forbidden' );
header( 'HTTP/1.1 403 Forbidden' );
exit();
}
$social_profiles_help = new WPSEO_Admin_Help_Panel(
'social-accounts',
__( 'Learn more about your social profiles settings', 'wordpress-seo' ),
__( 'To let search engines know which social profiles are associated to this site, enter your site social profiles data below.', 'wordpress-seo' ) . ' ' .
__( 'If a Wikipedia page for you or your organization exists, add it too.', 'wordpress-seo' ),
'has-wrapper'
);
echo '<div id="yoast-social-profiles"></div>';
do_action( 'wpseo_admin_other_section' );

View File

@@ -0,0 +1,60 @@
<?php
/**
* WPSEO plugin file.
*
* @package WPSEO\Admin\Views
*
* @uses Yoast_Form $yform Form object.
*/
use Yoast\WP\SEO\Presenters\Admin\Alert_Presenter;
if ( ! defined( 'WPSEO_VERSION' ) ) {
header( 'Status: 403 Forbidden' );
header( 'HTTP/1.1 403 Forbidden' );
exit();
}
echo '<h2>' . esc_html__( 'Facebook settings', 'wordpress-seo' ) . '</h2>';
$yform->light_switch( 'opengraph', __( 'Add Open Graph meta data', 'wordpress-seo' ) );
?>
<p>
<?php
esc_html_e( 'Enable this feature if you want Facebook and other social media to display a preview with images and a text excerpt when a link to your site is shared.', 'wordpress-seo' );
?>
</p>
<div id="wpseo-opengraph-settings" style="display: none;">
<?php
$frontpage_settings_message = sprintf(
/* translators: 1: link open tag; 2: link close tag. */
esc_html__( 'The social homepage settings have been moved to the %1$sSearch appearance settings under the General tab%2$s.', 'wordpress-seo' ),
'<a href="' . esc_url( admin_url( 'admin.php?page=wpseo_titles#top#general' ) ) . '">',
'</a>'
);
$frontpage_settings_alert = new Alert_Presenter( $frontpage_settings_message, 'info' );
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Output from present() is considered safe.
echo '<div class="yoast-measure">' . $frontpage_settings_alert->present() . '</div>';
$yform->hidden( 'og_frontpage_title', 'og_frontpage_title' );
$yform->hidden( 'og_frontpage_desc', 'og_frontpage_desc' );
$yform->hidden( 'og_frontpage_image', 'og_frontpage_image' );
$yform->hidden( 'og_frontpage_image_id', 'og_frontpage_image_id' );
echo '<h3>' . esc_html__( 'Default image', 'wordpress-seo' ) . '</h3>';
$yform->hidden( 'og_default_image', 'og_default_image' );
$yform->hidden( 'og_default_image_id', 'og_default_image_id' );
?>
<p>
<?php esc_html_e( 'This image is used if the post/page being shared does not contain any images.', 'wordpress-seo' ); ?>
</p>
<div id="yoast-og-default-image-select" class="yoast-measure"></div>
</div>
<?php
do_action( 'wpseo_admin_opengraph_section' );

View File

@@ -0,0 +1,38 @@
<?php
/**
* WPSEO plugin file.
*
* @package WPSEO\Admin\Views
*
* @uses Yoast_Form $yform Form object.
*/
if ( ! defined( 'WPSEO_VERSION' ) ) {
header( 'Status: 403 Forbidden' );
header( 'HTTP/1.1 403 Forbidden' );
exit();
}
echo '<h2>' . esc_html__( 'Pinterest settings', 'wordpress-seo' ) . '</h2>';
printf(
'<p>%s</p>',
esc_html__( 'Pinterest uses Open Graph metadata just like Facebook, so be sure to keep the "Add Open Graph meta data" setting on the Facebook tab enabled if you want to optimize your site for Pinterest.', 'wordpress-seo' )
);
printf(
'<p>%s</p>',
esc_html__( 'If you have already confirmed your website with Pinterest, you can skip the step below.', 'wordpress-seo' )
);
echo '<p>';
printf(
/* translators: %1$s / %2$s expands to a link to pinterest.com's help page. */
esc_html__( 'To %1$sconfirm your site with Pinterest%2$s, add the meta tag here:', 'wordpress-seo' ),
'<a target="_blank" href="https://www.pinterest.com/settings/claim">',
'</a>'
);
echo '</p>';
$yform->textinput( 'pinterestverify', __( 'Pinterest confirmation', 'wordpress-seo' ) );
do_action( 'wpseo_admin_pinterest_section' );

View File

@@ -0,0 +1,34 @@
<?php
/**
* WPSEO plugin file.
*
* @package WPSEO\Admin\Views
*
* @uses Yoast_Form $yform Form object.
* @uses array WPSEO_Option_Social::$twitter_card_types
*/
if ( ! defined( 'WPSEO_VERSION' ) ) {
header( 'Status: 403 Forbidden' );
header( 'HTTP/1.1 403 Forbidden' );
exit();
}
echo '<h2>' . esc_html__( 'Twitter settings', 'wordpress-seo' ) . '</h2>';
printf(
'<p>%s</p>',
esc_html__( 'Twitter uses Open Graph metadata just like Facebook, so be sure to keep the "Add Open Graph metadata" setting on the Facebook tab enabled if you want to optimize your site for Twitter.', 'wordpress-seo' )
);
$yform->light_switch( 'twitter', __( 'Add Twitter card meta data', 'wordpress-seo' ) );
echo '<p>';
esc_html_e( 'Enable this feature if you want Twitter to display a preview with images and a text excerpt when a link to your site is shared.', 'wordpress-seo' );
echo '</p>';
echo '<br />';
$yform->select( 'twitter_card_type', __( 'The default card type to use', 'wordpress-seo' ), WPSEO_Option_Social::$twitter_card_types );
do_action( 'wpseo_admin_twitter_section' );