admin_header( true, 'wpseo_titles' ); ?>
checkbox( 'forcerewritetitle', __( 'Enable force rewrite titles', 'wordpress-seo' ) ); /* translators: %1$s expands to Yoast SEO */ echo '

', sprintf( __( '%1$s has auto-detected whether it needs to force rewrite the titles for your pages, if you think it\'s wrong and you know what you\'re doing, you can change the setting here.', 'wordpress-seo' ), 'Yoast SEO' ) . '

'; ?>
radio( 'separator', WPSEO_Option_Titles::get_instance()->get_separator_options(), '' ); echo '

', __( 'Choose the symbol to use as your title separator. This will display, for instance, between your post title and site name.', 'wordpress-seo' ), ' ', __( 'Symbols are shown in the size they\'ll appear in in search results.', 'wordpress-seo' ), '

'; ?>
', __( 'Homepage', 'wordpress-seo' ), '
'; $yform->textinput( 'title-home-wpseo', __( 'Title template', 'wordpress-seo' ), 'template homepage-template' ); $yform->textarea( 'metadesc-home-wpseo', __( 'Meta description template', 'wordpress-seo' ), array( 'class' => 'template homepage-template' ) ); if ( $options['usemetakeywords'] === true ) { $yform->textinput( 'metakey-home-wpseo', __( 'Meta keywords template', 'wordpress-seo' ) ); } echo '

'; } else { echo '

', __( 'Homepage & Front page', 'wordpress-seo' ), '
'; printf( __( 'You can determine the title and description for the front page by %sediting the front page itself »%s', 'wordpress-seo' ), '', '' ); echo '

'; if ( get_option( 'page_for_posts' ) > 0 ) { echo '

', sprintf( __( 'You can determine the title and description for the blog page by %sediting the blog page itself »%s', 'wordpress-seo' ), '', '' ), '

'; } } ?>
true ), 'objects' ); if ( is_array( $post_types ) && $post_types !== array() ) { foreach ( $post_types as $pt ) { $warn = false; if ( $options['redirectattachment'] === true && $pt->name == 'attachment' ) { echo '
'; $warn = true; } $name = $pt->name; echo '' . esc_html( ucfirst( $pt->labels->name ) ) . '
'; if ( $warn === true ) { echo '

' . __( 'Take note:', 'wordpress-seo' ) . '

'; echo '

' . __( 'As you are redirecting attachment URLs to parent post URLs, these settings will currently only have an effect on unattached media items!', 'wordpress-seo' ) . '

'; echo '

' . sprintf( __( 'So remember: If you change the %sattachment redirection setting%s in the future, the below settings will take effect for *all* media items.', 'wordpress-seo' ), '', '' ) . '

'; } $yform->textinput( 'title-' . $name, __( 'Title template', 'wordpress-seo' ), 'template posttype-template' ); $yform->textarea( 'metadesc-' . $name, __( 'Meta description template', 'wordpress-seo' ), array( 'class' => 'template posttype-template' ) ); if ( $options['usemetakeywords'] === true ) { $yform->textinput( 'metakey-' . $name, __( 'Meta keywords template', 'wordpress-seo' ) ); } $yform->checkbox( 'noindex-' . $name, 'noindex, follow', __( 'Meta Robots', 'wordpress-seo' ) ); $yform->checkbox( 'showdate-' . $name, __( 'Show date in snippet preview?', 'wordpress-seo' ), __( 'Date in Snippet Preview', 'wordpress-seo' ) ); /* translators: %1$s expands to Yoast SEO */ $yform->checkbox( 'hideeditbox-' . $name, __( 'Hide', 'wordpress-seo' ), sprintf( __( '%1$s Meta Box', 'wordpress-seo' ), 'Yoast SEO' ) ); /** * Allow adding a custom checkboxes to the admin meta page - Post Types tab * @api WPSEO_Admin_Pages $yform The WPSEO_Admin_Pages object * @api String $name The post type name */ do_action( 'wpseo_admin_page_meta_post_types', $yform, $name ); echo '

'; if ( $warn === true ) { echo '
'; } unset( $warn ); } unset( $pt ); } unset( $post_types ); $post_types = get_post_types( array( '_builtin' => false, 'has_archive' => true ), 'objects' ); if ( is_array( $post_types ) && $post_types !== array() ) { echo '

' . __( 'Custom Post Type Archives', 'wordpress-seo' ) . '

'; echo '

' . __( 'Note: instead of templates these are the actual titles and meta descriptions for these custom post type archive pages.', 'wordpress-seo' ) . '

'; foreach ( $post_types as $pt ) { $name = $pt->name; echo '' . esc_html( ucfirst( $pt->labels->name ) ) . '
'; $yform->textinput( 'title-ptarchive-' . $name, __( 'Title', 'wordpress-seo' ), 'template posttype-template' ); $yform->textarea( 'metadesc-ptarchive-' . $name, __( 'Meta description', 'wordpress-seo' ), array( 'class' => 'template posttype-template' ) ); if ( $options['usemetakeywords'] === true ) { $yform->textinput( 'metakey-ptarchive-' . $name, __( 'Meta keywords', 'wordpress-seo' ) ); } if ( $options['breadcrumbs-enable'] === true ) { $yform->textinput( 'bctitle-ptarchive-' . $name, __( 'Breadcrumbs title', 'wordpress-seo' ) ); } $yform->checkbox( 'noindex-ptarchive-' . $name, 'noindex, follow', __( 'Meta Robots', 'wordpress-seo' ) ); echo '

'; } unset( $pt ); } unset( $post_types ); ?>
true ), 'objects' ); if ( is_array( $taxonomies ) && $taxonomies !== array() ) { foreach ( $taxonomies as $tax ) { echo '' . esc_html( ucfirst( $tax->labels->name ) ) . '
'; $yform->textinput( 'title-tax-' . $tax->name, __( 'Title template', 'wordpress-seo' ), 'template taxonomy-template' ); $yform->textarea( 'metadesc-tax-' . $tax->name, __( 'Meta description template', 'wordpress-seo' ), array( 'class' => 'template taxonomy-template' ) ); if ( $options['usemetakeywords'] === true ) { $yform->textinput( 'metakey-tax-' . $tax->name, __( 'Meta keywords template', 'wordpress-seo' ) ); } $yform->checkbox( 'noindex-tax-' . $tax->name, 'noindex, follow', __( 'Meta Robots', 'wordpress-seo' ) ); /* translators: %1$s expands to Yoast SEO */ $yform->checkbox( 'hideeditbox-tax-' . $tax->name, __( 'Hide', 'wordpress-seo' ), sprintf( __( '%1$s Meta Box', 'wordpress-seo' ), 'Yoast SEO' ) ); echo '

'; } unset( $tax ); } unset( $taxonomies ); ?>
' . __( 'Author Archives', 'wordpress-seo' ) . ''; $yform->textinput( 'title-author-wpseo', __( 'Title template', 'wordpress-seo' ), 'template author-template' ); $yform->textarea( 'metadesc-author-wpseo', __( 'Meta description template', 'wordpress-seo' ), array( 'class' => 'template author-template' ) ); if ( $options['usemetakeywords'] === true ) { $yform->textinput( 'metakey-author-wpseo', __( 'Meta keywords template', 'wordpress-seo' ) ); } echo '

' . __( 'Date Archives', 'wordpress-seo' ) . '

'; $yform->textinput( 'title-archive-wpseo', __( 'Title template', 'wordpress-seo' ), 'template date-template' ); $yform->textarea( 'metadesc-archive-wpseo', __( 'Meta description template', 'wordpress-seo' ), array( 'class' => 'template date-template' ) ); echo '
'; echo '

' . __( 'Duplicate content prevention', 'wordpress-seo' ) . '

'; echo '

'; /* translators: %1$s / %2$s: links to an article about duplicate content on yoast.com */ printf( __( 'If you\'re running a one author blog, the author archive will be exactly the same as your homepage. This is what\'s called a %1$sduplicate content problem%2$s.', 'wordpress-seo' ), '', '' ); echo '
'; /* translators: %s expands to noindex, follow */ echo sprintf( __( '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' ); echo '

'; /* translators: %s expands to noindex, follow */ $yform->checkbox( 'noindex-author-wpseo', sprintf( __( 'Add %s to the author archives', 'wordpress-seo' ), 'noindex, follow' ) ); $yform->checkbox( 'disable-author', __( 'Disable the author archives', 'wordpress-seo' ) ); echo '

'; _e( 'Date-based archives could in some cases also be seen as duplicate content.', 'wordpress-seo' ); echo '

'; /* translators: %s expands to noindex, follow */ $yform->checkbox( 'noindex-archive-wpseo', sprintf( __( 'Add %s to the date-based archives', 'wordpress-seo' ), 'noindex, follow' ) ); $yform->checkbox( 'disable-date', __( 'Disable the date-based archives', 'wordpress-seo' ) ); echo '
'; echo '

' . __( 'Special Pages', 'wordpress-seo' ) . '

'; /* translators: %s expands to noindex, follow */ echo '

' . sprintf( __( 'These pages will be %s by default, so they will never show up in search results.', 'wordpress-seo' ), 'noindex, follow' ) . '

'; echo '

' . __( 'Search pages', 'wordpress-seo' ) . '
'; $yform->textinput( 'title-search-wpseo', __( 'Title template', 'wordpress-seo' ), 'template search-template' ); echo '

'; echo '

' . __( '404 pages', 'wordpress-seo' ) . '
'; $yform->textinput( 'title-404-wpseo', __( 'Title template', 'wordpress-seo' ), 'template error404-template' ); echo '

'; echo '
'; ?>


', __( 'If you want to prevent /page/2/ and further of any archive to show up in the search results, enable this.', 'wordpress-seo' ), '

'; $yform->checkbox( 'noindex-subpages-wpseo', __( 'Noindex subpages of archives', 'wordpress-seo' ) ); echo '

', __( 'I don\'t know why you\'d want to use meta keywords, but if you want to, check this box.', 'wordpress-seo' ), '

'; $yform->checkbox( 'usemetakeywords', __( 'Use meta keywords tag?', 'wordpress-seo' ) ); echo '

', __( 'Prevents search engines from using the DMOZ description for pages from this site in the search results.', 'wordpress-seo' ), '

'; /* translators: %s expands to noodp */ $yform->checkbox( 'noodp', sprintf( __( 'Add %s meta robots tag sitewide', 'wordpress-seo' ), 'noodp' ) ); echo '

', __( 'Prevents search engines from using the Yahoo! directory description for pages from this site in the search results.', 'wordpress-seo' ), '

'; /* translators: %s expands to noydir */ $yform->checkbox( 'noydir', sprintf( __( 'Add %s meta robots tag sitewide', 'wordpress-seo' ), 'noydir' ) ); ?>
admin_footer();