| 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: Hidden 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 |
|