user-profile.php 3.1 KB

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