| 1 |
<?php |
| 2 |
$post_status = ( isset( $_GET['post_status'] ) ) ? $_GET['post_status'] : ''; |
| 3 |
|
| 4 |
$_options_statuses = [ |
| 5 |
'any' => __( 'Doc Status', 'betterdocs' ), |
| 6 |
'publish' => __( 'Publish', 'betterdocs' ), |
| 7 |
'pending' => __( 'Pending', 'betterdocs' ), |
| 8 |
'draft' => __( 'Draft', 'betterdocs' ), |
| 9 |
'auto-draft' => __( 'Auto Draft', 'betterdocs' ), |
| 10 |
'future' => __( 'Future', 'betterdocs' ), |
| 11 |
'private' => __( 'Private', 'betterdocs' ), |
| 12 |
'inherit' => __( 'Inherit', 'betterdocs' ) |
| 13 |
]; |
| 14 |
|
| 15 |
?> |
| 16 |
<select |
| 17 |
id="dashboard-select-status" |
| 18 |
class="dashboard-search-field dashboard-select-status" |
| 19 |
name="post_status"> |
| 20 |
<?php |
| 21 |
foreach ( $_options_statuses as $option_value => $option_label ) { |
| 22 |
echo betterdocs()->template_helper->option_kses( $option_value, $option_label, $post_status ); |
| 23 |
} |
| 24 |
?> |
| 25 |
</select> |
| 26 |
|