ad-label-position.php
1 year ago
ad-label.php
1 year ago
content-index.php
2 months ago
inline-css.php
1 year ago
item.php
1 year ago
name.php
1 year ago
status.php
1 year ago
status.php
30 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Markup for the placement status select box. |
| 4 | * |
| 5 | * @package AdvancedAds |
| 6 | * @author Advanced Ads <info@wpadvancedads.com> |
| 7 | * @since 1.50.0 |
| 8 | * |
| 9 | * @var Placement $placement Placement instance. |
| 10 | */ |
| 11 | |
| 12 | $statuses = [ |
| 13 | 'draft' => __( 'Draft', 'advanced-ads' ), |
| 14 | 'publish' => __( 'Publish', 'advanced-ads' ), |
| 15 | ] |
| 16 | ?> |
| 17 | <div class="advads-placement-status-select-wrap"> |
| 18 | <select |
| 19 | id="advads-placements-modal-status-<?php echo esc_attr( $placement->get_id() ); ?>" |
| 20 | name="post_status" |
| 21 | class="advads-placement-status-select" |
| 22 | > |
| 23 | <?php foreach ( $statuses as $key => $status ) : // phpcs:ignore ?> |
| 24 | <option value="<?php echo esc_attr( $key ); ?>"<?php selected( $placement->get_status(), $key ); ?>> |
| 25 | <?php echo esc_html( $status ); ?> |
| 26 | </option> |
| 27 | <?php endforeach; ?> |
| 28 | </select> |
| 29 | </div> |
| 30 |