• 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/js-templates-primary-term.php


Lines:

1 to 47 of 47
<?php

/**
 * WPSEO plugin file.
 *
 * @package WPSEO\Admin
 */

if ( ! defined( 'WPSEO_VERSION' ) ) {
  header( 'Status: 403 Forbidden' );
  header( 'HTTP/1.1 403 Forbidden' );
  exit();
}
?>

<script type="text/html" id="tmpl-primary-term-ui">
	<?php
  /* translators: accessibility text. %1$s expands to the term title, %2$s to the taxonomy title. */
  $yoast_free_js_button_label = __( 'Make %1$s primary %2$s', 'wordpress-seo' );
  $yoast_free_js_button_label = sprintf(
    $yoast_free_js_button_label,
    '{{data.term}}',
    '{{data.taxonomy.title}}'
  );

  printf(
    '<button type="button" class="wpseo-make-primary-term" aria-label="%1$s">%2$s</button>',
    esc_attr( $yoast_free_js_button_label ),
    esc_html__( 'Make primary', 'wordpress-seo' )
  );
  ?>

	<span class="wpseo-is-primary-term" aria-hidden="true"><?php esc_html_e( 'Primary', 'wordpress-seo' ); ?></span>
</script>

<script type="text/html" id="tmpl-primary-term-screen-reader">
	<?php
  /* translators: %s is the taxonomy title. This will be shown to screenreaders */
  $yoast_free_js_taxonomy_title = __( 'Primary %s', 'wordpress-seo' );
  $yoast_free_js_taxonomy_title = sprintf(
    '(' . $yoast_free_js_taxonomy_title . ')',
    '{{data.taxonomy.title}}'
  );
  ?>
	<span class="screen-reader-text wpseo-primary-category-label"><?php echo esc_html( $yoast_free_js_taxonomy_title ); ?></span>
</script>
 

 View on GitHub View on Trac

Called by

    Invoked by

      Calls

      Call hooks

      File name: admin/views/js-templates-primary-term.php
      Plugin ref: Yoast SEO
      Version: 19.9
      Deprecated?: No
      API Letters: A,J,P,T,V

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

      Primary Sidebar

      Information

      File name: admin/views/js-templates-primary-term.php
      Plugin ref: Yoast SEO
      Version: 19.9
      Deprecated?: No
      API Letters: A,J,P,T,V

      admin/views

      Footer

      Yoast SEO a2z
      Yoast SEO a2z
      WordPress SEO a2z
      WordPress 6.1.1
      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-2023. All rights reserved.


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

      • Home
      • Blog
      • Sitemap
      • Sites