| 1 |
<?php |
| 2 |
/** |
| 3 |
* HTML for the editor shortcuts tooltip. |
| 4 |
* |
| 5 |
* @package Code_Snippets |
| 6 |
* @subpackage Views |
| 7 |
*/ |
| 8 |
|
| 9 |
namespace Code_Snippets; |
| 10 |
|
| 11 |
?> |
| 12 |
|
| 13 |
<div class="snippet-editor-help"> |
| 14 |
|
| 15 |
<div class="editor-help-tooltip cm-s-<?php |
| 16 |
echo esc_attr( Settings\get_setting( 'editor', 'theme' ) ); ?>"><?php |
| 17 |
echo esc_html_x( '?', 'help tooltip', 'code-snippets' ); ?></div> |
| 18 |
|
| 19 |
<div class="editor-help-text"> |
| 20 |
<table> |
| 21 |
<tr> |
| 22 |
<td><?php esc_html_e( 'Save changes', 'code-snippets' ); ?></td> |
| 23 |
<td><?php $this->render_keyboard_shortcut( 'Cmd', 'S' ); ?></td> |
| 24 |
</tr> |
| 25 |
<tr> |
| 26 |
<td><?php esc_html_e( 'Begin searching', 'code-snippets' ); ?></td> |
| 27 |
<td><?php $this->render_keyboard_shortcut( 'Cmd', 'F' ); ?></td> |
| 28 |
</tr> |
| 29 |
<tr> |
| 30 |
<td><?php esc_html_e( 'Find next', 'code-snippets' ); ?></td> |
| 31 |
<td><?php $this->render_keyboard_shortcut( 'Cmd', 'G' ); ?></td> |
| 32 |
</tr> |
| 33 |
<tr> |
| 34 |
<td><?php esc_html_e( 'Find previous', 'code-snippets' ); ?></td> |
| 35 |
<td><?php $this->render_keyboard_shortcut( array( 'Shift', 'Cmd' ), 'G' ); ?></td> |
| 36 |
</tr> |
| 37 |
<tr> |
| 38 |
<td><?php esc_html_e( 'Replace', 'code-snippets' ); ?></td> |
| 39 |
<td><?php $this->render_keyboard_shortcut( array( 'Shift', 'Cmd' ), 'F' ); ?></td> |
| 40 |
</tr> |
| 41 |
<tr> |
| 42 |
<td><?php esc_html_e( 'Replace all', 'code-snippets' ); ?></td> |
| 43 |
<td><?php $this->render_keyboard_shortcut( array( 'Shift', 'Cmd', 'Option' ), 'R' ); ?></td> |
| 44 |
</tr> |
| 45 |
<tr> |
| 46 |
<td><?php esc_html_e( 'Persistent search', 'code-snippets' ); ?></td> |
| 47 |
<td><?php $this->render_keyboard_shortcut( 'Alt', 'F' ); ?></td> |
| 48 |
</tr> |
| 49 |
</table> |
| 50 |
</div> |
| 51 |
</div> |
| 52 |
|