user-profile.php 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?php
  2. /**
  3. * WPSEO plugin file.
  4. *
  5. * @package WPSEO\Admin
  6. *
  7. * @uses object $user
  8. */
  9. /* translators: %1$s expands to Yoast SEO */
  10. $wpseo_up_settings_header = sprintf( __( '%1$s settings', 'wordpress-seo' ), 'Yoast SEO' );
  11. $wpseo_no_index_author_label = sprintf(
  12. /* translators: %s expands to "this author's archives". */
  13. __( 'Do not allow search engines to show %s in search results.', 'wordpress-seo' ),
  14. __( 'this author\'s archives', 'wordpress-seo' )
  15. );
  16. ?>
  17. <div class="yoast yoast-settings">
  18. <h2 id="wordpress-seo"><?php echo esc_html( $wpseo_up_settings_header ); ?></h2>
  19. <?php if ( ! WPSEO_Options::get( 'disable-author' ) ) : ?>
  20. <label for="wpseo_author_title"><?php esc_html_e( 'Title to use for Author page', 'wordpress-seo' ); ?></label>
  21. <input class="yoast-settings__text regular-text" type="text" id="wpseo_author_title" name="wpseo_author_title"
  22. value="<?php echo esc_attr( get_the_author_meta( 'wpseo_title', $user->ID ) ); ?>"/><br>
  23. <label for="wpseo_author_metadesc"><?php esc_html_e( 'Meta description to use for Author page', 'wordpress-seo' ); ?></label>
  24. <textarea rows="5" cols="30" id="wpseo_author_metadesc"
  25. class="yoast-settings__textarea yoast-settings__textarea--medium"
  26. name="wpseo_author_metadesc"><?php echo esc_textarea( get_the_author_meta( 'wpseo_metadesc', $user->ID ) ); ?></textarea><br>
  27. <input class="yoast-settings__checkbox double" type="checkbox" id="wpseo_noindex_author"
  28. name="wpseo_noindex_author"
  29. value="on" <?php echo ( get_the_author_meta( 'wpseo_noindex_author', $user->ID ) === 'on' ) ? 'checked' : ''; ?> />
  30. <label class="yoast-label-strong"
  31. for="wpseo_noindex_author"><?php echo esc_html( $wpseo_no_index_author_label ); ?></label><br>
  32. <?php endif; ?>
  33. <?php if ( WPSEO_Options::get( 'keyword_analysis_active', false ) ) : ?>
  34. <input class="yoast-settings__checkbox double" type="checkbox" id="wpseo_keyword_analysis_disable"
  35. name="wpseo_keyword_analysis_disable" aria-describedby="wpseo_keyword_analysis_disable_desc"
  36. value="on" <?php echo ( get_the_author_meta( 'wpseo_keyword_analysis_disable', $user->ID ) === 'on' ) ? 'checked' : ''; ?> />
  37. <label class="yoast-label-strong"
  38. for="wpseo_keyword_analysis_disable"><?php esc_html_e( 'Disable SEO analysis', 'wordpress-seo' ); ?></label>
  39. <br>
  40. <p class="description" id="wpseo_keyword_analysis_disable_desc">
  41. <?php esc_html_e( 'Removes the focus keyphrase section from the metabox and disables all SEO-related suggestions.', 'wordpress-seo' ); ?>
  42. </p>
  43. <?php endif; ?>
  44. <?php if ( WPSEO_Options::get( 'content_analysis_active', false ) ) : ?>
  45. <input class="yoast-settings__checkbox double" type="checkbox" id="wpseo_content_analysis_disable"
  46. name="wpseo_content_analysis_disable" aria-describedby="wpseo_content_analysis_disable_desc"
  47. value="on" <?php echo ( get_the_author_meta( 'wpseo_content_analysis_disable', $user->ID ) === 'on' ) ? 'checked' : ''; ?> />
  48. <label class="yoast-label-strong"
  49. for="wpseo_content_analysis_disable"><?php esc_html_e( 'Disable readability analysis', 'wordpress-seo' ); ?></label>
  50. <br>
  51. <p class="description" id="wpseo_content_analysis_disable_desc">
  52. <?php esc_html_e( 'Removes the readability analysis section from the metabox and disables all readability-related suggestions.', 'wordpress-seo' ); ?>
  53. </p>
  54. <?php endif; ?>
  55. </div>