PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / 18.1
Yoast SEO – Advanced SEO with real-time guidance and built-in AI v18.1
28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 19.0 All 129 releases
wordpress-seo / admin / views / user-profile.php

user-profile.php in Yoast SEO – Advanced SEO with real-time guidance and built-in AI 18.1, at admin/views/user-profile.php

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