PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / 18.9
Yoast SEO – Advanced SEO with real-time guidance and built-in AI v18.9
28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 19.0 All 129 releases
wordpress-seo / admin / views / js-templates-primary-term.php

js-templates-primary-term.php in Yoast SEO – Advanced SEO with real-time guidance and built-in AI 18.9, at admin/views/js-templates-primary-term.php

46 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * WPSEO plugin file.
4 *
5 * @package WPSEO\Admin
6 */
7
8 if ( ! defined( 'WPSEO_VERSION' ) ) {
9 header( 'Status: 403 Forbidden' );
10 header( 'HTTP/1.1 403 Forbidden' );
11 exit();
12 }
13 ?>
14
15 <script type="text/html" id="tmpl-primary-term-ui">
16 <?php
17 /* translators: accessibility text. %1$s expands to the term title, %2$s to the taxonomy title. */
18 $yoast_free_js_button_label = __( 'Make %1$s primary %2$s', 'wordpress-seo' );
19 $yoast_free_js_button_label = sprintf(
20 $yoast_free_js_button_label,
21 '{{data.term}}',
22 '{{data.taxonomy.title}}'
23 );
24
25 printf(
26 '<button type="button" class="wpseo-make-primary-term" aria-label="%1$s">%2$s</button>',
27 esc_attr( $yoast_free_js_button_label ),
28 esc_html__( 'Make primary', 'wordpress-seo' )
29 );
30 ?>
31
32 <span class="wpseo-is-primary-term" aria-hidden="true"><?php esc_html_e( 'Primary', 'wordpress-seo' ); ?></span>
33 </script>
34
35 <script type="text/html" id="tmpl-primary-term-screen-reader">
36 <?php
37 /* translators: %s is the taxonomy title. This will be shown to screenreaders */
38 $yoast_free_js_taxonomy_title = __( 'Primary %s', 'wordpress-seo' );
39 $yoast_free_js_taxonomy_title = sprintf(
40 '(' . $yoast_free_js_taxonomy_title . ')',
41 '{{data.taxonomy.title}}'
42 );
43 ?>
44 <span class="screen-reader-text wpseo-primary-category-label"><?php echo esc_html( $yoast_free_js_taxonomy_title ); ?></span>
45 </script>
46