help.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. * WPSEO plugin file.
  4. *
  5. * @package WPSEO\Admin\Views\Archive
  6. *
  7. * @var Yoast_Form $yform
  8. */
  9. $archives_help_content = array(
  10. sprintf(
  11. /* translators: %1$s / %2$s: links to an article about duplicate content on yoast.com */
  12. 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' ),
  13. '<a target="_blank" href="' . esc_url( WPSEO_Shortlinker::get( 'https://yoa.st/duplicate-content' ) ) . '">',
  14. '</a>'
  15. ),
  16. sprintf(
  17. /* translators: %s expands to <code>noindex, follow</code> */
  18. 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' ),
  19. '<code>noindex,follow</code>'
  20. ),
  21. esc_html__( 'Note that links to archives might be still output by your theme and you would need to remove them separately.', 'wordpress-seo' ),
  22. esc_html__( 'Date-based archives could in some cases also be seen as duplicate content.', 'wordpress-seo' ),
  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. echo '<p class="help-button-inline"><strong>' . esc_html__( 'Archives settings help', 'wordpress-seo' ) . $archives_help->get_button_html() . '</strong><p>';
  31. echo $archives_help->get_panel_html();