• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Yoast SEO a2z

Yoast SEO a2z

WordPress SEO a2z

  • Home
  • Plugins
  • Blocks
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / Files / admin/views/tabs/metas/paper-content/author-archive-settings.php


Lines:

1 to 87 of 87
<?php

/**
 * WPSEO plugin file.
 *
 * @package WPSEO\Admin\Views\Archive
 *
 * @uses Yoast_Form $yform Form object.
 */

$yform->toggle_switch(
  'disable-author',
  [
    'off' => __( 'Enabled', 'wordpress-seo' ),
    'on'  => __( 'Disabled', 'wordpress-seo' ),
  ],
  __( 'Author archives', 'wordpress-seo' )
);

?>

<div id='author-archives-titles-metas-content' class='archives-titles-metas-content'>

<?php
$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 <code>noindex</code>; 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' ),
    '<code>noindex</code>',
    '<a href="' . esc_url( WPSEO_Shortlinker::get( 'https://yoa.st/show-x' ) ) . '" target="_blank" rel="noopener noreferrer">',
    '</a>'
  )
);

$yform->index_switch(
  'noindex-author-wpseo',
  __( 'author archives', 'wordpress-seo' ),
  $author_archives_help->get_button_html() . $author_archives_help->get_panel_html()
);

?>

<div id='noindex-author-noposts-wpseo-container'>
<?php

$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 <code>noindex</code>; 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' ),
    '<code>noindex</code>',
    '<a href="' . esc_url( WPSEO_Shortlinker::get( 'https://yoa.st/show-x' ) ) . '" target="_blank" rel="noopener noreferrer">',
    '</a>'
  )
);

$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()
);

?>
</div>

<?php

$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,
  [
    '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();
?>
</div>
 

 View on GitHub View on Trac

Called by

    Invoked by

      Calls

      1 to 1 of 1
      • WPSEO_Shortlinker::get() – Returns a version of the URL with a utm_content with the current version.

      Call hooks

      File name: admin/views/tabs/metas/paper-content/author-archive-settings.php
      Plugin ref: Yoast SEO
      Version: 15.4
      Deprecated?: No
      API Letters: A,M,P,T,V

      Published: 27th November 2019 | Last updated: 19th December 2019

      Primary Sidebar

      Information

      File name: admin/views/tabs/metas/paper-content/author-archive-settings.php
      Plugin ref: Yoast SEO
      Version: 15.4
      Deprecated?: No
      API Letters: A,M,P,T,V

      admin/views/tabs/metas/paper-content

      Footer

      Yoast SEO a2z
      Yoast SEO a2z
      WordPress SEO a2z
      WordPress 5.6
      WordPress a2z
      WordPress core a2z
      Genesis Theme Framework a2z
      Jetpack a2z
      WordPress develop tests
      Easy Digital Downloads a2z
      WooCommerce a2z
      Yoast SEO a2z
      WordPress Blocks

      Site:  wordpress-seo.wp-a2z.org
      © Copyright Yoast SEO a2z 2017-2021. All rights reserved.


      Website designed and developed by Herb Miller
      Proudly powered by WordPress and oik plugins

      • Home
      • Blog
      • Sitemap
      • Sites