toggle_switch( 'disable-author', array( 'off' => __( 'Enabled', 'wordpress-seo' ), 'on' => __( 'Disabled', 'wordpress-seo' ), ), __( 'Author archives', 'wordpress-seo' ) ); ?>
noindex',
'',
''
)
);
$yform->index_switch(
'noindex-author-wpseo',
__( 'author archives', 'wordpress-seo' ),
$author_archives_help->get_button_html() . $author_archives_help->get_panel_html()
);
$author_archives_no_posts_help = new WPSEO_Admin_Help_Panel(
'noindex-author-noposts-wpseo',
esc_html__( 'Help on the authors without posts archive search results setting', 'wordpress-seo' ),
sprintf(
/* translators: 1: expands to noindex; 2: link open tag; 3: link close tag. */
esc_html__( 'Not showing the archives for authors without posts in the search results technically means those will have a %1$s robots meta and will be excluded from XML sitemaps. %2$sMore info on the search results settings%3$s.', 'wordpress-seo' ),
'noindex',
'',
''
)
);
$yform->index_switch(
'noindex-author-noposts-wpseo',
__( 'archives for authors without posts', 'wordpress-seo' ),
$author_archives_no_posts_help->get_button_html() . $author_archives_no_posts_help->get_panel_html()
);
$recommended_replace_vars = new WPSEO_Admin_Recommended_Replace_Vars();
$editor_specific_replace_vars = new WPSEO_Admin_Editor_Specific_Replace_Vars();
$editor = new WPSEO_Replacevar_Editor(
$yform,
array(
'title' => 'title-author-wpseo',
'description' => 'metadesc-author-wpseo',
'page_type_recommended' => $recommended_replace_vars->determine_for_archive( 'author' ),
'page_type_specific' => $editor_specific_replace_vars->determine_for_archive( 'author' ),
'paper_style' => false,
)
);
$editor->render();
?>