| 1 |
<?php |
| 2 |
/** |
| 3 |
* WPSEO plugin file. |
| 4 |
* |
| 5 |
* @package WPSEO\Admin\Views\Archive |
| 6 |
*/ |
| 7 |
|
| 8 |
$archives_help_content = [ |
| 9 |
sprintf( |
| 10 |
/* translators: %1$s / %2$s: links to an article about duplicate content on yoast.com */ |
| 11 |
esc_html__( 'If you\'re running a one author blog, the author archive will be exactly the same as your homepage. This is what\'s called a %1$sduplicate content problem%2$s.', 'wordpress-seo' ), |
| 12 |
'<a target="_blank" href="' . esc_url( WPSEO_Shortlinker::get( 'https://yoa.st/duplicate-content' ) ) . '">', |
| 13 |
'</a>' |
| 14 |
), |
| 15 |
sprintf( |
| 16 |
/* translators: %s expands to <code>noindex, follow</code> */ |
| 17 |
esc_html__( 'If this is the case on your site, you can choose to either disable it (which makes it redirect to the homepage), or to add %s to it so it doesn\'t show up in the search results.', 'wordpress-seo' ), |
| 18 |
'<code>noindex,follow</code>' |
| 19 |
), |
| 20 |
esc_html__( 'Note that links to archives might be still output by your theme and you would need to remove them separately.', 'wordpress-seo' ), |
| 21 |
esc_html__( 'Date-based archives could in some cases also be seen as duplicate content.', 'wordpress-seo' ), |
| 22 |
]; |
| 23 |
|
| 24 |
$archives_help = new WPSEO_Admin_Help_Panel( |
| 25 |
'search-appearance-archives', |
| 26 |
__( 'Learn more about the archives setting', 'wordpress-seo' ), |
| 27 |
implode( ' ', $archives_help_content ), |
| 28 |
'has-wrapper' |
| 29 |
); |
| 30 |
|
| 31 |
// phpcs:ignore WordPress.Security.EscapeOutput -- get_button_html() output is properly escaped. |
| 32 |
echo '<p class="help-button-inline"><strong>' . esc_html__( 'Archives settings help', 'wordpress-seo' ) . $archives_help->get_button_html() . '</strong><p>'; |
| 33 |
|
| 34 |
// phpcs:ignore WordPress.Security.EscapeOutput -- get_panel_html() output is properly escaped. |
| 35 |
echo $archives_help->get_panel_html(); |
| 36 |
|