plugin updates
This commit is contained in:
@@ -1,54 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* WPSEO Premium plugin file.
|
||||
*
|
||||
* @package WPSEO\Premium\Classes\Export\Views
|
||||
*/
|
||||
|
||||
$yoast_seo_button_label = __( 'Export keyphrases', 'wordpress-seo-premium' );
|
||||
|
||||
$yoast_seo_csv_export_explain = sprintf(
|
||||
/* translators: %s resolves to the button label translation. */
|
||||
esc_html__(
|
||||
'If you need a list of all public posts, terms and related keyphrases, you can generate a CSV file using the %s button below.',
|
||||
'wordpress-seo-premium'
|
||||
),
|
||||
sprintf( '<code>%s</code>', esc_html( $yoast_seo_button_label ) )
|
||||
);
|
||||
|
||||
?>
|
||||
<div id="keywords-export" class="wpseotab">
|
||||
<h2><?php esc_html_e( 'Export keyphrases to a CSV file', 'wordpress-seo-premium' ); ?></h2>
|
||||
<p><?php echo $yoast_seo_csv_export_explain; /* phpcs:ignore WordPress.Security.EscapeOutput -- See above. */ ?></p>
|
||||
<p><?php esc_html_e( 'You can add or remove columns to be included in the export using the checkboxes below.', 'wordpress-seo-premium' ); ?></p>
|
||||
|
||||
<form action="" method="post" accept-charset="<?php echo esc_attr( get_bloginfo( 'charset' ) ); ?>">
|
||||
<?php
|
||||
wp_nonce_field( 'wpseo-export', '_wpnonce', true );
|
||||
|
||||
$yoast_seo_export_fields = [
|
||||
'export-keywords-score' => __( 'Export keyphrase scores', 'wordpress-seo-premium' ),
|
||||
'export-url' => __( 'Export URL', 'wordpress-seo-premium' ),
|
||||
'export-title' => __( 'Export title', 'wordpress-seo-premium' ),
|
||||
'export-seo-title' => __( 'Export SEO title', 'wordpress-seo-premium' ),
|
||||
'export-meta-description' => __( 'Export meta description', 'wordpress-seo-premium' ),
|
||||
'export-readability-score' => __( 'Export readability score', 'wordpress-seo-premium' ),
|
||||
];
|
||||
|
||||
foreach ( $yoast_seo_export_fields as $yoast_seo_export_field_name => $yoast_seo_export_field_label ) {
|
||||
echo '<input class="checkbox double" type="checkbox" id="' . esc_attr( $yoast_seo_export_field_name ) . '" name="wpseo[' . esc_attr( $yoast_seo_export_field_name ) . ']" value="on" checked="checked" />';
|
||||
$yform->label( esc_html( $yoast_seo_export_field_label ), [ 'for' => $yoast_seo_export_field_name ] );
|
||||
echo '<br class="clear" />';
|
||||
}
|
||||
|
||||
?>
|
||||
<br class="clear">
|
||||
<input type="submit" class="button button-primary" name="export-posts" value="<?php echo esc_attr( $yoast_seo_button_label ); ?>"/>
|
||||
</form>
|
||||
|
||||
<p><strong><?php esc_html_e( 'Please note:', 'wordpress-seo-premium' ); ?></strong></p>
|
||||
<ul>
|
||||
<li><?php esc_html_e( 'The first row in this file is the header row. This row should be ignored when parsing or importing the data from the export.', 'wordpress-seo-premium' ); ?></li>
|
||||
<li><?php esc_html_e( 'Exporting data can take a long time when there are many posts, pages, public custom post types or terms.', 'wordpress-seo-premium' ); ?></li>
|
||||
</ul>
|
||||
</div>
|
||||
@@ -1,17 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* WPSEO Premium plugin file.
|
||||
*
|
||||
* @package WPSEO\Premium\Views
|
||||
*/
|
||||
|
||||
?>
|
||||
<div id="export-redirects" class="wpseotab">
|
||||
<h2><?php esc_html_e( 'Export redirects to a CSV file', 'wordpress-seo-premium' ); ?></h2>
|
||||
<p><?php esc_html_e( 'If you need to have a list of all redirects, you can generate a CSV file using the button below.', 'wordpress-seo-premium' ); ?></p>
|
||||
<p><?php esc_html_e( 'Please note that the first row in this file is a header. This row should be ignored when parsing or importing the data from the export.', 'wordpress-seo-premium' ); ?></p>
|
||||
<form action="" method="post" accept-charset="<?php echo esc_attr( get_bloginfo( 'charset' ) ); ?>">
|
||||
<?php wp_nonce_field( 'wpseo-export', '_wpnonce', true ); ?>
|
||||
<input type="submit" class="button button-primary" name="export" value="<?php esc_attr_e( 'Export redirects', 'wordpress-seo-premium' ); ?>"/>
|
||||
</form>
|
||||
</div>
|
||||
@@ -1,82 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* WPSEO Premium plugin file.
|
||||
*
|
||||
* @package WPSEO\Premium\Views
|
||||
*
|
||||
* @uses stdClass $import The import result object.
|
||||
*/
|
||||
|
||||
$yoast_seo_i18n_import_redirects_from = sprintf(
|
||||
/* translators: %s: '.htaccess' file name */
|
||||
__( 'Import redirects from %s', 'wordpress-seo-premium' ),
|
||||
'<code>.htaccess</code>'
|
||||
);
|
||||
|
||||
$yoast_seo_i18n_import_redirects_explain = sprintf(
|
||||
/* translators: %1$s: '.htaccess' file name, %2$s: plugin name */
|
||||
__( 'You can copy the contents of any %1$s file in here, and it will import the redirects into %2$s.', 'wordpress-seo-premium' ),
|
||||
'<code>.htaccess</code>',
|
||||
'Yoast SEO Premium'
|
||||
);
|
||||
|
||||
// The plugins we have import functions for.
|
||||
$yoast_seo_plugins = [
|
||||
'redirection' => __( 'Redirection', 'wordpress-seo-premium' ) . '<br/>',
|
||||
'safe_redirect_manager' => __( 'Safe Redirect Manager', 'wordpress-seo-premium' ) . '<br/>',
|
||||
'simple-301-redirects' => __( 'Simple 301 Redirects', 'wordpress-seo-premium' ) . '<br/>',
|
||||
];
|
||||
|
||||
?>
|
||||
<div id="import-htaccess" class="wpseotab">
|
||||
<div>
|
||||
<?php if ( ! empty( $import->msg ) ) : ?>
|
||||
<div class="yoast-alert notice <?php echo ( $import->success ) ? 'notice-success' : 'notice-error'; ?>">
|
||||
<p><?php echo $import->msg; ?></p>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<h2><?php esc_html_e( 'Import from other redirect plugins', 'wordpress-seo-premium' ); ?></h2>
|
||||
<form action="" method="post" accept-charset="<?php echo esc_attr( get_bloginfo( 'charset' ) ); ?>">
|
||||
<?php wp_nonce_field( 'wpseo-import', '_wpnonce', true ); ?>
|
||||
<?php
|
||||
Yoast_Form::get_instance()->radio( 'import_plugin', $yoast_seo_plugins, __( 'Import from:', 'wordpress-seo-premium' ) );
|
||||
?>
|
||||
<br/>
|
||||
<input type="submit" class="button button-primary" name="import" value="<?php esc_attr_e( 'Import redirects', 'wordpress-seo-premium' ); ?>"/>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<br/>
|
||||
|
||||
<div>
|
||||
<h2><?php esc_html_e( 'Import from a CSV file', 'wordpress-seo-premium' ); ?></h2>
|
||||
<form enctype="multipart/form-data" action="" method="post" accept-charset="<?php echo esc_attr( get_bloginfo( 'charset' ) ); ?>">
|
||||
<?php wp_nonce_field( 'wpseo-import', '_wpnonce', true ); ?>
|
||||
<p>
|
||||
<label for="redirects_csv_file"><?php esc_html_e( 'Choose a CSV file from your computer:', 'wordpress-seo-premium' ); ?></label><br/>
|
||||
<input type="file" name="redirects_csv_file" id="redirects_csv_file"/>
|
||||
</p>
|
||||
<input type="submit" class="button button-primary" name="import_csv" value="<?php esc_attr_e( 'Import CSV file', 'wordpress-seo-premium' ); ?>"/>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<br/>
|
||||
|
||||
<div>
|
||||
<h2><?php echo wp_kses( $yoast_seo_i18n_import_redirects_from, [ 'code' => [] ] ); ?></h2>
|
||||
<p>
|
||||
<?php echo wp_kses( $yoast_seo_i18n_import_redirects_explain, [ 'code' => [] ] ); ?>
|
||||
</p>
|
||||
<form action="" method="post" accept-charset="<?php echo esc_attr( get_bloginfo( 'charset' ) ); ?>">
|
||||
<?php wp_nonce_field( 'wpseo-import', '_wpnonce', true ); ?>
|
||||
<label for="htaccess" class="screen-reader-text">
|
||||
<?php
|
||||
/* translators: Hidden accessibility text. */
|
||||
esc_html_e( 'Enter redirects to import', 'wordpress-seo-premium' );
|
||||
?>
|
||||
</label>
|
||||
<textarea name="htaccess" id="htaccess" rows="15" class="large-text code"></textarea><br/>
|
||||
<input type="submit" class="button button-primary" name="import" value="<?php esc_attr_e( 'Import .htaccess', 'wordpress-seo-premium' ); ?>"/>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,107 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* WPSEO Premium plugin file.
|
||||
*
|
||||
* @package WPSEO\Premium\Views
|
||||
*/
|
||||
|
||||
?>
|
||||
<img class="yoast-image" width="200" height="157" src="https://yoast.com/shared-assets/images/wpseo_installation_successful/16-6/premium_assistant_bubble.png" decoding="async" />
|
||||
<h1><?php esc_html_e( 'Installation successful!', 'wordpress-seo-premium' ); ?></h1>
|
||||
<p class="yoast-whats-next">
|
||||
<?php esc_html_e( 'So, what\'s next?', 'wordpress-seo-premium' ); ?>
|
||||
</p>
|
||||
<div class="yoast-grid yoast">
|
||||
<div>
|
||||
<h3>
|
||||
<?php esc_html_e( 'Rank with articles you want to rank with', 'wordpress-seo-premium' ); ?>
|
||||
</h3>
|
||||
<img width="256" height="196" src="https://yoast.com/shared-assets/images/wpseo_installation_successful/16-6/cornerstone.png" alt="Cornerstone" decoding="async" />
|
||||
<p>
|
||||
<?php
|
||||
printf(
|
||||
/* translators: %1$s: <strong>, %2$s: </strong> */
|
||||
esc_html__(
|
||||
'%1$sCornerstone content%2$s is the content on your site that’s most important. You want to rank highest in Google with these articles. Make sure your internal linking structure reflects what pages are most important. Want to know how?',
|
||||
'wordpress-seo-premium'
|
||||
),
|
||||
'<strong>',
|
||||
'</strong>'
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
<a href="<?php echo esc_url( admin_url( 'admin.php?page=wpseo_workouts' ) ); ?>" class="yoast-button yoast-button--secondary" target="_blank">
|
||||
<?php esc_html_e( 'Do the cornerstone workout!', 'wordpress-seo-premium' ); ?>
|
||||
</a>
|
||||
</div>
|
||||
<div>
|
||||
<h3>
|
||||
<?php esc_html_e( 'Optimize your content further with our smart analysis', 'wordpress-seo-premium' ); ?>
|
||||
</h3>
|
||||
<img width="256" height="196" src="https://yoast.com/shared-assets/images/wpseo_installation_successful/16-6/analysis.png" alt="Analysis" decoding="async" />
|
||||
<p>
|
||||
<?php
|
||||
printf(
|
||||
/* translators: %1$s: <strong>, %2$s: </strong> */
|
||||
esc_html__(
|
||||
'Different people search with different search terms. With our %1$spremium analysis%2$s, you are free to use variations and synonyms of your keywords in your content, which will make your writing style far more natural.',
|
||||
'wordpress-seo-premium'
|
||||
),
|
||||
'<strong>',
|
||||
'</strong>'
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
<a href="<?php echo esc_url( admin_url( 'edit.php?post_status=publish&post_type=post&seo_filter=na' ) ); ?>" class="yoast-button yoast-button--secondary" target="_blank">
|
||||
<?php esc_html_e( 'Score some more green bullets', 'wordpress-seo-premium' ); ?>
|
||||
</a>
|
||||
</div>
|
||||
<div>
|
||||
<h3>
|
||||
<?php esc_html_e( 'Keep your site well-organised so people won\'t get lost', 'wordpress-seo-premium' ); ?>
|
||||
</h3>
|
||||
<img width="256" height="196" src="https://yoast.com/shared-assets/images/wpseo_installation_successful/16-6/redirect-manager.png" alt="redirect-manager" decoding="async" />
|
||||
<p>
|
||||
<?php
|
||||
printf(
|
||||
/* translators: %1$s: Yoast SEO, %2$s: <strong>, %3$s: </strong> */
|
||||
esc_html__(
|
||||
'The %1$s %2$sRedirect Manager%3$s automatically prevents visitors from reaching a dead end whenever you move or delete content. It also makes managing your existing redirects easy.',
|
||||
'wordpress-seo-premium'
|
||||
),
|
||||
'Yoast SEO',
|
||||
'<strong>',
|
||||
'</strong>'
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
<a href="<?php echo esc_url( admin_url( 'admin.php?page=wpseo_redirects' ) ); ?>" class="yoast-button yoast-button--secondary" target="_blank">
|
||||
<?php esc_html_e( 'Check out the Redirect Manager', 'wordpress-seo-premium' ); ?>
|
||||
</a>
|
||||
</div>
|
||||
<div>
|
||||
<h3>
|
||||
<?php esc_html_e( 'Master vital SEO skills with our online courses', 'wordpress-seo-premium' ); ?>
|
||||
</h3>
|
||||
<img width="256" height="196" src="https://yoast.com/shared-assets/images/wpseo_installation_successful/16-6/academy.png" alt="Academy" decoding="async" />
|
||||
<p>
|
||||
<?php
|
||||
printf(
|
||||
/* translators: %1$s: Yoast SEO Premium, %2$s: <strong>, %3$s: Yoast SEO, %4$s: </strong> */
|
||||
esc_html__(
|
||||
'%1$s grants you direct access to %2$sall premium %3$s academy courses%4$s. Learn all the ins and outs of holistic SEO from industry experts.',
|
||||
'wordpress-seo-premium'
|
||||
),
|
||||
'Yoast SEO Premium',
|
||||
'<strong>',
|
||||
'Yoast SEO',
|
||||
'</strong>'
|
||||
);
|
||||
?>
|
||||
|
||||
</p>
|
||||
<a href="<?php echo esc_url( add_query_arg( [ 'screen' => 'wpseo_installation_successful' ], esc_url( WPSEO_Shortlinker::get( 'https://yoa.st/4em' ) ) ) ); ?>" class="yoast-button yoast-button--secondary" target="_blank">
|
||||
<?php esc_html_e( 'Browse our courses', 'wordpress-seo-premium' ); ?>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user