bulk-edit.php
7 years ago
col-sidebars.php
7 years ago
import.php
7 years ago
metabox.php
5 years ago
quick-edit.php
9 years ago
widgets-delete.php
8 years ago
widgets-editor.php
8 years ago
widgets-export.php
8 years ago
widgets-location.php
7 years ago
widgets.php
7 years ago
quick-edit.php
43 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Form displayed in the Quick Edit box of the post list. |
| 4 | * |
| 5 | * Uses: |
| 6 | * $selected |
| 7 | */ |
| 8 | |
| 9 | global $wp_registered_sidebars; |
| 10 | $available = CustomSidebars::sort_sidebars_by_name( $wp_registered_sidebars ); |
| 11 | |
| 12 | $sidebars = CustomSidebars::get_options( 'modifiable' ); |
| 13 | |
| 14 | ?> |
| 15 | <fieldset class="inline-edit-col-left cs-quickedit"> |
| 16 | <div class="inline-edit-col"> |
| 17 | <?php |
| 18 | |
| 19 | |
| 20 | foreach ( $sidebars as $s ) { |
| 21 | $sb_name = $available[ $s ]['name']; |
| 22 | ?> |
| 23 | <div class="inline-edit-group"> |
| 24 | <label> |
| 25 | <span class="title"><?php echo esc_html( $sb_name ); ?></span> |
| 26 | <select name="cs_replacement_<?php echo esc_attr( $s ); ?>" |
| 27 | class="cs-replacement-field <?php echo esc_attr( $s ); ?>"> |
| 28 | <option value=""></option> |
| 29 | <?php foreach ( $available as $a ) : ?> |
| 30 | <option value="<?php echo esc_attr( $a['id'] ); ?>" <?php selected( $selected[ $s ], $a['id'] ); ?>> |
| 31 | <?php echo esc_html( $a['name'] ); ?> |
| 32 | </option> |
| 33 | <?php endforeach; ?> |
| 34 | </select> |
| 35 | </label> |
| 36 | </div> |
| 37 | <?php |
| 38 | } |
| 39 | |
| 40 | ?> |
| 41 | </div> |
| 42 | </fieldset> |
| 43 |