ad-list
5 months ago
conditions
5 months ago
notices
1 year ago
upgrades
1 year ago
ad-conditions-string-operators.php
3 months ago
checks.php
3 months ago
index.php
7 years ago
modal.php
3 months ago
overview-addons-line.php
5 months ago
overview-notice-row.php
1 year ago
overview-widget.php
1 year ago
placement-form.php
1 year ago
placement-injection-top.php
1 year ago
placement-types.php
3 years ago
placements-ad-label.php
1 year ago
placements-inline-css.php
1 year ago
placements-item.php
1 year ago
post-list-filter-dropdown.php
5 months ago
support-callout.php
1 year ago
ad-conditions-string-operators.php
25 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Render select field for matching-technique of string-based Display Conditions |
| 4 | * |
| 5 | * @package AdvancedAds |
| 6 | * @author Advanced Ads <info@wpadvancedads.com> |
| 7 | * |
| 8 | * @var string $name option name. |
| 9 | * @var string $operator value of the $operator option. |
| 10 | */ |
| 11 | |
| 12 | ?> |
| 13 | <select name="<?php echo esc_attr( $name ); ?>[operator]"> |
| 14 | <option value="contain" <?php selected( 'contain', $operator ); ?>><?php esc_attr_e( 'contains', 'advanced-ads' ); ?></option> |
| 15 | <option value="start" <?php selected( 'start', $operator ); ?>><?php esc_attr_e( 'starts with', 'advanced-ads' ); ?></option> |
| 16 | <option value="end" <?php selected( 'end', $operator ); ?>><?php esc_attr_e( 'ends with', 'advanced-ads' ); ?></option> |
| 17 | <option value="match" <?php selected( 'match', $operator ); ?>><?php esc_attr_e( 'matches', 'advanced-ads' ); ?></option> |
| 18 | <option value="regex" <?php selected( 'regex', $operator ); ?>><?php esc_attr_e( 'matches regex', 'advanced-ads' ); ?></option> |
| 19 | <option value="contain_not" <?php selected( 'contain_not', $operator ); ?>><?php esc_attr_e( 'does not contain', 'advanced-ads' ); ?></option> |
| 20 | <option value="start_not" <?php selected( 'start_not', $operator ); ?>><?php esc_attr_e( 'does not start with', 'advanced-ads' ); ?></option> |
| 21 | <option value="end_not" <?php selected( 'end_not', $operator ); ?>><?php esc_attr_e( 'does not end with', 'advanced-ads' ); ?></option> |
| 22 | <option value="match_not" <?php selected( 'match_not', $operator ); ?>><?php esc_attr_e( 'does not match', 'advanced-ads' ); ?></option> |
| 23 | <option value="regex_not" <?php selected( 'regex_not', $operator ); ?>><?php esc_attr_e( 'does not match regex', 'advanced-ads' ); ?></option> |
| 24 | </select> |
| 25 |