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
setting-license.php
1 year ago
support-callout.php
1 year ago
placement-types.php
30 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * Render all placement types for forms. |
| 5 | * |
| 6 | * @var array $placement_types |
| 7 | */ |
| 8 | ?> |
| 9 | <?php if ( is_array( $placement_types ) ) : ?> |
| 10 | <div class="advads-form-types advads-buttonset"> |
| 11 | <?php foreach ( $placement_types as $key => $placement_type ) : ?> |
| 12 | <div class="advads-form-type"> |
| 13 | <label for="advads-form-type-<?php echo esc_attr( $key ); ?>"> |
| 14 | <?php if ( isset( $placement_type['image'] ) ) : ?> |
| 15 | <img src="<?php echo esc_attr( $placement_type['image'] ); ?>" alt="<?php echo esc_attr( $placement_type['title'] ); ?>"/> |
| 16 | <?php else : ?> |
| 17 | <strong><?php echo esc_html( $placement_type['title'] ); ?></strong><br/> |
| 18 | <p class="description"><?php echo esc_html( $placement_type['description'] ); ?></p> |
| 19 | <?php endif; ?> |
| 20 | </label> |
| 21 | <input type="radio" id="advads-form-type-<?php echo esc_attr( $key ); ?>" name="advads[placement][type]" value="<?php echo esc_attr( $key ); ?>"/> |
| 22 | <div class="advads-form-description"> |
| 23 | <h4><?php echo esc_html( $placement_type['title'] ); ?></h4> |
| 24 | <?php echo esc_html( $placement_type['description'] ); ?> |
| 25 | </div> |
| 26 | </div> |
| 27 | <?php endforeach; ?> |
| 28 | </div> |
| 29 | <?php endif; ?> |
| 30 |