conditions
6 years ago
notices
6 years ago
ad-conditions-string-operators.php
7 years ago
ad-group-edit.php
7 years ago
ad-group-list-ads.php
7 years ago
ad-group-list-form-row.php
6 years ago
ad-group-list-header.php
7 years ago
ad-group-list-row.php
7 years ago
ad-group.php
6 years ago
ad-info-after-textarea.php
7 years ago
ad-info-bottom.php
6 years ago
ad-info-top.php
7 years ago
ad-info.php
7 years ago
ad-list-details-column.php
7 years ago
ad-list-filters.php
6 years ago
ad-list-no-ads.php
6 years ago
ad-list-shortcode-column.php
7 years ago
ad-list-timing-column.php
7 years ago
ad-main-metabox.php
6 years ago
ad-output-metabox.php
6 years ago
ad-parameters-metabox.php
6 years ago
ad-parameters-size.php
6 years ago
ad-submitbox-meta.php
7 years ago
checks.php
6 years ago
feedback-disable.php
6 years ago
gadsense-dashboard.php
6 years ago
index.php
7 years ago
overview-addons-line.php
7 years ago
overview-notice-row.php
6 years ago
overview-notices.php
6 years ago
overview-widget.php
6 years ago
overview.php
6 years ago
pitch-bundle.php
7 years ago
pitch-pro-tab.php
7 years ago
pitch-tracking.php
7 years ago
placement-form.php
6 years ago
placement-injection-top.php
6 years ago
placements-ad-label-position.php
7 years ago
placements-ad-label.php
7 years ago
placements-content-index.php
7 years ago
placements-item.php
6 years ago
placements.php
6 years ago
post-ad-settings-metabox.php
6 years ago
setting-disable-post-types.php
6 years ago
setting-license.php
6 years ago
setting-target.php
7 years ago
settings-disable-ads.php
6 years ago
settings.php
6 years ago
support-callout.php
6 years ago
support.php
7 years ago
placements-item.php
47 lines
| 1 | <select id="advads-placements-item-<?php echo $_placement_slug; ?>" name="advads[placements][<?php echo $_placement_slug; ?>][item]"> |
| 2 | <option value=""><?php _e( '--not selected--', 'advanced-ads' ); ?></option> |
| 3 | <?php if ( isset( $items['groups'] ) ) : ?> |
| 4 | <optgroup label="<?php _e( 'Ad Groups', 'advanced-ads' ); ?>"> |
| 5 | <?php foreach ( $items['groups'] as $_item_id => $_item_title ) : ?> |
| 6 | <option value="<?php echo $_item_id; ?>" |
| 7 | <?php |
| 8 | if ( isset( $_placement['item'] ) ) { |
| 9 | selected( $_item_id, $_placement['item'] ); } |
| 10 | ?> |
| 11 | ><?php echo $_item_title; ?></option> |
| 12 | <?php endforeach; ?> |
| 13 | </optgroup> |
| 14 | <?php endif; ?> |
| 15 | <?php if ( isset( $items['ads'] ) ) : ?> |
| 16 | <optgroup label="<?php _e( 'Ads', 'advanced-ads' ); ?>"> |
| 17 | <?php foreach ( $items['ads'] as $_item_id => $_item_title ) : ?> |
| 18 | <option value="<?php echo $_item_id; ?>" |
| 19 | <?php |
| 20 | if ( isset( $_placement['item'] ) ) { |
| 21 | selected( $_item_id, $_placement['item'] ); } |
| 22 | ?> |
| 23 | ><?php echo $_item_title; ?></option> |
| 24 | <?php endforeach; ?> |
| 25 | </optgroup> |
| 26 | <?php endif; ?> |
| 27 | </select> |
| 28 | <?php |
| 29 | // link to item |
| 30 | if ( isset( $_placement['item'] ) ) : |
| 31 | $currently_linked_item = explode( '_', $_placement['item'] ); |
| 32 | $link_to_item = false; |
| 33 | switch ( $currently_linked_item[0] ) : |
| 34 | case 'ad': |
| 35 | $link_to_item = get_edit_post_link( $currently_linked_item[1] ); |
| 36 | break; |
| 37 | case 'group': |
| 38 | $link_to_item = admin_url( 'admin.php?page=advanced-ads-groups&advads-last-edited-group=' . $currently_linked_item[1] ); |
| 39 | break; |
| 40 | endswitch; |
| 41 | if ( $link_to_item ) : |
| 42 | ?> |
| 43 | <a href="<?php echo $link_to_item; ?>"><span class="dashicons dashicons-external"></span></span></a> |
| 44 | <?php |
| 45 | endif; |
| 46 | endif; |
| 47 |