| 1 |
<?php |
| 2 |
/** |
| 3 |
* Add a filter to the Media Library view. |
| 4 |
* |
| 5 |
* @var array $filters |
| 6 |
* @var string $filter_current |
| 7 |
*/ |
| 8 |
|
| 9 |
?> |
| 10 |
<select name="isc_filter" id="isc_media_library_filter"> |
| 11 |
<option value=""><?php esc_html_e( 'All images', 'image-source-control-isc' ); ?></option> |
| 12 |
<?php foreach ( $filters as $filter ) : ?> |
| 13 |
<option value="<?php echo esc_attr( $filter['value'] ); ?>" <?php selected( $filter['value'], $filter_current ); ?>> |
| 14 |
<?php echo esc_html( $filter['label'] ); ?> |
| 15 |
</option> |
| 16 |
<?php endforeach; ?> |
| 17 |
</select> |