', '' ); $archives_help_02 = sprintf( /* translators: %s expands to noindex, follow */ 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' ), 'noindex,follow' ); $archives_help_03 = esc_html__( 'Note that links to archives might be still output by your theme and you would need to remove them separately.', 'wordpress-seo' ); $archives_help_04 = esc_html__( 'Date-based archives could in some cases also be seen as duplicate content.', 'wordpress-seo' ); $archives_help = new WPSEO_Admin_Help_Panel( 'search-appearance-archives', __( 'Learn more about the archives setting', 'wordpress-seo' ), $archives_help_01 . ' ' . $archives_help_02 . ' ' . $archives_help_03 . ' ' . $archives_help_04, 'has-wrapper' ); echo '

' . esc_html__( 'Archives settings help', 'wordpress-seo' ) . $archives_help->get_button_html() . '

'; echo $archives_help->get_panel_html(); echo '

'; echo '

' . esc_html__( 'Author archives settings', 'wordpress-seo' ) . '

'; $yform->toggle_switch( 'disable-author', array( 'off' => __( 'Enabled', 'wordpress-seo' ), 'on' => __( 'Disabled', 'wordpress-seo' ), ), __( 'Author archives', 'wordpress-seo' ) ); echo "
"; $author_archives_help = new WPSEO_Admin_Help_Panel( 'noindex-author-wpseo', esc_html__( 'Help on the author archives search results setting', 'wordpress-seo' ), sprintf( /* translators: 1: expands to noindex; 2: link open tag; 3: link close tag. */ esc_html__( 'Not showing the archive for authors 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-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() ); $editor = new WPSEO_Replacevar_Editor( $yform, 'title-author-wpseo', 'metadesc-author-wpseo', 'author_archive' ); $editor->render(); echo '
'; echo '
'; echo '
'; echo '

' . esc_html__( 'Date archives settings', 'wordpress-seo' ) . '

'; $yform->toggle_switch( 'disable-date', array( 'off' => __( 'Enabled', 'wordpress-seo' ), 'on' => __( 'Disabled', 'wordpress-seo' ), ), __( 'Date archives', 'wordpress-seo' ) ); echo "
"; $date_archives_help = new WPSEO_Admin_Help_Panel( 'noindex-archive-wpseo', esc_html__( 'Help on the date archives search results setting', 'wordpress-seo' ), sprintf( /* translators: 1: expands to noindex; 2: link open tag; 3: link close tag. */ esc_html__( 'Not showing the date archives 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-archive-wpseo', __( 'date archives', 'wordpress-seo' ), $date_archives_help->get_button_html() . $date_archives_help->get_panel_html() ); $editor = new WPSEO_Replacevar_Editor( $yform, 'title-archive-wpseo', 'metadesc-archive-wpseo', 'date_archive' ); $editor->render(); echo '
'; echo '
'; $spcia_pages_help = new WPSEO_Admin_Help_Panel( 'search-appearance-special-pages', __( 'Learn more about the special pages setting', 'wordpress-seo' ), sprintf( /* translators: %s expands to noindex, follow. */ __( 'These pages will be %s by default, so they will never show up in search results.', 'wordpress-seo' ), 'noindex, follow' ), 'has-wrapper' ); echo '
'; echo '

' . esc_html__( 'Special Pages', 'wordpress-seo' ) . $spcia_pages_help->get_button_html() . '

'; echo $spcia_pages_help->get_panel_html(); $editor = new WPSEO_Replacevar_Field( $yform, 'title-search-wpseo', __( 'Search pages', 'wordpress-seo' ), 'search' ); $editor->render(); echo '
'; $editor = new WPSEO_Replacevar_Field( $yform, 'title-404-wpseo', __( '404 pages', 'wordpress-seo' ), '404' ); $editor->render(); echo '
';