I18N: Mark screen reader strings as such with translator comments.
This aims to provide better context for translators and make it easier to determine that some strings contain hidden accessibility text and are not displayed in the UI. Props kebbet, mercime, pavelevap, ocean90, swissspidy, Chouby, jipmoors, afercia, desrosj, costdev, audrasjb, SergeyBiryukov. Fixes #29748. Built from https://develop.svn.wordpress.org/trunk@55276 git-svn-id: http://core.svn.wordpress.org/trunk@54809 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
bca7495bac
commit
9c5d4ca8d1
|
@ -207,7 +207,12 @@ do_action( 'customize_controls_head' );
|
||||||
<span class="preview"><?php _e( 'Preview' ); ?></span>
|
<span class="preview"><?php _e( 'Preview' ); ?></span>
|
||||||
</button>
|
</button>
|
||||||
<a class="customize-controls-close" href="<?php echo esc_url( $wp_customize->get_return_url() ); ?>">
|
<a class="customize-controls-close" href="<?php echo esc_url( $wp_customize->get_return_url() ); ?>">
|
||||||
<span class="screen-reader-text"><?php _e( 'Close the Customizer and go back to the previous page' ); ?></span>
|
<span class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Close the Customizer and go back to the previous page' );
|
||||||
|
?>
|
||||||
|
</span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -230,7 +235,12 @@ do_action( 'customize_controls_head' );
|
||||||
printf( __( 'You are customizing %s' ), '<strong class="panel-title site-title">' . get_bloginfo( 'name', 'display' ) . '</strong>' );
|
printf( __( 'You are customizing %s' ), '<strong class="panel-title site-title">' . get_bloginfo( 'name', 'display' ) . '</strong>' );
|
||||||
?>
|
?>
|
||||||
</span>
|
</span>
|
||||||
<button type="button" class="customize-help-toggle dashicons dashicons-editor-help" aria-expanded="false"><span class="screen-reader-text"><?php _e( 'Help' ); ?></span></button>
|
<button type="button" class="customize-help-toggle dashicons dashicons-editor-help" aria-expanded="false"><span class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Help' );
|
||||||
|
?>
|
||||||
|
</span></button>
|
||||||
</div>
|
</div>
|
||||||
<div class="customize-panel-description">
|
<div class="customize-panel-description">
|
||||||
<p>
|
<p>
|
||||||
|
|
|
@ -47,7 +47,12 @@ if ( 'approved' === wp_get_comment_status( $comment ) && $comment->comment_post_
|
||||||
<div class="inside">
|
<div class="inside">
|
||||||
<h2 class="edit-comment-author"><?php _e( 'Author' ); ?></h2>
|
<h2 class="edit-comment-author"><?php _e( 'Author' ); ?></h2>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend class="screen-reader-text"><?php _e( 'Comment Author' ); ?></legend>
|
<legend class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Comment Author' );
|
||||||
|
?>
|
||||||
|
</legend>
|
||||||
<table class="form-table editcomment" role="presentation">
|
<table class="form-table editcomment" role="presentation">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -73,8 +78,13 @@ if ( 'approved' === wp_get_comment_status( $comment ) && $comment->comment_post_
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="postdiv" class="postarea">
|
<div id="postdiv" class="postarea">
|
||||||
|
<label for="content" class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Comment' );
|
||||||
|
?>
|
||||||
|
</label>
|
||||||
<?php
|
<?php
|
||||||
echo '<label for="content" class="screen-reader-text">' . __( 'Comment' ) . '</label>';
|
|
||||||
$quicktags_settings = array( 'buttons' => 'strong,em,link,block,del,ins,img,ul,ol,li,code,close' );
|
$quicktags_settings = array( 'buttons' => 'strong,em,link,block,del,ins,img,ul,ol,li,code,close' );
|
||||||
wp_editor(
|
wp_editor(
|
||||||
$comment->comment_content,
|
$comment->comment_content,
|
||||||
|
@ -117,7 +127,12 @@ switch ( $comment->comment_approved ) {
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<fieldset id="comment-status-radio">
|
<fieldset id="comment-status-radio">
|
||||||
<legend class="screen-reader-text"><?php _e( 'Comment status' ); ?></legend>
|
<legend class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Comment status' );
|
||||||
|
?>
|
||||||
|
</legend>
|
||||||
<label><input type="radio"<?php checked( $comment->comment_approved, '1' ); ?> name="comment_status" value="1" /><?php _ex( 'Approved', 'comment status' ); ?></label><br />
|
<label><input type="radio"<?php checked( $comment->comment_approved, '1' ); ?> name="comment_status" value="1" /><?php _ex( 'Approved', 'comment status' ); ?></label><br />
|
||||||
<label><input type="radio"<?php checked( $comment->comment_approved, '0' ); ?> name="comment_status" value="0" /><?php _ex( 'Pending', 'comment status' ); ?></label><br />
|
<label><input type="radio"<?php checked( $comment->comment_approved, '0' ); ?> name="comment_status" value="0" /><?php _ex( 'Pending', 'comment status' ); ?></label><br />
|
||||||
<label><input type="radio"<?php checked( $comment->comment_approved, 'spam' ); ?> name="comment_status" value="spam" /><?php _ex( 'Spam', 'comment status' ); ?></label>
|
<label><input type="radio"<?php checked( $comment->comment_approved, 'spam' ); ?> name="comment_status" value="spam" /><?php _ex( 'Spam', 'comment status' ); ?></label>
|
||||||
|
@ -141,9 +156,19 @@ $submitted = sprintf(
|
||||||
printf( __( 'Submitted on: %s' ), '<b>' . $submitted . '</b>' );
|
printf( __( 'Submitted on: %s' ), '<b>' . $submitted . '</b>' );
|
||||||
?>
|
?>
|
||||||
</span>
|
</span>
|
||||||
<a href="#edit_timestamp" class="edit-timestamp hide-if-no-js"><span aria-hidden="true"><?php _e( 'Edit' ); ?></span> <span class="screen-reader-text"><?php _e( 'Edit date and time' ); ?></span></a>
|
<a href="#edit_timestamp" class="edit-timestamp hide-if-no-js"><span aria-hidden="true"><?php _e( 'Edit' ); ?></span> <span class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Edit date and time' );
|
||||||
|
?>
|
||||||
|
</span></a>
|
||||||
<fieldset id='timestampdiv' class='hide-if-js'>
|
<fieldset id='timestampdiv' class='hide-if-js'>
|
||||||
<legend class="screen-reader-text"><?php _e( 'Date and time' ); ?></legend>
|
<legend class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Date and time' );
|
||||||
|
?>
|
||||||
|
</legend>
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* @global string $action
|
* @global string $action
|
||||||
|
|
|
@ -177,7 +177,12 @@ function export_date_options( $post_type = 'post' ) {
|
||||||
<h2><?php _e( 'Choose what to export' ); ?></h2>
|
<h2><?php _e( 'Choose what to export' ); ?></h2>
|
||||||
<form method="get" id="export-filters">
|
<form method="get" id="export-filters">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend class="screen-reader-text"><?php _e( 'Content to export' ); ?></legend>
|
<legend class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Content to export' );
|
||||||
|
?>
|
||||||
|
</legend>
|
||||||
<input type="hidden" name="download" value="true" />
|
<input type="hidden" name="download" value="true" />
|
||||||
<p><label><input type="radio" name="content" value="all" checked="checked" aria-describedby="all-content-desc" /> <?php _e( 'All content' ); ?></label></p>
|
<p><label><input type="radio" name="content" value="all" checked="checked" aria-describedby="all-content-desc" /> <?php _e( 'All content' ); ?></label></p>
|
||||||
<p class="description" id="all-content-desc"><?php _e( 'This will contain all of your posts, pages, comments, custom fields, terms, navigation menus, and custom posts.' ); ?></p>
|
<p class="description" id="all-content-desc"><?php _e( 'This will contain all of your posts, pages, comments, custom fields, terms, navigation menus, and custom posts.' ); ?></p>
|
||||||
|
@ -207,7 +212,12 @@ function export_date_options( $post_type = 'post' ) {
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend class="screen-reader-text"><?php _e( 'Date range:' ); ?></legend>
|
<legend class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Date range:' )
|
||||||
|
?>
|
||||||
|
</legend>
|
||||||
<label for="post-start-date" class="label-responsive"><?php _e( 'Start date:' ); ?></label>
|
<label for="post-start-date" class="label-responsive"><?php _e( 'Start date:' ); ?></label>
|
||||||
<select name="post_start_date" id="post-start-date">
|
<select name="post_start_date" id="post-start-date">
|
||||||
<option value="0"><?php _e( '— Select —' ); ?></option>
|
<option value="0"><?php _e( '— Select —' ); ?></option>
|
||||||
|
@ -254,7 +264,12 @@ function export_date_options( $post_type = 'post' ) {
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend class="screen-reader-text"><?php _e( 'Date range:' ); ?></legend>
|
<legend class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Date range:' );
|
||||||
|
?>
|
||||||
|
</legend>
|
||||||
<label for="page-start-date" class="label-responsive"><?php _e( 'Start date:' ); ?></label>
|
<label for="page-start-date" class="label-responsive"><?php _e( 'Start date:' ); ?></label>
|
||||||
<select name="page_start_date" id="page-start-date">
|
<select name="page_start_date" id="page-start-date">
|
||||||
<option value="0"><?php _e( '— Select —' ); ?></option>
|
<option value="0"><?php _e( '— Select —' ); ?></option>
|
||||||
|
@ -294,7 +309,12 @@ foreach ( get_post_types(
|
||||||
<ul id="attachment-filters" class="export-filters">
|
<ul id="attachment-filters" class="export-filters">
|
||||||
<li>
|
<li>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend class="screen-reader-text"><?php _e( 'Date range:' ); ?></legend>
|
<legend class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Date range:' );
|
||||||
|
?>
|
||||||
|
</legend>
|
||||||
<label for="attachment-start-date" class="label-responsive"><?php _e( 'Start date:' ); ?></label>
|
<label for="attachment-start-date" class="label-responsive"><?php _e( 'Start date:' ); ?></label>
|
||||||
<select name="attachment_start_date" id="attachment-start-date">
|
<select name="attachment_start_date" id="attachment-start-date">
|
||||||
<option value="0"><?php _e( '— Select —' ); ?></option>
|
<option value="0"><?php _e( '— Select —' ); ?></option>
|
||||||
|
|
|
@ -413,7 +413,12 @@ class Custom_Background {
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><?php _e( 'Image Position' ); ?></th>
|
<th scope="row"><?php _e( 'Image Position' ); ?></th>
|
||||||
<td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Image Position' ); ?></span></legend>
|
<td><fieldset><legend class="screen-reader-text"><span>
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Image Position' );
|
||||||
|
?>
|
||||||
|
</span></legend>
|
||||||
<div class="background-position-control">
|
<div class="background-position-control">
|
||||||
<?php foreach ( $background_position_options as $group ) : ?>
|
<?php foreach ( $background_position_options as $group ) : ?>
|
||||||
<div class="button-group">
|
<div class="button-group">
|
||||||
|
@ -432,7 +437,12 @@ class Custom_Background {
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><label for="background-size"><?php _e( 'Image Size' ); ?></label></th>
|
<th scope="row"><label for="background-size"><?php _e( 'Image Size' ); ?></label></th>
|
||||||
<td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Image Size' ); ?></span></legend>
|
<td><fieldset><legend class="screen-reader-text"><span>
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Image Size' );
|
||||||
|
?>
|
||||||
|
</span></legend>
|
||||||
<select id="background-size" name="background-size">
|
<select id="background-size" name="background-size">
|
||||||
<option value="auto"<?php selected( 'auto', get_theme_mod( 'background_size', get_theme_support( 'custom-background', 'default-size' ) ) ); ?>><?php _ex( 'Original', 'Original Size' ); ?></option>
|
<option value="auto"<?php selected( 'auto', get_theme_mod( 'background_size', get_theme_support( 'custom-background', 'default-size' ) ) ); ?>><?php _ex( 'Original', 'Original Size' ); ?></option>
|
||||||
<option value="contain"<?php selected( 'contain', get_theme_mod( 'background_size', get_theme_support( 'custom-background', 'default-size' ) ) ); ?>><?php _e( 'Fit to Screen' ); ?></option>
|
<option value="contain"<?php selected( 'contain', get_theme_mod( 'background_size', get_theme_support( 'custom-background', 'default-size' ) ) ); ?>><?php _e( 'Fit to Screen' ); ?></option>
|
||||||
|
@ -443,7 +453,12 @@ class Custom_Background {
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><?php _ex( 'Repeat', 'Background Repeat' ); ?></th>
|
<th scope="row"><?php _ex( 'Repeat', 'Background Repeat' ); ?></th>
|
||||||
<td><fieldset><legend class="screen-reader-text"><span><?php _ex( 'Repeat', 'Background Repeat' ); ?></span></legend>
|
<td><fieldset><legend class="screen-reader-text"><span>
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_ex( 'Repeat', 'Background Repeat' );
|
||||||
|
?>
|
||||||
|
</span></legend>
|
||||||
<input name="background-repeat" type="hidden" value="no-repeat">
|
<input name="background-repeat" type="hidden" value="no-repeat">
|
||||||
<label><input type="checkbox" name="background-repeat" value="repeat"<?php checked( 'repeat', get_theme_mod( 'background_repeat', get_theme_support( 'custom-background', 'default-repeat' ) ) ); ?>> <?php _e( 'Repeat Background Image' ); ?></label>
|
<label><input type="checkbox" name="background-repeat" value="repeat"<?php checked( 'repeat', get_theme_mod( 'background_repeat', get_theme_support( 'custom-background', 'default-repeat' ) ) ); ?>> <?php _e( 'Repeat Background Image' ); ?></label>
|
||||||
</fieldset></td>
|
</fieldset></td>
|
||||||
|
@ -451,7 +466,12 @@ class Custom_Background {
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><?php _ex( 'Scroll', 'Background Scroll' ); ?></th>
|
<th scope="row"><?php _ex( 'Scroll', 'Background Scroll' ); ?></th>
|
||||||
<td><fieldset><legend class="screen-reader-text"><span><?php _ex( 'Scroll', 'Background Scroll' ); ?></span></legend>
|
<td><fieldset><legend class="screen-reader-text"><span>
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_ex( 'Scroll', 'Background Scroll' );
|
||||||
|
?>
|
||||||
|
</span></legend>
|
||||||
<input name="background-attachment" type="hidden" value="fixed">
|
<input name="background-attachment" type="hidden" value="fixed">
|
||||||
<label><input name="background-attachment" type="checkbox" value="scroll" <?php checked( 'scroll', get_theme_mod( 'background_attachment', get_theme_support( 'custom-background', 'default-attachment' ) ) ); ?>> <?php _e( 'Scroll with Page' ); ?></label>
|
<label><input name="background-attachment" type="checkbox" value="scroll" <?php checked( 'scroll', get_theme_mod( 'background_attachment', get_theme_support( 'custom-background', 'default-attachment' ) ) ); ?>> <?php _e( 'Scroll with Page' ); ?></label>
|
||||||
</fieldset></td>
|
</fieldset></td>
|
||||||
|
@ -459,7 +479,12 @@ class Custom_Background {
|
||||||
<?php endif; // get_background_image() ?>
|
<?php endif; // get_background_image() ?>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><?php _e( 'Background Color' ); ?></th>
|
<th scope="row"><?php _e( 'Background Color' ); ?></th>
|
||||||
<td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Background Color' ); ?></span></legend>
|
<td><fieldset><legend class="screen-reader-text"><span>
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Background Color' );
|
||||||
|
?>
|
||||||
|
</span></legend>
|
||||||
<?php
|
<?php
|
||||||
$default_color = '';
|
$default_color = '';
|
||||||
if ( current_theme_supports( 'custom-background', 'default-color' ) ) {
|
if ( current_theme_supports( 'custom-background', 'default-color' ) ) {
|
||||||
|
|
|
@ -129,7 +129,7 @@ class Theme_Installer_Skin extends WP_Upgrader_Skin {
|
||||||
'<span aria-hidden="true">%s</span><span class="screen-reader-text">%s</span></a>',
|
'<span aria-hidden="true">%s</span><span class="screen-reader-text">%s</span></a>',
|
||||||
esc_url( $customize_url ),
|
esc_url( $customize_url ),
|
||||||
__( 'Live Preview' ),
|
__( 'Live Preview' ),
|
||||||
/* translators: %s: Theme name. */
|
/* translators: Hidden accessibility text. %s: Theme name. */
|
||||||
sprintf( __( 'Live Preview “%s”' ), $name )
|
sprintf( __( 'Live Preview “%s”' ), $name )
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -139,7 +139,7 @@ class Theme_Installer_Skin extends WP_Upgrader_Skin {
|
||||||
'<span aria-hidden="true">%s</span><span class="screen-reader-text">%s</span></a>',
|
'<span aria-hidden="true">%s</span><span class="screen-reader-text">%s</span></a>',
|
||||||
esc_url( $activate_link ),
|
esc_url( $activate_link ),
|
||||||
__( 'Activate' ),
|
__( 'Activate' ),
|
||||||
/* translators: %s: Theme name. */
|
/* translators: Hidden accessibility text. %s: Theme name. */
|
||||||
sprintf( _x( 'Activate “%s”', 'theme' ), $name )
|
sprintf( _x( 'Activate “%s”', 'theme' ), $name )
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -90,7 +90,7 @@ class Theme_Upgrader_Skin extends WP_Upgrader_Skin {
|
||||||
'<span aria-hidden="true">%s</span><span class="screen-reader-text">%s</span></a>',
|
'<span aria-hidden="true">%s</span><span class="screen-reader-text">%s</span></a>',
|
||||||
esc_url( $customize_url ),
|
esc_url( $customize_url ),
|
||||||
__( 'Customize' ),
|
__( 'Customize' ),
|
||||||
/* translators: %s: Theme name. */
|
/* translators: Hidden accessibility text. %s: Theme name. */
|
||||||
sprintf( __( 'Customize “%s”' ), $name )
|
sprintf( __( 'Customize “%s”' ), $name )
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -101,7 +101,7 @@ class Theme_Upgrader_Skin extends WP_Upgrader_Skin {
|
||||||
'<span aria-hidden="true">%s</span><span class="screen-reader-text">%s</span></a>',
|
'<span aria-hidden="true">%s</span><span class="screen-reader-text">%s</span></a>',
|
||||||
esc_url( $customize_url ),
|
esc_url( $customize_url ),
|
||||||
__( 'Live Preview' ),
|
__( 'Live Preview' ),
|
||||||
/* translators: %s: Theme name. */
|
/* translators: Hidden accessibility text. %s: Theme name. */
|
||||||
sprintf( __( 'Live Preview “%s”' ), $name )
|
sprintf( __( 'Live Preview “%s”' ), $name )
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -111,7 +111,7 @@ class Theme_Upgrader_Skin extends WP_Upgrader_Skin {
|
||||||
'<span aria-hidden="true">%s</span><span class="screen-reader-text">%s</span></a>',
|
'<span aria-hidden="true">%s</span><span class="screen-reader-text">%s</span></a>',
|
||||||
esc_url( $activate_link ),
|
esc_url( $activate_link ),
|
||||||
__( 'Activate' ),
|
__( 'Activate' ),
|
||||||
/* translators: %s: Theme name. */
|
/* translators: Hidden accessibility text. %s: Theme name. */
|
||||||
sprintf( _x( 'Activate “%s”', 'theme' ), $name )
|
sprintf( _x( 'Activate “%s”', 'theme' ), $name )
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -182,6 +182,7 @@ class Walker_Nav_Menu_Edit extends Walker_Nav_Menu {
|
||||||
$item_id,
|
$item_id,
|
||||||
esc_url( $edit_url ),
|
esc_url( $edit_url ),
|
||||||
esc_attr__( 'Edit menu item' ),
|
esc_attr__( 'Edit menu item' ),
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
__( 'Edit' )
|
__( 'Edit' )
|
||||||
);
|
);
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -253,7 +253,10 @@ class WP_Application_Passwords_List_Table extends WP_List_Table {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( $is_primary ) {
|
if ( $is_primary ) {
|
||||||
echo '<button type="button" class="toggle-row"><span class="screen-reader-text">' . __( 'Show more details' ) . '</span></button>';
|
echo '<button type="button" class="toggle-row"><span class="screen-reader-text">' .
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
__( 'Show more details' ) .
|
||||||
|
'</span></button>';
|
||||||
}
|
}
|
||||||
|
|
||||||
echo '</td>';
|
echo '</td>';
|
||||||
|
|
|
@ -506,7 +506,11 @@ class WP_Comments_List_Table extends WP_List_Table {
|
||||||
);
|
);
|
||||||
|
|
||||||
if ( $comment_types && is_array( $comment_types ) ) {
|
if ( $comment_types && is_array( $comment_types ) ) {
|
||||||
printf( '<label class="screen-reader-text" for="filter-by-comment-type">%s</label>', __( 'Filter by comment type' ) );
|
printf(
|
||||||
|
'<label class="screen-reader-text" for="filter-by-comment-type">%s</label>',
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
__( 'Filter by comment type' )
|
||||||
|
);
|
||||||
|
|
||||||
echo '<select id="filter-by-comment-type" name="comment_type">';
|
echo '<select id="filter-by-comment-type" name="comment_type">';
|
||||||
|
|
||||||
|
@ -862,7 +866,10 @@ class WP_Comments_List_Table extends WP_List_Table {
|
||||||
|
|
||||||
$output .= '</div>';
|
$output .= '</div>';
|
||||||
|
|
||||||
$output .= '<button type="button" class="toggle-row"><span class="screen-reader-text">' . __( 'Show more details' ) . '</span></button>';
|
$output .= '<button type="button" class="toggle-row"><span class="screen-reader-text">' .
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
__( 'Show more details' ) .
|
||||||
|
'</span></button>';
|
||||||
|
|
||||||
return $output;
|
return $output;
|
||||||
}
|
}
|
||||||
|
@ -878,7 +885,12 @@ class WP_Comments_List_Table extends WP_List_Table {
|
||||||
|
|
||||||
if ( $this->user_can ) {
|
if ( $this->user_can ) {
|
||||||
?>
|
?>
|
||||||
<label class="screen-reader-text" for="cb-select-<?php echo $comment->comment_ID; ?>"><?php _e( 'Select comment' ); ?></label>
|
<label class="screen-reader-text" for="cb-select-<?php echo $comment->comment_ID; ?>">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Select comment' );
|
||||||
|
?>
|
||||||
|
</label>
|
||||||
<input id="cb-select-<?php echo $comment->comment_ID; ?>" type="checkbox" name="delete_comments[]" value="<?php echo $comment->comment_ID; ?>" />
|
<input id="cb-select-<?php echo $comment->comment_ID; ?>" type="checkbox" name="delete_comments[]" value="<?php echo $comment->comment_ID; ?>" />
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
|
@ -176,7 +176,7 @@ class WP_Links_List_Table extends WP_List_Table {
|
||||||
?>
|
?>
|
||||||
<label class="screen-reader-text" for="cb-select-<?php echo $link->link_id; ?>">
|
<label class="screen-reader-text" for="cb-select-<?php echo $link->link_id; ?>">
|
||||||
<?php
|
<?php
|
||||||
/* translators: %s: Link name. */
|
/* translators: Hidden accessibility text. %s: Link name. */
|
||||||
printf( __( 'Select %s' ), $link->link_name );
|
printf( __( 'Select %s' ), $link->link_name );
|
||||||
?>
|
?>
|
||||||
</label>
|
</label>
|
||||||
|
|
|
@ -560,7 +560,10 @@ class WP_List_Table {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
echo '<label for="bulk-action-selector-' . esc_attr( $which ) . '" class="screen-reader-text">' . __( 'Select bulk action' ) . '</label>';
|
echo '<label for="bulk-action-selector-' . esc_attr( $which ) . '" class="screen-reader-text">' .
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
__( 'Select bulk action' ) .
|
||||||
|
'</label>';
|
||||||
echo '<select name="action' . $two . '" id="bulk-action-selector-' . esc_attr( $which ) . "\">\n";
|
echo '<select name="action' . $two . '" id="bulk-action-selector-' . esc_attr( $which ) . "\">\n";
|
||||||
echo '<option value="-1">' . __( 'Bulk actions' ) . "</option>\n";
|
echo '<option value="-1">' . __( 'Bulk actions' ) . "</option>\n";
|
||||||
|
|
||||||
|
@ -642,7 +645,10 @@ class WP_List_Table {
|
||||||
|
|
||||||
$output .= '</div>';
|
$output .= '</div>';
|
||||||
|
|
||||||
$output .= '<button type="button" class="toggle-row"><span class="screen-reader-text">' . __( 'Show more details' ) . '</span></button>';
|
$output .= '<button type="button" class="toggle-row"><span class="screen-reader-text">' .
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
__( 'Show more details' ) .
|
||||||
|
'</span></button>';
|
||||||
|
|
||||||
return $output;
|
return $output;
|
||||||
}
|
}
|
||||||
|
@ -846,7 +852,11 @@ class WP_List_Table {
|
||||||
printf(
|
printf(
|
||||||
'<span class="post-com-count post-com-count-no-comments"><span class="comment-count comment-count-no-comments" aria-hidden="true">%s</span><span class="screen-reader-text">%s</span></span>',
|
'<span class="post-com-count post-com-count-no-comments"><span class="comment-count comment-count-no-comments" aria-hidden="true">%s</span><span class="screen-reader-text">%s</span></span>',
|
||||||
$approved_comments_number,
|
$approved_comments_number,
|
||||||
$pending_comments ? __( 'No approved comments' ) : __( 'No comments' )
|
$pending_comments ?
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
__( 'No approved comments' ) :
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
__( 'No comments' )
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -869,7 +879,11 @@ class WP_List_Table {
|
||||||
printf(
|
printf(
|
||||||
'<span class="post-com-count post-com-count-pending post-com-count-no-pending"><span class="comment-count comment-count-no-pending" aria-hidden="true">%s</span><span class="screen-reader-text">%s</span></span>',
|
'<span class="post-com-count post-com-count-pending post-com-count-no-pending"><span class="comment-count comment-count-no-pending" aria-hidden="true">%s</span><span class="screen-reader-text">%s</span></span>',
|
||||||
$pending_comments_number,
|
$pending_comments_number,
|
||||||
$approved_comments ? __( 'No pending comments' ) : __( 'No comments' )
|
$approved_comments ?
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
__( 'No pending comments' ) :
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
__( 'No comments' )
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -994,6 +1008,7 @@ class WP_List_Table {
|
||||||
$page_links[] = sprintf(
|
$page_links[] = sprintf(
|
||||||
"<a class='first-page button' href='%s'><span class='screen-reader-text'>%s</span><span aria-hidden='true'>%s</span></a>",
|
"<a class='first-page button' href='%s'><span class='screen-reader-text'>%s</span><span aria-hidden='true'>%s</span></a>",
|
||||||
esc_url( remove_query_arg( 'paged', $current_url ) ),
|
esc_url( remove_query_arg( 'paged', $current_url ) ),
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
__( 'First page' ),
|
__( 'First page' ),
|
||||||
'«'
|
'«'
|
||||||
);
|
);
|
||||||
|
@ -1005,6 +1020,7 @@ class WP_List_Table {
|
||||||
$page_links[] = sprintf(
|
$page_links[] = sprintf(
|
||||||
"<a class='prev-page button' href='%s'><span class='screen-reader-text'>%s</span><span aria-hidden='true'>%s</span></a>",
|
"<a class='prev-page button' href='%s'><span class='screen-reader-text'>%s</span><span aria-hidden='true'>%s</span></a>",
|
||||||
esc_url( add_query_arg( 'paged', max( 1, $current - 1 ), $current_url ) ),
|
esc_url( add_query_arg( 'paged', max( 1, $current - 1 ), $current_url ) ),
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
__( 'Previous page' ),
|
__( 'Previous page' ),
|
||||||
'‹'
|
'‹'
|
||||||
);
|
);
|
||||||
|
@ -1012,11 +1028,17 @@ class WP_List_Table {
|
||||||
|
|
||||||
if ( 'bottom' === $which ) {
|
if ( 'bottom' === $which ) {
|
||||||
$html_current_page = $current;
|
$html_current_page = $current;
|
||||||
$total_pages_before = '<span class="screen-reader-text">' . __( 'Current Page' ) . '</span><span id="table-paging" class="paging-input"><span class="tablenav-paging-text">';
|
$total_pages_before = '<span class="screen-reader-text">' .
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
__( 'Current Page' ) .
|
||||||
|
'</span><span id="table-paging" class="paging-input"><span class="tablenav-paging-text">';
|
||||||
} else {
|
} else {
|
||||||
$html_current_page = sprintf(
|
$html_current_page = sprintf(
|
||||||
"%s<input class='current-page' id='current-page-selector' type='text' name='paged' value='%s' size='%d' aria-describedby='table-paging' /><span class='tablenav-paging-text'>",
|
"%s<input class='current-page' id='current-page-selector' type='text' name='paged' value='%s' size='%d' aria-describedby='table-paging' /><span class='tablenav-paging-text'>",
|
||||||
'<label for="current-page-selector" class="screen-reader-text">' . __( 'Current Page' ) . '</label>',
|
'<label for="current-page-selector" class="screen-reader-text">' .
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
__( 'Current Page' ) .
|
||||||
|
'</label>',
|
||||||
$current,
|
$current,
|
||||||
strlen( $total_pages )
|
strlen( $total_pages )
|
||||||
);
|
);
|
||||||
|
@ -1035,6 +1057,7 @@ class WP_List_Table {
|
||||||
$page_links[] = sprintf(
|
$page_links[] = sprintf(
|
||||||
"<a class='next-page button' href='%s'><span class='screen-reader-text'>%s</span><span aria-hidden='true'>%s</span></a>",
|
"<a class='next-page button' href='%s'><span class='screen-reader-text'>%s</span><span aria-hidden='true'>%s</span></a>",
|
||||||
esc_url( add_query_arg( 'paged', min( $total_pages, $current + 1 ), $current_url ) ),
|
esc_url( add_query_arg( 'paged', min( $total_pages, $current + 1 ), $current_url ) ),
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
__( 'Next page' ),
|
__( 'Next page' ),
|
||||||
'›'
|
'›'
|
||||||
);
|
);
|
||||||
|
@ -1046,6 +1069,7 @@ class WP_List_Table {
|
||||||
$page_links[] = sprintf(
|
$page_links[] = sprintf(
|
||||||
"<a class='last-page button' href='%s'><span class='screen-reader-text'>%s</span><span aria-hidden='true'>%s</span></a>",
|
"<a class='last-page button' href='%s'><span class='screen-reader-text'>%s</span><span aria-hidden='true'>%s</span></a>",
|
||||||
esc_url( add_query_arg( 'paged', $total_pages, $current_url ) ),
|
esc_url( add_query_arg( 'paged', $total_pages, $current_url ) ),
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
__( 'Last page' ),
|
__( 'Last page' ),
|
||||||
'»'
|
'»'
|
||||||
);
|
);
|
||||||
|
@ -1282,8 +1306,11 @@ class WP_List_Table {
|
||||||
|
|
||||||
if ( ! empty( $columns['cb'] ) ) {
|
if ( ! empty( $columns['cb'] ) ) {
|
||||||
static $cb_counter = 1;
|
static $cb_counter = 1;
|
||||||
$columns['cb'] = '<label class="screen-reader-text" for="cb-select-all-' . $cb_counter . '">' . __( 'Select All' ) . '</label>'
|
$columns['cb'] = '<label class="screen-reader-text" for="cb-select-all-' . $cb_counter . '">' .
|
||||||
. '<input id="cb-select-all-' . $cb_counter . '" type="checkbox" />';
|
/* translators: Hidden accessibility text. */
|
||||||
|
__( 'Select All' ) .
|
||||||
|
'</label>' .
|
||||||
|
'<input id="cb-select-all-' . $cb_counter . '" type="checkbox" />';
|
||||||
$cb_counter++;
|
$cb_counter++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1548,7 +1575,10 @@ class WP_List_Table {
|
||||||
* if the current column is not the primary column.
|
* if the current column is not the primary column.
|
||||||
*/
|
*/
|
||||||
protected function handle_row_actions( $item, $column_name, $primary ) {
|
protected function handle_row_actions( $item, $column_name, $primary ) {
|
||||||
return $column_name === $primary ? '<button type="button" class="toggle-row"><span class="screen-reader-text">' . __( 'Show more details' ) . '</span></button>' : '';
|
return $column_name === $primary ? '<button type="button" class="toggle-row"><span class="screen-reader-text">' .
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
__( 'Show more details' ) .
|
||||||
|
'</span></button>' : '';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -278,7 +278,12 @@ class WP_Media_List_Table extends WP_List_Table {
|
||||||
<div class="filter-items">
|
<div class="filter-items">
|
||||||
<?php $this->view_switcher( $mode ); ?>
|
<?php $this->view_switcher( $mode ); ?>
|
||||||
|
|
||||||
<label for="attachment-filter" class="screen-reader-text"><?php _e( 'Filter by type' ); ?></label>
|
<label for="attachment-filter" class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Filter by type' );
|
||||||
|
?>
|
||||||
|
</label>
|
||||||
<select class="attachment-filters" name="attachment-filter" id="attachment-filter">
|
<select class="attachment-filters" name="attachment-filter" id="attachment-filter">
|
||||||
<?php
|
<?php
|
||||||
if ( ! empty( $views ) ) {
|
if ( ! empty( $views ) ) {
|
||||||
|
@ -358,6 +363,7 @@ class WP_Media_List_Table extends WP_List_Table {
|
||||||
$posts_columns['comments'] = sprintf(
|
$posts_columns['comments'] = sprintf(
|
||||||
'<span class="vers comment-grey-bubble" title="%1$s" aria-hidden="true"></span><span class="screen-reader-text">%2$s</span>',
|
'<span class="vers comment-grey-bubble" title="%1$s" aria-hidden="true"></span><span class="screen-reader-text">%2$s</span>',
|
||||||
esc_attr__( 'Comments' ),
|
esc_attr__( 'Comments' ),
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
__( 'Comments' )
|
__( 'Comments' )
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -407,7 +413,7 @@ class WP_Media_List_Table extends WP_List_Table {
|
||||||
?>
|
?>
|
||||||
<label class="screen-reader-text" for="cb-select-<?php echo $post->ID; ?>">
|
<label class="screen-reader-text" for="cb-select-<?php echo $post->ID; ?>">
|
||||||
<?php
|
<?php
|
||||||
/* translators: %s: Attachment title. */
|
/* translators: Hidden accessibility text. %s: Attachment title. */
|
||||||
printf( __( 'Select %s' ), _draft_or_post_title() );
|
printf( __( 'Select %s' ), _draft_or_post_title() );
|
||||||
?>
|
?>
|
||||||
</label>
|
</label>
|
||||||
|
@ -469,7 +475,12 @@ class WP_Media_List_Table extends WP_List_Table {
|
||||||
?>
|
?>
|
||||||
</strong>
|
</strong>
|
||||||
<p class="filename">
|
<p class="filename">
|
||||||
<span class="screen-reader-text"><?php _e( 'File name:' ); ?> </span>
|
<span class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'File name:' );
|
||||||
|
?>
|
||||||
|
</span>
|
||||||
<?php
|
<?php
|
||||||
$file = get_attached_file( $post->ID );
|
$file = get_attached_file( $post->ID );
|
||||||
echo esc_html( wp_basename( $file ) );
|
echo esc_html( wp_basename( $file ) );
|
||||||
|
|
|
@ -513,7 +513,15 @@ class WP_MS_Themes_List_Table extends WP_List_Table {
|
||||||
$checkbox_id = 'checkbox_' . md5( $theme->get( 'Name' ) );
|
$checkbox_id = 'checkbox_' . md5( $theme->get( 'Name' ) );
|
||||||
?>
|
?>
|
||||||
<input type="checkbox" name="checked[]" value="<?php echo esc_attr( $theme->get_stylesheet() ); ?>" id="<?php echo $checkbox_id; ?>" />
|
<input type="checkbox" name="checked[]" value="<?php echo esc_attr( $theme->get_stylesheet() ); ?>" id="<?php echo $checkbox_id; ?>" />
|
||||||
<label class="screen-reader-text" for="<?php echo $checkbox_id; ?>" ><?php _e( 'Select' ); ?> <?php echo $theme->display( 'Name' ); ?></label>
|
<label class="screen-reader-text" for="<?php echo $checkbox_id; ?>" >
|
||||||
|
<?php
|
||||||
|
printf(
|
||||||
|
/* translators: Hidden accessibility text. %s: Theme name */
|
||||||
|
__( 'Select %s' ),
|
||||||
|
$theme->display( 'Name' )
|
||||||
|
);
|
||||||
|
?>
|
||||||
|
</label>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -237,7 +237,7 @@ class WP_MS_Users_List_Table extends WP_List_Table {
|
||||||
?>
|
?>
|
||||||
<label class="screen-reader-text" for="blog_<?php echo $user->ID; ?>">
|
<label class="screen-reader-text" for="blog_<?php echo $user->ID; ?>">
|
||||||
<?php
|
<?php
|
||||||
/* translators: %s: User login. */
|
/* translators: Hidden accessibility text. %s: User login. */
|
||||||
printf( __( 'Select %s' ), $user->user_login );
|
printf( __( 'Select %s' ), $user->user_login );
|
||||||
?>
|
?>
|
||||||
</label>
|
</label>
|
||||||
|
@ -309,7 +309,10 @@ class WP_MS_Users_List_Table extends WP_List_Table {
|
||||||
} elseif ( $user->last_name ) {
|
} elseif ( $user->last_name ) {
|
||||||
echo $user->last_name;
|
echo $user->last_name;
|
||||||
} else {
|
} else {
|
||||||
echo '<span aria-hidden="true">—</span><span class="screen-reader-text">' . _x( 'Unknown', 'name' ) . '</span>';
|
echo '<span aria-hidden="true">—</span><span class="screen-reader-text">' .
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_x( 'Unknown', 'name' ) .
|
||||||
|
'</span>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -985,7 +985,7 @@ class WP_Plugins_List_Table extends WP_List_Table {
|
||||||
'<label class="screen-reader-text" for="%1$s">%2$s</label>' .
|
'<label class="screen-reader-text" for="%1$s">%2$s</label>' .
|
||||||
'<input type="checkbox" name="checked[]" value="%3$s" id="%1$s" />',
|
'<input type="checkbox" name="checked[]" value="%3$s" id="%1$s" />',
|
||||||
$checkbox_id,
|
$checkbox_id,
|
||||||
/* translators: %s: Plugin name. */
|
/* translators: Hidden accessibility text. %s: Plugin name. */
|
||||||
sprintf( __( 'Select %s' ), $plugin_data['Name'] ),
|
sprintf( __( 'Select %s' ), $plugin_data['Name'] ),
|
||||||
esc_attr( $plugin_file )
|
esc_attr( $plugin_file )
|
||||||
);
|
);
|
||||||
|
|
|
@ -534,7 +534,12 @@ class WP_Posts_List_Table extends WP_List_Table {
|
||||||
|
|
||||||
$displayed_post_format = isset( $_GET['post_format'] ) ? $_GET['post_format'] : '';
|
$displayed_post_format = isset( $_GET['post_format'] ) ? $_GET['post_format'] : '';
|
||||||
?>
|
?>
|
||||||
<label for="filter-by-format" class="screen-reader-text"><?php _e( 'Filter by post format' ); ?></label>
|
<label for="filter-by-format" class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Filter by post format' );
|
||||||
|
?>
|
||||||
|
</label>
|
||||||
<select name="post_format" id="filter-by-format">
|
<select name="post_format" id="filter-by-format">
|
||||||
<option<?php selected( $displayed_post_format, '' ); ?> value=""><?php _e( 'All formats' ); ?></option>
|
<option<?php selected( $displayed_post_format, '' ); ?> value=""><?php _e( 'All formats' ); ?></option>
|
||||||
<?php
|
<?php
|
||||||
|
@ -704,6 +709,7 @@ class WP_Posts_List_Table extends WP_List_Table {
|
||||||
$posts_columns['comments'] = sprintf(
|
$posts_columns['comments'] = sprintf(
|
||||||
'<span class="vers comment-grey-bubble" title="%1$s" aria-hidden="true"></span><span class="screen-reader-text">%2$s</span>',
|
'<span class="vers comment-grey-bubble" title="%1$s" aria-hidden="true"></span><span class="screen-reader-text">%2$s</span>',
|
||||||
esc_attr__( 'Comments' ),
|
esc_attr__( 'Comments' ),
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
__( 'Comments' )
|
__( 'Comments' )
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -1018,7 +1024,7 @@ class WP_Posts_List_Table extends WP_List_Table {
|
||||||
<span class="screen-reader-text">
|
<span class="screen-reader-text">
|
||||||
<?php
|
<?php
|
||||||
printf(
|
printf(
|
||||||
/* translators: %s: Post title. */
|
/* translators: Hidden accessibility text. %s: Post title. */
|
||||||
__( '“%s” is locked' ),
|
__( '“%s” is locked' ),
|
||||||
_draft_or_post_title()
|
_draft_or_post_title()
|
||||||
);
|
);
|
||||||
|
|
|
@ -361,7 +361,7 @@ final class WP_Privacy_Policy_Content {
|
||||||
' <a href="%s" target="_blank">%s <span class="screen-reader-text">%s</span></a>',
|
' <a href="%s" target="_blank">%s <span class="screen-reader-text">%s</span></a>',
|
||||||
$url,
|
$url,
|
||||||
$label,
|
$label,
|
||||||
/* translators: Accessibility text. */
|
/* translators: Hidden accessibility text. */
|
||||||
__( '(opens in a new tab)' )
|
__( '(opens in a new tab)' )
|
||||||
);
|
);
|
||||||
?>
|
?>
|
||||||
|
@ -428,7 +428,7 @@ final class WP_Privacy_Policy_Content {
|
||||||
<span aria-hidden="true"><?php _e( 'Copy suggested policy text to clipboard' ); ?></span>
|
<span aria-hidden="true"><?php _e( 'Copy suggested policy text to clipboard' ); ?></span>
|
||||||
<span class="screen-reader-text">
|
<span class="screen-reader-text">
|
||||||
<?php
|
<?php
|
||||||
/* translators: %s: Plugin name. */
|
/* translators: Hidden accessibility text. %s: Plugin name. */
|
||||||
printf( __( 'Copy suggested policy text from %s.' ), $plugin_name );
|
printf( __( 'Copy suggested policy text from %s.' ), $plugin_name );
|
||||||
?>
|
?>
|
||||||
</span>
|
</span>
|
||||||
|
|
|
@ -749,7 +749,7 @@ class WP_Site_Health {
|
||||||
'<p><a href="%s" target="_blank" rel="noopener">%s <span class="screen-reader-text">%s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
|
'<p><a href="%s" target="_blank" rel="noopener">%s <span class="screen-reader-text">%s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
|
||||||
esc_url( wp_get_update_php_url() ),
|
esc_url( wp_get_update_php_url() ),
|
||||||
__( 'Learn more about updating PHP' ),
|
__( 'Learn more about updating PHP' ),
|
||||||
/* translators: Accessibility text. */
|
/* translators: Hidden accessibility text. */
|
||||||
__( '(opens in a new tab)' )
|
__( '(opens in a new tab)' )
|
||||||
),
|
),
|
||||||
'test' => 'php_version',
|
'test' => 'php_version',
|
||||||
|
@ -893,7 +893,7 @@ class WP_Site_Health {
|
||||||
'target="_blank" rel="noopener"',
|
'target="_blank" rel="noopener"',
|
||||||
sprintf(
|
sprintf(
|
||||||
' <span class="screen-reader-text">%s</span><span aria-hidden="true" class="dashicons dashicons-external"></span>',
|
' <span class="screen-reader-text">%s</span><span aria-hidden="true" class="dashicons dashicons-external"></span>',
|
||||||
/* translators: Accessibility text. */
|
/* translators: Hidden accessibility text. */
|
||||||
__( '(opens in a new tab)' )
|
__( '(opens in a new tab)' )
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
@ -1051,7 +1051,8 @@ class WP_Site_Health {
|
||||||
if ( $module['required'] ) {
|
if ( $module['required'] ) {
|
||||||
$result['status'] = 'critical';
|
$result['status'] = 'critical';
|
||||||
|
|
||||||
$class = 'error';
|
$class = 'error';
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
$screen_reader = __( 'Error' );
|
$screen_reader = __( 'Error' );
|
||||||
$message = sprintf(
|
$message = sprintf(
|
||||||
/* translators: %s: The module name. */
|
/* translators: %s: The module name. */
|
||||||
|
@ -1059,7 +1060,8 @@ class WP_Site_Health {
|
||||||
$library
|
$library
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
$class = 'warning';
|
$class = 'warning';
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
$screen_reader = __( 'Warning' );
|
$screen_reader = __( 'Warning' );
|
||||||
$message = sprintf(
|
$message = sprintf(
|
||||||
/* translators: %s: The module name. */
|
/* translators: %s: The module name. */
|
||||||
|
@ -1218,7 +1220,7 @@ class WP_Site_Health {
|
||||||
/* translators: Localized version of WordPress requirements if one exists. */
|
/* translators: Localized version of WordPress requirements if one exists. */
|
||||||
esc_url( __( 'https://wordpress.org/about/requirements/' ) ),
|
esc_url( __( 'https://wordpress.org/about/requirements/' ) ),
|
||||||
__( 'Learn more about what WordPress requires to run.' ),
|
__( 'Learn more about what WordPress requires to run.' ),
|
||||||
/* translators: Accessibility text. */
|
/* translators: Hidden accessibility text. */
|
||||||
__( '(opens in a new tab)' )
|
__( '(opens in a new tab)' )
|
||||||
),
|
),
|
||||||
'test' => 'sql_server',
|
'test' => 'sql_server',
|
||||||
|
@ -1442,6 +1444,7 @@ class WP_Site_Health {
|
||||||
'<p>%s</p>',
|
'<p>%s</p>',
|
||||||
sprintf(
|
sprintf(
|
||||||
'<span class="error"><span class="screen-reader-text">%s</span></span> %s',
|
'<span class="error"><span class="screen-reader-text">%s</span></span> %s',
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
__( 'Error' ),
|
__( 'Error' ),
|
||||||
sprintf(
|
sprintf(
|
||||||
/* translators: 1: The IP address WordPress.org resolves to. 2: The error returned by the lookup. */
|
/* translators: 1: The IP address WordPress.org resolves to. 2: The error returned by the lookup. */
|
||||||
|
@ -1457,7 +1460,7 @@ class WP_Site_Health {
|
||||||
/* translators: Localized Support reference. */
|
/* translators: Localized Support reference. */
|
||||||
esc_url( __( 'https://wordpress.org/support' ) ),
|
esc_url( __( 'https://wordpress.org/support' ) ),
|
||||||
__( 'Get help resolving this issue.' ),
|
__( 'Get help resolving this issue.' ),
|
||||||
/* translators: Accessibility text. */
|
/* translators: Hidden accessibility text. */
|
||||||
__( '(opens in a new tab)' )
|
__( '(opens in a new tab)' )
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -1495,7 +1498,7 @@ class WP_Site_Health {
|
||||||
/* translators: Documentation explaining debugging in WordPress. */
|
/* translators: Documentation explaining debugging in WordPress. */
|
||||||
esc_url( __( 'https://wordpress.org/support/article/debugging-in-wordpress/' ) ),
|
esc_url( __( 'https://wordpress.org/support/article/debugging-in-wordpress/' ) ),
|
||||||
__( 'Learn more about debugging in WordPress.' ),
|
__( 'Learn more about debugging in WordPress.' ),
|
||||||
/* translators: Accessibility text. */
|
/* translators: Hidden accessibility text. */
|
||||||
__( '(opens in a new tab)' )
|
__( '(opens in a new tab)' )
|
||||||
),
|
),
|
||||||
'test' => 'is_in_debug_mode',
|
'test' => 'is_in_debug_mode',
|
||||||
|
@ -1575,7 +1578,7 @@ class WP_Site_Health {
|
||||||
'<p><a href="%s" target="_blank" rel="noopener">%s<span class="screen-reader-text"> %s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
|
'<p><a href="%s" target="_blank" rel="noopener">%s<span class="screen-reader-text"> %s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
|
||||||
esc_url( $default_update_url ),
|
esc_url( $default_update_url ),
|
||||||
__( 'Learn more about why you should use HTTPS' ),
|
__( 'Learn more about why you should use HTTPS' ),
|
||||||
/* translators: Accessibility text. */
|
/* translators: Hidden accessibility text. */
|
||||||
__( '(opens in a new tab)' )
|
__( '(opens in a new tab)' )
|
||||||
),
|
),
|
||||||
'test' => 'https_status',
|
'test' => 'https_status',
|
||||||
|
@ -1657,7 +1660,7 @@ class WP_Site_Health {
|
||||||
'<p class="button-container"><a class="button button-primary" href="%1$s" target="_blank" rel="noopener">%2$s<span class="screen-reader-text"> %3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
|
'<p class="button-container"><a class="button button-primary" href="%1$s" target="_blank" rel="noopener">%2$s<span class="screen-reader-text"> %3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
|
||||||
esc_url( $direct_update_url ),
|
esc_url( $direct_update_url ),
|
||||||
__( 'Update your site to use HTTPS' ),
|
__( 'Update your site to use HTTPS' ),
|
||||||
/* translators: Accessibility text. */
|
/* translators: Hidden accessibility text. */
|
||||||
__( '(opens in a new tab)' )
|
__( '(opens in a new tab)' )
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
@ -1676,7 +1679,7 @@ class WP_Site_Health {
|
||||||
'<p><a href="%s" target="_blank" rel="noopener">%s<span class="screen-reader-text"> %s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
|
'<p><a href="%s" target="_blank" rel="noopener">%s<span class="screen-reader-text"> %s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
|
||||||
esc_url( $update_url ),
|
esc_url( $update_url ),
|
||||||
__( 'Talk to your web host about supporting HTTPS for your website.' ),
|
__( 'Talk to your web host about supporting HTTPS for your website.' ),
|
||||||
/* translators: Accessibility text. */
|
/* translators: Hidden accessibility text. */
|
||||||
__( '(opens in a new tab)' )
|
__( '(opens in a new tab)' )
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
@ -1845,6 +1848,7 @@ class WP_Site_Health {
|
||||||
$output = '<ul>';
|
$output = '<ul>';
|
||||||
|
|
||||||
foreach ( $tests as $test ) {
|
foreach ( $tests as $test ) {
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
$severity_string = __( 'Passed' );
|
$severity_string = __( 'Passed' );
|
||||||
|
|
||||||
if ( 'fail' === $test->severity ) {
|
if ( 'fail' === $test->severity ) {
|
||||||
|
@ -1852,6 +1856,7 @@ class WP_Site_Health {
|
||||||
|
|
||||||
$result['status'] = 'critical';
|
$result['status'] = 'critical';
|
||||||
|
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
$severity_string = __( 'Error' );
|
$severity_string = __( 'Error' );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1860,6 +1865,7 @@ class WP_Site_Health {
|
||||||
|
|
||||||
$result['status'] = 'recommended';
|
$result['status'] = 'recommended';
|
||||||
|
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
$severity_string = __( 'Warning' );
|
$severity_string = __( 'Warning' );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2292,7 +2298,7 @@ class WP_Site_Health {
|
||||||
'<p><a href="%s" target="_blank" rel="noopener">%s <span class="screen-reader-text">%s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
|
'<p><a href="%s" target="_blank" rel="noopener">%s <span class="screen-reader-text">%s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
|
||||||
__( 'https://developer.wordpress.org/rest-api/frequently-asked-questions/#why-is-authentication-not-working' ),
|
__( 'https://developer.wordpress.org/rest-api/frequently-asked-questions/#why-is-authentication-not-working' ),
|
||||||
__( 'Learn how to configure the Authorization header.' ),
|
__( 'Learn how to configure the Authorization header.' ),
|
||||||
/* translators: Accessibility text. */
|
/* translators: Hidden accessibility text. */
|
||||||
__( '(opens in a new tab)' )
|
__( '(opens in a new tab)' )
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -2325,7 +2331,7 @@ class WP_Site_Health {
|
||||||
'<p><a href="%1$s" target="_blank" rel="noopener noreferrer">%2$s <span class="screen-reader-text">%3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
|
'<p><a href="%1$s" target="_blank" rel="noopener noreferrer">%2$s <span class="screen-reader-text">%3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
|
||||||
__( 'https://wordpress.org/support/article/optimization/#Caching' ),
|
__( 'https://wordpress.org/support/article/optimization/#Caching' ),
|
||||||
__( 'Learn more about page cache' ),
|
__( 'Learn more about page cache' ),
|
||||||
/* translators: Accessibility text. */
|
/* translators: Hidden accessibility text. */
|
||||||
__( '(opens in a new tab)' )
|
__( '(opens in a new tab)' )
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
@ -2451,7 +2457,7 @@ class WP_Site_Health {
|
||||||
'<p><a href="%s" target="_blank" rel="noopener">%s <span class="screen-reader-text">%s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
|
'<p><a href="%s" target="_blank" rel="noopener">%s <span class="screen-reader-text">%s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a></p>',
|
||||||
esc_url( $action_url ),
|
esc_url( $action_url ),
|
||||||
__( 'Learn more about persistent object caching.' ),
|
__( 'Learn more about persistent object caching.' ),
|
||||||
/* translators: Accessibility text. */
|
/* translators: Hidden accessibility text. */
|
||||||
__( '(opens in a new tab)' )
|
__( '(opens in a new tab)' )
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
|
@ -360,7 +360,7 @@ class WP_Terms_List_Table extends WP_List_Table {
|
||||||
'<label class="screen-reader-text" for="cb-select-%1$s">%2$s</label>' .
|
'<label class="screen-reader-text" for="cb-select-%1$s">%2$s</label>' .
|
||||||
'<input type="checkbox" name="delete_tags[]" value="%1$s" id="cb-select-%1$s" />',
|
'<input type="checkbox" name="delete_tags[]" value="%1$s" id="cb-select-%1$s" />',
|
||||||
$tag->term_id,
|
$tag->term_id,
|
||||||
/* translators: %s: Taxonomy term name. */
|
/* translators: Hidden accessibility text. %s: Taxonomy term name. */
|
||||||
sprintf( __( 'Select %s' ), $tag->name )
|
sprintf( __( 'Select %s' ), $tag->name )
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -547,7 +547,10 @@ class WP_Terms_List_Table extends WP_List_Table {
|
||||||
if ( $tag->description ) {
|
if ( $tag->description ) {
|
||||||
return $tag->description;
|
return $tag->description;
|
||||||
} else {
|
} else {
|
||||||
return '<span aria-hidden="true">—</span><span class="screen-reader-text">' . __( 'No description' ) . '</span>';
|
return '<span aria-hidden="true">—</span><span class="screen-reader-text">' .
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
__( 'No description' ) .
|
||||||
|
'</span>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -303,7 +303,12 @@ class WP_Users_List_Table extends WP_List_Table {
|
||||||
?>
|
?>
|
||||||
<div class="alignleft actions">
|
<div class="alignleft actions">
|
||||||
<?php if ( current_user_can( 'promote_users' ) && $this->has_items() ) : ?>
|
<?php if ( current_user_can( 'promote_users' ) && $this->has_items() ) : ?>
|
||||||
<label class="screen-reader-text" for="<?php echo $id; ?>"><?php _e( 'Change role to…' ); ?></label>
|
<label class="screen-reader-text" for="<?php echo $id; ?>">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Change role to…' );
|
||||||
|
?>
|
||||||
|
</label>
|
||||||
<select name="<?php echo $id; ?>" id="<?php echo $id; ?>">
|
<select name="<?php echo $id; ?>" id="<?php echo $id; ?>">
|
||||||
<option value=""><?php _e( 'Change role to…' ); ?></option>
|
<option value=""><?php _e( 'Change role to…' ); ?></option>
|
||||||
<?php wp_dropdown_roles(); ?>
|
<?php wp_dropdown_roles(); ?>
|
||||||
|
@ -521,7 +526,7 @@ class WP_Users_List_Table extends WP_List_Table {
|
||||||
'<label class="screen-reader-text" for="user_%1$s">%2$s</label>' .
|
'<label class="screen-reader-text" for="user_%1$s">%2$s</label>' .
|
||||||
'<input type="checkbox" name="users[]" id="user_%1$s" class="%3$s" value="%1$s" />',
|
'<input type="checkbox" name="users[]" id="user_%1$s" class="%3$s" value="%1$s" />',
|
||||||
$user_object->ID,
|
$user_object->ID,
|
||||||
/* translators: %s: User login. */
|
/* translators: Hidden accessibility text. %s: User login. */
|
||||||
sprintf( __( 'Select %s' ), $user_object->user_login ),
|
sprintf( __( 'Select %s' ), $user_object->user_login ),
|
||||||
$role_classes
|
$role_classes
|
||||||
);
|
);
|
||||||
|
@ -579,6 +584,7 @@ class WP_Users_List_Table extends WP_List_Table {
|
||||||
} else {
|
} else {
|
||||||
$row .= sprintf(
|
$row .= sprintf(
|
||||||
'<span aria-hidden="true">—</span><span class="screen-reader-text">%s</span>',
|
'<span aria-hidden="true">—</span><span class="screen-reader-text">%s</span>',
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
_x( 'Unknown', 'name' )
|
_x( 'Unknown', 'name' )
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -596,7 +602,7 @@ class WP_Users_List_Table extends WP_List_Table {
|
||||||
"edit.php?author={$user_object->ID}",
|
"edit.php?author={$user_object->ID}",
|
||||||
$numposts,
|
$numposts,
|
||||||
sprintf(
|
sprintf(
|
||||||
/* translators: %s: Number of posts. */
|
/* translators: Hidden accessibility text. %s: Number of posts. */
|
||||||
_n( '%s post by this author', '%s posts by this author', $numposts ),
|
_n( '%s post by this author', '%s posts by this author', $numposts ),
|
||||||
number_format_i18n( $numposts )
|
number_format_i18n( $numposts )
|
||||||
)
|
)
|
||||||
|
|
|
@ -492,7 +492,12 @@ function wp_network_dashboard_right_now() {
|
||||||
|
|
||||||
<form action="<?php echo esc_url( network_admin_url( 'users.php' ) ); ?>" method="get">
|
<form action="<?php echo esc_url( network_admin_url( 'users.php' ) ); ?>" method="get">
|
||||||
<p>
|
<p>
|
||||||
<label class="screen-reader-text" for="search-users"><?php _e( 'Search Users' ); ?></label>
|
<label class="screen-reader-text" for="search-users">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Search Users' );
|
||||||
|
?>
|
||||||
|
</label>
|
||||||
<input type="search" name="s" value="" size="30" autocomplete="off" id="search-users" />
|
<input type="search" name="s" value="" size="30" autocomplete="off" id="search-users" />
|
||||||
<?php submit_button( __( 'Search Users' ), '', false, false, array( 'id' => 'submit_users' ) ); ?>
|
<?php submit_button( __( 'Search Users' ), '', false, false, array( 'id' => 'submit_users' ) ); ?>
|
||||||
</p>
|
</p>
|
||||||
|
@ -500,7 +505,12 @@ function wp_network_dashboard_right_now() {
|
||||||
|
|
||||||
<form action="<?php echo esc_url( network_admin_url( 'sites.php' ) ); ?>" method="get">
|
<form action="<?php echo esc_url( network_admin_url( 'sites.php' ) ); ?>" method="get">
|
||||||
<p>
|
<p>
|
||||||
<label class="screen-reader-text" for="search-sites"><?php _e( 'Search Sites' ); ?></label>
|
<label class="screen-reader-text" for="search-sites">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Search Sites' );
|
||||||
|
?>
|
||||||
|
</label>
|
||||||
<input type="search" name="s" value="" size="30" autocomplete="off" id="search-sites" />
|
<input type="search" name="s" value="" size="30" autocomplete="off" id="search-sites" />
|
||||||
<?php submit_button( __( 'Search Sites' ), '', false, false, array( 'id' => 'submit_sites' ) ); ?>
|
<?php submit_button( __( 'Search Sites' ), '', false, false, array( 'id' => 'submit_sites' ) ); ?>
|
||||||
</p>
|
</p>
|
||||||
|
@ -1096,7 +1106,10 @@ function wp_dashboard_recent_comments( $total_items = 5 ) {
|
||||||
echo '</ul>';
|
echo '</ul>';
|
||||||
|
|
||||||
if ( current_user_can( 'edit_posts' ) ) {
|
if ( current_user_can( 'edit_posts' ) ) {
|
||||||
echo '<h3 class="screen-reader-text">' . __( 'View more comments' ) . '</h3>';
|
echo '<h3 class="screen-reader-text">' .
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
__( 'View more comments' ) .
|
||||||
|
'</h3>';
|
||||||
_get_list_table( 'WP_Comments_List_Table' )->views();
|
_get_list_table( 'WP_Comments_List_Table' )->views();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1287,7 +1300,7 @@ function wp_dashboard_events_news() {
|
||||||
'<a href="%1$s" target="_blank">%2$s <span class="screen-reader-text">%3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a>',
|
'<a href="%1$s" target="_blank">%2$s <span class="screen-reader-text">%3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a>',
|
||||||
'https://make.wordpress.org/community/meetups-landing-page',
|
'https://make.wordpress.org/community/meetups-landing-page',
|
||||||
__( 'Meetups' ),
|
__( 'Meetups' ),
|
||||||
/* translators: Accessibility text. */
|
/* translators: Hidden accessibility text. */
|
||||||
__( '(opens in a new tab)' )
|
__( '(opens in a new tab)' )
|
||||||
);
|
);
|
||||||
?>
|
?>
|
||||||
|
@ -1299,7 +1312,7 @@ function wp_dashboard_events_news() {
|
||||||
'<a href="%1$s" target="_blank">%2$s <span class="screen-reader-text">%3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a>',
|
'<a href="%1$s" target="_blank">%2$s <span class="screen-reader-text">%3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a>',
|
||||||
'https://central.wordcamp.org/schedule/',
|
'https://central.wordcamp.org/schedule/',
|
||||||
__( 'WordCamps' ),
|
__( 'WordCamps' ),
|
||||||
/* translators: Accessibility text. */
|
/* translators: Hidden accessibility text. */
|
||||||
__( '(opens in a new tab)' )
|
__( '(opens in a new tab)' )
|
||||||
);
|
);
|
||||||
?>
|
?>
|
||||||
|
@ -1312,7 +1325,7 @@ function wp_dashboard_events_news() {
|
||||||
/* translators: If a Rosetta site exists (e.g. https://es.wordpress.org/news/), then use that. Otherwise, leave untranslated. */
|
/* translators: If a Rosetta site exists (e.g. https://es.wordpress.org/news/), then use that. Otherwise, leave untranslated. */
|
||||||
esc_url( _x( 'https://wordpress.org/news/', 'Events and News dashboard widget' ) ),
|
esc_url( _x( 'https://wordpress.org/news/', 'Events and News dashboard widget' ) ),
|
||||||
__( 'News' ),
|
__( 'News' ),
|
||||||
/* translators: Accessibility text. */
|
/* translators: Hidden accessibility text. */
|
||||||
__( '(opens in a new tab)' )
|
__( '(opens in a new tab)' )
|
||||||
);
|
);
|
||||||
?>
|
?>
|
||||||
|
@ -1637,6 +1650,7 @@ function wp_dashboard_quota() {
|
||||||
'<a href="%1$s">%2$s <span class="screen-reader-text">(%3$s)</span></a>',
|
'<a href="%1$s">%2$s <span class="screen-reader-text">(%3$s)</span></a>',
|
||||||
esc_url( admin_url( 'upload.php' ) ),
|
esc_url( admin_url( 'upload.php' ) ),
|
||||||
$text,
|
$text,
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
__( 'Manage Uploads' )
|
__( 'Manage Uploads' )
|
||||||
);
|
);
|
||||||
?>
|
?>
|
||||||
|
@ -1652,6 +1666,7 @@ function wp_dashboard_quota() {
|
||||||
'<a href="%1$s" class="musublink">%2$s <span class="screen-reader-text">(%3$s)</span></a>',
|
'<a href="%1$s" class="musublink">%2$s <span class="screen-reader-text">(%3$s)</span></a>',
|
||||||
esc_url( admin_url( 'upload.php' ) ),
|
esc_url( admin_url( 'upload.php' ) ),
|
||||||
$text,
|
$text,
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
__( 'Manage Uploads' )
|
__( 'Manage Uploads' )
|
||||||
);
|
);
|
||||||
?>
|
?>
|
||||||
|
@ -1882,7 +1897,7 @@ function wp_dashboard_php_nag() {
|
||||||
'<a class="button button-primary" href="%1$s" target="_blank" rel="noopener">%2$s <span class="screen-reader-text">%3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a>',
|
'<a class="button button-primary" href="%1$s" target="_blank" rel="noopener">%2$s <span class="screen-reader-text">%3$s</span><span aria-hidden="true" class="dashicons dashicons-external"></span></a>',
|
||||||
esc_url( wp_get_update_php_url() ),
|
esc_url( wp_get_update_php_url() ),
|
||||||
__( 'Learn more about updating PHP' ),
|
__( 'Learn more about updating PHP' ),
|
||||||
/* translators: Accessibility text. */
|
/* translators: Hidden accessibility text. */
|
||||||
__( '(opens in a new tab)' )
|
__( '(opens in a new tab)' )
|
||||||
);
|
);
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -339,7 +339,12 @@ function wp_print_file_editor_templates() {
|
||||||
<# } #>
|
<# } #>
|
||||||
<# } #>
|
<# } #>
|
||||||
<# if ( data.dismissible ) { #>
|
<# if ( data.dismissible ) { #>
|
||||||
<button type="button" class="notice-dismiss"><span class="screen-reader-text"><?php _e( 'Dismiss' ); ?></span></button>
|
<button type="button" class="notice-dismiss"><span class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Dismiss' );
|
||||||
|
?>
|
||||||
|
</span></button>
|
||||||
<# } #>
|
<# } #>
|
||||||
</div>
|
</div>
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -112,7 +112,12 @@ function wp_image_editor( $post_id, $msg = false ) {
|
||||||
<div class="imgedit-group">
|
<div class="imgedit-group">
|
||||||
<div class="imgedit-group-top">
|
<div class="imgedit-group-top">
|
||||||
<h2><?php _e( 'Scale Image' ); ?></h2>
|
<h2><?php _e( 'Scale Image' ); ?></h2>
|
||||||
<button type="button" class="dashicons dashicons-editor-help imgedit-help-toggle" onclick="imageEdit.toggleHelp(this);" aria-expanded="false"><span class="screen-reader-text"><?php esc_html_e( 'Scale Image Help' ); ?></span></button>
|
<button type="button" class="dashicons dashicons-editor-help imgedit-help-toggle" onclick="imageEdit.toggleHelp(this);" aria-expanded="false"><span class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
esc_html_e( 'Scale Image Help' );
|
||||||
|
?>
|
||||||
|
</span></button>
|
||||||
<div class="imgedit-help">
|
<div class="imgedit-help">
|
||||||
<p><?php _e( 'You can proportionally scale the original image. For best results, scaling should be done before you crop, flip, or rotate. Images can only be scaled down, not up.' ); ?></p>
|
<p><?php _e( 'You can proportionally scale the original image. For best results, scaling should be done before you crop, flip, or rotate. Images can only be scaled down, not up.' ); ?></p>
|
||||||
</div>
|
</div>
|
||||||
|
@ -132,10 +137,20 @@ function wp_image_editor( $post_id, $msg = false ) {
|
||||||
<fieldset class="imgedit-scale">
|
<fieldset class="imgedit-scale">
|
||||||
<legend><?php _e( 'New dimensions:' ); ?></legend>
|
<legend><?php _e( 'New dimensions:' ); ?></legend>
|
||||||
<div class="nowrap">
|
<div class="nowrap">
|
||||||
<label for="imgedit-scale-width-<?php echo $post_id; ?>" class="screen-reader-text"><?php _e( 'scale width' ); ?></label>
|
<label for="imgedit-scale-width-<?php echo $post_id; ?>" class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'scale width' );
|
||||||
|
?>
|
||||||
|
</label>
|
||||||
<input type="text" id="imgedit-scale-width-<?php echo $post_id; ?>" onkeyup="imageEdit.scaleChanged(<?php echo $post_id; ?>, 1, this)" onblur="imageEdit.scaleChanged(<?php echo $post_id; ?>, 1, this)" value="<?php echo isset( $meta['width'] ) ? $meta['width'] : 0; ?>" />
|
<input type="text" id="imgedit-scale-width-<?php echo $post_id; ?>" onkeyup="imageEdit.scaleChanged(<?php echo $post_id; ?>, 1, this)" onblur="imageEdit.scaleChanged(<?php echo $post_id; ?>, 1, this)" value="<?php echo isset( $meta['width'] ) ? $meta['width'] : 0; ?>" />
|
||||||
<span class="imgedit-separator" aria-hidden="true">×</span>
|
<span class="imgedit-separator" aria-hidden="true">×</span>
|
||||||
<label for="imgedit-scale-height-<?php echo $post_id; ?>" class="screen-reader-text"><?php _e( 'scale height' ); ?></label>
|
<label for="imgedit-scale-height-<?php echo $post_id; ?>" class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'scale height' );
|
||||||
|
?>
|
||||||
|
</label>
|
||||||
<input type="text" id="imgedit-scale-height-<?php echo $post_id; ?>" onkeyup="imageEdit.scaleChanged(<?php echo $post_id; ?>, 0, this)" onblur="imageEdit.scaleChanged(<?php echo $post_id; ?>, 0, this)" value="<?php echo isset( $meta['height'] ) ? $meta['height'] : 0; ?>" />
|
<input type="text" id="imgedit-scale-height-<?php echo $post_id; ?>" onkeyup="imageEdit.scaleChanged(<?php echo $post_id; ?>, 0, this)" onblur="imageEdit.scaleChanged(<?php echo $post_id; ?>, 0, this)" value="<?php echo isset( $meta['height'] ) ? $meta['height'] : 0; ?>" />
|
||||||
<span class="imgedit-scale-warn" id="imgedit-scale-warn-<?php echo $post_id; ?>">!</span>
|
<span class="imgedit-scale-warn" id="imgedit-scale-warn-<?php echo $post_id; ?>">!</span>
|
||||||
<div class="imgedit-scale-button-wrapper"><input id="imgedit-scale-button" type="button" onclick="imageEdit.action(<?php echo "$post_id, '$nonce'"; ?>, 'scale')" class="button button-primary" value="<?php esc_attr_e( 'Scale' ); ?>" /></div>
|
<div class="imgedit-scale-button-wrapper"><input id="imgedit-scale-button" type="button" onclick="imageEdit.action(<?php echo "$post_id, '$nonce'"; ?>, 'scale')" class="button button-primary" value="<?php esc_attr_e( 'Scale' ); ?>" /></div>
|
||||||
|
@ -173,7 +188,12 @@ function wp_image_editor( $post_id, $msg = false ) {
|
||||||
<div class="imgedit-group">
|
<div class="imgedit-group">
|
||||||
<div class="imgedit-group-top">
|
<div class="imgedit-group-top">
|
||||||
<h2><?php _e( 'Image Crop' ); ?></h2>
|
<h2><?php _e( 'Image Crop' ); ?></h2>
|
||||||
<button type="button" class="dashicons dashicons-editor-help imgedit-help-toggle" onclick="imageEdit.toggleHelp(this);" aria-expanded="false"><span class="screen-reader-text"><?php esc_html_e( 'Image Crop Help' ); ?></span></button>
|
<button type="button" class="dashicons dashicons-editor-help imgedit-help-toggle" onclick="imageEdit.toggleHelp(this);" aria-expanded="false"><span class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
esc_html_e( 'Image Crop Help' );
|
||||||
|
?>
|
||||||
|
</span></button>
|
||||||
|
|
||||||
<div class="imgedit-help">
|
<div class="imgedit-help">
|
||||||
<p><?php _e( 'To crop the image, click on it and drag to make your selection.' ); ?></p>
|
<p><?php _e( 'To crop the image, click on it and drag to make your selection.' ); ?></p>
|
||||||
|
@ -189,10 +209,20 @@ function wp_image_editor( $post_id, $msg = false ) {
|
||||||
<fieldset class="imgedit-crop-ratio">
|
<fieldset class="imgedit-crop-ratio">
|
||||||
<legend><?php _e( 'Aspect ratio:' ); ?></legend>
|
<legend><?php _e( 'Aspect ratio:' ); ?></legend>
|
||||||
<div class="nowrap">
|
<div class="nowrap">
|
||||||
<label for="imgedit-crop-width-<?php echo $post_id; ?>" class="screen-reader-text"><?php _e( 'crop ratio width' ); ?></label>
|
<label for="imgedit-crop-width-<?php echo $post_id; ?>" class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'crop ratio width' );
|
||||||
|
?>
|
||||||
|
</label>
|
||||||
<input type="text" id="imgedit-crop-width-<?php echo $post_id; ?>" onkeyup="imageEdit.setRatioSelection(<?php echo $post_id; ?>, 0, this)" onblur="imageEdit.setRatioSelection(<?php echo $post_id; ?>, 0, this)" />
|
<input type="text" id="imgedit-crop-width-<?php echo $post_id; ?>" onkeyup="imageEdit.setRatioSelection(<?php echo $post_id; ?>, 0, this)" onblur="imageEdit.setRatioSelection(<?php echo $post_id; ?>, 0, this)" />
|
||||||
<span class="imgedit-separator" aria-hidden="true">:</span>
|
<span class="imgedit-separator" aria-hidden="true">:</span>
|
||||||
<label for="imgedit-crop-height-<?php echo $post_id; ?>" class="screen-reader-text"><?php _e( 'crop ratio height' ); ?></label>
|
<label for="imgedit-crop-height-<?php echo $post_id; ?>" class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'crop ratio height' );
|
||||||
|
?>
|
||||||
|
</label>
|
||||||
<input type="text" id="imgedit-crop-height-<?php echo $post_id; ?>" onkeyup="imageEdit.setRatioSelection(<?php echo $post_id; ?>, 1, this)" onblur="imageEdit.setRatioSelection(<?php echo $post_id; ?>, 1, this)" />
|
<input type="text" id="imgedit-crop-height-<?php echo $post_id; ?>" onkeyup="imageEdit.setRatioSelection(<?php echo $post_id; ?>, 1, this)" onblur="imageEdit.setRatioSelection(<?php echo $post_id; ?>, 1, this)" />
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
@ -200,10 +230,20 @@ function wp_image_editor( $post_id, $msg = false ) {
|
||||||
<fieldset id="imgedit-crop-sel-<?php echo $post_id; ?>" class="imgedit-crop-sel">
|
<fieldset id="imgedit-crop-sel-<?php echo $post_id; ?>" class="imgedit-crop-sel">
|
||||||
<legend><?php _e( 'Selection:' ); ?></legend>
|
<legend><?php _e( 'Selection:' ); ?></legend>
|
||||||
<div class="nowrap">
|
<div class="nowrap">
|
||||||
<label for="imgedit-sel-width-<?php echo $post_id; ?>" class="screen-reader-text"><?php _e( 'selection width' ); ?></label>
|
<label for="imgedit-sel-width-<?php echo $post_id; ?>" class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'selection width' );
|
||||||
|
?>
|
||||||
|
</label>
|
||||||
<input type="text" id="imgedit-sel-width-<?php echo $post_id; ?>" onkeyup="imageEdit.setNumSelection(<?php echo $post_id; ?>, this)" onblur="imageEdit.setNumSelection(<?php echo $post_id; ?>, this)" />
|
<input type="text" id="imgedit-sel-width-<?php echo $post_id; ?>" onkeyup="imageEdit.setNumSelection(<?php echo $post_id; ?>, this)" onblur="imageEdit.setNumSelection(<?php echo $post_id; ?>, this)" />
|
||||||
<span class="imgedit-separator" aria-hidden="true">×</span>
|
<span class="imgedit-separator" aria-hidden="true">×</span>
|
||||||
<label for="imgedit-sel-height-<?php echo $post_id; ?>" class="screen-reader-text"><?php _e( 'selection height' ); ?></label>
|
<label for="imgedit-sel-height-<?php echo $post_id; ?>" class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'selection height' );
|
||||||
|
?>
|
||||||
|
</label>
|
||||||
<input type="text" id="imgedit-sel-height-<?php echo $post_id; ?>" onkeyup="imageEdit.setNumSelection(<?php echo $post_id; ?>, this)" onblur="imageEdit.setNumSelection(<?php echo $post_id; ?>, this)" />
|
<input type="text" id="imgedit-sel-height-<?php echo $post_id; ?>" onkeyup="imageEdit.setNumSelection(<?php echo $post_id; ?>, this)" onblur="imageEdit.setNumSelection(<?php echo $post_id; ?>, this)" />
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
@ -218,7 +258,12 @@ function wp_image_editor( $post_id, $msg = false ) {
|
||||||
<div class="imgedit-group imgedit-applyto">
|
<div class="imgedit-group imgedit-applyto">
|
||||||
<div class="imgedit-group-top">
|
<div class="imgedit-group-top">
|
||||||
<h2><?php _e( 'Thumbnail Settings' ); ?></h2>
|
<h2><?php _e( 'Thumbnail Settings' ); ?></h2>
|
||||||
<button type="button" class="dashicons dashicons-editor-help imgedit-help-toggle" onclick="imageEdit.toggleHelp(this);" aria-expanded="false"><span class="screen-reader-text"><?php esc_html_e( 'Thumbnail Settings Help' ); ?></span></button>
|
<button type="button" class="dashicons dashicons-editor-help imgedit-help-toggle" onclick="imageEdit.toggleHelp(this);" aria-expanded="false"><span class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
esc_html_e( 'Thumbnail Settings Help' );
|
||||||
|
?>
|
||||||
|
</span></button>
|
||||||
<div class="imgedit-help">
|
<div class="imgedit-help">
|
||||||
<p><?php _e( 'You can edit the image while preserving the thumbnail. For example, you may wish to have a square thumbnail that displays just a section of the image.' ); ?></p>
|
<p><?php _e( 'You can edit the image while preserving the thumbnail. For example, you may wish to have a square thumbnail that displays just a section of the image.' ); ?></p>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -2261,7 +2261,12 @@ function media_upload_form( $errors = null ) {
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<p id="async-upload-wrap">
|
<p id="async-upload-wrap">
|
||||||
<label class="screen-reader-text" for="async-upload"><?php _e( 'Upload' ); ?></label>
|
<label class="screen-reader-text" for="async-upload">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Upload' );
|
||||||
|
?>
|
||||||
|
</label>
|
||||||
<input type="file" name="async-upload" id="async-upload" />
|
<input type="file" name="async-upload" id="async-upload" />
|
||||||
<?php submit_button( __( 'Upload' ), 'primary', 'html-upload', false ); ?>
|
<?php submit_button( __( 'Upload' ), 'primary', 'html-upload', false ); ?>
|
||||||
<a href="#" onclick="try{top.tb_remove();}catch(e){}; return false;"><?php _e( 'Cancel' ); ?></a>
|
<a href="#" onclick="try{top.tb_remove();}catch(e){}; return false;"><?php _e( 'Cancel' ); ?></a>
|
||||||
|
@ -2729,7 +2734,12 @@ function media_upload_library_form( $errors ) {
|
||||||
<input type="hidden" name="context" value="<?php echo isset( $_GET['context'] ) ? esc_attr( $_GET['context'] ) : ''; ?>" />
|
<input type="hidden" name="context" value="<?php echo isset( $_GET['context'] ) ? esc_attr( $_GET['context'] ) : ''; ?>" />
|
||||||
|
|
||||||
<p id="media-search" class="search-box">
|
<p id="media-search" class="search-box">
|
||||||
<label class="screen-reader-text" for="media-search-input"><?php _e( 'Search Media' ); ?>:</label>
|
<label class="screen-reader-text" for="media-search-input">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
echo __( 'Search Media' ) . ':';
|
||||||
|
?>
|
||||||
|
</label>
|
||||||
<input type="search" id="media-search-input" name="s" value="<?php the_search_query(); ?>" />
|
<input type="search" id="media-search-input" name="s" value="<?php the_search_query(); ?>" />
|
||||||
<?php submit_button( __( 'Search Media' ), '', '', false ); ?>
|
<?php submit_button( __( 'Search Media' ), '', '', false ); ?>
|
||||||
</p>
|
</p>
|
||||||
|
@ -3222,7 +3232,7 @@ function edit_form_image_editor( $post ) {
|
||||||
'target="_blank" rel="noopener"',
|
'target="_blank" rel="noopener"',
|
||||||
sprintf(
|
sprintf(
|
||||||
'<span class="screen-reader-text"> %s</span>',
|
'<span class="screen-reader-text"> %s</span>',
|
||||||
/* translators: Accessibility text. */
|
/* translators: Hidden accessibility text. */
|
||||||
__( '(opens in a new tab)' )
|
__( '(opens in a new tab)' )
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
|
@ -76,7 +76,7 @@ function post_submit_meta_box( $post, $args = array() ) {
|
||||||
$preview_button = sprintf(
|
$preview_button = sprintf(
|
||||||
'%1$s<span class="screen-reader-text"> %2$s</span>',
|
'%1$s<span class="screen-reader-text"> %2$s</span>',
|
||||||
$preview_button_text,
|
$preview_button_text,
|
||||||
/* translators: Accessibility text. */
|
/* translators: Hidden accessibility text. */
|
||||||
__( '(opens in a new tab)' )
|
__( '(opens in a new tab)' )
|
||||||
);
|
);
|
||||||
?>
|
?>
|
||||||
|
@ -132,11 +132,21 @@ function post_submit_meta_box( $post, $args = array() ) {
|
||||||
$private_style = 'style="display:none"';
|
$private_style = 'style="display:none"';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<a href="#post_status" <?php echo $private_style; ?> class="edit-post-status hide-if-no-js" role="button"><span aria-hidden="true"><?php _e( 'Edit' ); ?></span> <span class="screen-reader-text"><?php _e( 'Edit status' ); ?></span></a>
|
<a href="#post_status" <?php echo $private_style; ?> class="edit-post-status hide-if-no-js" role="button"><span aria-hidden="true"><?php _e( 'Edit' ); ?></span> <span class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Edit status' );
|
||||||
|
?>
|
||||||
|
</span></a>
|
||||||
|
|
||||||
<div id="post-status-select" class="hide-if-js">
|
<div id="post-status-select" class="hide-if-js">
|
||||||
<input type="hidden" name="hidden_post_status" id="hidden_post_status" value="<?php echo esc_attr( ( 'auto-draft' === $post->post_status ) ? 'draft' : $post->post_status ); ?>" />
|
<input type="hidden" name="hidden_post_status" id="hidden_post_status" value="<?php echo esc_attr( ( 'auto-draft' === $post->post_status ) ? 'draft' : $post->post_status ); ?>" />
|
||||||
<label for="post_status" class="screen-reader-text"><?php _e( 'Set status' ); ?></label>
|
<label for="post_status" class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Set status' );
|
||||||
|
?>
|
||||||
|
</label>
|
||||||
<select name="post_status" id="post_status">
|
<select name="post_status" id="post_status">
|
||||||
<?php if ( 'publish' === $post->post_status ) : ?>
|
<?php if ( 'publish' === $post->post_status ) : ?>
|
||||||
<option<?php selected( $post->post_status, 'publish' ); ?> value='publish'><?php _e( 'Published' ); ?></option>
|
<option<?php selected( $post->post_status, 'publish' ); ?> value='publish'><?php _e( 'Published' ); ?></option>
|
||||||
|
@ -184,7 +194,12 @@ function post_submit_meta_box( $post, $args = array() ) {
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<?php if ( $can_publish ) { ?>
|
<?php if ( $can_publish ) { ?>
|
||||||
<a href="#visibility" class="edit-visibility hide-if-no-js" role="button"><span aria-hidden="true"><?php _e( 'Edit' ); ?></span> <span class="screen-reader-text"><?php _e( 'Edit visibility' ); ?></span></a>
|
<a href="#visibility" class="edit-visibility hide-if-no-js" role="button"><span aria-hidden="true"><?php _e( 'Edit' ); ?></span> <span class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Edit visibility' );
|
||||||
|
?>
|
||||||
|
</span></a>
|
||||||
|
|
||||||
<div id="post-visibility-select" class="hide-if-js">
|
<div id="post-visibility-select" class="hide-if-js">
|
||||||
<input type="hidden" name="hidden_post_password" id="hidden-post-password" value="<?php echo esc_attr( $post->post_password ); ?>" />
|
<input type="hidden" name="hidden_post_password" id="hidden-post-password" value="<?php echo esc_attr( $post->post_password ); ?>" />
|
||||||
|
@ -257,7 +272,12 @@ function post_submit_meta_box( $post, $args = array() ) {
|
||||||
/* translators: Post revisions heading. %s: The number of available revisions. */
|
/* translators: Post revisions heading. %s: The number of available revisions. */
|
||||||
printf( __( 'Revisions: %s' ), '<b>' . number_format_i18n( $args['args']['revisions_count'] ) . '</b>' );
|
printf( __( 'Revisions: %s' ), '<b>' . number_format_i18n( $args['args']['revisions_count'] ) . '</b>' );
|
||||||
?>
|
?>
|
||||||
<a class="hide-if-no-js" href="<?php echo esc_url( get_edit_post_link( $args['args']['revision_id'] ) ); ?>"><span aria-hidden="true"><?php _ex( 'Browse', 'revisions' ); ?></span> <span class="screen-reader-text"><?php _e( 'Browse revisions' ); ?></span></a>
|
<a class="hide-if-no-js" href="<?php echo esc_url( get_edit_post_link( $args['args']['revision_id'] ) ); ?>"><span aria-hidden="true"><?php _ex( 'Browse', 'revisions' ); ?></span> <span class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Browse revisions' );
|
||||||
|
?>
|
||||||
|
</span></a>
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
endif;
|
endif;
|
||||||
|
@ -270,10 +290,20 @@ function post_submit_meta_box( $post, $args = array() ) {
|
||||||
</span>
|
</span>
|
||||||
<a href="#edit_timestamp" class="edit-timestamp hide-if-no-js" role="button">
|
<a href="#edit_timestamp" class="edit-timestamp hide-if-no-js" role="button">
|
||||||
<span aria-hidden="true"><?php _e( 'Edit' ); ?></span>
|
<span aria-hidden="true"><?php _e( 'Edit' ); ?></span>
|
||||||
<span class="screen-reader-text"><?php _e( 'Edit date and time' ); ?></span>
|
<span class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Edit date and time' );
|
||||||
|
?>
|
||||||
|
</span>
|
||||||
</a>
|
</a>
|
||||||
<fieldset id="timestampdiv" class="hide-if-js">
|
<fieldset id="timestampdiv" class="hide-if-js">
|
||||||
<legend class="screen-reader-text"><?php _e( 'Date and time' ); ?></legend>
|
<legend class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Date and time' );
|
||||||
|
?>
|
||||||
|
</legend>
|
||||||
<?php touch_time( ( 'edit' === $action ), 1 ); ?>
|
<?php touch_time( ( 'edit' === $action ), 1 ); ?>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</div>
|
</div>
|
||||||
|
@ -492,7 +522,12 @@ function post_format_meta_box( $post, $box ) {
|
||||||
?>
|
?>
|
||||||
<div id="post-formats-select">
|
<div id="post-formats-select">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend class="screen-reader-text"><?php _e( 'Post Formats' ); ?></legend>
|
<legend class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Post Formats' );
|
||||||
|
?>
|
||||||
|
</legend>
|
||||||
<input type="radio" name="post_format" class="post-format" id="post-format-0" value="0" <?php checked( $post_format, '0' ); ?> /> <label for="post-format-0" class="post-format-icon post-format-standard"><?php echo get_post_format_string( 'standard' ); ?></label>
|
<input type="radio" name="post_format" class="post-format" id="post-format-0" value="0" <?php checked( $post_format, '0' ); ?> /> <label for="post-format-0" class="post-format-icon post-format-standard"><?php echo get_post_format_string( 'standard' ); ?></label>
|
||||||
<?php foreach ( $post_formats[0] as $format ) : ?>
|
<?php foreach ( $post_formats[0] as $format ) : ?>
|
||||||
<br /><input type="radio" name="post_format" class="post-format" id="post-format-<?php echo esc_attr( $format ); ?>" value="<?php echo esc_attr( $format ); ?>" <?php checked( $post_format, $format ); ?> /> <label for="post-format-<?php echo esc_attr( $format ); ?>" class="post-format-icon post-format-<?php echo esc_attr( $format ); ?>"><?php echo esc_html( get_post_format_string( $format ) ); ?></label>
|
<br /><input type="radio" name="post_format" class="post-format" id="post-format-<?php echo esc_attr( $format ); ?>" value="<?php echo esc_attr( $format ); ?>" <?php checked( $post_format, $format ); ?> /> <label for="post-format-<?php echo esc_attr( $format ); ?>" class="post-format-icon post-format-<?php echo esc_attr( $format ); ?>"><?php echo esc_html( get_post_format_string( $format ) ); ?></label>
|
||||||
|
@ -700,7 +735,12 @@ function post_categories_meta_box( $post, $box ) {
|
||||||
*/
|
*/
|
||||||
function post_excerpt_meta_box( $post ) {
|
function post_excerpt_meta_box( $post ) {
|
||||||
?>
|
?>
|
||||||
<label class="screen-reader-text" for="excerpt"><?php _e( 'Excerpt' ); ?></label><textarea rows="1" cols="40" name="excerpt" id="excerpt"><?php echo $post->post_excerpt; // textarea_escaped ?></textarea>
|
<label class="screen-reader-text" for="excerpt">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Excerpt' );
|
||||||
|
?>
|
||||||
|
</label><textarea rows="1" cols="40" name="excerpt" id="excerpt"><?php echo $post->post_excerpt; // textarea_escaped ?></textarea>
|
||||||
<p>
|
<p>
|
||||||
<?php
|
<?php
|
||||||
printf(
|
printf(
|
||||||
|
@ -888,7 +928,12 @@ function post_slug_meta_box( $post ) {
|
||||||
/** This filter is documented in wp-admin/edit-tag-form.php */
|
/** This filter is documented in wp-admin/edit-tag-form.php */
|
||||||
$editable_slug = apply_filters( 'editable_slug', $post->post_name, $post );
|
$editable_slug = apply_filters( 'editable_slug', $post->post_name, $post );
|
||||||
?>
|
?>
|
||||||
<label class="screen-reader-text" for="post_name"><?php _e( 'Slug' ); ?></label><input name="post_name" type="text" class="large-text" id="post_name" value="<?php echo esc_attr( $editable_slug ); ?>" />
|
<label class="screen-reader-text" for="post_name">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Slug' );
|
||||||
|
?>
|
||||||
|
</label><input name="post_name" type="text" class="large-text" id="post_name" value="<?php echo esc_attr( $editable_slug ); ?>" />
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -906,7 +951,12 @@ function post_author_meta_box( $post ) {
|
||||||
|
|
||||||
$post_type_object = get_post_type_object( $post->post_type );
|
$post_type_object = get_post_type_object( $post->post_type );
|
||||||
?>
|
?>
|
||||||
<label class="screen-reader-text" for="post_author_override"><?php _e( 'Author' ); ?></label>
|
<label class="screen-reader-text" for="post_author_override">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Author' );
|
||||||
|
?>
|
||||||
|
</label>
|
||||||
<?php
|
<?php
|
||||||
wp_dropdown_users(
|
wp_dropdown_users(
|
||||||
array(
|
array(
|
||||||
|
@ -1143,7 +1193,12 @@ function link_categories_meta_box( $link ) {
|
||||||
<div id="category-adder" class="wp-hidden-children">
|
<div id="category-adder" class="wp-hidden-children">
|
||||||
<a id="category-add-toggle" href="#category-add" class="taxonomy-add-new"><?php _e( '+ Add New Category' ); ?></a>
|
<a id="category-add-toggle" href="#category-add" class="taxonomy-add-new"><?php _e( '+ Add New Category' ); ?></a>
|
||||||
<p id="link-category-add" class="wp-hidden-child">
|
<p id="link-category-add" class="wp-hidden-child">
|
||||||
<label class="screen-reader-text" for="newcat"><?php _e( '+ Add New Category' ); ?></label>
|
<label class="screen-reader-text" for="newcat">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( '+ Add New Category' );
|
||||||
|
?>
|
||||||
|
</label>
|
||||||
<input type="text" name="newcat" id="newcat" class="form-required form-input-tip" value="<?php esc_attr_e( 'New category name' ); ?>" aria-required="true" />
|
<input type="text" name="newcat" id="newcat" class="form-required form-input-tip" value="<?php esc_attr_e( 'New category name' ); ?>" aria-required="true" />
|
||||||
<input type="button" id="link-category-add-submit" data-wp-lists="add:categorychecklist:link-category-add" class="button" value="<?php esc_attr_e( 'Add' ); ?>" />
|
<input type="button" id="link-category-add-submit" data-wp-lists="add:categorychecklist:link-category-add" class="button" value="<?php esc_attr_e( 'Add' ); ?>" />
|
||||||
<?php wp_nonce_field( 'add-link-category', '_ajax_nonce', false ); ?>
|
<?php wp_nonce_field( 'add-link-category', '_ajax_nonce', false ); ?>
|
||||||
|
@ -1164,7 +1219,12 @@ function link_categories_meta_box( $link ) {
|
||||||
function link_target_meta_box( $link ) {
|
function link_target_meta_box( $link ) {
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<fieldset><legend class="screen-reader-text"><span><?php _e( 'Target' ); ?></span></legend>
|
<fieldset><legend class="screen-reader-text"><span>
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Target' );
|
||||||
|
?>
|
||||||
|
</span></legend>
|
||||||
<p><label for="link_target_blank" class="selectit">
|
<p><label for="link_target_blank" class="selectit">
|
||||||
<input id="link_target_blank" type="radio" name="link_target" value="_blank" <?php echo ( isset( $link->link_target ) && ( '_blank' === $link->link_target ) ? 'checked="checked"' : '' ); ?> />
|
<input id="link_target_blank" type="radio" name="link_target" value="_blank" <?php echo ( isset( $link->link_target ) && ( '_blank' === $link->link_target ) ? 'checked="checked"' : '' ); ?> />
|
||||||
<?php _e( '<code>_blank</code> — new window or tab.' ); ?></label></p>
|
<?php _e( '<code>_blank</code> — new window or tab.' ); ?></label></p>
|
||||||
|
@ -1254,7 +1314,13 @@ function link_xfn_meta_box( $link ) {
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'identity' ); ?></th>
|
<th scope="row"><?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'identity' ); ?></th>
|
||||||
<td><fieldset><legend class="screen-reader-text"><span><?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'identity' ); ?></span></legend>
|
<td><fieldset>
|
||||||
|
<legend class="screen-reader-text"><span>
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. xfn: https://gmpg.org/xfn/ */
|
||||||
|
_e( 'identity' );
|
||||||
|
?>
|
||||||
|
</span></legend>
|
||||||
<label for="me">
|
<label for="me">
|
||||||
<input type="checkbox" name="identity" value="me" id="me" <?php xfn_check( 'identity', 'me' ); ?> />
|
<input type="checkbox" name="identity" value="me" id="me" <?php xfn_check( 'identity', 'me' ); ?> />
|
||||||
<?php _e( 'another web address of mine' ); ?></label>
|
<?php _e( 'another web address of mine' ); ?></label>
|
||||||
|
@ -1262,7 +1328,13 @@ function link_xfn_meta_box( $link ) {
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'friendship' ); ?></th>
|
<th scope="row"><?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'friendship' ); ?></th>
|
||||||
<td><fieldset><legend class="screen-reader-text"><span><?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'friendship' ); ?></span></legend>
|
<td><fieldset>
|
||||||
|
<legend class="screen-reader-text"><span>
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. xfn: https://gmpg.org/xfn/ */
|
||||||
|
_e( 'friendship' );
|
||||||
|
?>
|
||||||
|
</span></legend>
|
||||||
<label for="contact">
|
<label for="contact">
|
||||||
<input class="valinp" type="radio" name="friendship" value="contact" id="contact" <?php xfn_check( 'friendship', 'contact' ); ?> /> <?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'contact' ); ?>
|
<input class="valinp" type="radio" name="friendship" value="contact" id="contact" <?php xfn_check( 'friendship', 'contact' ); ?> /> <?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'contact' ); ?>
|
||||||
</label>
|
</label>
|
||||||
|
@ -1279,7 +1351,13 @@ function link_xfn_meta_box( $link ) {
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"> <?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'physical' ); ?> </th>
|
<th scope="row"> <?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'physical' ); ?> </th>
|
||||||
<td><fieldset><legend class="screen-reader-text"><span><?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'physical' ); ?></span></legend>
|
<td><fieldset>
|
||||||
|
<legend class="screen-reader-text"><span>
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. xfn: https://gmpg.org/xfn/ */
|
||||||
|
_e( 'physical' );
|
||||||
|
?>
|
||||||
|
</span></legend>
|
||||||
<label for="met">
|
<label for="met">
|
||||||
<input class="valinp" type="checkbox" name="physical" value="met" id="met" <?php xfn_check( 'physical', 'met' ); ?> /> <?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'met' ); ?>
|
<input class="valinp" type="checkbox" name="physical" value="met" id="met" <?php xfn_check( 'physical', 'met' ); ?> /> <?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'met' ); ?>
|
||||||
</label>
|
</label>
|
||||||
|
@ -1287,7 +1365,13 @@ function link_xfn_meta_box( $link ) {
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"> <?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'professional' ); ?> </th>
|
<th scope="row"> <?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'professional' ); ?> </th>
|
||||||
<td><fieldset><legend class="screen-reader-text"><span><?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'professional' ); ?></span></legend>
|
<td><fieldset>
|
||||||
|
<legend class="screen-reader-text"><span>
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. xfn: https://gmpg.org/xfn/ */
|
||||||
|
_e( 'professional' );
|
||||||
|
?>
|
||||||
|
</span></legend>
|
||||||
<label for="co-worker">
|
<label for="co-worker">
|
||||||
<input class="valinp" type="checkbox" name="professional" value="co-worker" id="co-worker" <?php xfn_check( 'professional', 'co-worker' ); ?> /> <?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'co-worker' ); ?>
|
<input class="valinp" type="checkbox" name="professional" value="co-worker" id="co-worker" <?php xfn_check( 'professional', 'co-worker' ); ?> /> <?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'co-worker' ); ?>
|
||||||
</label>
|
</label>
|
||||||
|
@ -1298,7 +1382,13 @@ function link_xfn_meta_box( $link ) {
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'geographical' ); ?></th>
|
<th scope="row"><?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'geographical' ); ?></th>
|
||||||
<td><fieldset><legend class="screen-reader-text"><span> <?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'geographical' ); ?> </span></legend>
|
<td><fieldset>
|
||||||
|
<legend class="screen-reader-text"><span>
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. xfn: https://gmpg.org/xfn/ */
|
||||||
|
_e( 'geographical' );
|
||||||
|
?>
|
||||||
|
</span></legend>
|
||||||
<label for="co-resident">
|
<label for="co-resident">
|
||||||
<input class="valinp" type="radio" name="geographical" value="co-resident" id="co-resident" <?php xfn_check( 'geographical', 'co-resident' ); ?> /> <?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'co-resident' ); ?>
|
<input class="valinp" type="radio" name="geographical" value="co-resident" id="co-resident" <?php xfn_check( 'geographical', 'co-resident' ); ?> /> <?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'co-resident' ); ?>
|
||||||
</label>
|
</label>
|
||||||
|
@ -1312,7 +1402,13 @@ function link_xfn_meta_box( $link ) {
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'family' ); ?></th>
|
<th scope="row"><?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'family' ); ?></th>
|
||||||
<td><fieldset><legend class="screen-reader-text"><span> <?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'family' ); ?> </span></legend>
|
<td><fieldset>
|
||||||
|
<legend class="screen-reader-text"><span>
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. xfn: https://gmpg.org/xfn/ */
|
||||||
|
_e( 'family' );
|
||||||
|
?>
|
||||||
|
</span></legend>
|
||||||
<label for="child">
|
<label for="child">
|
||||||
<input class="valinp" type="radio" name="family" value="child" id="child" <?php xfn_check( 'family', 'child' ); ?> /> <?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'child' ); ?>
|
<input class="valinp" type="radio" name="family" value="child" id="child" <?php xfn_check( 'family', 'child' ); ?> /> <?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'child' ); ?>
|
||||||
</label>
|
</label>
|
||||||
|
@ -1335,7 +1431,13 @@ function link_xfn_meta_box( $link ) {
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'romantic' ); ?></th>
|
<th scope="row"><?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'romantic' ); ?></th>
|
||||||
<td><fieldset><legend class="screen-reader-text"><span> <?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'romantic' ); ?> </span></legend>
|
<td><fieldset>
|
||||||
|
<legend class="screen-reader-text"><span>
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. xfn: https://gmpg.org/xfn/ */
|
||||||
|
_e( 'romantic' );
|
||||||
|
?>
|
||||||
|
</span></legend>
|
||||||
<label for="muse">
|
<label for="muse">
|
||||||
<input class="valinp" type="checkbox" name="romantic" value="muse" id="muse" <?php xfn_check( 'romantic', 'muse' ); ?> /> <?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'muse' ); ?>
|
<input class="valinp" type="checkbox" name="romantic" value="muse" id="muse" <?php xfn_check( 'romantic', 'muse' ); ?> /> <?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'muse' ); ?>
|
||||||
</label>
|
</label>
|
||||||
|
|
|
@ -414,7 +414,12 @@ function wp_print_theme_file_tree( $tree, $level = 2, $size = 1, $index = 1 ) {
|
||||||
aria-level="<?php echo esc_attr( $level ); ?>"
|
aria-level="<?php echo esc_attr( $level ); ?>"
|
||||||
aria-setsize="<?php echo esc_attr( $size ); ?>"
|
aria-setsize="<?php echo esc_attr( $size ); ?>"
|
||||||
aria-posinset="<?php echo esc_attr( $index ); ?>">
|
aria-posinset="<?php echo esc_attr( $index ); ?>">
|
||||||
<span class="folder-label"><?php echo esc_html( $label ); ?> <span class="screen-reader-text"><?php _e( 'folder' ); ?></span><span aria-hidden="true" class="icon"></span></span>
|
<span class="folder-label"><?php echo esc_html( $label ); ?> <span class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'folder' );
|
||||||
|
?>
|
||||||
|
</span><span aria-hidden="true" class="icon"></span></span>
|
||||||
<ul role="group" class="tree-folder"><?php wp_print_theme_file_tree( $theme_file, $level + 1, $index, $size ); ?></ul>
|
<ul role="group" class="tree-folder"><?php wp_print_theme_file_tree( $theme_file, $level + 1, $index, $size ); ?></ul>
|
||||||
</li>
|
</li>
|
||||||
<?php
|
<?php
|
||||||
|
@ -511,7 +516,12 @@ function wp_print_plugin_file_tree( $tree, $label = '', $level = 2, $size = 1, $
|
||||||
aria-level="<?php echo esc_attr( $level ); ?>"
|
aria-level="<?php echo esc_attr( $level ); ?>"
|
||||||
aria-setsize="<?php echo esc_attr( $size ); ?>"
|
aria-setsize="<?php echo esc_attr( $size ); ?>"
|
||||||
aria-posinset="<?php echo esc_attr( $index ); ?>">
|
aria-posinset="<?php echo esc_attr( $index ); ?>">
|
||||||
<span class="folder-label"><?php echo esc_html( $label ); ?> <span class="screen-reader-text"><?php _e( 'folder' ); ?></span><span aria-hidden="true" class="icon"></span></span>
|
<span class="folder-label"><?php echo esc_html( $label ); ?> <span class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'folder' );
|
||||||
|
?>
|
||||||
|
</span><span aria-hidden="true" class="icon"></span></span>
|
||||||
<ul role="group" class="tree-folder"><?php wp_print_plugin_file_tree( $plugin_file, '', $level + 1, $index, $size ); ?></ul>
|
<ul role="group" class="tree-folder"><?php wp_print_plugin_file_tree( $plugin_file, '', $level + 1, $index, $size ); ?></ul>
|
||||||
</li>
|
</li>
|
||||||
<?php
|
<?php
|
||||||
|
@ -1012,7 +1022,12 @@ function admin_color_scheme_picker( $user_id ) {
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<fieldset id="color-picker" class="scheme-list">
|
<fieldset id="color-picker" class="scheme-list">
|
||||||
<legend class="screen-reader-text"><span><?php _e( 'Admin Color Scheme' ); ?></span></legend>
|
<legend class="screen-reader-text"><span>
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Admin Color Scheme' );
|
||||||
|
?>
|
||||||
|
</span></legend>
|
||||||
<?php
|
<?php
|
||||||
wp_nonce_field( 'save-color-scheme', 'color-nonce', false );
|
wp_nonce_field( 'save-color-scheme', 'color-nonce', false );
|
||||||
foreach ( $_wp_admin_css_colors as $color => $color_info ) :
|
foreach ( $_wp_admin_css_colors as $color => $color_info ) :
|
||||||
|
|
|
@ -305,7 +305,12 @@ function upload_space_setting( $id ) {
|
||||||
<th><label for="blog-upload-space-number"><?php _e( 'Site Upload Space Quota' ); ?></label></th>
|
<th><label for="blog-upload-space-number"><?php _e( 'Site Upload Space Quota' ); ?></label></th>
|
||||||
<td>
|
<td>
|
||||||
<input type="number" step="1" min="0" style="width: 100px" name="option[blog_upload_space]" id="blog-upload-space-number" aria-describedby="blog-upload-space-desc" value="<?php echo $quota; ?>" />
|
<input type="number" step="1" min="0" style="width: 100px" name="option[blog_upload_space]" id="blog-upload-space-number" aria-describedby="blog-upload-space-desc" value="<?php echo $quota; ?>" />
|
||||||
<span id="blog-upload-space-desc"><span class="screen-reader-text"><?php _e( 'Size in megabytes' ); ?></span> <?php _e( 'MB (Leave blank for network default)' ); ?></span>
|
<span id="blog-upload-space-desc"><span class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Size in megabytes' );
|
||||||
|
?>
|
||||||
|
</span> <?php _e( 'MB (Leave blank for network default)' ); ?></span>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
|
@ -915,8 +920,11 @@ function confirm_delete_users( $users ) {
|
||||||
);
|
);
|
||||||
|
|
||||||
if ( is_array( $blog_users ) && ! empty( $blog_users ) ) {
|
if ( is_array( $blog_users ) && ! empty( $blog_users ) ) {
|
||||||
$user_site = "<a href='" . esc_url( get_home_url( $details->userblog_id ) ) . "'>{$details->blogname}</a>";
|
$user_site = "<a href='" . esc_url( get_home_url( $details->userblog_id ) ) . "'>{$details->blogname}</a>";
|
||||||
$user_dropdown = '<label for="reassign_user" class="screen-reader-text">' . __( 'Select a user' ) . '</label>';
|
$user_dropdown = '<label for="reassign_user" class="screen-reader-text">' .
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
__( 'Select a user' ) .
|
||||||
|
'</label>';
|
||||||
$user_dropdown .= "<select name='blog[$user_id][$key]' id='reassign_user'>";
|
$user_dropdown .= "<select name='blog[$user_id][$key]' id='reassign_user'>";
|
||||||
$user_list = '';
|
$user_list = '';
|
||||||
|
|
||||||
|
|
|
@ -461,6 +461,7 @@ function wp_nav_menu_item_post_type_meta_box( $data_object, $box ) {
|
||||||
'format' => '',
|
'format' => '',
|
||||||
'prev_text' => '<span aria-label="' . esc_attr__( 'Previous page' ) . '">' . __( '«' ) . '</span>',
|
'prev_text' => '<span aria-label="' . esc_attr__( 'Previous page' ) . '">' . __( '«' ) . '</span>',
|
||||||
'next_text' => '<span aria-label="' . esc_attr__( 'Next page' ) . '">' . __( '»' ) . '</span>',
|
'next_text' => '<span aria-label="' . esc_attr__( 'Next page' ) . '">' . __( '»' ) . '</span>',
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
'before_page_number' => '<span class="screen-reader-text">' . __( 'Page' ) . '</span> ',
|
'before_page_number' => '<span class="screen-reader-text">' . __( 'Page' ) . '</span> ',
|
||||||
'total' => $num_pages,
|
'total' => $num_pages,
|
||||||
'current' => $pagenum,
|
'current' => $pagenum,
|
||||||
|
@ -582,7 +583,12 @@ function wp_nav_menu_item_post_type_meta_box( $data_object, $box ) {
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<p class="quick-search-wrap">
|
<p class="quick-search-wrap">
|
||||||
<label for="quick-search-posttype-<?php echo $post_type_name; ?>" class="screen-reader-text"><?php _e( 'Search' ); ?></label>
|
<label for="quick-search-posttype-<?php echo $post_type_name; ?>" class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Search' );
|
||||||
|
?>
|
||||||
|
</label>
|
||||||
<input type="search"<?php wp_nav_menu_disabled_check( $nav_menu_selected_id ); ?> class="quick-search" value="<?php echo $searched; ?>" name="quick-search-posttype-<?php echo $post_type_name; ?>" id="quick-search-posttype-<?php echo $post_type_name; ?>" />
|
<input type="search"<?php wp_nav_menu_disabled_check( $nav_menu_selected_id ); ?> class="quick-search" value="<?php echo $searched; ?>" name="quick-search-posttype-<?php echo $post_type_name; ?>" id="quick-search-posttype-<?php echo $post_type_name; ?>" />
|
||||||
<span class="spinner"></span>
|
<span class="spinner"></span>
|
||||||
<?php submit_button( __( 'Search' ), 'small quick-search-submit hide-if-js', 'submit', false, array( 'id' => 'submit-quick-search-posttype-' . $post_type_name ) ); ?>
|
<?php submit_button( __( 'Search' ), 'small quick-search-submit hide-if-js', 'submit', false, array( 'id' => 'submit-quick-search-posttype-' . $post_type_name ) ); ?>
|
||||||
|
@ -757,6 +763,7 @@ function wp_nav_menu_item_taxonomy_meta_box( $data_object, $box ) {
|
||||||
'format' => '',
|
'format' => '',
|
||||||
'prev_text' => '<span aria-label="' . esc_attr__( 'Previous page' ) . '">' . __( '«' ) . '</span>',
|
'prev_text' => '<span aria-label="' . esc_attr__( 'Previous page' ) . '">' . __( '«' ) . '</span>',
|
||||||
'next_text' => '<span aria-label="' . esc_attr__( 'Next page' ) . '">' . __( '»' ) . '</span>',
|
'next_text' => '<span aria-label="' . esc_attr__( 'Next page' ) . '">' . __( '»' ) . '</span>',
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
'before_page_number' => '<span class="screen-reader-text">' . __( 'Page' ) . '</span> ',
|
'before_page_number' => '<span class="screen-reader-text">' . __( 'Page' ) . '</span> ',
|
||||||
'total' => $num_pages,
|
'total' => $num_pages,
|
||||||
'current' => $pagenum,
|
'current' => $pagenum,
|
||||||
|
@ -877,7 +884,12 @@ function wp_nav_menu_item_taxonomy_meta_box( $data_object, $box ) {
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<p class="quick-search-wrap">
|
<p class="quick-search-wrap">
|
||||||
<label for="quick-search-taxonomy-<?php echo $taxonomy_name; ?>" class="screen-reader-text"><?php _e( 'Search' ); ?></label>
|
<label for="quick-search-taxonomy-<?php echo $taxonomy_name; ?>" class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Search' );
|
||||||
|
?>
|
||||||
|
</label>
|
||||||
<input type="search" class="quick-search" value="<?php echo $searched; ?>" name="quick-search-taxonomy-<?php echo $taxonomy_name; ?>" id="quick-search-taxonomy-<?php echo $taxonomy_name; ?>" />
|
<input type="search" class="quick-search" value="<?php echo $searched; ?>" name="quick-search-taxonomy-<?php echo $taxonomy_name; ?>" id="quick-search-taxonomy-<?php echo $taxonomy_name; ?>" />
|
||||||
<span class="spinner"></span>
|
<span class="spinner"></span>
|
||||||
<?php submit_button( __( 'Search' ), 'small quick-search-submit hide-if-js', 'submit', false, array( 'id' => 'submit-quick-search-taxonomy-' . $taxonomy_name ) ); ?>
|
<?php submit_button( __( 'Search' ), 'small quick-search-submit hide-if-js', 'submit', false, array( 'id' => 'submit-quick-search-taxonomy-' . $taxonomy_name ) ); ?>
|
||||||
|
|
|
@ -320,13 +320,23 @@ function install_search_form( $deprecated = true ) {
|
||||||
?>
|
?>
|
||||||
<form class="search-form search-plugins" method="get">
|
<form class="search-form search-plugins" method="get">
|
||||||
<input type="hidden" name="tab" value="search" />
|
<input type="hidden" name="tab" value="search" />
|
||||||
<label class="screen-reader-text" for="typeselector"><?php _e( 'Search plugins by:' ); ?></label>
|
<label class="screen-reader-text" for="typeselector">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Search plugins by:' );
|
||||||
|
?>
|
||||||
|
</label>
|
||||||
<select name="type" id="typeselector">
|
<select name="type" id="typeselector">
|
||||||
<option value="term"<?php selected( 'term', $type ); ?>><?php _e( 'Keyword' ); ?></option>
|
<option value="term"<?php selected( 'term', $type ); ?>><?php _e( 'Keyword' ); ?></option>
|
||||||
<option value="author"<?php selected( 'author', $type ); ?>><?php _e( 'Author' ); ?></option>
|
<option value="author"<?php selected( 'author', $type ); ?>><?php _e( 'Author' ); ?></option>
|
||||||
<option value="tag"<?php selected( 'tag', $type ); ?>><?php _ex( 'Tag', 'Plugin Installer' ); ?></option>
|
<option value="tag"<?php selected( 'tag', $type ); ?>><?php _ex( 'Tag', 'Plugin Installer' ); ?></option>
|
||||||
</select>
|
</select>
|
||||||
<label class="screen-reader-text" for="search-plugins"><?php _e( 'Search Plugins' ); ?></label>
|
<label class="screen-reader-text" for="search-plugins">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Search Plugins' );
|
||||||
|
?>
|
||||||
|
</label>
|
||||||
<input type="search" name="s" id="search-plugins" value="<?php echo esc_attr( $term ); ?>" class="wp-filter-search" placeholder="<?php esc_attr_e( 'Search plugins...' ); ?>" />
|
<input type="search" name="s" id="search-plugins" value="<?php echo esc_attr( $term ); ?>" class="wp-filter-search" placeholder="<?php esc_attr_e( 'Search plugins...' ); ?>" />
|
||||||
<?php submit_button( __( 'Search Plugins' ), 'hide-if-js', false, false, array( 'id' => 'search-submit' ) ); ?>
|
<?php submit_button( __( 'Search Plugins' ), 'hide-if-js', false, false, array( 'id' => 'search-submit' ) ); ?>
|
||||||
</form>
|
</form>
|
||||||
|
@ -344,7 +354,12 @@ function install_plugins_upload() {
|
||||||
<p class="install-help"><?php _e( 'If you have a plugin in a .zip format, you may install or update it by uploading it here.' ); ?></p>
|
<p class="install-help"><?php _e( 'If you have a plugin in a .zip format, you may install or update it by uploading it here.' ); ?></p>
|
||||||
<form method="post" enctype="multipart/form-data" class="wp-upload-form" action="<?php echo esc_url( self_admin_url( 'update.php?action=upload-plugin' ) ); ?>">
|
<form method="post" enctype="multipart/form-data" class="wp-upload-form" action="<?php echo esc_url( self_admin_url( 'update.php?action=upload-plugin' ) ); ?>">
|
||||||
<?php wp_nonce_field( 'plugin-upload' ); ?>
|
<?php wp_nonce_field( 'plugin-upload' ); ?>
|
||||||
<label class="screen-reader-text" for="pluginzip"><?php _e( 'Plugin zip file' ); ?></label>
|
<label class="screen-reader-text" for="pluginzip">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Plugin zip file' );
|
||||||
|
?>
|
||||||
|
</label>
|
||||||
<input type="file" id="pluginzip" name="pluginzip" accept=".zip" />
|
<input type="file" id="pluginzip" name="pluginzip" accept=".zip" />
|
||||||
<?php submit_button( __( 'Install Now' ), '', 'install-plugin-submit', false ); ?>
|
<?php submit_button( __( 'Install Now' ), '', 'install-plugin-submit', false ); ?>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -463,7 +463,12 @@ function wp_comment_reply( $position = 1, $checkbox = false, $mode = 'single', $
|
||||||
</legend>
|
</legend>
|
||||||
|
|
||||||
<div id="replycontainer">
|
<div id="replycontainer">
|
||||||
<label for="replycontent" class="screen-reader-text"><?php _e( 'Comment' ); ?></label>
|
<label for="replycontent" class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Comment' );
|
||||||
|
?>
|
||||||
|
</label>
|
||||||
<?php
|
<?php
|
||||||
$quicktags_settings = array( 'buttons' => 'strong,em,link,block,del,ins,img,ul,ol,li,code,close' );
|
$quicktags_settings = array( 'buttons' => 'strong,em,link,block,del,ins,img,ul,ol,li,code,close' );
|
||||||
wp_editor(
|
wp_editor(
|
||||||
|
@ -646,7 +651,10 @@ function _list_meta_row( $entry, &$count ) {
|
||||||
$delete_nonce = wp_create_nonce( 'delete-meta_' . $entry['meta_id'] );
|
$delete_nonce = wp_create_nonce( 'delete-meta_' . $entry['meta_id'] );
|
||||||
|
|
||||||
$r .= "\n\t<tr id='meta-{$entry['meta_id']}'>";
|
$r .= "\n\t<tr id='meta-{$entry['meta_id']}'>";
|
||||||
$r .= "\n\t\t<td class='left'><label class='screen-reader-text' for='meta-{$entry['meta_id']}-key'>" . __( 'Key' ) . "</label><input name='meta[{$entry['meta_id']}][key]' id='meta-{$entry['meta_id']}-key' type='text' size='20' value='{$entry['meta_key']}' />";
|
$r .= "\n\t\t<td class='left'><label class='screen-reader-text' for='meta-{$entry['meta_id']}-key'>" .
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
__( 'Key' ) .
|
||||||
|
"</label><input name='meta[{$entry['meta_id']}][key]' id='meta-{$entry['meta_id']}-key' type='text' size='20' value='{$entry['meta_key']}' />";
|
||||||
|
|
||||||
$r .= "\n\t\t<div class='submit'>";
|
$r .= "\n\t\t<div class='submit'>";
|
||||||
$r .= get_submit_button( __( 'Delete' ), 'deletemeta small', "deletemeta[{$entry['meta_id']}]", false, array( 'data-wp-lists' => "delete:the-list:meta-{$entry['meta_id']}::_ajax_nonce=$delete_nonce" ) );
|
$r .= get_submit_button( __( 'Delete' ), 'deletemeta small', "deletemeta[{$entry['meta_id']}]", false, array( 'data-wp-lists' => "delete:the-list:meta-{$entry['meta_id']}::_ajax_nonce=$delete_nonce" ) );
|
||||||
|
@ -656,7 +664,10 @@ function _list_meta_row( $entry, &$count ) {
|
||||||
$r .= wp_nonce_field( 'change-meta', '_ajax_nonce', false, false );
|
$r .= wp_nonce_field( 'change-meta', '_ajax_nonce', false, false );
|
||||||
$r .= '</td>';
|
$r .= '</td>';
|
||||||
|
|
||||||
$r .= "\n\t\t<td><label class='screen-reader-text' for='meta-{$entry['meta_id']}-value'>" . __( 'Value' ) . "</label><textarea name='meta[{$entry['meta_id']}][value]' id='meta-{$entry['meta_id']}-value' rows='2' cols='30'>{$entry['meta_value']}</textarea></td>\n\t</tr>";
|
$r .= "\n\t\t<td><label class='screen-reader-text' for='meta-{$entry['meta_id']}-value'>" .
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
__( 'Value' ) .
|
||||||
|
"</label><textarea name='meta[{$entry['meta_id']}][value]' id='meta-{$entry['meta_id']}-value' rows='2' cols='30'>{$entry['meta_value']}</textarea></td>\n\t</tr>";
|
||||||
return $r;
|
return $r;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -820,7 +831,10 @@ function touch_time( $edit = 1, $for_post = 1, $tab_index = 0, $multi = 0 ) {
|
||||||
$cur_hh = current_time( 'H' );
|
$cur_hh = current_time( 'H' );
|
||||||
$cur_mn = current_time( 'i' );
|
$cur_mn = current_time( 'i' );
|
||||||
|
|
||||||
$month = '<label><span class="screen-reader-text">' . __( 'Month' ) . '</span><select class="form-required" ' . ( $multi ? '' : 'id="mm" ' ) . 'name="mm"' . $tab_index_attribute . ">\n";
|
$month = '<label><span class="screen-reader-text">' .
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
__( 'Month' ) .
|
||||||
|
'</span><select class="form-required" ' . ( $multi ? '' : 'id="mm" ' ) . 'name="mm"' . $tab_index_attribute . ">\n";
|
||||||
for ( $i = 1; $i < 13; $i = $i + 1 ) {
|
for ( $i = 1; $i < 13; $i = $i + 1 ) {
|
||||||
$monthnum = zeroise( $i, 2 );
|
$monthnum = zeroise( $i, 2 );
|
||||||
$monthtext = $wp_locale->get_month_abbrev( $wp_locale->get_month( $i ) );
|
$monthtext = $wp_locale->get_month_abbrev( $wp_locale->get_month( $i ) );
|
||||||
|
@ -830,10 +844,22 @@ function touch_time( $edit = 1, $for_post = 1, $tab_index = 0, $multi = 0 ) {
|
||||||
}
|
}
|
||||||
$month .= '</select></label>';
|
$month .= '</select></label>';
|
||||||
|
|
||||||
$day = '<label><span class="screen-reader-text">' . __( 'Day' ) . '</span><input type="text" ' . ( $multi ? '' : 'id="jj" ' ) . 'name="jj" value="' . $jj . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" class="form-required" /></label>';
|
$day = '<label><span class="screen-reader-text">' .
|
||||||
$year = '<label><span class="screen-reader-text">' . __( 'Year' ) . '</span><input type="text" ' . ( $multi ? '' : 'id="aa" ' ) . 'name="aa" value="' . $aa . '" size="4" maxlength="4"' . $tab_index_attribute . ' autocomplete="off" class="form-required" /></label>';
|
/* translators: Hidden accessibility text. */
|
||||||
$hour = '<label><span class="screen-reader-text">' . __( 'Hour' ) . '</span><input type="text" ' . ( $multi ? '' : 'id="hh" ' ) . 'name="hh" value="' . $hh . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" class="form-required" /></label>';
|
__( 'Day' ) .
|
||||||
$minute = '<label><span class="screen-reader-text">' . __( 'Minute' ) . '</span><input type="text" ' . ( $multi ? '' : 'id="mn" ' ) . 'name="mn" value="' . $mn . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" class="form-required" /></label>';
|
'</span><input type="text" ' . ( $multi ? '' : 'id="jj" ' ) . 'name="jj" value="' . $jj . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" class="form-required" /></label>';
|
||||||
|
$year = '<label><span class="screen-reader-text">' .
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
__( 'Year' ) .
|
||||||
|
'</span><input type="text" ' . ( $multi ? '' : 'id="aa" ' ) . 'name="aa" value="' . $aa . '" size="4" maxlength="4"' . $tab_index_attribute . ' autocomplete="off" class="form-required" /></label>';
|
||||||
|
$hour = '<label><span class="screen-reader-text">' .
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
__( 'Hour' ) .
|
||||||
|
'</span><input type="text" ' . ( $multi ? '' : 'id="hh" ' ) . 'name="hh" value="' . $hh . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" class="form-required" /></label>';
|
||||||
|
$minute = '<label><span class="screen-reader-text">' .
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
__( 'Minute' ) .
|
||||||
|
'</span><input type="text" ' . ( $multi ? '' : 'id="mn" ' ) . 'name="mn" value="' . $mn . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" class="form-required" /></label>';
|
||||||
|
|
||||||
echo '<div class="timestamp-wrap">';
|
echo '<div class="timestamp-wrap">';
|
||||||
/* translators: 1: Month, 2: Day, 3: Year, 4: Hour, 5: Minute. */
|
/* translators: 1: Month, 2: Day, 3: Year, 4: Hour, 5: Minute. */
|
||||||
|
@ -1340,7 +1366,10 @@ function do_meta_boxes( $screen, $context, $data_object ) {
|
||||||
echo '<h2 class="hndle">';
|
echo '<h2 class="hndle">';
|
||||||
if ( 'dashboard_php_nag' === $box['id'] ) {
|
if ( 'dashboard_php_nag' === $box['id'] ) {
|
||||||
echo '<span aria-hidden="true" class="dashicons dashicons-warning"></span>';
|
echo '<span aria-hidden="true" class="dashicons dashicons-warning"></span>';
|
||||||
echo '<span class="screen-reader-text">' . __( 'Warning:' ) . ' </span>';
|
echo '<span class="screen-reader-text">' .
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
__( 'Warning:' ) .
|
||||||
|
' </span>';
|
||||||
}
|
}
|
||||||
echo $box['title'];
|
echo $box['title'];
|
||||||
echo "</h2>\n";
|
echo "</h2>\n";
|
||||||
|
@ -1357,7 +1386,10 @@ function do_meta_boxes( $screen, $context, $data_object ) {
|
||||||
echo '<div class="handle-actions hide-if-no-js">';
|
echo '<div class="handle-actions hide-if-no-js">';
|
||||||
|
|
||||||
echo '<button type="button" class="handle-order-higher" aria-disabled="false" aria-describedby="' . $box['id'] . '-handle-order-higher-description">';
|
echo '<button type="button" class="handle-order-higher" aria-disabled="false" aria-describedby="' . $box['id'] . '-handle-order-higher-description">';
|
||||||
echo '<span class="screen-reader-text">' . __( 'Move up' ) . '</span>';
|
echo '<span class="screen-reader-text">' .
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
__( 'Move up' ) .
|
||||||
|
'</span>';
|
||||||
echo '<span class="order-higher-indicator" aria-hidden="true"></span>';
|
echo '<span class="order-higher-indicator" aria-hidden="true"></span>';
|
||||||
echo '</button>';
|
echo '</button>';
|
||||||
echo '<span class="hidden" id="' . $box['id'] . '-handle-order-higher-description">' . sprintf(
|
echo '<span class="hidden" id="' . $box['id'] . '-handle-order-higher-description">' . sprintf(
|
||||||
|
@ -1367,7 +1399,10 @@ function do_meta_boxes( $screen, $context, $data_object ) {
|
||||||
) . '</span>';
|
) . '</span>';
|
||||||
|
|
||||||
echo '<button type="button" class="handle-order-lower" aria-disabled="false" aria-describedby="' . $box['id'] . '-handle-order-lower-description">';
|
echo '<button type="button" class="handle-order-lower" aria-disabled="false" aria-describedby="' . $box['id'] . '-handle-order-lower-description">';
|
||||||
echo '<span class="screen-reader-text">' . __( 'Move down' ) . '</span>';
|
echo '<span class="screen-reader-text">' .
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
__( 'Move down' ) .
|
||||||
|
'</span>';
|
||||||
echo '<span class="order-lower-indicator" aria-hidden="true"></span>';
|
echo '<span class="order-lower-indicator" aria-hidden="true"></span>';
|
||||||
echo '</button>';
|
echo '</button>';
|
||||||
echo '<span class="hidden" id="' . $box['id'] . '-handle-order-lower-description">' . sprintf(
|
echo '<span class="hidden" id="' . $box['id'] . '-handle-order-lower-description">' . sprintf(
|
||||||
|
@ -1378,7 +1413,7 @@ function do_meta_boxes( $screen, $context, $data_object ) {
|
||||||
|
|
||||||
echo '<button type="button" class="handlediv" aria-expanded="true">';
|
echo '<button type="button" class="handlediv" aria-expanded="true">';
|
||||||
echo '<span class="screen-reader-text">' . sprintf(
|
echo '<span class="screen-reader-text">' . sprintf(
|
||||||
/* translators: %s: Meta box title. */
|
/* translators: %s: Hidden accessibility text. Meta box title. */
|
||||||
__( 'Toggle panel: %s' ),
|
__( 'Toggle panel: %s' ),
|
||||||
$widget_title
|
$widget_title
|
||||||
) . '</span>';
|
) . '</span>';
|
||||||
|
@ -1530,7 +1565,12 @@ function do_accordion_sections( $screen, $context, $data_object ) {
|
||||||
<li class="control-section accordion-section <?php echo $hidden_class; ?> <?php echo $open_class; ?> <?php echo esc_attr( $box['id'] ); ?>" id="<?php echo esc_attr( $box['id'] ); ?>">
|
<li class="control-section accordion-section <?php echo $hidden_class; ?> <?php echo $open_class; ?> <?php echo esc_attr( $box['id'] ); ?>" id="<?php echo esc_attr( $box['id'] ); ?>">
|
||||||
<h3 class="accordion-section-title hndle" tabindex="0">
|
<h3 class="accordion-section-title hndle" tabindex="0">
|
||||||
<?php echo esc_html( $box['title'] ); ?>
|
<?php echo esc_html( $box['title'] ); ?>
|
||||||
<span class="screen-reader-text"><?php _e( 'Press return or enter to open this section' ); ?></span>
|
<span class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Press return or enter to open this section' );
|
||||||
|
?>
|
||||||
|
</span>
|
||||||
</h3>
|
</h3>
|
||||||
<div class="accordion-section-content <?php postbox_classes( $box['id'], $page ); ?>">
|
<div class="accordion-section-content <?php postbox_classes( $box['id'], $page ); ?>">
|
||||||
<div class="inside">
|
<div class="inside">
|
||||||
|
@ -1981,7 +2021,12 @@ function find_posts_div( $found_action = '' ) {
|
||||||
<div id="find-posts" class="find-box" style="display: none;">
|
<div id="find-posts" class="find-box" style="display: none;">
|
||||||
<div id="find-posts-head" class="find-box-head">
|
<div id="find-posts-head" class="find-box-head">
|
||||||
<?php _e( 'Attach to existing content' ); ?>
|
<?php _e( 'Attach to existing content' ); ?>
|
||||||
<button type="button" id="find-posts-close"><span class="screen-reader-text"><?php _e( 'Close media attachment panel' ); ?></span></button>
|
<button type="button" id="find-posts-close"><span class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Close media attachment panel' );
|
||||||
|
?>
|
||||||
|
</span></button>
|
||||||
</div>
|
</div>
|
||||||
<div class="find-box-inside">
|
<div class="find-box-inside">
|
||||||
<div class="find-box-search">
|
<div class="find-box-search">
|
||||||
|
@ -1990,7 +2035,12 @@ function find_posts_div( $found_action = '' ) {
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<input type="hidden" name="affected" id="affected" value="" />
|
<input type="hidden" name="affected" id="affected" value="" />
|
||||||
<?php wp_nonce_field( 'find-posts', '_ajax_nonce', false ); ?>
|
<?php wp_nonce_field( 'find-posts', '_ajax_nonce', false ); ?>
|
||||||
<label class="screen-reader-text" for="find-posts-input"><?php _e( 'Search' ); ?></label>
|
<label class="screen-reader-text" for="find-posts-input">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Search' );
|
||||||
|
?>
|
||||||
|
</label>
|
||||||
<input type="text" id="find-posts-input" name="ps" value="" />
|
<input type="text" id="find-posts-input" name="ps" value="" />
|
||||||
<span class="spinner"></span>
|
<span class="spinner"></span>
|
||||||
<input type="button" id="find-posts-search" value="<?php esc_attr_e( 'Search' ); ?>" class="button" />
|
<input type="button" id="find-posts-search" value="<?php esc_attr_e( 'Search' ); ?>" class="button" />
|
||||||
|
@ -2700,11 +2750,11 @@ function wp_star_rating( $args = array() ) {
|
||||||
$empty_stars = 5 - $full_stars - $half_stars;
|
$empty_stars = 5 - $full_stars - $half_stars;
|
||||||
|
|
||||||
if ( $parsed_args['number'] ) {
|
if ( $parsed_args['number'] ) {
|
||||||
/* translators: 1: The rating, 2: The number of ratings. */
|
/* translators: Hidden accessibility text. 1: The rating, 2: The number of ratings. */
|
||||||
$format = _n( '%1$s rating based on %2$s rating', '%1$s rating based on %2$s ratings', $parsed_args['number'] );
|
$format = _n( '%1$s rating based on %2$s rating', '%1$s rating based on %2$s ratings', $parsed_args['number'] );
|
||||||
$title = sprintf( $format, number_format_i18n( $rating, 1 ), number_format_i18n( $parsed_args['number'] ) );
|
$title = sprintf( $format, number_format_i18n( $rating, 1 ), number_format_i18n( $parsed_args['number'] ) );
|
||||||
} else {
|
} else {
|
||||||
/* translators: %s: The rating. */
|
/* translators: Hidden accessibility text. %s: The rating. */
|
||||||
$title = sprintf( __( '%s rating' ), number_format_i18n( $rating, 1 ) );
|
$title = sprintf( __( '%s rating' ), number_format_i18n( $rating, 1 ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -98,7 +98,12 @@ function install_theme_search_form( $type_selector = true ) {
|
||||||
<form id="search-themes" method="get">
|
<form id="search-themes" method="get">
|
||||||
<input type="hidden" name="tab" value="search" />
|
<input type="hidden" name="tab" value="search" />
|
||||||
<?php if ( $type_selector ) : ?>
|
<?php if ( $type_selector ) : ?>
|
||||||
<label class="screen-reader-text" for="typeselector"><?php _e( 'Type of search' ); ?></label>
|
<label class="screen-reader-text" for="typeselector">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Type of search' );
|
||||||
|
?>
|
||||||
|
</label>
|
||||||
<select name="type" id="typeselector">
|
<select name="type" id="typeselector">
|
||||||
<option value="term" <?php selected( 'term', $type ); ?>><?php _e( 'Keyword' ); ?></option>
|
<option value="term" <?php selected( 'term', $type ); ?>><?php _e( 'Keyword' ); ?></option>
|
||||||
<option value="author" <?php selected( 'author', $type ); ?>><?php _e( 'Author' ); ?></option>
|
<option value="author" <?php selected( 'author', $type ); ?>><?php _e( 'Author' ); ?></option>
|
||||||
|
@ -108,19 +113,27 @@ function install_theme_search_form( $type_selector = true ) {
|
||||||
<?php
|
<?php
|
||||||
switch ( $type ) {
|
switch ( $type ) {
|
||||||
case 'term':
|
case 'term':
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
_e( 'Search by keyword' );
|
_e( 'Search by keyword' );
|
||||||
break;
|
break;
|
||||||
case 'author':
|
case 'author':
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
_e( 'Search by author' );
|
_e( 'Search by author' );
|
||||||
break;
|
break;
|
||||||
case 'tag':
|
case 'tag':
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
_e( 'Search by tag' );
|
_e( 'Search by tag' );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</label>
|
</label>
|
||||||
<?php else : ?>
|
<?php else : ?>
|
||||||
<label class="screen-reader-text" for="s"><?php _e( 'Search by keyword' ); ?></label>
|
<label class="screen-reader-text" for="s">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Search by keyword' );
|
||||||
|
?>
|
||||||
|
</label>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<input type="search" name="s" id="s" size="30" value="<?php echo esc_attr( $term ); ?>" autofocus="autofocus" />
|
<input type="search" name="s" id="s" size="30" value="<?php echo esc_attr( $term ); ?>" autofocus="autofocus" />
|
||||||
<?php submit_button( __( 'Search' ), '', 'search', false ); ?>
|
<?php submit_button( __( 'Search' ), '', 'search', false ); ?>
|
||||||
|
@ -184,7 +197,12 @@ function install_themes_upload() {
|
||||||
<p class="install-help"><?php _e( 'If you have a theme in a .zip format, you may install or update it by uploading it here.' ); ?></p>
|
<p class="install-help"><?php _e( 'If you have a theme in a .zip format, you may install or update it by uploading it here.' ); ?></p>
|
||||||
<form method="post" enctype="multipart/form-data" class="wp-upload-form" action="<?php echo esc_url( self_admin_url( 'update.php?action=upload-theme' ) ); ?>">
|
<form method="post" enctype="multipart/form-data" class="wp-upload-form" action="<?php echo esc_url( self_admin_url( 'update.php?action=upload-theme' ) ); ?>">
|
||||||
<?php wp_nonce_field( 'theme-upload' ); ?>
|
<?php wp_nonce_field( 'theme-upload' ); ?>
|
||||||
<label class="screen-reader-text" for="themezip"><?php _e( 'Theme zip file' ); ?></label>
|
<label class="screen-reader-text" for="themezip">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Theme zip file' );
|
||||||
|
?>
|
||||||
|
</label>
|
||||||
<input type="file" id="themezip" name="themezip" accept=".zip" />
|
<input type="file" id="themezip" name="themezip" accept=".zip" />
|
||||||
<?php submit_button( __( 'Install Now' ), '', 'install-theme-submit', false ); ?>
|
<?php submit_button( __( 'Install Now' ), '', 'install-theme-submit', false ); ?>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -820,9 +820,24 @@ function customize_themes_print_templates() {
|
||||||
<div class="theme-backdrop"></div>
|
<div class="theme-backdrop"></div>
|
||||||
<div class="theme-wrap wp-clearfix" role="document">
|
<div class="theme-wrap wp-clearfix" role="document">
|
||||||
<div class="theme-header">
|
<div class="theme-header">
|
||||||
<button type="button" class="left dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Show previous theme' ); ?></span></button>
|
<button type="button" class="left dashicons dashicons-no"><span class="screen-reader-text">
|
||||||
<button type="button" class="right dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Show next theme' ); ?></span></button>
|
<?php
|
||||||
<button type="button" class="close dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Close details dialog' ); ?></span></button>
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Show previous theme' );
|
||||||
|
?>
|
||||||
|
</span></button>
|
||||||
|
<button type="button" class="right dashicons dashicons-no"><span class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Show next theme' );
|
||||||
|
?>
|
||||||
|
</span></button>
|
||||||
|
<button type="button" class="close dashicons dashicons-no"><span class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Close details dialog' );
|
||||||
|
?>
|
||||||
|
</span></button>
|
||||||
</div>
|
</div>
|
||||||
<div class="theme-about wp-clearfix">
|
<div class="theme-about wp-clearfix">
|
||||||
<div class="theme-screenshots">
|
<div class="theme-screenshots">
|
||||||
|
@ -859,7 +874,7 @@ function customize_themes_print_templates() {
|
||||||
'%1$s <span class="screen-reader-text">%2$s</span>',
|
'%1$s <span class="screen-reader-text">%2$s</span>',
|
||||||
/* translators: %s: Number of ratings. */
|
/* translators: %s: Number of ratings. */
|
||||||
sprintf( __( '(%s ratings)' ), '{{ data.num_ratings }}' ),
|
sprintf( __( '(%s ratings)' ), '{{ data.num_ratings }}' ),
|
||||||
/* translators: Accessibility text. */
|
/* translators: Hidden accessibility text. */
|
||||||
__( '(opens in a new tab)' )
|
__( '(opens in a new tab)' )
|
||||||
);
|
);
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -924,7 +924,12 @@ function wp_print_admin_notice_templates() {
|
||||||
printf( __( '%s updates failed.' ), '{{ data.errors }}' );
|
printf( __( '%s updates failed.' ), '{{ data.errors }}' );
|
||||||
?>
|
?>
|
||||||
<# } #>
|
<# } #>
|
||||||
<span class="screen-reader-text"><?php _e( 'Show more details' ); ?></span>
|
<span class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Show more details' );
|
||||||
|
?>
|
||||||
|
</span>
|
||||||
<span class="toggle-indicator" aria-hidden="true"></span>
|
<span class="toggle-indicator" aria-hidden="true"></span>
|
||||||
</button>
|
</button>
|
||||||
<# } #>
|
<# } #>
|
||||||
|
|
|
@ -245,13 +245,13 @@ function wp_widget_control( $sidebar_args ) {
|
||||||
<button type="button" class="widget-action hide-if-no-js" aria-expanded="false">
|
<button type="button" class="widget-action hide-if-no-js" aria-expanded="false">
|
||||||
<span class="screen-reader-text edit">
|
<span class="screen-reader-text edit">
|
||||||
<?php
|
<?php
|
||||||
/* translators: %s: Widget title. */
|
/* translators: Hidden accessibility text. %s: Widget title. */
|
||||||
printf( __( 'Edit widget: %s' ), $widget_title );
|
printf( __( 'Edit widget: %s' ), $widget_title );
|
||||||
?>
|
?>
|
||||||
</span>
|
</span>
|
||||||
<span class="screen-reader-text add">
|
<span class="screen-reader-text add">
|
||||||
<?php
|
<?php
|
||||||
/* translators: %s: Widget title. */
|
/* translators: Hidden accessibility text. %s: Widget title. */
|
||||||
printf( __( 'Add widget: %s' ), $widget_title );
|
printf( __( 'Add widget: %s' ), $widget_title );
|
||||||
?>
|
?>
|
||||||
</span>
|
</span>
|
||||||
|
|
|
@ -182,7 +182,15 @@ function display_setup_form( $error = null ) {
|
||||||
<th scope="row"><?php has_action( 'blog_privacy_selector' ) ? _e( 'Site visibility' ) : _e( 'Search engine visibility' ); ?></th>
|
<th scope="row"><?php has_action( 'blog_privacy_selector' ) ? _e( 'Site visibility' ) : _e( 'Search engine visibility' ); ?></th>
|
||||||
<td>
|
<td>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend class="screen-reader-text"><span><?php has_action( 'blog_privacy_selector' ) ? _e( 'Site visibility' ) : _e( 'Search engine visibility' ); ?> </span></legend>
|
<legend class="screen-reader-text"><span>
|
||||||
|
<?php
|
||||||
|
has_action( 'blog_privacy_selector' )
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
? _e( 'Site visibility' )
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
: _e( 'Search engine visibility' );
|
||||||
|
?>
|
||||||
|
</span></legend>
|
||||||
<?php
|
<?php
|
||||||
if ( has_action( 'blog_privacy_selector' ) ) {
|
if ( has_action( 'blog_privacy_selector' ) ) {
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -27,7 +27,10 @@ header( 'Content-Type: text/html; charset=utf-8' );
|
||||||
|
|
||||||
if ( ! defined( 'WP_ALLOW_REPAIR' ) || ! WP_ALLOW_REPAIR ) {
|
if ( ! defined( 'WP_ALLOW_REPAIR' ) || ! WP_ALLOW_REPAIR ) {
|
||||||
|
|
||||||
echo '<h1 class="screen-reader-text">' . __( 'Allow automatic database repair' ) . '</h1>';
|
echo '<h1 class="screen-reader-text">' .
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
__( 'Allow automatic database repair' ) .
|
||||||
|
'</h1>';
|
||||||
|
|
||||||
echo '<p>';
|
echo '<p>';
|
||||||
printf(
|
printf(
|
||||||
|
@ -73,14 +76,20 @@ if ( ! defined( 'WP_ALLOW_REPAIR' ) || ! WP_ALLOW_REPAIR ) {
|
||||||
|
|
||||||
if ( $duplicated_keys || $missing_key ) {
|
if ( $duplicated_keys || $missing_key ) {
|
||||||
|
|
||||||
echo '<h2 class="screen-reader-text">' . __( 'Check secret keys' ) . '</h2>';
|
echo '<h2 class="screen-reader-text">' .
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
__( 'Check secret keys' ) .
|
||||||
|
'</h2>';
|
||||||
|
|
||||||
/* translators: 1: wp-config.php, 2: Secret key service URL. */
|
/* translators: 1: wp-config.php, 2: Secret key service URL. */
|
||||||
echo '<p>' . sprintf( __( 'While you are editing your %1$s file, take a moment to make sure you have all 8 keys and that they are unique. You can generate these using the <a href="%2$s">WordPress.org secret key service</a>.' ), '<code>wp-config.php</code>', 'https://api.wordpress.org/secret-key/1.1/salt/' ) . '</p>';
|
echo '<p>' . sprintf( __( 'While you are editing your %1$s file, take a moment to make sure you have all 8 keys and that they are unique. You can generate these using the <a href="%2$s">WordPress.org secret key service</a>.' ), '<code>wp-config.php</code>', 'https://api.wordpress.org/secret-key/1.1/salt/' ) . '</p>';
|
||||||
}
|
}
|
||||||
} elseif ( isset( $_GET['repair'] ) ) {
|
} elseif ( isset( $_GET['repair'] ) ) {
|
||||||
|
|
||||||
echo '<h1 class="screen-reader-text">' . __( 'Database repair results' ) . '</h1>';
|
echo '<h1 class="screen-reader-text">' .
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
__( 'Database repair results' ) .
|
||||||
|
'</h1>';
|
||||||
|
|
||||||
$optimize = 2 == $_GET['repair'];
|
$optimize = 2 == $_GET['repair'];
|
||||||
$okay = true;
|
$okay = true;
|
||||||
|
@ -168,7 +177,10 @@ if ( ! defined( 'WP_ALLOW_REPAIR' ) || ! WP_ALLOW_REPAIR ) {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
echo '<h1 class="screen-reader-text">' . __( 'WordPress database repair' ) . '</h1>';
|
echo '<h1 class="screen-reader-text">' .
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
__( 'WordPress database repair' ) .
|
||||||
|
'</h1>';
|
||||||
|
|
||||||
if ( isset( $_GET['referrer'] ) && 'is_blog_installed' === $_GET['referrer'] ) {
|
if ( isset( $_GET['referrer'] ) && 'is_blog_installed' === $_GET['referrer'] ) {
|
||||||
echo '<p>' . __( 'One or more database tables are unavailable. To allow WordPress to attempt to repair these tables, press the “Repair Database” button. Repairing can take a while, so please be patient.' ) . '</p>';
|
echo '<p>' . __( 'One or more database tables are unavailable. To allow WordPress to attempt to repair these tables, press the “Repair Database” button. Repairing can take a while, so please be patient.' ) . '</p>';
|
||||||
|
|
|
@ -805,7 +805,12 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||||
);
|
);
|
||||||
?>
|
?>
|
||||||
">
|
">
|
||||||
<span aria-hidden="true"><?php _ex( 'Edit', 'menu' ); ?></span><span class="screen-reader-text"><?php _e( 'Edit selected menu' ); ?></span>
|
<span aria-hidden="true"><?php _ex( 'Edit', 'menu' ); ?></span><span class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Edit selected menu' );
|
||||||
|
?>
|
||||||
|
</span>
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
@ -851,7 +856,12 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||||
<?php if ( $menu_count < 1 ) : ?>
|
<?php if ( $menu_count < 1 ) : ?>
|
||||||
<span class="first-menu-message">
|
<span class="first-menu-message">
|
||||||
<?php _e( 'Create your first menu below.' ); ?>
|
<?php _e( 'Create your first menu below.' ); ?>
|
||||||
<span class="screen-reader-text"><?php _e( 'Fill in the Menu Name and click the Create Menu button to create your first menu.' ); ?></span>
|
<span class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Fill in the Menu Name and click the Create Menu button to create your first menu.' );
|
||||||
|
?>
|
||||||
|
</span>
|
||||||
</span><!-- /first-menu-message -->
|
</span><!-- /first-menu-message -->
|
||||||
<?php elseif ( $menu_count < 2 ) : ?>
|
<?php elseif ( $menu_count < 2 ) : ?>
|
||||||
<span class="add-edit-menu-action">
|
<span class="add-edit-menu-action">
|
||||||
|
@ -870,7 +880,12 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
?>
|
?>
|
||||||
<span class="screen-reader-text"><?php _e( 'Click the Save Menu button to save your changes.' ); ?></span>
|
<span class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Click the Save Menu button to save your changes.' );
|
||||||
|
?>
|
||||||
|
</span>
|
||||||
</span><!-- /add-edit-menu-action -->
|
</span><!-- /add-edit-menu-action -->
|
||||||
<?php else : ?>
|
<?php else : ?>
|
||||||
<form method="get" action="<?php echo esc_url( admin_url( 'nav-menus.php' ) ); ?>">
|
<form method="get" action="<?php echo esc_url( admin_url( 'nav-menus.php' ) ); ?>">
|
||||||
|
@ -935,7 +950,12 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
?>
|
?>
|
||||||
<span class="screen-reader-text"><?php _e( 'Click the Save Menu button to save your changes.' ); ?></span>
|
<span class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Click the Save Menu button to save your changes.' );
|
||||||
|
?>
|
||||||
|
</span>
|
||||||
</span><!-- /add-new-menu-action -->
|
</span><!-- /add-new-menu-action -->
|
||||||
</form>
|
</form>
|
||||||
<?php
|
<?php
|
||||||
|
|
|
@ -199,7 +199,12 @@ if ( isset( $_GET['updated'] ) ) {
|
||||||
?>
|
?>
|
||||||
<td>
|
<td>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend class="screen-reader-text"><?php _e( 'New registrations settings' ); ?></legend>
|
<legend class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'New registrations settings' );
|
||||||
|
?>
|
||||||
|
</legend>
|
||||||
<label><input name="registration" type="radio" id="registration1" value="none"<?php checked( $reg, 'none' ); ?> /> <?php _e( 'Registration is disabled' ); ?></label><br />
|
<label><input name="registration" type="radio" id="registration1" value="none"<?php checked( $reg, 'none' ); ?> /> <?php _e( 'Registration is disabled' ); ?></label><br />
|
||||||
<label><input name="registration" type="radio" id="registration2" value="user"<?php checked( $reg, 'user' ); ?> /> <?php _e( 'User accounts may be registered' ); ?></label><br />
|
<label><input name="registration" type="radio" id="registration2" value="user"<?php checked( $reg, 'user' ); ?> /> <?php _e( 'User accounts may be registered' ); ?></label><br />
|
||||||
<label><input name="registration" type="radio" id="registration3" value="blog"<?php checked( $reg, 'blog' ); ?> /> <?php _e( 'Logged in users may register new sites' ); ?></label><br />
|
<label><input name="registration" type="radio" id="registration3" value="blog"<?php checked( $reg, 'blog' ); ?> /> <?php _e( 'Logged in users may register new sites' ); ?></label><br />
|
||||||
|
@ -400,7 +405,10 @@ if ( isset( $_GET['updated'] ) ) {
|
||||||
?>
|
?>
|
||||||
</label><br />
|
</label><br />
|
||||||
<p class="screen-reader-text" id="blog-upload-space-desc">
|
<p class="screen-reader-text" id="blog-upload-space-desc">
|
||||||
<?php _e( 'Size in megabytes' ); ?>
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Size in megabytes' );
|
||||||
|
?>
|
||||||
</p>
|
</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -426,7 +434,10 @@ if ( isset( $_GET['updated'] ) ) {
|
||||||
);
|
);
|
||||||
?>
|
?>
|
||||||
<p class="screen-reader-text" id="fileupload-maxk-desc">
|
<p class="screen-reader-text" id="fileupload-maxk-desc">
|
||||||
<?php _e( 'Size in kilobytes' ); ?>
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Size in kilobytes' );
|
||||||
|
?>
|
||||||
</p>
|
</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -493,7 +504,10 @@ if ( isset( $_GET['updated'] ) ) {
|
||||||
<th scope="row"><?php _e( 'Enable administration menus' ); ?></th>
|
<th scope="row"><?php _e( 'Enable administration menus' ); ?></th>
|
||||||
<td>
|
<td>
|
||||||
<?php
|
<?php
|
||||||
echo '<fieldset><legend class="screen-reader-text">' . __( 'Enable menus' ) . '</legend>';
|
echo '<fieldset><legend class="screen-reader-text">' .
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
__( 'Enable menus' ) .
|
||||||
|
'</legend>';
|
||||||
|
|
||||||
foreach ( (array) $menu_items as $key => $val ) {
|
foreach ( (array) $menu_items as $key => $val ) {
|
||||||
echo "<label><input type='checkbox' name='menu_items[" . $key . "]' value='1'" . ( isset( $menu_perms[ $key ] ) ? checked( $menu_perms[ $key ], '1', false ) : '' ) . ' /> ' . esc_html( $val ) . '</label><br/>';
|
echo "<label><input type='checkbox' name='menu_items[" . $key . "]' value='1'" . ( isset( $menu_perms[ $key ] ) ? checked( $menu_perms[ $key ], '1', false ) : '' ) . ' /> ' . esc_html( $val ) . '</label><br/>';
|
||||||
|
|
|
@ -194,7 +194,12 @@ if ( ! empty( $messages ) ) {
|
||||||
<th scope="row"><?php _e( 'Attributes' ); ?></th>
|
<th scope="row"><?php _e( 'Attributes' ); ?></th>
|
||||||
<td>
|
<td>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend class="screen-reader-text"><?php _e( 'Set site attributes' ); ?></legend>
|
<legend class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Set site attributes' );
|
||||||
|
?>
|
||||||
|
</legend>
|
||||||
<?php foreach ( $attribute_fields as $field_key => $field_label ) : ?>
|
<?php foreach ( $attribute_fields as $field_key => $field_label ) : ?>
|
||||||
<label><input type="checkbox" name="blog[<?php echo $field_key; ?>]" value="1" <?php checked( (bool) $details->$field_key, true ); ?> <?php disabled( ! in_array( (int) $details->$field_key, array( 0, 1 ), true ) ); ?> />
|
<label><input type="checkbox" name="blog[<?php echo $field_key; ?>]" value="1" <?php checked( (bool) $details->$field_key, true ); ?> <?php disabled( ! in_array( (int) $details->$field_key, array( 0, 1 ), true ) ); ?> />
|
||||||
<?php echo $field_label; ?></label><br />
|
<?php echo $field_label; ?></label><br />
|
||||||
|
|
|
@ -45,7 +45,12 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||||
<table class="form-table" role="presentation">
|
<table class="form-table" role="presentation">
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><?php _e( 'Default post settings' ); ?></th>
|
<th scope="row"><?php _e( 'Default post settings' ); ?></th>
|
||||||
<td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Default post settings' ); ?></span></legend>
|
<td><fieldset><legend class="screen-reader-text"><span>
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Default post settings' );
|
||||||
|
?>
|
||||||
|
</span></legend>
|
||||||
<label for="default_pingback_flag">
|
<label for="default_pingback_flag">
|
||||||
<input name="default_pingback_flag" type="checkbox" id="default_pingback_flag" value="1" <?php checked( '1', get_option( 'default_pingback_flag' ) ); ?> />
|
<input name="default_pingback_flag" type="checkbox" id="default_pingback_flag" value="1" <?php checked( '1', get_option( 'default_pingback_flag' ) ); ?> />
|
||||||
<?php _e( 'Attempt to notify any blogs linked to from the post' ); ?></label>
|
<?php _e( 'Attempt to notify any blogs linked to from the post' ); ?></label>
|
||||||
|
@ -63,7 +68,12 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><?php _e( 'Other comment settings' ); ?></th>
|
<th scope="row"><?php _e( 'Other comment settings' ); ?></th>
|
||||||
<td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Other comment settings' ); ?></span></legend>
|
<td><fieldset><legend class="screen-reader-text"><span>
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Other comment settings' );
|
||||||
|
?>
|
||||||
|
</span></legend>
|
||||||
<label for="require_name_email"><input type="checkbox" name="require_name_email" id="require_name_email" value="1" <?php checked( '1', get_option( 'require_name_email' ) ); ?> /> <?php _e( 'Comment author must fill out name and email' ); ?></label>
|
<label for="require_name_email"><input type="checkbox" name="require_name_email" id="require_name_email" value="1" <?php checked( '1', get_option( 'require_name_email' ) ); ?> /> <?php _e( 'Comment author must fill out name and email' ); ?></label>
|
||||||
<br />
|
<br />
|
||||||
<label for="comment_registration">
|
<label for="comment_registration">
|
||||||
|
@ -166,7 +176,12 @@ printf( __( 'Comments should be displayed with the %s comments at the top of eac
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><?php _e( 'Email me whenever' ); ?></th>
|
<th scope="row"><?php _e( 'Email me whenever' ); ?></th>
|
||||||
<td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Email me whenever' ); ?></span></legend>
|
<td><fieldset><legend class="screen-reader-text"><span>
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Email me whenever' );
|
||||||
|
?>
|
||||||
|
</span></legend>
|
||||||
<label for="comments_notify">
|
<label for="comments_notify">
|
||||||
<input name="comments_notify" type="checkbox" id="comments_notify" value="1" <?php checked( '1', get_option( 'comments_notify' ) ); ?> />
|
<input name="comments_notify" type="checkbox" id="comments_notify" value="1" <?php checked( '1', get_option( 'comments_notify' ) ); ?> />
|
||||||
<?php _e( 'Anyone posts a comment' ); ?> </label>
|
<?php _e( 'Anyone posts a comment' ); ?> </label>
|
||||||
|
@ -178,7 +193,12 @@ printf( __( 'Comments should be displayed with the %s comments at the top of eac
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><?php _e( 'Before a comment appears' ); ?></th>
|
<th scope="row"><?php _e( 'Before a comment appears' ); ?></th>
|
||||||
<td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Before a comment appears' ); ?></span></legend>
|
<td><fieldset><legend class="screen-reader-text"><span>
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Before a comment appears' );
|
||||||
|
?>
|
||||||
|
</span></legend>
|
||||||
<label for="comment_moderation">
|
<label for="comment_moderation">
|
||||||
<input name="comment_moderation" type="checkbox" id="comment_moderation" value="1" <?php checked( '1', get_option( 'comment_moderation' ) ); ?> />
|
<input name="comment_moderation" type="checkbox" id="comment_moderation" value="1" <?php checked( '1', get_option( 'comment_moderation' ) ); ?> />
|
||||||
<?php _e( 'Comment must be manually approved' ); ?> </label>
|
<?php _e( 'Comment must be manually approved' ); ?> </label>
|
||||||
|
@ -188,7 +208,12 @@ printf( __( 'Comments should be displayed with the %s comments at the top of eac
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><?php _e( 'Comment Moderation' ); ?></th>
|
<th scope="row"><?php _e( 'Comment Moderation' ); ?></th>
|
||||||
<td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Comment Moderation' ); ?></span></legend>
|
<td><fieldset><legend class="screen-reader-text"><span>
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Comment Moderation' );
|
||||||
|
?>
|
||||||
|
</span></legend>
|
||||||
<p><label for="comment_max_links">
|
<p><label for="comment_max_links">
|
||||||
<?php
|
<?php
|
||||||
printf(
|
printf(
|
||||||
|
@ -207,7 +232,12 @@ printf(
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><?php _e( 'Disallowed Comment Keys' ); ?></th>
|
<th scope="row"><?php _e( 'Disallowed Comment Keys' ); ?></th>
|
||||||
<td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Disallowed Comment Keys' ); ?></span></legend>
|
<td><fieldset><legend class="screen-reader-text"><span>
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Disallowed Comment Keys' );
|
||||||
|
?>
|
||||||
|
</span></legend>
|
||||||
<p><label for="disallowed_keys"><?php _e( 'When a comment contains any of these words in its content, author name, URL, email, IP address, or browser’s user agent string, it will be put in the Trash. One word or IP address per line. It will match inside words, so “press” will match “WordPress”.' ); ?></label></p>
|
<p><label for="disallowed_keys"><?php _e( 'When a comment contains any of these words in its content, author name, URL, email, IP address, or browser’s user agent string, it will be put in the Trash. One word or IP address per line. It will match inside words, so “press” will match “WordPress”.' ); ?></label></p>
|
||||||
<p>
|
<p>
|
||||||
<textarea name="disallowed_keys" rows="10" cols="50" id="disallowed_keys" class="large-text code"><?php echo esc_textarea( get_option( 'disallowed_keys' ) ); ?></textarea>
|
<textarea name="disallowed_keys" rows="10" cols="50" id="disallowed_keys" class="large-text code"><?php echo esc_textarea( get_option( 'disallowed_keys' ) ); ?></textarea>
|
||||||
|
@ -243,7 +273,12 @@ if ( ! $show_avatars ) {
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="avatar-settings<?php echo $show_avatars_class; ?>">
|
<tr class="avatar-settings<?php echo $show_avatars_class; ?>">
|
||||||
<th scope="row"><?php _e( 'Maximum Rating' ); ?></th>
|
<th scope="row"><?php _e( 'Maximum Rating' ); ?></th>
|
||||||
<td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Maximum Rating' ); ?></span></legend>
|
<td><fieldset><legend class="screen-reader-text"><span>
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Maximum Rating' );
|
||||||
|
?>
|
||||||
|
</span></legend>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
$ratings = array(
|
$ratings = array(
|
||||||
|
@ -266,7 +301,12 @@ endforeach;
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="avatar-settings<?php echo $show_avatars_class; ?>">
|
<tr class="avatar-settings<?php echo $show_avatars_class; ?>">
|
||||||
<th scope="row"><?php _e( 'Default Avatar' ); ?></th>
|
<th scope="row"><?php _e( 'Default Avatar' ); ?></th>
|
||||||
<td class="defaultavatarpicker"><fieldset><legend class="screen-reader-text"><span><?php _e( 'Default Avatar' ); ?></span></legend>
|
<td class="defaultavatarpicker"><fieldset><legend class="screen-reader-text"><span>
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Default Avatar' );
|
||||||
|
?>
|
||||||
|
</span></legend>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<?php _e( 'For users without a custom avatar of their own, you can either display a generic logo or a generated one based on their email address.' ); ?><br />
|
<?php _e( 'For users without a custom avatar of their own, you can either display a generic logo or a generated one based on their email address.' ); ?><br />
|
||||||
|
|
|
@ -148,7 +148,12 @@ if ( $new_admin_email && get_option( 'admin_email' ) !== $new_admin_email ) :
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><?php _e( 'Membership' ); ?></th>
|
<th scope="row"><?php _e( 'Membership' ); ?></th>
|
||||||
<td> <fieldset><legend class="screen-reader-text"><span><?php _e( 'Membership' ); ?></span></legend><label for="users_can_register">
|
<td> <fieldset><legend class="screen-reader-text"><span>
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Membership' );
|
||||||
|
?>
|
||||||
|
</span></legend><label for="users_can_register">
|
||||||
<input name="users_can_register" type="checkbox" id="users_can_register" value="1" <?php checked( '1', get_option( 'users_can_register' ) ); ?> />
|
<input name="users_can_register" type="checkbox" id="users_can_register" value="1" <?php checked( '1', get_option( 'users_can_register' ) ); ?> />
|
||||||
<?php _e( 'Anyone can register' ); ?></label>
|
<?php _e( 'Anyone can register' ); ?></label>
|
||||||
</fieldset></td>
|
</fieldset></td>
|
||||||
|
@ -314,7 +319,12 @@ if ( empty( $tzstring ) ) { // Create a UTC+- zone if no timezone string exists.
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><?php _e( 'Date Format' ); ?></th>
|
<th scope="row"><?php _e( 'Date Format' ); ?></th>
|
||||||
<td>
|
<td>
|
||||||
<fieldset><legend class="screen-reader-text"><span><?php _e( 'Date Format' ); ?></span></legend>
|
<fieldset><legend class="screen-reader-text"><span>
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Date Format' );
|
||||||
|
?>
|
||||||
|
</span></legend>
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Filters the default date formats.
|
* Filters the default date formats.
|
||||||
|
@ -339,8 +349,14 @@ foreach ( $date_formats as $format ) {
|
||||||
|
|
||||||
echo '<label><input type="radio" name="date_format" id="date_format_custom_radio" value="\c\u\s\t\o\m"';
|
echo '<label><input type="radio" name="date_format" id="date_format_custom_radio" value="\c\u\s\t\o\m"';
|
||||||
checked( $custom );
|
checked( $custom );
|
||||||
echo '/> <span class="date-time-text date-time-custom-text">' . __( 'Custom:' ) . '<span class="screen-reader-text"> ' . __( 'enter a custom date format in the following field' ) . '</span></span></label>' .
|
echo '/> <span class="date-time-text date-time-custom-text">' . __( 'Custom:' ) . '<span class="screen-reader-text"> ' .
|
||||||
'<label for="date_format_custom" class="screen-reader-text">' . __( 'Custom date format:' ) . '</label>' .
|
/* translators: Hidden accessibility text. */
|
||||||
|
__( 'enter a custom date format in the following field' ) .
|
||||||
|
'</span></span></label>' .
|
||||||
|
'<label for="date_format_custom" class="screen-reader-text">' .
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
__( 'Custom date format:' ) .
|
||||||
|
'</label>' .
|
||||||
'<input type="text" name="date_format_custom" id="date_format_custom" value="' . esc_attr( get_option( 'date_format' ) ) . '" class="small-text" />' .
|
'<input type="text" name="date_format_custom" id="date_format_custom" value="' . esc_attr( get_option( 'date_format' ) ) . '" class="small-text" />' .
|
||||||
'<br />' .
|
'<br />' .
|
||||||
'<p><strong>' . __( 'Preview:' ) . '</strong> <span class="example">' . date_i18n( get_option( 'date_format' ) ) . '</span>' .
|
'<p><strong>' . __( 'Preview:' ) . '</strong> <span class="example">' . date_i18n( get_option( 'date_format' ) ) . '</span>' .
|
||||||
|
@ -352,7 +368,12 @@ foreach ( $date_formats as $format ) {
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><?php _e( 'Time Format' ); ?></th>
|
<th scope="row"><?php _e( 'Time Format' ); ?></th>
|
||||||
<td>
|
<td>
|
||||||
<fieldset><legend class="screen-reader-text"><span><?php _e( 'Time Format' ); ?></span></legend>
|
<fieldset><legend class="screen-reader-text"><span>
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Time Format' );
|
||||||
|
?>
|
||||||
|
</span></legend>
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Filters the default time formats.
|
* Filters the default time formats.
|
||||||
|
@ -376,8 +397,14 @@ foreach ( $time_formats as $format ) {
|
||||||
|
|
||||||
echo '<label><input type="radio" name="time_format" id="time_format_custom_radio" value="\c\u\s\t\o\m"';
|
echo '<label><input type="radio" name="time_format" id="time_format_custom_radio" value="\c\u\s\t\o\m"';
|
||||||
checked( $custom );
|
checked( $custom );
|
||||||
echo '/> <span class="date-time-text date-time-custom-text">' . __( 'Custom:' ) . '<span class="screen-reader-text"> ' . __( 'enter a custom time format in the following field' ) . '</span></span></label>' .
|
echo '/> <span class="date-time-text date-time-custom-text">' . __( 'Custom:' ) . '<span class="screen-reader-text"> ' .
|
||||||
'<label for="time_format_custom" class="screen-reader-text">' . __( 'Custom time format:' ) . '</label>' .
|
/* translators: Hidden accessibility text. */
|
||||||
|
__( 'enter a custom time format in the following field' ) .
|
||||||
|
'</span></span></label>' .
|
||||||
|
'<label for="time_format_custom" class="screen-reader-text">' .
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
__( 'Custom time format:' ) .
|
||||||
|
'</label>' .
|
||||||
'<input type="text" name="time_format_custom" id="time_format_custom" value="' . esc_attr( get_option( 'time_format' ) ) . '" class="small-text" />' .
|
'<input type="text" name="time_format_custom" id="time_format_custom" value="' . esc_attr( get_option( 'time_format' ) ) . '" class="small-text" />' .
|
||||||
'<br />' .
|
'<br />' .
|
||||||
'<p><strong>' . __( 'Preview:' ) . '</strong> <span class="example">' . date_i18n( get_option( 'time_format' ) ) . '</span>' .
|
'<p><strong>' . __( 'Preview:' ) . '</strong> <span class="example">' . date_i18n( get_option( 'time_format' ) ) . '</span>' .
|
||||||
|
|
|
@ -58,7 +58,12 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||||
<table class="form-table" role="presentation">
|
<table class="form-table" role="presentation">
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><?php _e( 'Thumbnail size' ); ?></th>
|
<th scope="row"><?php _e( 'Thumbnail size' ); ?></th>
|
||||||
<td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Thumbnail size' ); ?></span></legend>
|
<td><fieldset><legend class="screen-reader-text"><span>
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Thumbnail size' );
|
||||||
|
?>
|
||||||
|
</span></legend>
|
||||||
<label for="thumbnail_size_w"><?php _e( 'Width' ); ?></label>
|
<label for="thumbnail_size_w"><?php _e( 'Width' ); ?></label>
|
||||||
<input name="thumbnail_size_w" type="number" step="1" min="0" id="thumbnail_size_w" value="<?php form_option( 'thumbnail_size_w' ); ?>" class="small-text" />
|
<input name="thumbnail_size_w" type="number" step="1" min="0" id="thumbnail_size_w" value="<?php form_option( 'thumbnail_size_w' ); ?>" class="small-text" />
|
||||||
<br />
|
<br />
|
||||||
|
@ -72,7 +77,12 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><?php _e( 'Medium size' ); ?></th>
|
<th scope="row"><?php _e( 'Medium size' ); ?></th>
|
||||||
<td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Medium size' ); ?></span></legend>
|
<td><fieldset><legend class="screen-reader-text"><span>
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Medium size' );
|
||||||
|
?>
|
||||||
|
</span></legend>
|
||||||
<label for="medium_size_w"><?php _e( 'Max Width' ); ?></label>
|
<label for="medium_size_w"><?php _e( 'Max Width' ); ?></label>
|
||||||
<input name="medium_size_w" type="number" step="1" min="0" id="medium_size_w" value="<?php form_option( 'medium_size_w' ); ?>" class="small-text" />
|
<input name="medium_size_w" type="number" step="1" min="0" id="medium_size_w" value="<?php form_option( 'medium_size_w' ); ?>" class="small-text" />
|
||||||
<br />
|
<br />
|
||||||
|
@ -83,7 +93,12 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><?php _e( 'Large size' ); ?></th>
|
<th scope="row"><?php _e( 'Large size' ); ?></th>
|
||||||
<td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Large size' ); ?></span></legend>
|
<td><fieldset><legend class="screen-reader-text"><span>
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Large size' );
|
||||||
|
?>
|
||||||
|
</span></legend>
|
||||||
<label for="large_size_w"><?php _e( 'Max Width' ); ?></label>
|
<label for="large_size_w"><?php _e( 'Max Width' ); ?></label>
|
||||||
<input name="large_size_w" type="number" step="1" min="0" id="large_size_w" value="<?php form_option( 'large_size_w' ); ?>" class="small-text" />
|
<input name="large_size_w" type="number" step="1" min="0" id="large_size_w" value="<?php form_option( 'large_size_w' ); ?>" class="small-text" />
|
||||||
<br />
|
<br />
|
||||||
|
|
|
@ -330,7 +330,12 @@ printf(
|
||||||
<th scope="row"><?php _e( 'Permalink structure' ); ?></th>
|
<th scope="row"><?php _e( 'Permalink structure' ); ?></th>
|
||||||
<td>
|
<td>
|
||||||
<fieldset class="structure-selection">
|
<fieldset class="structure-selection">
|
||||||
<legend class="screen-reader-text"><?php _e( 'Permalink structure' ); ?></legend>
|
<legend class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Permalink structure' );
|
||||||
|
?>
|
||||||
|
</legend>
|
||||||
<?php foreach ( $default_structures as $input ) : ?>
|
<?php foreach ( $default_structures as $input ) : ?>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<input id="permalink-input-<?php echo $input['id']; ?>"
|
<input id="permalink-input-<?php echo $input['id']; ?>"
|
||||||
|
@ -356,7 +361,10 @@ printf(
|
||||||
<label for="custom_selection"><?php _e( 'Custom Structure' ); ?></label>
|
<label for="custom_selection"><?php _e( 'Custom Structure' ); ?></label>
|
||||||
<p>
|
<p>
|
||||||
<label for="permalink_structure" class="screen-reader-text">
|
<label for="permalink_structure" class="screen-reader-text">
|
||||||
<?php _e( 'Customize permalink structure by selecting available tags' ); ?>
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Customize permalink structure by selecting available tags' );
|
||||||
|
?>
|
||||||
</label>
|
</label>
|
||||||
<span class="code">
|
<span class="code">
|
||||||
<code id="permalink-custom"><?php echo $url_base; ?></code>
|
<code id="permalink-custom"><?php echo $url_base; ?></code>
|
||||||
|
|
|
@ -85,7 +85,13 @@ else :
|
||||||
<table class="form-table" role="presentation">
|
<table class="form-table" role="presentation">
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><?php _e( 'Your homepage displays' ); ?></th>
|
<th scope="row"><?php _e( 'Your homepage displays' ); ?></th>
|
||||||
<td id="front-static-pages"><fieldset><legend class="screen-reader-text"><span><?php _e( 'Your homepage displays' ); ?></span></legend>
|
<td id="front-static-pages"><fieldset>
|
||||||
|
<legend class="screen-reader-text"><span>
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Your homepage displays' );
|
||||||
|
?>
|
||||||
|
</span></legend>
|
||||||
<p><label>
|
<p><label>
|
||||||
<input name="show_on_front" type="radio" value="posts" class="tog" <?php checked( 'posts', get_option( 'show_on_front' ) ); ?> />
|
<input name="show_on_front" type="radio" value="posts" class="tog" <?php checked( 'posts', get_option( 'show_on_front' ) ); ?> />
|
||||||
<?php _e( 'Your latest posts' ); ?>
|
<?php _e( 'Your latest posts' ); ?>
|
||||||
|
@ -159,7 +165,13 @@ else :
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><?php _e( 'For each post in a feed, include' ); ?> </th>
|
<th scope="row"><?php _e( 'For each post in a feed, include' ); ?> </th>
|
||||||
<td><fieldset><legend class="screen-reader-text"><span><?php _e( 'For each post in a feed, include' ); ?> </span></legend>
|
<td><fieldset>
|
||||||
|
<legend class="screen-reader-text"><span>
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'For each post in a feed, include' );
|
||||||
|
?>
|
||||||
|
</span></legend>
|
||||||
<p>
|
<p>
|
||||||
<label><input name="rss_use_excerpt" type="radio" value="0" <?php checked( 0, get_option( 'rss_use_excerpt' ) ); ?> /> <?php _e( 'Full text' ); ?></label><br />
|
<label><input name="rss_use_excerpt" type="radio" value="0" <?php checked( 0, get_option( 'rss_use_excerpt' ) ); ?> /> <?php _e( 'Full text' ); ?></label><br />
|
||||||
<label><input name="rss_use_excerpt" type="radio" value="1" <?php checked( 1, get_option( 'rss_use_excerpt' ) ); ?> /> <?php _e( 'Excerpt' ); ?></label>
|
<label><input name="rss_use_excerpt" type="radio" value="1" <?php checked( 1, get_option( 'rss_use_excerpt' ) ); ?> /> <?php _e( 'Excerpt' ); ?></label>
|
||||||
|
@ -178,7 +190,16 @@ else :
|
||||||
|
|
||||||
<tr class="option-site-visibility">
|
<tr class="option-site-visibility">
|
||||||
<th scope="row"><?php has_action( 'blog_privacy_selector' ) ? _e( 'Site visibility' ) : _e( 'Search engine visibility' ); ?> </th>
|
<th scope="row"><?php has_action( 'blog_privacy_selector' ) ? _e( 'Site visibility' ) : _e( 'Search engine visibility' ); ?> </th>
|
||||||
<td><fieldset><legend class="screen-reader-text"><span><?php has_action( 'blog_privacy_selector' ) ? _e( 'Site visibility' ) : _e( 'Search engine visibility' ); ?> </span></legend>
|
<td><fieldset>
|
||||||
|
<legend class="screen-reader-text"><span>
|
||||||
|
<?php
|
||||||
|
has_action( 'blog_privacy_selector' )
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
? _e( 'Site visibility' )
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
: _e( 'Search engine visibility' );
|
||||||
|
?>
|
||||||
|
</span></legend>
|
||||||
<?php if ( has_action( 'blog_privacy_selector' ) ) : ?>
|
<?php if ( has_action( 'blog_privacy_selector' ) ) : ?>
|
||||||
<input id="blog-public" type="radio" name="blog_public" value="1" <?php checked( '1', get_option( 'blog_public' ) ); ?> />
|
<input id="blog-public" type="radio" name="blog_public" value="1" <?php checked( '1', get_option( 'blog_public' ) ); ?> />
|
||||||
<label for="blog-public"><?php _e( 'Allow search engines to index this site' ); ?></label><br />
|
<label for="blog-public"><?php _e( 'Allow search engines to index this site' ); ?></label><br />
|
||||||
|
|
|
@ -67,7 +67,12 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||||
<?php if ( get_site_option( 'initial_db_version' ) < 32453 ) : ?>
|
<?php if ( get_site_option( 'initial_db_version' ) < 32453 ) : ?>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><?php _e( 'Formatting' ); ?></th>
|
<th scope="row"><?php _e( 'Formatting' ); ?></th>
|
||||||
<td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Formatting' ); ?></span></legend>
|
<td><fieldset><legend class="screen-reader-text"><span>
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Formatting' );
|
||||||
|
?>
|
||||||
|
</span></legend>
|
||||||
<label for="use_smilies">
|
<label for="use_smilies">
|
||||||
<input name="use_smilies" type="checkbox" id="use_smilies" value="1" <?php checked( '1', get_option( 'use_smilies' ) ); ?> />
|
<input name="use_smilies" type="checkbox" id="use_smilies" value="1" <?php checked( '1', get_option( 'use_smilies' ) ); ?> />
|
||||||
<?php _e( 'Convert emoticons like <code>:-)</code> and <code>:-P</code> to graphics on display' ); ?></label><br />
|
<?php _e( 'Convert emoticons like <code>:-)</code> and <code>:-P</code> to graphics on display' ); ?></label><br />
|
||||||
|
|
|
@ -157,7 +157,12 @@ switch ( $step ) {
|
||||||
$step_1 .= '&language=' . $loaded_language;
|
$step_1 .= '&language=' . $loaded_language;
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<h1 class="screen-reader-text"><?php _e( 'Before getting started' ); ?></h1>
|
<h1 class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Before getting started' );
|
||||||
|
?>
|
||||||
|
</h1>
|
||||||
<p><?php _e( 'Welcome to WordPress. Before getting started, you will need to know the following items.' ); ?></p>
|
<p><?php _e( 'Welcome to WordPress. Before getting started, you will need to know the following items.' ); ?></p>
|
||||||
<ol>
|
<ol>
|
||||||
<li><?php _e( 'Database name' ); ?></li>
|
<li><?php _e( 'Database name' ); ?></li>
|
||||||
|
@ -207,7 +212,12 @@ switch ( $step ) {
|
||||||
|
|
||||||
$autofocus = wp_is_mobile() ? '' : ' autofocus';
|
$autofocus = wp_is_mobile() ? '' : ' autofocus';
|
||||||
?>
|
?>
|
||||||
<h1 class="screen-reader-text"><?php _e( 'Set up your database connection' ); ?></h1>
|
<h1 class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Set up your database connection' );
|
||||||
|
?>
|
||||||
|
</h1>
|
||||||
<form method="post" action="setup-config.php?step=2">
|
<form method="post" action="setup-config.php?step=2">
|
||||||
<p><?php _e( 'Below you should enter your database connection details. If you are not sure about these, contact your host.' ); ?></p>
|
<p><?php _e( 'Below you should enter your database connection details. If you are not sure about these, contact your host.' ); ?></p>
|
||||||
<table class="form-table" role="presentation">
|
<table class="form-table" role="presentation">
|
||||||
|
@ -477,7 +487,12 @@ if ( ! /iPad|iPod|iPhone/.test( navigator.userAgent ) ) {
|
||||||
|
|
||||||
if ( false !== $handle ) :
|
if ( false !== $handle ) :
|
||||||
?>
|
?>
|
||||||
<h1 class="screen-reader-text"><?php _e( 'Successful database connection' ); ?></h1>
|
<h1 class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Successful database connection' );
|
||||||
|
?>
|
||||||
|
</h1>
|
||||||
<p><?php _e( 'All right, sparky! You’ve made it through this part of the installation. WordPress can now communicate with your database. If you are ready, time now to…' ); ?></p>
|
<p><?php _e( 'All right, sparky! You’ve made it through this part of the installation. WordPress can now communicate with your database. If you are ready, time now to…' ); ?></p>
|
||||||
|
|
||||||
<p class="step"><a href="<?php echo $install; ?>" class="button button-large"><?php _e( 'Run the installation' ); ?></a></p>
|
<p class="step"><a href="<?php echo $install; ?>" class="button button-large"><?php _e( 'Run the installation' ); ?></a></p>
|
||||||
|
|
|
@ -160,7 +160,12 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||||
<?php if ( count( $tabs ) > 4 ) : ?>
|
<?php if ( count( $tabs ) > 4 ) : ?>
|
||||||
<button type="button" class="health-check-tab health-check-offscreen-nav-wrapper" aria-haspopup="true">
|
<button type="button" class="health-check-tab health-check-offscreen-nav-wrapper" aria-haspopup="true">
|
||||||
<span class="dashicons dashicons-ellipsis"></span>
|
<span class="dashicons dashicons-ellipsis"></span>
|
||||||
<span class="screen-reader-text"><?php _e( 'Toggle extra menu items' ); ?></span>
|
<span class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Toggle extra menu items' );
|
||||||
|
?>
|
||||||
|
</span>
|
||||||
|
|
||||||
<div class="health-check-offscreen-nav">
|
<div class="health-check-offscreen-nav">
|
||||||
<?php
|
<?php
|
||||||
|
|
|
@ -70,7 +70,7 @@ wp_localize_script(
|
||||||
'noThemesFound' => __( 'No themes found. Try a different search.' ),
|
'noThemesFound' => __( 'No themes found. Try a different search.' ),
|
||||||
'collapseSidebar' => __( 'Collapse Sidebar' ),
|
'collapseSidebar' => __( 'Collapse Sidebar' ),
|
||||||
'expandSidebar' => __( 'Expand Sidebar' ),
|
'expandSidebar' => __( 'Expand Sidebar' ),
|
||||||
/* translators: Accessibility text. */
|
/* translators: Hidden accessibility text. */
|
||||||
'selectFeatureFilter' => __( 'Select one or more Theme features to filter by' ),
|
'selectFeatureFilter' => __( 'Select one or more Theme features to filter by' ),
|
||||||
),
|
),
|
||||||
'installedThemes' => array_keys( $installed_themes ),
|
'installedThemes' => array_keys( $installed_themes ),
|
||||||
|
@ -191,7 +191,12 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||||
<?php install_themes_upload(); ?>
|
<?php install_themes_upload(); ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h2 class="screen-reader-text hide-if-no-js"><?php _e( 'Filter themes list' ); ?></h2>
|
<h2 class="screen-reader-text hide-if-no-js">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Filter themes list' );
|
||||||
|
?>
|
||||||
|
</h2>
|
||||||
|
|
||||||
<div class="wp-filter hide-if-no-js">
|
<div class="wp-filter hide-if-no-js">
|
||||||
<div class="filter-count">
|
<div class="filter-count">
|
||||||
|
@ -263,7 +268,12 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<h2 class="screen-reader-text hide-if-no-js"><?php _e( 'Themes list' ); ?></h2>
|
<h2 class="screen-reader-text hide-if-no-js">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Themes list' );
|
||||||
|
?>
|
||||||
|
</h2>
|
||||||
<div class="theme-browser content-filterable"></div>
|
<div class="theme-browser content-filterable"></div>
|
||||||
<div class="theme-install-overlay wp-full-overlay expanded"></div>
|
<div class="theme-install-overlay wp-full-overlay expanded"></div>
|
||||||
|
|
||||||
|
@ -440,9 +450,24 @@ if ( $tab ) {
|
||||||
<script id="tmpl-theme-preview" type="text/template">
|
<script id="tmpl-theme-preview" type="text/template">
|
||||||
<div class="wp-full-overlay-sidebar">
|
<div class="wp-full-overlay-sidebar">
|
||||||
<div class="wp-full-overlay-header">
|
<div class="wp-full-overlay-header">
|
||||||
<button class="close-full-overlay"><span class="screen-reader-text"><?php _e( 'Close' ); ?></span></button>
|
<button class="close-full-overlay"><span class="screen-reader-text">
|
||||||
<button class="previous-theme"><span class="screen-reader-text"><?php _e( 'Previous theme' ); ?></span></button>
|
<?php
|
||||||
<button class="next-theme"><span class="screen-reader-text"><?php _e( 'Next theme' ); ?></span></button>
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Close' );
|
||||||
|
?>
|
||||||
|
</span></button>
|
||||||
|
<button class="previous-theme"><span class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Previous theme' );
|
||||||
|
?>
|
||||||
|
</span></button>
|
||||||
|
<button class="next-theme"><span class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Next theme' );
|
||||||
|
?>
|
||||||
|
</span></button>
|
||||||
<# if ( data.installed ) { #>
|
<# if ( data.installed ) { #>
|
||||||
<# if ( data.compatible_wp && data.compatible_php ) { #>
|
<# if ( data.compatible_wp && data.compatible_php ) { #>
|
||||||
<?php
|
<?php
|
||||||
|
|
|
@ -940,9 +940,24 @@ function wp_theme_auto_update_setting_template() {
|
||||||
<div class="theme-backdrop"></div>
|
<div class="theme-backdrop"></div>
|
||||||
<div class="theme-wrap wp-clearfix" role="document">
|
<div class="theme-wrap wp-clearfix" role="document">
|
||||||
<div class="theme-header">
|
<div class="theme-header">
|
||||||
<button class="left dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Show previous theme' ); ?></span></button>
|
<button class="left dashicons dashicons-no"><span class="screen-reader-text">
|
||||||
<button class="right dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Show next theme' ); ?></span></button>
|
<?php
|
||||||
<button class="close dashicons dashicons-no"><span class="screen-reader-text"><?php _e( 'Close details dialog' ); ?></span></button>
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Show previous theme' );
|
||||||
|
?>
|
||||||
|
</span></button>
|
||||||
|
<button class="right dashicons dashicons-no"><span class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Show next theme' );
|
||||||
|
?>
|
||||||
|
</span></button>
|
||||||
|
<button class="close dashicons dashicons-no"><span class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Close details dialog' );
|
||||||
|
?>
|
||||||
|
</span></button>
|
||||||
</div>
|
</div>
|
||||||
<div class="theme-about wp-clearfix">
|
<div class="theme-about wp-clearfix">
|
||||||
<div class="theme-screenshots">
|
<div class="theme-screenshots">
|
||||||
|
|
|
@ -574,7 +574,7 @@ function list_plugin_updates() {
|
||||||
<input type="checkbox" name="checked[]" id="<?php echo $checkbox_id; ?>" value="<?php echo esc_attr( $plugin_file ); ?>" />
|
<input type="checkbox" name="checked[]" id="<?php echo $checkbox_id; ?>" value="<?php echo esc_attr( $plugin_file ); ?>" />
|
||||||
<label for="<?php echo $checkbox_id; ?>" class="screen-reader-text">
|
<label for="<?php echo $checkbox_id; ?>" class="screen-reader-text">
|
||||||
<?php
|
<?php
|
||||||
/* translators: %s: Plugin name. */
|
/* translators: Hidden accessibility text. %s: Plugin name. */
|
||||||
printf( __( 'Select %s' ), $plugin_data->Name );
|
printf( __( 'Select %s' ), $plugin_data->Name );
|
||||||
?>
|
?>
|
||||||
</label>
|
</label>
|
||||||
|
@ -748,7 +748,7 @@ function list_theme_updates() {
|
||||||
<input type="checkbox" name="checked[]" id="<?php echo $checkbox_id; ?>" value="<?php echo esc_attr( $stylesheet ); ?>" />
|
<input type="checkbox" name="checked[]" id="<?php echo $checkbox_id; ?>" value="<?php echo esc_attr( $stylesheet ); ?>" />
|
||||||
<label for="<?php echo $checkbox_id; ?>" class="screen-reader-text">
|
<label for="<?php echo $checkbox_id; ?>" class="screen-reader-text">
|
||||||
<?php
|
<?php
|
||||||
/* translators: %s: Theme name. */
|
/* translators: Hidden accessibility text. %s: Theme name. */
|
||||||
printf( __( 'Select %s' ), $theme->display( 'Name' ) );
|
printf( __( 'Select %s' ), $theme->display( 'Name' ) );
|
||||||
?>
|
?>
|
||||||
</label>
|
</label>
|
||||||
|
|
|
@ -947,7 +947,12 @@ switch ( $action ) {
|
||||||
</p>
|
</p>
|
||||||
<p><?php _e( 'Be sure to save this in a safe location. You will not be able to retrieve it.' ); ?></p>
|
<p><?php _e( 'Be sure to save this in a safe location. You will not be able to retrieve it.' ); ?></p>
|
||||||
<button type="button" class="notice-dismiss">
|
<button type="button" class="notice-dismiss">
|
||||||
<span class="screen-reader-text"><?php _e( 'Dismiss this notice.' ); ?></span>
|
<span class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Dismiss this notice.' );
|
||||||
|
?>
|
||||||
|
</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -423,7 +423,12 @@ do_action( 'widgets_admin_page' );
|
||||||
<div id="available-widgets" class="widgets-holder-wrap">
|
<div id="available-widgets" class="widgets-holder-wrap">
|
||||||
<div class="sidebar-name">
|
<div class="sidebar-name">
|
||||||
<button type="button" class="handlediv hide-if-no-js" aria-expanded="true">
|
<button type="button" class="handlediv hide-if-no-js" aria-expanded="true">
|
||||||
<span class="screen-reader-text"><?php _e( 'Available Widgets' ); ?></span>
|
<span class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Available Widgets' );
|
||||||
|
?>
|
||||||
|
</span>
|
||||||
<span class="toggle-indicator" aria-hidden="true"></span>
|
<span class="toggle-indicator" aria-hidden="true"></span>
|
||||||
</button>
|
</button>
|
||||||
<h2><?php _e( 'Available Widgets' ); ?> <span id="removing-widget"><?php _ex( 'Deactivate', 'removing-widget' ); ?> <span></span></span></h2>
|
<h2><?php _e( 'Available Widgets' ); ?> <span id="removing-widget"><?php _ex( 'Deactivate', 'removing-widget' ); ?> <span></span></span></h2>
|
||||||
|
|
|
@ -50,6 +50,7 @@ get_header(); ?>
|
||||||
array(
|
array(
|
||||||
'prev_text' => __( 'Previous page', 'twentyfifteen' ),
|
'prev_text' => __( 'Previous page', 'twentyfifteen' ),
|
||||||
'next_text' => __( 'Next page', 'twentyfifteen' ),
|
'next_text' => __( 'Next page', 'twentyfifteen' ),
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>',
|
'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>',
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
|
@ -40,6 +40,7 @@
|
||||||
'after' => '</div>',
|
'after' => '</div>',
|
||||||
'link_before' => '<span>',
|
'link_before' => '<span>',
|
||||||
'link_after' => '</span>',
|
'link_after' => '</span>',
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>%',
|
'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>%',
|
||||||
'separator' => '<span class="screen-reader-text">, </span>',
|
'separator' => '<span class="screen-reader-text">, </span>',
|
||||||
)
|
)
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
'after' => '</div>',
|
'after' => '</div>',
|
||||||
'link_before' => '<span>',
|
'link_before' => '<span>',
|
||||||
'link_after' => '</span>',
|
'link_after' => '</span>',
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>%',
|
'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>%',
|
||||||
'separator' => '<span class="screen-reader-text">, </span>',
|
'separator' => '<span class="screen-reader-text">, </span>',
|
||||||
)
|
)
|
||||||
|
|
|
@ -42,6 +42,7 @@
|
||||||
'after' => '</div>',
|
'after' => '</div>',
|
||||||
'link_before' => '<span>',
|
'link_before' => '<span>',
|
||||||
'link_after' => '</span>',
|
'link_after' => '</span>',
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>%',
|
'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>%',
|
||||||
'separator' => '<span class="screen-reader-text">, </span>',
|
'separator' => '<span class="screen-reader-text">, </span>',
|
||||||
)
|
)
|
||||||
|
|
|
@ -450,7 +450,9 @@ function twentyfifteen_scripts() {
|
||||||
'twentyfifteen-script',
|
'twentyfifteen-script',
|
||||||
'screenReaderText',
|
'screenReaderText',
|
||||||
array(
|
array(
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
'expand' => '<span class="screen-reader-text">' . __( 'expand child menu', 'twentyfifteen' ) . '</span>',
|
'expand' => '<span class="screen-reader-text">' . __( 'expand child menu', 'twentyfifteen' ) . '</span>',
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
'collapse' => '<span class="screen-reader-text">' . __( 'collapse child menu', 'twentyfifteen' ) . '</span>',
|
'collapse' => '<span class="screen-reader-text">' . __( 'collapse child menu', 'twentyfifteen' ) . '</span>',
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
|
@ -24,7 +24,12 @@
|
||||||
<body <?php body_class(); ?>>
|
<body <?php body_class(); ?>>
|
||||||
<?php wp_body_open(); ?>
|
<?php wp_body_open(); ?>
|
||||||
<div id="page" class="hfeed site">
|
<div id="page" class="hfeed site">
|
||||||
<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'twentyfifteen' ); ?></a>
|
<a class="skip-link screen-reader-text" href="#content">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Skip to content', 'twentyfifteen' );
|
||||||
|
?>
|
||||||
|
</a>
|
||||||
|
|
||||||
<div id="sidebar" class="sidebar">
|
<div id="sidebar" class="sidebar">
|
||||||
<header id="masthead" class="site-header">
|
<header id="masthead" class="site-header">
|
||||||
|
|
|
@ -62,6 +62,7 @@ get_header(); ?>
|
||||||
'after' => '</div>',
|
'after' => '</div>',
|
||||||
'link_before' => '<span>',
|
'link_before' => '<span>',
|
||||||
'link_after' => '</span>',
|
'link_after' => '</span>',
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>%',
|
'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>%',
|
||||||
'separator' => '<span class="screen-reader-text">, </span>',
|
'separator' => '<span class="screen-reader-text">, </span>',
|
||||||
)
|
)
|
||||||
|
|
|
@ -20,7 +20,12 @@ if ( ! function_exists( 'twentyfifteen_comment_nav' ) ) :
|
||||||
if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) :
|
if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) :
|
||||||
?>
|
?>
|
||||||
<nav class="navigation comment-navigation">
|
<nav class="navigation comment-navigation">
|
||||||
<h2 class="screen-reader-text"><?php _e( 'Comment navigation', 'twentyfifteen' ); ?></h2>
|
<h2 class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Comment navigation', 'twentyfifteen' );
|
||||||
|
?>
|
||||||
|
</h2>
|
||||||
<div class="nav-links">
|
<div class="nav-links">
|
||||||
<?php
|
<?php
|
||||||
$prev_link = get_previous_comments_link( __( 'Older Comments', 'twentyfifteen' ) );
|
$prev_link = get_previous_comments_link( __( 'Older Comments', 'twentyfifteen' ) );
|
||||||
|
@ -55,7 +60,11 @@ if ( ! function_exists( 'twentyfifteen_entry_meta' ) ) :
|
||||||
if ( current_theme_supports( 'post-formats', $format ) ) {
|
if ( current_theme_supports( 'post-formats', $format ) ) {
|
||||||
printf(
|
printf(
|
||||||
'<span class="entry-format">%1$s<a href="%2$s">%3$s</a></span>',
|
'<span class="entry-format">%1$s<a href="%2$s">%3$s</a></span>',
|
||||||
sprintf( '<span class="screen-reader-text">%s </span>', _x( 'Format', 'Used before post format.', 'twentyfifteen' ) ),
|
sprintf(
|
||||||
|
'<span class="screen-reader-text">%s </span>',
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_x( 'Format', 'Used before post format.', 'twentyfifteen' )
|
||||||
|
),
|
||||||
esc_url( get_post_format_link( $format ) ),
|
esc_url( get_post_format_link( $format ) ),
|
||||||
get_post_format_string( $format )
|
get_post_format_string( $format )
|
||||||
);
|
);
|
||||||
|
@ -78,6 +87,7 @@ if ( ! function_exists( 'twentyfifteen_entry_meta' ) ) :
|
||||||
|
|
||||||
printf(
|
printf(
|
||||||
'<span class="posted-on"><span class="screen-reader-text">%1$s </span><a href="%2$s" rel="bookmark">%3$s</a></span>',
|
'<span class="posted-on"><span class="screen-reader-text">%1$s </span><a href="%2$s" rel="bookmark">%3$s</a></span>',
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
_x( 'Posted on', 'Used before publish date.', 'twentyfifteen' ),
|
_x( 'Posted on', 'Used before publish date.', 'twentyfifteen' ),
|
||||||
esc_url( get_permalink() ),
|
esc_url( get_permalink() ),
|
||||||
$time_string
|
$time_string
|
||||||
|
@ -88,6 +98,7 @@ if ( ! function_exists( 'twentyfifteen_entry_meta' ) ) :
|
||||||
if ( is_singular() || is_multi_author() ) {
|
if ( is_singular() || is_multi_author() ) {
|
||||||
printf(
|
printf(
|
||||||
'<span class="byline"><span class="author vcard"><span class="screen-reader-text">%1$s </span><a class="url fn n" href="%2$s">%3$s</a></span></span>',
|
'<span class="byline"><span class="author vcard"><span class="screen-reader-text">%1$s </span><a class="url fn n" href="%2$s">%3$s</a></span></span>',
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
_x( 'Author', 'Used before post author name.', 'twentyfifteen' ),
|
_x( 'Author', 'Used before post author name.', 'twentyfifteen' ),
|
||||||
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
|
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
|
||||||
get_the_author()
|
get_the_author()
|
||||||
|
@ -98,6 +109,7 @@ if ( ! function_exists( 'twentyfifteen_entry_meta' ) ) :
|
||||||
if ( $categories_list && twentyfifteen_categorized_blog() ) {
|
if ( $categories_list && twentyfifteen_categorized_blog() ) {
|
||||||
printf(
|
printf(
|
||||||
'<span class="cat-links"><span class="screen-reader-text">%1$s </span>%2$s</span>',
|
'<span class="cat-links"><span class="screen-reader-text">%1$s </span>%2$s</span>',
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
_x( 'Categories', 'Used before category names.', 'twentyfifteen' ),
|
_x( 'Categories', 'Used before category names.', 'twentyfifteen' ),
|
||||||
$categories_list
|
$categories_list
|
||||||
);
|
);
|
||||||
|
@ -107,6 +119,7 @@ if ( ! function_exists( 'twentyfifteen_entry_meta' ) ) :
|
||||||
if ( $tags_list && ! is_wp_error( $tags_list ) ) {
|
if ( $tags_list && ! is_wp_error( $tags_list ) ) {
|
||||||
printf(
|
printf(
|
||||||
'<span class="tags-links"><span class="screen-reader-text">%1$s </span>%2$s</span>',
|
'<span class="tags-links"><span class="screen-reader-text">%1$s </span>%2$s</span>',
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
_x( 'Tags', 'Used before tag names.', 'twentyfifteen' ),
|
_x( 'Tags', 'Used before tag names.', 'twentyfifteen' ),
|
||||||
$tags_list
|
$tags_list
|
||||||
);
|
);
|
||||||
|
@ -119,6 +132,7 @@ if ( ! function_exists( 'twentyfifteen_entry_meta' ) ) :
|
||||||
|
|
||||||
printf(
|
printf(
|
||||||
'<span class="full-size-link"><span class="screen-reader-text">%1$s </span><a href="%2$s">%3$s × %4$s</a></span>',
|
'<span class="full-size-link"><span class="screen-reader-text">%1$s </span><a href="%2$s">%3$s × %4$s</a></span>',
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
_x( 'Full size', 'Used before full size attachment link.', 'twentyfifteen' ),
|
_x( 'Full size', 'Used before full size attachment link.', 'twentyfifteen' ),
|
||||||
esc_url( wp_get_attachment_url() ),
|
esc_url( wp_get_attachment_url() ),
|
||||||
$metadata['width'],
|
$metadata['width'],
|
||||||
|
|
|
@ -47,6 +47,7 @@ get_header(); ?>
|
||||||
array(
|
array(
|
||||||
'prev_text' => __( 'Previous page', 'twentyfifteen' ),
|
'prev_text' => __( 'Previous page', 'twentyfifteen' ),
|
||||||
'next_text' => __( 'Next page', 'twentyfifteen' ),
|
'next_text' => __( 'Next page', 'twentyfifteen' ),
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>',
|
'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>',
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
|
@ -45,6 +45,7 @@ get_header(); ?>
|
||||||
array(
|
array(
|
||||||
'prev_text' => __( 'Previous page', 'twentyfifteen' ),
|
'prev_text' => __( 'Previous page', 'twentyfifteen' ),
|
||||||
'next_text' => __( 'Next page', 'twentyfifteen' ),
|
'next_text' => __( 'Next page', 'twentyfifteen' ),
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>',
|
'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>',
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
|
@ -33,9 +33,11 @@ get_header(); ?>
|
||||||
the_post_navigation(
|
the_post_navigation(
|
||||||
array(
|
array(
|
||||||
'next_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Next', 'twentyfifteen' ) . '</span> ' .
|
'next_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Next', 'twentyfifteen' ) . '</span> ' .
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
'<span class="screen-reader-text">' . __( 'Next post:', 'twentyfifteen' ) . '</span> ' .
|
'<span class="screen-reader-text">' . __( 'Next post:', 'twentyfifteen' ) . '</span> ' .
|
||||||
'<span class="post-title">%title</span>',
|
'<span class="post-title">%title</span>',
|
||||||
'prev_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Previous', 'twentyfifteen' ) . '</span> ' .
|
'prev_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Previous', 'twentyfifteen' ) . '</span> ' .
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
'<span class="screen-reader-text">' . __( 'Previous post:', 'twentyfifteen' ) . '</span> ' .
|
'<span class="screen-reader-text">' . __( 'Previous post:', 'twentyfifteen' ) . '</span> ' .
|
||||||
'<span class="post-title">%title</span>',
|
'<span class="post-title">%title</span>',
|
||||||
)
|
)
|
||||||
|
|
|
@ -47,7 +47,12 @@ if ( post_password_required() ) {
|
||||||
|
|
||||||
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
|
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
|
||||||
<nav id="comment-nav-above" class="navigation comment-navigation">
|
<nav id="comment-nav-above" class="navigation comment-navigation">
|
||||||
<h1 class="screen-reader-text"><?php _e( 'Comment navigation', 'twentyfourteen' ); ?></h1>
|
<h1 class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Comment navigation', 'twentyfourteen' );
|
||||||
|
?>
|
||||||
|
</h1>
|
||||||
<div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'twentyfourteen' ) ); ?></div>
|
<div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'twentyfourteen' ) ); ?></div>
|
||||||
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'twentyfourteen' ) ); ?></div>
|
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'twentyfourteen' ) ); ?></div>
|
||||||
</nav><!-- #comment-nav-above -->
|
</nav><!-- #comment-nav-above -->
|
||||||
|
@ -67,7 +72,12 @@ if ( post_password_required() ) {
|
||||||
|
|
||||||
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
|
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
|
||||||
<nav id="comment-nav-below" class="navigation comment-navigation">
|
<nav id="comment-nav-below" class="navigation comment-navigation">
|
||||||
<h1 class="screen-reader-text"><?php _e( 'Comment navigation', 'twentyfourteen' ); ?></h1>
|
<h1 class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Comment navigation', 'twentyfourteen' );
|
||||||
|
?>
|
||||||
|
</h1>
|
||||||
<div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'twentyfourteen' ) ); ?></div>
|
<div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'twentyfourteen' ) ); ?></div>
|
||||||
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'twentyfourteen' ) ); ?></div>
|
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'twentyfourteen' ) ); ?></div>
|
||||||
</nav><!-- #comment-nav-below -->
|
</nav><!-- #comment-nav-below -->
|
||||||
|
|
|
@ -46,12 +46,22 @@
|
||||||
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
|
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
|
||||||
|
|
||||||
<div class="search-toggle">
|
<div class="search-toggle">
|
||||||
<a href="#search-container" class="screen-reader-text" aria-expanded="false" aria-controls="search-container"><?php _e( 'Search', 'twentyfourteen' ); ?></a>
|
<a href="#search-container" class="screen-reader-text" aria-expanded="false" aria-controls="search-container">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Search', 'twentyfourteen' );
|
||||||
|
?>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<nav id="primary-navigation" class="site-navigation primary-navigation">
|
<nav id="primary-navigation" class="site-navigation primary-navigation">
|
||||||
<button class="menu-toggle"><?php _e( 'Primary Menu', 'twentyfourteen' ); ?></button>
|
<button class="menu-toggle"><?php _e( 'Primary Menu', 'twentyfourteen' ); ?></button>
|
||||||
<a class="screen-reader-text skip-link" href="#content"><?php _e( 'Skip to content', 'twentyfourteen' ); ?></a>
|
<a class="screen-reader-text skip-link" href="#content">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Skip to content', 'twentyfourteen' );
|
||||||
|
?>
|
||||||
|
</a>
|
||||||
<?php
|
<?php
|
||||||
wp_nav_menu(
|
wp_nav_menu(
|
||||||
array(
|
array(
|
||||||
|
|
|
@ -57,7 +57,12 @@ if ( ! function_exists( 'twentyfourteen_paging_nav' ) ) :
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<nav class="navigation paging-navigation">
|
<nav class="navigation paging-navigation">
|
||||||
<h1 class="screen-reader-text"><?php _e( 'Posts navigation', 'twentyfourteen' ); ?></h1>
|
<h1 class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Posts navigation', 'twentyfourteen' );
|
||||||
|
?>
|
||||||
|
</h1>
|
||||||
<div class="pagination loop-pagination">
|
<div class="pagination loop-pagination">
|
||||||
<?php echo $links; ?>
|
<?php echo $links; ?>
|
||||||
</div><!-- .pagination -->
|
</div><!-- .pagination -->
|
||||||
|
@ -84,7 +89,12 @@ if ( ! function_exists( 'twentyfourteen_post_nav' ) ) :
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<nav class="navigation post-navigation">
|
<nav class="navigation post-navigation">
|
||||||
<h1 class="screen-reader-text"><?php _e( 'Post navigation', 'twentyfourteen' ); ?></h1>
|
<h1 class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Post navigation', 'twentyfourteen' );
|
||||||
|
?>
|
||||||
|
</h1>
|
||||||
<div class="nav-links">
|
<div class="nav-links">
|
||||||
<?php
|
<?php
|
||||||
if ( is_attachment() ) :
|
if ( is_attachment() ) :
|
||||||
|
|
|
@ -22,7 +22,12 @@
|
||||||
<body <?php body_class(); ?>>
|
<body <?php body_class(); ?>>
|
||||||
<?php wp_body_open(); ?>
|
<?php wp_body_open(); ?>
|
||||||
<div id="page" class="site">
|
<div id="page" class="site">
|
||||||
<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'twentynineteen' ); ?></a>
|
<a class="skip-link screen-reader-text" href="#content">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Skip to content', 'twentynineteen' );
|
||||||
|
?>
|
||||||
|
</a>
|
||||||
|
|
||||||
<header id="masthead" class="<?php echo is_singular() && twentynineteen_can_show_post_thumbnail() ? 'site-header featured-image' : 'site-header'; ?>">
|
<header id="masthead" class="<?php echo is_singular() && twentynineteen_can_show_post_thumbnail() ? 'site-header featured-image' : 'site-header'; ?>">
|
||||||
|
|
||||||
|
|
|
@ -53,6 +53,7 @@ get_header();
|
||||||
'after' => '</div>',
|
'after' => '</div>',
|
||||||
'link_before' => '<span>',
|
'link_before' => '<span>',
|
||||||
'link_after' => '</span>',
|
'link_after' => '</span>',
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'twentynineteen' ) . ' </span>%',
|
'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'twentynineteen' ) . ' </span>%',
|
||||||
'separator' => '<span class="screen-reader-text">, </span>',
|
'separator' => '<span class="screen-reader-text">, </span>',
|
||||||
)
|
)
|
||||||
|
@ -67,6 +68,7 @@ get_header();
|
||||||
if ( $metadata ) {
|
if ( $metadata ) {
|
||||||
printf(
|
printf(
|
||||||
'<span class="full-size-link"><span class="screen-reader-text">%1$s</span><a href="%2$s">%3$s × %4$s</a></span>',
|
'<span class="full-size-link"><span class="screen-reader-text">%1$s</span><a href="%2$s">%3$s × %4$s</a></span>',
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
_x( 'Full size', 'Used before full size attachment link.', 'twentynineteen' ),
|
_x( 'Full size', 'Used before full size attachment link.', 'twentynineteen' ),
|
||||||
esc_url( wp_get_attachment_url() ),
|
esc_url( wp_get_attachment_url() ),
|
||||||
absint( $metadata['width'] ),
|
absint( $metadata['width'] ),
|
||||||
|
|
|
@ -43,6 +43,7 @@ if ( ! function_exists( 'twentynineteen_posted_by' ) ) :
|
||||||
/* translators: 1: SVG icon. 2: Post author, only visible to screen readers. 3: Author link. */
|
/* translators: 1: SVG icon. 2: Post author, only visible to screen readers. 3: Author link. */
|
||||||
'<span class="byline">%1$s<span class="screen-reader-text">%2$s</span><span class="author vcard"><a class="url fn n" href="%3$s">%4$s</a></span></span>',
|
'<span class="byline">%1$s<span class="screen-reader-text">%2$s</span><span class="author vcard"><a class="url fn n" href="%3$s">%4$s</a></span></span>',
|
||||||
twentynineteen_get_icon_svg( 'person', 16 ),
|
twentynineteen_get_icon_svg( 'person', 16 ),
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
__( 'Posted by', 'twentynineteen' ),
|
__( 'Posted by', 'twentynineteen' ),
|
||||||
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
|
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
|
||||||
esc_html( get_the_author() )
|
esc_html( get_the_author() )
|
||||||
|
@ -88,6 +89,7 @@ if ( ! function_exists( 'twentynineteen_entry_footer' ) ) :
|
||||||
/* translators: 1: SVG icon. 2: Posted in label, only visible to screen readers. 3: List of categories. */
|
/* translators: 1: SVG icon. 2: Posted in label, only visible to screen readers. 3: List of categories. */
|
||||||
'<span class="cat-links">%1$s<span class="screen-reader-text">%2$s</span>%3$s</span>',
|
'<span class="cat-links">%1$s<span class="screen-reader-text">%2$s</span>%3$s</span>',
|
||||||
twentynineteen_get_icon_svg( 'archive', 16 ),
|
twentynineteen_get_icon_svg( 'archive', 16 ),
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
__( 'Posted in', 'twentynineteen' ),
|
__( 'Posted in', 'twentynineteen' ),
|
||||||
$categories_list
|
$categories_list
|
||||||
); // WPCS: XSS OK.
|
); // WPCS: XSS OK.
|
||||||
|
@ -99,6 +101,7 @@ if ( ! function_exists( 'twentynineteen_entry_footer' ) ) :
|
||||||
/* translators: 1: SVG icon. 2: Posted in label, only visible to screen readers. 3: List of tags. */
|
/* translators: 1: SVG icon. 2: Posted in label, only visible to screen readers. 3: List of tags. */
|
||||||
'<span class="tags-links">%1$s<span class="screen-reader-text">%2$s </span>%3$s</span>',
|
'<span class="tags-links">%1$s<span class="screen-reader-text">%2$s </span>%3$s</span>',
|
||||||
twentynineteen_get_icon_svg( 'tag', 16 ),
|
twentynineteen_get_icon_svg( 'tag', 16 ),
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
__( 'Tags:', 'twentynineteen' ),
|
__( 'Tags:', 'twentynineteen' ),
|
||||||
$tags_list
|
$tags_list
|
||||||
); // WPCS: XSS OK.
|
); // WPCS: XSS OK.
|
||||||
|
|
|
@ -36,9 +36,11 @@ get_header();
|
||||||
the_post_navigation(
|
the_post_navigation(
|
||||||
array(
|
array(
|
||||||
'next_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Next Post', 'twentynineteen' ) . '</span> ' .
|
'next_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Next Post', 'twentynineteen' ) . '</span> ' .
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
'<span class="screen-reader-text">' . __( 'Next post:', 'twentynineteen' ) . '</span> <br/>' .
|
'<span class="screen-reader-text">' . __( 'Next post:', 'twentynineteen' ) . '</span> <br/>' .
|
||||||
'<span class="post-title">%title</span>',
|
'<span class="post-title">%title</span>',
|
||||||
'prev_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Previous Post', 'twentynineteen' ) . '</span> ' .
|
'prev_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Previous Post', 'twentynineteen' ) . '</span> ' .
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
'<span class="screen-reader-text">' . __( 'Previous post:', 'twentynineteen' ) . '</span> <br/>' .
|
'<span class="screen-reader-text">' . __( 'Previous post:', 'twentynineteen' ) . '</span> <br/>' .
|
||||||
'<span class="post-title">%title</span>',
|
'<span class="post-title">%title</span>',
|
||||||
)
|
)
|
||||||
|
|
|
@ -46,9 +46,9 @@ get_header(); ?>
|
||||||
|
|
||||||
the_posts_pagination(
|
the_posts_pagination(
|
||||||
array(
|
array(
|
||||||
'prev_text' => twentyseventeen_get_svg( array( 'icon' => 'arrow-left' ) ) . '<span class="screen-reader-text">' . __( 'Previous page', 'twentyseventeen' ) . '</span>',
|
'prev_text' => twentyseventeen_get_svg( array( 'icon' => 'arrow-left' ) ) . '<span class="screen-reader-text">' . /* translators: Hidden accessibility text. */ __( 'Previous page', 'twentyseventeen' ) . '</span>',
|
||||||
'next_text' => '<span class="screen-reader-text">' . __( 'Next page', 'twentyseventeen' ) . '</span>' . twentyseventeen_get_svg( array( 'icon' => 'arrow-right' ) ),
|
'next_text' => '<span class="screen-reader-text">' . __( 'Next page', 'twentyseventeen' ) . '</span>' . twentyseventeen_get_svg( array( 'icon' => 'arrow-right' ) ),
|
||||||
'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentyseventeen' ) . ' </span>',
|
'before_page_number' => '<span class="meta-nav screen-reader-text">' . /* translators: Hidden accessibility text. */ __( 'Page', 'twentyseventeen' ) . ' </span>',
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -68,8 +68,8 @@ if ( post_password_required() ) {
|
||||||
<?php
|
<?php
|
||||||
the_comments_pagination(
|
the_comments_pagination(
|
||||||
array(
|
array(
|
||||||
'prev_text' => twentyseventeen_get_svg( array( 'icon' => 'arrow-left' ) ) . '<span class="screen-reader-text">' . __( 'Previous', 'twentyseventeen' ) . '</span>',
|
'prev_text' => twentyseventeen_get_svg( array( 'icon' => 'arrow-left' ) ) . '<span class="screen-reader-text">' . /* translators: Hidden accessibility text. */ __( 'Previous', 'twentyseventeen' ) . '</span>',
|
||||||
'next_text' => '<span class="screen-reader-text">' . __( 'Next', 'twentyseventeen' ) . '</span>' . twentyseventeen_get_svg( array( 'icon' => 'arrow-right' ) ),
|
'next_text' => '<span class="screen-reader-text">' . /* translators: Hidden accessibility text. */ __( 'Next', 'twentyseventeen' ) . '</span>' . twentyseventeen_get_svg( array( 'icon' => 'arrow-right' ) ),
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,12 @@
|
||||||
<body <?php body_class(); ?>>
|
<body <?php body_class(); ?>>
|
||||||
<?php wp_body_open(); ?>
|
<?php wp_body_open(); ?>
|
||||||
<div id="page" class="site">
|
<div id="page" class="site">
|
||||||
<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'twentyseventeen' ); ?></a>
|
<a class="skip-link screen-reader-text" href="#content">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Skip to content', 'twentyseventeen' );
|
||||||
|
?>
|
||||||
|
</a>
|
||||||
|
|
||||||
<header id="masthead" class="site-header">
|
<header id="masthead" class="site-header">
|
||||||
|
|
||||||
|
|
|
@ -124,7 +124,9 @@ endif; // End of twentyseventeen_header_style().
|
||||||
* @return array The filtered video settings.
|
* @return array The filtered video settings.
|
||||||
*/
|
*/
|
||||||
function twentyseventeen_video_controls( $settings ) {
|
function twentyseventeen_video_controls( $settings ) {
|
||||||
$settings['l10n']['play'] = '<span class="screen-reader-text">' . __( 'Play background video', 'twentyseventeen' ) . '</span>' . twentyseventeen_get_svg( array( 'icon' => 'play' ) );
|
/* translators: Hidden accessibility text. */
|
||||||
|
$settings['l10n']['play'] = '<span class="screen-reader-text">' . __( 'Play background video', 'twentyseventeen' ) . '</span>' . twentyseventeen_get_svg( array( 'icon' => 'play' ) );
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
$settings['l10n']['pause'] = '<span class="screen-reader-text">' . __( 'Pause background video', 'twentyseventeen' ) . '</span>' . twentyseventeen_get_svg( array( 'icon' => 'pause' ) );
|
$settings['l10n']['pause'] = '<span class="screen-reader-text">' . __( 'Pause background video', 'twentyseventeen' ) . '</span>' . twentyseventeen_get_svg( array( 'icon' => 'pause' ) );
|
||||||
return $settings;
|
return $settings;
|
||||||
}
|
}
|
||||||
|
|
|
@ -81,11 +81,19 @@ if ( ! function_exists( 'twentyseventeen_entry_footer' ) ) :
|
||||||
|
|
||||||
// Make sure there's more than one category before displaying.
|
// Make sure there's more than one category before displaying.
|
||||||
if ( $categories_list && twentyseventeen_categorized_blog() ) {
|
if ( $categories_list && twentyseventeen_categorized_blog() ) {
|
||||||
echo '<span class="cat-links">' . twentyseventeen_get_svg( array( 'icon' => 'folder-open' ) ) . '<span class="screen-reader-text">' . __( 'Categories', 'twentyseventeen' ) . '</span>' . $categories_list . '</span>';
|
echo '<span class="cat-links">' . twentyseventeen_get_svg( array( 'icon' => 'folder-open' ) ) .
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
'<span class="screen-reader-text">' . __( 'Categories', 'twentyseventeen' ) . '</span>' .
|
||||||
|
$categories_list .
|
||||||
|
'</span>';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( $tags_list && ! is_wp_error( $tags_list ) ) {
|
if ( $tags_list && ! is_wp_error( $tags_list ) ) {
|
||||||
echo '<span class="tags-links">' . twentyseventeen_get_svg( array( 'icon' => 'hashtag' ) ) . '<span class="screen-reader-text">' . __( 'Tags', 'twentyseventeen' ) . '</span>' . $tags_list . '</span>';
|
echo '<span class="tags-links">' . twentyseventeen_get_svg( array( 'icon' => 'hashtag' ) ) .
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
'<span class="screen-reader-text">' . __( 'Tags', 'twentyseventeen' ) . '</span>' .
|
||||||
|
$tags_list .
|
||||||
|
'</span>';
|
||||||
}
|
}
|
||||||
|
|
||||||
echo '</span>';
|
echo '</span>';
|
||||||
|
|
|
@ -50,9 +50,9 @@ get_header(); ?>
|
||||||
|
|
||||||
the_posts_pagination(
|
the_posts_pagination(
|
||||||
array(
|
array(
|
||||||
'prev_text' => twentyseventeen_get_svg( array( 'icon' => 'arrow-left' ) ) . '<span class="screen-reader-text">' . __( 'Previous page', 'twentyseventeen' ) . '</span>',
|
'prev_text' => twentyseventeen_get_svg( array( 'icon' => 'arrow-left' ) ) . '<span class="screen-reader-text">' . /* translators: Hidden accessibility text. */ __( 'Previous page', 'twentyseventeen' ) . '</span>',
|
||||||
'next_text' => '<span class="screen-reader-text">' . __( 'Next page', 'twentyseventeen' ) . '</span>' . twentyseventeen_get_svg( array( 'icon' => 'arrow-right' ) ),
|
'next_text' => '<span class="screen-reader-text">' . /* translators: Hidden accessibility text. */ __( 'Next page', 'twentyseventeen' ) . '</span>' . twentyseventeen_get_svg( array( 'icon' => 'arrow-right' ) ),
|
||||||
'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentyseventeen' ) . ' </span>',
|
'before_page_number' => '<span class="meta-nav screen-reader-text">' . /* translators: Hidden accessibility text. */ __( 'Page', 'twentyseventeen' ) . ' </span>',
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -47,9 +47,9 @@ get_header(); ?>
|
||||||
|
|
||||||
the_posts_pagination(
|
the_posts_pagination(
|
||||||
array(
|
array(
|
||||||
'prev_text' => twentyseventeen_get_svg( array( 'icon' => 'arrow-left' ) ) . '<span class="screen-reader-text">' . __( 'Previous page', 'twentyseventeen' ) . '</span>',
|
'prev_text' => twentyseventeen_get_svg( array( 'icon' => 'arrow-left' ) ) . '<span class="screen-reader-text">' . /* translators: Hidden accessibility text. */ __( 'Previous page', 'twentyseventeen' ) . '</span>',
|
||||||
'next_text' => '<span class="screen-reader-text">' . __( 'Next page', 'twentyseventeen' ) . '</span>' . twentyseventeen_get_svg( array( 'icon' => 'arrow-right' ) ),
|
'next_text' => '<span class="screen-reader-text">' . /* translators: Hidden accessibility text. */ __( 'Next page', 'twentyseventeen' ) . '</span>' . twentyseventeen_get_svg( array( 'icon' => 'arrow-right' ) ),
|
||||||
'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentyseventeen' ) . ' </span>',
|
'before_page_number' => '<span class="meta-nav screen-reader-text">' . /* translators: Hidden accessibility text. */ __( 'Page', 'twentyseventeen' ) . ' </span>',
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -14,8 +14,18 @@
|
||||||
|
|
||||||
<form role="search" method="get" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>">
|
<form role="search" method="get" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>">
|
||||||
<label for="<?php echo $unique_id; ?>">
|
<label for="<?php echo $unique_id; ?>">
|
||||||
<span class="screen-reader-text"><?php echo _x( 'Search for:', 'label', 'twentyseventeen' ); ?></span>
|
<span class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
echo _x( 'Search for:', 'label', 'twentyseventeen' );
|
||||||
|
?>
|
||||||
|
</span>
|
||||||
</label>
|
</label>
|
||||||
<input type="search" id="<?php echo $unique_id; ?>" class="search-field" placeholder="<?php echo esc_attr_x( 'Search …', 'placeholder', 'twentyseventeen' ); ?>" value="<?php echo get_search_query(); ?>" name="s" />
|
<input type="search" id="<?php echo $unique_id; ?>" class="search-field" placeholder="<?php echo esc_attr_x( 'Search …', 'placeholder', 'twentyseventeen' ); ?>" value="<?php echo get_search_query(); ?>" name="s" />
|
||||||
<button type="submit" class="search-submit"><?php echo twentyseventeen_get_svg( array( 'icon' => 'search' ) ); ?><span class="screen-reader-text"><?php echo _x( 'Search', 'submit button', 'twentyseventeen' ); ?></span></button>
|
<button type="submit" class="search-submit"><?php echo twentyseventeen_get_svg( array( 'icon' => 'search' ) ); ?><span class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
echo _x( 'Search', 'submit button', 'twentyseventeen' );
|
||||||
|
?>
|
||||||
|
</span></button>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -30,8 +30,8 @@ get_header(); ?>
|
||||||
|
|
||||||
the_post_navigation(
|
the_post_navigation(
|
||||||
array(
|
array(
|
||||||
'prev_text' => '<span class="screen-reader-text">' . __( 'Previous Post', 'twentyseventeen' ) . '</span><span aria-hidden="true" class="nav-subtitle">' . __( 'Previous', 'twentyseventeen' ) . '</span> <span class="nav-title"><span class="nav-title-icon-wrapper">' . twentyseventeen_get_svg( array( 'icon' => 'arrow-left' ) ) . '</span>%title</span>',
|
'prev_text' => '<span class="screen-reader-text">' . /* translators: Hidden accessibility text. */ __( 'Previous Post', 'twentyseventeen' ) . '</span><span aria-hidden="true" class="nav-subtitle">' . __( 'Previous', 'twentyseventeen' ) . '</span> <span class="nav-title"><span class="nav-title-icon-wrapper">' . twentyseventeen_get_svg( array( 'icon' => 'arrow-left' ) ) . '</span>%title</span>',
|
||||||
'next_text' => '<span class="screen-reader-text">' . __( 'Next Post', 'twentyseventeen' ) . '</span><span aria-hidden="true" class="nav-subtitle">' . __( 'Next', 'twentyseventeen' ) . '</span> <span class="nav-title">%title<span class="nav-title-icon-wrapper">' . twentyseventeen_get_svg( array( 'icon' => 'arrow-right' ) ) . '</span></span>',
|
'next_text' => '<span class="screen-reader-text">' . /* translators: Hidden accessibility text. */ __( 'Next Post', 'twentyseventeen' ) . '</span><span aria-hidden="true" class="nav-subtitle">' . __( 'Next', 'twentyseventeen' ) . '</span> <span class="nav-title">%title<span class="nav-title-icon-wrapper">' . twentyseventeen_get_svg( array( 'icon' => 'arrow-right' ) ) . '</span></span>',
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,12 @@
|
||||||
</div><!-- .site-branding-text -->
|
</div><!-- .site-branding-text -->
|
||||||
|
|
||||||
<?php if ( ( twentyseventeen_is_frontpage() || ( is_home() && is_front_page() ) ) && ! has_nav_menu( 'top' ) ) : ?>
|
<?php if ( ( twentyseventeen_is_frontpage() || ( is_home() && is_front_page() ) ) && ! has_nav_menu( 'top' ) ) : ?>
|
||||||
<a href="#content" class="menu-scroll-down"><?php echo twentyseventeen_get_svg( array( 'icon' => 'arrow-right' ) ); ?><span class="screen-reader-text"><?php _e( 'Scroll down to content', 'twentyseventeen' ); ?></span></a>
|
<a href="#content" class="menu-scroll-down"><?php echo twentyseventeen_get_svg( array( 'icon' => 'arrow-right' ) ); ?><span class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Scroll down to content', 'twentyseventeen' );
|
||||||
|
?>
|
||||||
|
</span></a>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
</div><!-- .wrap -->
|
</div><!-- .wrap -->
|
||||||
|
|
|
@ -28,6 +28,11 @@
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php if ( ( twentyseventeen_is_frontpage() || ( is_home() && is_front_page() ) ) && has_custom_header() ) : ?>
|
<?php if ( ( twentyseventeen_is_frontpage() || ( is_home() && is_front_page() ) ) && has_custom_header() ) : ?>
|
||||||
<a href="#content" class="menu-scroll-down"><?php echo twentyseventeen_get_svg( array( 'icon' => 'arrow-right' ) ); ?><span class="screen-reader-text"><?php _e( 'Scroll down to content', 'twentyseventeen' ); ?></span></a>
|
<a href="#content" class="menu-scroll-down"><?php echo twentyseventeen_get_svg( array( 'icon' => 'arrow-right' ) ); ?><span class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Scroll down to content', 'twentyseventeen' );
|
||||||
|
?>
|
||||||
|
</span></a>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</nav><!-- #site-navigation -->
|
</nav><!-- #site-navigation -->
|
||||||
|
|
|
@ -51,6 +51,7 @@ get_header(); ?>
|
||||||
array(
|
array(
|
||||||
'prev_text' => __( 'Previous page', 'twentysixteen' ),
|
'prev_text' => __( 'Previous page', 'twentysixteen' ),
|
||||||
'next_text' => __( 'Next page', 'twentysixteen' ),
|
'next_text' => __( 'Next page', 'twentysixteen' ),
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentysixteen' ) . ' </span>',
|
'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentysixteen' ) . ' </span>',
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
|
@ -25,7 +25,12 @@
|
||||||
<?php wp_body_open(); ?>
|
<?php wp_body_open(); ?>
|
||||||
<div id="page" class="site">
|
<div id="page" class="site">
|
||||||
<div class="site-inner">
|
<div class="site-inner">
|
||||||
<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'twentysixteen' ); ?></a>
|
<a class="skip-link screen-reader-text" href="#content">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Skip to content', 'twentysixteen' );
|
||||||
|
?>
|
||||||
|
</a>
|
||||||
|
|
||||||
<header id="masthead" class="site-header">
|
<header id="masthead" class="site-header">
|
||||||
<div class="site-header-main">
|
<div class="site-header-main">
|
||||||
|
|
|
@ -59,6 +59,7 @@ get_header(); ?>
|
||||||
'after' => '</div>',
|
'after' => '</div>',
|
||||||
'link_before' => '<span>',
|
'link_before' => '<span>',
|
||||||
'link_after' => '</span>',
|
'link_after' => '</span>',
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'twentysixteen' ) . ' </span>%',
|
'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'twentysixteen' ) . ' </span>%',
|
||||||
'separator' => '<span class="screen-reader-text">, </span>',
|
'separator' => '<span class="screen-reader-text">, </span>',
|
||||||
)
|
)
|
||||||
|
@ -74,6 +75,7 @@ get_header(); ?>
|
||||||
if ( $metadata ) {
|
if ( $metadata ) {
|
||||||
printf(
|
printf(
|
||||||
'<span class="full-size-link"><span class="screen-reader-text">%1$s </span><a href="%2$s">%3$s × %4$s</a></span>',
|
'<span class="full-size-link"><span class="screen-reader-text">%1$s </span><a href="%2$s">%3$s × %4$s</a></span>',
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
esc_html_x( 'Full size', 'Used before full size attachment link.', 'twentysixteen' ),
|
esc_html_x( 'Full size', 'Used before full size attachment link.', 'twentysixteen' ),
|
||||||
esc_url( wp_get_attachment_url() ),
|
esc_url( wp_get_attachment_url() ),
|
||||||
absint( $metadata['width'] ),
|
absint( $metadata['width'] ),
|
||||||
|
|
|
@ -23,6 +23,7 @@ if ( ! function_exists( 'twentysixteen_entry_meta' ) ) :
|
||||||
printf(
|
printf(
|
||||||
'<span class="byline"><span class="author vcard">%1$s<span class="screen-reader-text">%2$s </span> <a class="url fn n" href="%3$s">%4$s</a></span></span>',
|
'<span class="byline"><span class="author vcard">%1$s<span class="screen-reader-text">%2$s </span> <a class="url fn n" href="%3$s">%4$s</a></span></span>',
|
||||||
get_avatar( get_the_author_meta( 'user_email' ), $author_avatar_size ),
|
get_avatar( get_the_author_meta( 'user_email' ), $author_avatar_size ),
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
_x( 'Author', 'Used before post author name.', 'twentysixteen' ),
|
_x( 'Author', 'Used before post author name.', 'twentysixteen' ),
|
||||||
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
|
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
|
||||||
get_the_author()
|
get_the_author()
|
||||||
|
@ -37,7 +38,11 @@ if ( ! function_exists( 'twentysixteen_entry_meta' ) ) :
|
||||||
if ( current_theme_supports( 'post-formats', $format ) ) {
|
if ( current_theme_supports( 'post-formats', $format ) ) {
|
||||||
printf(
|
printf(
|
||||||
'<span class="entry-format">%1$s<a href="%2$s">%3$s</a></span>',
|
'<span class="entry-format">%1$s<a href="%2$s">%3$s</a></span>',
|
||||||
sprintf( '<span class="screen-reader-text">%s </span>', _x( 'Format', 'Used before post format.', 'twentysixteen' ) ),
|
sprintf(
|
||||||
|
'<span class="screen-reader-text">%s </span>',
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_x( 'Format', 'Used before post format.', 'twentysixteen' )
|
||||||
|
),
|
||||||
esc_url( get_post_format_link( $format ) ),
|
esc_url( get_post_format_link( $format ) ),
|
||||||
get_post_format_string( $format )
|
get_post_format_string( $format )
|
||||||
);
|
);
|
||||||
|
@ -81,6 +86,7 @@ if ( ! function_exists( 'twentysixteen_entry_date' ) ) :
|
||||||
|
|
||||||
printf(
|
printf(
|
||||||
'<span class="posted-on"><span class="screen-reader-text">%1$s </span><a href="%2$s" rel="bookmark">%3$s</a></span>',
|
'<span class="posted-on"><span class="screen-reader-text">%1$s </span><a href="%2$s" rel="bookmark">%3$s</a></span>',
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
_x( 'Posted on', 'Used before publish date.', 'twentysixteen' ),
|
_x( 'Posted on', 'Used before publish date.', 'twentysixteen' ),
|
||||||
esc_url( get_permalink() ),
|
esc_url( get_permalink() ),
|
||||||
$time_string
|
$time_string
|
||||||
|
@ -101,6 +107,7 @@ if ( ! function_exists( 'twentysixteen_entry_taxonomies' ) ) :
|
||||||
if ( $categories_list && twentysixteen_categorized_blog() ) {
|
if ( $categories_list && twentysixteen_categorized_blog() ) {
|
||||||
printf(
|
printf(
|
||||||
'<span class="cat-links"><span class="screen-reader-text">%1$s </span>%2$s</span>',
|
'<span class="cat-links"><span class="screen-reader-text">%1$s </span>%2$s</span>',
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
_x( 'Categories', 'Used before category names.', 'twentysixteen' ),
|
_x( 'Categories', 'Used before category names.', 'twentysixteen' ),
|
||||||
$categories_list
|
$categories_list
|
||||||
);
|
);
|
||||||
|
@ -110,6 +117,7 @@ if ( ! function_exists( 'twentysixteen_entry_taxonomies' ) ) :
|
||||||
if ( $tags_list && ! is_wp_error( $tags_list ) ) {
|
if ( $tags_list && ! is_wp_error( $tags_list ) ) {
|
||||||
printf(
|
printf(
|
||||||
'<span class="tags-links"><span class="screen-reader-text">%1$s </span>%2$s</span>',
|
'<span class="tags-links"><span class="screen-reader-text">%1$s </span>%2$s</span>',
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
_x( 'Tags', 'Used before tag names.', 'twentysixteen' ),
|
_x( 'Tags', 'Used before tag names.', 'twentysixteen' ),
|
||||||
$tags_list
|
$tags_list
|
||||||
);
|
);
|
||||||
|
|
|
@ -48,6 +48,7 @@ get_header(); ?>
|
||||||
array(
|
array(
|
||||||
'prev_text' => __( 'Previous page', 'twentysixteen' ),
|
'prev_text' => __( 'Previous page', 'twentysixteen' ),
|
||||||
'next_text' => __( 'Next page', 'twentysixteen' ),
|
'next_text' => __( 'Next page', 'twentysixteen' ),
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentysixteen' ) . ' </span>',
|
'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentysixteen' ) . ' </span>',
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
|
@ -43,6 +43,7 @@ get_header(); ?>
|
||||||
array(
|
array(
|
||||||
'prev_text' => __( 'Previous page', 'twentysixteen' ),
|
'prev_text' => __( 'Previous page', 'twentysixteen' ),
|
||||||
'next_text' => __( 'Next page', 'twentysixteen' ),
|
'next_text' => __( 'Next page', 'twentysixteen' ),
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentysixteen' ) . ' </span>',
|
'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentysixteen' ) . ' </span>',
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
|
@ -10,8 +10,18 @@
|
||||||
|
|
||||||
<form role="search" method="get" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>">
|
<form role="search" method="get" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>">
|
||||||
<label>
|
<label>
|
||||||
<span class="screen-reader-text"><?php echo _x( 'Search for:', 'label', 'twentysixteen' ); ?></span>
|
<span class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
echo _x( 'Search for:', 'label', 'twentysixteen' );
|
||||||
|
?>
|
||||||
|
</span>
|
||||||
<input type="search" class="search-field" placeholder="<?php echo esc_attr_x( 'Search …', 'placeholder', 'twentysixteen' ); ?>" value="<?php echo get_search_query(); ?>" name="s" />
|
<input type="search" class="search-field" placeholder="<?php echo esc_attr_x( 'Search …', 'placeholder', 'twentysixteen' ); ?>" value="<?php echo get_search_query(); ?>" name="s" />
|
||||||
</label>
|
</label>
|
||||||
<button type="submit" class="search-submit"><span class="screen-reader-text"><?php echo _x( 'Search', 'submit button', 'twentysixteen' ); ?></span></button>
|
<button type="submit" class="search-submit"><span class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
echo _x( 'Search', 'submit button', 'twentysixteen' );
|
||||||
|
?>
|
||||||
|
</span></button>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -36,9 +36,11 @@ get_header(); ?>
|
||||||
the_post_navigation(
|
the_post_navigation(
|
||||||
array(
|
array(
|
||||||
'next_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Next', 'twentysixteen' ) . '</span> ' .
|
'next_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Next', 'twentysixteen' ) . '</span> ' .
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
'<span class="screen-reader-text">' . __( 'Next post:', 'twentysixteen' ) . '</span> ' .
|
'<span class="screen-reader-text">' . __( 'Next post:', 'twentysixteen' ) . '</span> ' .
|
||||||
'<span class="post-title">%title</span>',
|
'<span class="post-title">%title</span>',
|
||||||
'prev_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Previous', 'twentysixteen' ) . '</span> ' .
|
'prev_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Previous', 'twentysixteen' ) . '</span> ' .
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
'<span class="screen-reader-text">' . __( 'Previous post:', 'twentysixteen' ) . '</span> ' .
|
'<span class="screen-reader-text">' . __( 'Previous post:', 'twentysixteen' ) . '</span> ' .
|
||||||
'<span class="post-title">%title</span>',
|
'<span class="post-title">%title</span>',
|
||||||
)
|
)
|
||||||
|
|
|
@ -25,6 +25,7 @@
|
||||||
'after' => '</div>',
|
'after' => '</div>',
|
||||||
'link_before' => '<span>',
|
'link_before' => '<span>',
|
||||||
'link_after' => '</span>',
|
'link_after' => '</span>',
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'twentysixteen' ) . ' </span>%',
|
'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'twentysixteen' ) . ' </span>%',
|
||||||
'separator' => '<span class="screen-reader-text">, </span>',
|
'separator' => '<span class="screen-reader-text">, </span>',
|
||||||
)
|
)
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
'after' => '</div>',
|
'after' => '</div>',
|
||||||
'link_before' => '<span>',
|
'link_before' => '<span>',
|
||||||
'link_after' => '</span>',
|
'link_after' => '</span>',
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'twentysixteen' ) . ' </span>%',
|
'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'twentysixteen' ) . ' </span>%',
|
||||||
'separator' => '<span class="screen-reader-text">, </span>',
|
'separator' => '<span class="screen-reader-text">, </span>',
|
||||||
)
|
)
|
||||||
|
|
|
@ -37,6 +37,7 @@
|
||||||
'after' => '</div>',
|
'after' => '</div>',
|
||||||
'link_before' => '<span>',
|
'link_before' => '<span>',
|
||||||
'link_after' => '</span>',
|
'link_after' => '</span>',
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'twentysixteen' ) . ' </span>%',
|
'pagelink' => '<span class="screen-reader-text">' . __( 'Page', 'twentysixteen' ) . ' </span>%',
|
||||||
'separator' => '<span class="screen-reader-text">, </span>',
|
'separator' => '<span class="screen-reader-text">, </span>',
|
||||||
)
|
)
|
||||||
|
|
|
@ -57,7 +57,12 @@ if ( post_password_required() ) {
|
||||||
if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) :
|
if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) :
|
||||||
?>
|
?>
|
||||||
<nav class="navigation comment-navigation">
|
<nav class="navigation comment-navigation">
|
||||||
<h1 class="screen-reader-text section-heading"><?php _e( 'Comment navigation', 'twentythirteen' ); ?></h1>
|
<h1 class="screen-reader-text section-heading">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Comment navigation', 'twentythirteen' );
|
||||||
|
?>
|
||||||
|
</h1>
|
||||||
<div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'twentythirteen' ) ); ?></div>
|
<div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'twentythirteen' ) ); ?></div>
|
||||||
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'twentythirteen' ) ); ?></div>
|
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'twentythirteen' ) ); ?></div>
|
||||||
</nav><!-- .comment-navigation -->
|
</nav><!-- .comment-navigation -->
|
||||||
|
|
|
@ -474,7 +474,12 @@ if ( ! function_exists( 'twentythirteen_paging_nav' ) ) :
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<nav class="navigation paging-navigation">
|
<nav class="navigation paging-navigation">
|
||||||
<h1 class="screen-reader-text"><?php _e( 'Posts navigation', 'twentythirteen' ); ?></h1>
|
<h1 class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Posts navigation', 'twentythirteen' );
|
||||||
|
?>
|
||||||
|
</h1>
|
||||||
<div class="nav-links">
|
<div class="nav-links">
|
||||||
|
|
||||||
<?php if ( get_next_posts_link() ) : ?>
|
<?php if ( get_next_posts_link() ) : ?>
|
||||||
|
@ -511,7 +516,12 @@ if ( ! function_exists( 'twentythirteen_post_nav' ) ) :
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<nav class="navigation post-navigation">
|
<nav class="navigation post-navigation">
|
||||||
<h1 class="screen-reader-text"><?php _e( 'Post navigation', 'twentythirteen' ); ?></h1>
|
<h1 class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Post navigation', 'twentythirteen' );
|
||||||
|
?>
|
||||||
|
</h1>
|
||||||
<div class="nav-links">
|
<div class="nav-links">
|
||||||
|
|
||||||
<?php previous_post_link( '%link', _x( '<span class="meta-nav">←</span> %title', 'Previous post link', 'twentythirteen' ) ); ?>
|
<?php previous_post_link( '%link', _x( '<span class="meta-nav">←</span> %title', 'Previous post link', 'twentythirteen' ) ); ?>
|
||||||
|
|
|
@ -42,7 +42,12 @@
|
||||||
<div id="navbar" class="navbar">
|
<div id="navbar" class="navbar">
|
||||||
<nav id="site-navigation" class="navigation main-navigation">
|
<nav id="site-navigation" class="navigation main-navigation">
|
||||||
<button class="menu-toggle"><?php _e( 'Menu', 'twentythirteen' ); ?></button>
|
<button class="menu-toggle"><?php _e( 'Menu', 'twentythirteen' ); ?></button>
|
||||||
<a class="screen-reader-text skip-link" href="#content"><?php _e( 'Skip to content', 'twentythirteen' ); ?></a>
|
<a class="screen-reader-text skip-link" href="#content">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Skip to content', 'twentythirteen' );
|
||||||
|
?>
|
||||||
|
</a>
|
||||||
<?php
|
<?php
|
||||||
wp_nav_menu(
|
wp_nav_menu(
|
||||||
array(
|
array(
|
||||||
|
|
|
@ -57,6 +57,7 @@ if ( ! class_exists( 'TwentyTwenty_Walker_Comment' ) ) {
|
||||||
printf(
|
printf(
|
||||||
'<span class="fn">%1$s</span><span class="screen-reader-text says">%2$s</span>',
|
'<span class="fn">%1$s</span><span class="screen-reader-text says">%2$s</span>',
|
||||||
esc_html( $comment_author ),
|
esc_html( $comment_author ),
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
__( 'says:', 'twentytwenty' )
|
__( 'says:', 'twentytwenty' )
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -112,7 +112,10 @@ if ( ! class_exists( 'TwentyTwenty_Walker_Page' ) ) {
|
||||||
$toggle_duration = twentytwenty_toggle_duration();
|
$toggle_duration = twentytwenty_toggle_duration();
|
||||||
|
|
||||||
// Add the sub menu toggle.
|
// Add the sub menu toggle.
|
||||||
$args['list_item_after'] .= '<button class="toggle sub-menu-toggle fill-children-current-color" data-toggle-target="' . $toggle_target_string . '" data-toggle-type="slidetoggle" data-toggle-duration="' . absint( $toggle_duration ) . '" aria-expanded="false"><span class="screen-reader-text">' . __( 'Show sub menu', 'twentytwenty' ) . '</span>' . twentytwenty_get_theme_svg( 'chevron-down' ) . '</button>';
|
$args['list_item_after'] .= '<button class="toggle sub-menu-toggle fill-children-current-color" data-toggle-target="' . $toggle_target_string . '" data-toggle-type="slidetoggle" data-toggle-duration="' . absint( $toggle_duration ) . '" aria-expanded="false"><span class="screen-reader-text">' .
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
__( 'Show sub menu', 'twentytwenty' ) .
|
||||||
|
'</span>' . twentytwenty_get_theme_svg( 'chevron-down' ) . '</button>';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -359,7 +359,10 @@ if ( ! function_exists( 'wp_body_open' ) ) {
|
||||||
* @since Twenty Twenty 1.0
|
* @since Twenty Twenty 1.0
|
||||||
*/
|
*/
|
||||||
function twentytwenty_skip_link() {
|
function twentytwenty_skip_link() {
|
||||||
echo '<a class="skip-link screen-reader-text" href="#site-content">' . __( 'Skip to the content', 'twentytwenty' ) . '</a>';
|
echo '<a class="skip-link screen-reader-text" href="#site-content">' .
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
__( 'Skip to the content', 'twentytwenty' ) .
|
||||||
|
'</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
add_action( 'wp_body_open', 'twentytwenty_skip_link', 5 );
|
add_action( 'wp_body_open', 'twentytwenty_skip_link', 5 );
|
||||||
|
|
|
@ -367,7 +367,12 @@ function twentytwenty_get_post_meta( $post_id = null, $location = 'single-top' )
|
||||||
?>
|
?>
|
||||||
<li class="post-author meta-wrapper">
|
<li class="post-author meta-wrapper">
|
||||||
<span class="meta-icon">
|
<span class="meta-icon">
|
||||||
<span class="screen-reader-text"><?php _e( 'Post author', 'twentytwenty' ); ?></span>
|
<span class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Post author', 'twentytwenty' );
|
||||||
|
?>
|
||||||
|
</span>
|
||||||
<?php twentytwenty_the_theme_svg( 'user' ); ?>
|
<?php twentytwenty_the_theme_svg( 'user' ); ?>
|
||||||
</span>
|
</span>
|
||||||
<span class="meta-text">
|
<span class="meta-text">
|
||||||
|
@ -391,7 +396,12 @@ function twentytwenty_get_post_meta( $post_id = null, $location = 'single-top' )
|
||||||
?>
|
?>
|
||||||
<li class="post-date meta-wrapper">
|
<li class="post-date meta-wrapper">
|
||||||
<span class="meta-icon">
|
<span class="meta-icon">
|
||||||
<span class="screen-reader-text"><?php _e( 'Post date', 'twentytwenty' ); ?></span>
|
<span class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Post date', 'twentytwenty' );
|
||||||
|
?>
|
||||||
|
</span>
|
||||||
<?php twentytwenty_the_theme_svg( 'calendar' ); ?>
|
<?php twentytwenty_the_theme_svg( 'calendar' ); ?>
|
||||||
</span>
|
</span>
|
||||||
<span class="meta-text">
|
<span class="meta-text">
|
||||||
|
@ -409,7 +419,12 @@ function twentytwenty_get_post_meta( $post_id = null, $location = 'single-top' )
|
||||||
?>
|
?>
|
||||||
<li class="post-categories meta-wrapper">
|
<li class="post-categories meta-wrapper">
|
||||||
<span class="meta-icon">
|
<span class="meta-icon">
|
||||||
<span class="screen-reader-text"><?php _e( 'Categories', 'twentytwenty' ); ?></span>
|
<span class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Categories', 'twentytwenty' );
|
||||||
|
?>
|
||||||
|
</span>
|
||||||
<?php twentytwenty_the_theme_svg( 'folder' ); ?>
|
<?php twentytwenty_the_theme_svg( 'folder' ); ?>
|
||||||
</span>
|
</span>
|
||||||
<span class="meta-text">
|
<span class="meta-text">
|
||||||
|
@ -427,7 +442,12 @@ function twentytwenty_get_post_meta( $post_id = null, $location = 'single-top' )
|
||||||
?>
|
?>
|
||||||
<li class="post-tags meta-wrapper">
|
<li class="post-tags meta-wrapper">
|
||||||
<span class="meta-icon">
|
<span class="meta-icon">
|
||||||
<span class="screen-reader-text"><?php _e( 'Tags', 'twentytwenty' ); ?></span>
|
<span class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Tags', 'twentytwenty' );
|
||||||
|
?>
|
||||||
|
</span>
|
||||||
<?php twentytwenty_the_theme_svg( 'tag' ); ?>
|
<?php twentytwenty_the_theme_svg( 'tag' ); ?>
|
||||||
</span>
|
</span>
|
||||||
<span class="meta-text">
|
<span class="meta-text">
|
||||||
|
@ -579,7 +599,10 @@ function twentytwenty_add_sub_toggles_to_main_menu( $args, $item, $depth ) {
|
||||||
$toggle_duration = twentytwenty_toggle_duration();
|
$toggle_duration = twentytwenty_toggle_duration();
|
||||||
|
|
||||||
// Add the sub menu toggle.
|
// Add the sub menu toggle.
|
||||||
$args->after .= '<button class="toggle sub-menu-toggle fill-children-current-color" data-toggle-target="' . $toggle_target_string . '" data-toggle-type="slidetoggle" data-toggle-duration="' . absint( $toggle_duration ) . '" aria-expanded="false"><span class="screen-reader-text">' . __( 'Show sub menu', 'twentytwenty' ) . '</span>' . twentytwenty_get_theme_svg( 'chevron-down' ) . '</button>';
|
$args->after .= '<button class="toggle sub-menu-toggle fill-children-current-color" data-toggle-target="' . $toggle_target_string . '" data-toggle-type="slidetoggle" data-toggle-duration="' . absint( $toggle_duration ) . '" aria-expanded="false"><span class="screen-reader-text">' .
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
__( 'Show sub menu', 'twentytwenty' ) .
|
||||||
|
'</span>' . twentytwenty_get_theme_svg( 'chevron-down' ) . '</button>';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,12 @@ if ( empty( $twentytwenty_aria_label ) && ! empty( $args['label'] ) ) {
|
||||||
?>
|
?>
|
||||||
<form role="search" <?php echo $twentytwenty_aria_label; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped above. ?> method="get" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>">
|
<form role="search" <?php echo $twentytwenty_aria_label; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped above. ?> method="get" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>">
|
||||||
<label for="<?php echo esc_attr( $twentytwenty_unique_id ); ?>">
|
<label for="<?php echo esc_attr( $twentytwenty_unique_id ); ?>">
|
||||||
<span class="screen-reader-text"><?php _e( 'Search for:', 'twentytwenty' ); // phpcs:ignore: WordPress.Security.EscapeOutput.UnsafePrintingFunction -- core trusts translations ?></span>
|
<span class="screen-reader-text">
|
||||||
|
<?php
|
||||||
|
/* translators: Hidden accessibility text. */
|
||||||
|
_e( 'Search for:', 'twentytwenty' ); // phpcs:ignore: WordPress.Security.EscapeOutput.UnsafePrintingFunction -- core trusts translations
|
||||||
|
?>
|
||||||
|
</span>
|
||||||
<input type="search" id="<?php echo esc_attr( $twentytwenty_unique_id ); ?>" class="search-field" placeholder="<?php echo esc_attr_x( 'Search …', 'placeholder', 'twentytwenty' ); ?>" value="<?php echo get_search_query(); ?>" name="s" />
|
<input type="search" id="<?php echo esc_attr( $twentytwenty_unique_id ); ?>" class="search-field" placeholder="<?php echo esc_attr_x( 'Search …', 'placeholder', 'twentytwenty' ); ?>" value="<?php echo get_search_query(); ?>" name="s" />
|
||||||
</label>
|
</label>
|
||||||
<input type="submit" class="search-submit" value="<?php echo esc_attr_x( 'Search', 'submit button', 'twentytwenty' ); ?>" />
|
<input type="submit" class="search-submit" value="<?php echo esc_attr_x( 'Search', 'submit button', 'twentytwenty' ); ?>" />
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue