help.php 1.5 KB

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