Changeset 45499 for trunk/src/wp-admin/includes/image-edit.php
- Timestamp:
- 06/07/2019 08:43:26 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/image-edit.php
r44785 r45499 65 65 <legend><?php _e( 'New dimensions:' ); ?></legend> 66 66 <div class="nowrap"> 67 <label ><span class="screen-reader-text"><?php _e( 'scale width' ); ?></span>67 <label for="imgedit-scale-width-<?php echo $post_id; ?>" class="screen-reader-text"><?php _e( 'scale width' ); ?></label> 68 68 <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; ?>" /> 69 </label> 70 <span class="imgedit-separator">×</span> 71 <label><span class="screen-reader-text"><?php _e( 'scale height' ); ?></span> 69 <span class="imgedit-separator" aria-hidden="true">×</span> 70 <label for="imgedit-scale-height-<?php echo $post_id; ?>" class="screen-reader-text"><?php _e( 'scale height' ); ?></label> 72 71 <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; ?>" /> 73 </label>74 72 <span class="imgedit-scale-warn" id="imgedit-scale-warn-<?php echo $post_id; ?>">!</span> 75 73 <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' ); ?>" /> 76 74 </div> 77 75 </fieldset> 78 76 … … 125 123 <legend><?php _e( 'Aspect ratio:' ); ?></legend> 126 124 <div class="nowrap"> 127 <label ><span class="screen-reader-text"><?php _e( 'crop ratio width' ); ?></span>125 <label for="imgedit-crop-width-<?php echo $post_id; ?>" class="screen-reader-text"><?php _e( 'crop ratio width' ); ?></label> 128 126 <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)" /> 129 </label> 130 <span class="imgedit-separator">:</span> 131 <label><span class="screen-reader-text"><?php _e( 'crop ratio height' ); ?></span> 127 <span class="imgedit-separator" aria-hidden="true">:</span> 128 <label for="imgedit-crop-height-<?php echo $post_id; ?>" class="screen-reader-text"><?php _e( 'crop ratio height' ); ?></label> 132 129 <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)" /> 133 </label>134 130 </div> 135 131 </fieldset> … … 138 134 <legend><?php _e( 'Selection:' ); ?></legend> 139 135 <div class="nowrap"> 140 <label ><span class="screen-reader-text"><?php _e( 'selection width' ); ?></span>136 <label for="imgedit-sel-width-<?php echo $post_id; ?>" class="screen-reader-text"><?php _e( 'selection width' ); ?></label> 141 137 <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)" /> 142 </label> 143 <span class="imgedit-separator">×</span> 144 <label><span class="screen-reader-text"><?php _e( 'selection height' ); ?></span> 138 <span class="imgedit-separator" aria-hidden="true">×</span> 139 <label for="imgedit-sel-height-<?php echo $post_id; ?>" class="screen-reader-text"><?php _e( 'selection height' ); ?></label> 145 140 <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)" /> 146 </label>147 141 </div> 148 142 </fieldset> … … 169 163 <div id="imgedit-save-target-<?php echo $post_id; ?>" class="imgedit-save-target"> 170 164 <fieldset> 171 <legend><strong><?php _e( 'Apply changes to:' ); ?></strong></legend> 172 173 <label class="imgedit-label"> 174 <input type="radio" name="imgedit-target-<?php echo $post_id; ?>" value="all" checked="checked" /> 175 <?php _e( 'All image sizes' ); ?></label> 176 177 <label class="imgedit-label"> 178 <input type="radio" name="imgedit-target-<?php echo $post_id; ?>" value="thumbnail" /> 179 <?php _e( 'Thumbnail' ); ?></label> 180 181 <label class="imgedit-label"> 182 <input type="radio" name="imgedit-target-<?php echo $post_id; ?>" value="nothumb" /> 183 <?php _e( 'All sizes except thumbnail' ); ?></label> 165 <legend><?php _e( 'Apply changes to:' ); ?></legend> 166 167 <span class="imgedit-label"> 168 <input type="radio" id="imgedit-target-all" name="imgedit-target-<?php echo $post_id; ?>" value="all" checked="checked" /> 169 <label for="imgedit-target-all"><?php _e( 'All image sizes' ); ?></label> 170 </span> 171 172 <span class="imgedit-label"> 173 <input type="radio" id="imgedit-target-thumbnail" name="imgedit-target-<?php echo $post_id; ?>" value="thumbnail" /> 174 <label for="imgedit-target-thumbnail"><?php _e( 'Thumbnail' ); ?></label> 175 </span> 176 177 <span class="imgedit-label"> 178 <input type="radio" id="imgedit-target-nothumb" name="imgedit-target-<?php echo $post_id; ?>" value="nothumb" /> 179 <label for="imgedit-target-nothumb"><?php _e( 'All sizes except thumbnail' ); ?></label> 180 </span> 184 181 </fieldset> 185 182 </div>
Note: See TracChangeset
for help on using the changeset viewer.