diff --git a/src/wp-admin/js/image-edit.js b/src/wp-admin/js/image-edit.js
index 7bf2928..44b7751 100644
a
|
b
|
var imageEdit = window.imageEdit = { |
67 | 67 | return false; |
68 | 68 | }, |
69 | 69 | |
| 70 | toggleHelpImg : function(el) { |
| 71 | $( el ).closest('span').siblings( '.imgedit-help' ).slideToggle( 'fast' ); |
| 72 | return false; |
| 73 | }, |
| 74 | |
70 | 75 | getTarget : function(postid) { |
71 | 76 | return $('input[name="imgedit-target-' + postid + '"]:checked', '#imgedit-save-target-' + postid).val() || 'full'; |
72 | 77 | }, |
diff --git a/src/wp-includes/media-template.php b/src/wp-includes/media-template.php
index 1c7749a..bcc70c0 100644
a
|
b
|
function wp_print_media_templates() { |
362 | 362 | </label> |
363 | 363 | <# var maybeReadOnly = data.can.save || data.allowLocalEdits ? '' : 'readonly'; #> |
364 | 364 | <label class="setting" data-setting="title"> |
365 | | <span class="name"><?php _e('Title'); ?></span> |
| 365 | <span class="name"><?php _e('Title'); ?><a href="#" class="dashicons dashicons-editor-help imgedit-help-toggle" onclick="imageEdit.toggleHelpImg(this);return false;"></a></span> |
| 366 | <span class="imgedit-help">Mate, this is a title.</span> |
366 | 367 | <input type="text" value="{{ data.title }}" {{ maybeReadOnly }} /> |
367 | 368 | </label> |
368 | 369 | <# if ( 'audio' === data.type ) { #> |
… |
… |
function wp_print_media_templates() { |
377 | 378 | <?php endforeach; ?> |
378 | 379 | <# } #> |
379 | 380 | <label class="setting" data-setting="caption"> |
380 | | <span class="name"><?php _e( 'Caption' ); ?></span> |
| 381 | <span class="name"><?php _e( 'Caption' ); ?><a href="#" class="dashicons dashicons-editor-help imgedit-help-toggle" onclick="imageEdit.toggleHelpImg(this);return false;"></a></span> |
| 382 | <span class="imgedit-help">Mate, this is a caption.</span> |
381 | 383 | <textarea {{ maybeReadOnly }}>{{ data.caption }}</textarea> |
382 | 384 | </label> |
383 | 385 | <# if ( 'image' === data.type ) { #> |
384 | 386 | <label class="setting" data-setting="alt"> |
385 | | <span class="name"><?php _e( 'Alt Text' ); ?></span> |
| 387 | <span class="name"><?php _e( 'Alt Text' ); ?><a href="#" class="dashicons dashicons-editor-help imgedit-help-toggle" onclick="imageEdit.toggleHelpImg(this);return false;"></a></span> |
| 388 | <span class="imgedit-help">Mate, this is the Alt Text.</span> |
386 | 389 | <input type="text" value="{{ data.alt }}" {{ maybeReadOnly }} /> |
387 | 390 | </label> |
388 | 391 | <# } #> |
389 | 392 | <label class="setting" data-setting="description"> |
390 | | <span class="name"><?php _e('Description'); ?></span> |
| 393 | <span class="name"><?php _e('Description'); ?><a href="#" class="dashicons dashicons-editor-help imgedit-help-toggle" onclick="imageEdit.toggleHelpImg(this);return false;"></a></span> |
| 394 | <span class="imgedit-help">Mate, this is the Description.</span> |
391 | 395 | <textarea {{ maybeReadOnly }}>{{ data.description }}</textarea> |
392 | 396 | </label> |
393 | 397 | <label class="setting"> |