notices
9 years ago
ad-display-metabox.php
8 years ago
ad-group-edit.php
9 years ago
ad-group-list-ads.php
9 years ago
ad-group-list-form-row.php
9 years ago
ad-group-list-header.php
10 years ago
ad-group-list-row.php
10 years ago
ad-group.php
9 years ago
ad-info-after-textarea.php
9 years ago
ad-info-bottom.php
8 years ago
ad-info-top.php
8 years ago
ad-info.php
10 years ago
ad-list-details-column.php
10 years ago
ad-list-filters.php
9 years ago
ad-list-no-ads.php
8 years ago
ad-list-timing-column.php
8 years ago
ad-main-metabox.php
9 years ago
ad-output-metabox.php
9 years ago
ad-parameters-metabox.php
9 years ago
ad-parameters-size.php
9 years ago
ad-submitbox-meta.php
9 years ago
ad-visitor-metabox.php
8 years ago
checks.php
8 years ago
feedback-disable.php
8 years ago
index.php
12 years ago
overview-addons-line.php
8 years ago
overview-widget.php
8 years ago
overview.php
8 years ago
pitch-bundle.php
8 years ago
pitch-pro-tab.php
8 years ago
pitch-tracking.php
8 years ago
placement-injection-top.php
8 years ago
placements-ad-label-position.php
9 years ago
placements-ad-label.php
9 years ago
placements-content-index.php
9 years ago
placements-item.php
9 years ago
placements.php
8 years ago
post-ad-settings-metabox.php
9 years ago
setting-license.php
8 years ago
setting-target.php
8 years ago
settings-disable-ads.php
10 years ago
settings.php
8 years ago
support.php
8 years ago
ad-group-edit.php
70 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Create and edit ad group form |
| 4 | * |
| 5 | * @package WordPress |
| 6 | * @subpackage Administration |
| 7 | */ |
| 8 | // don't load directly |
| 9 | if ( ! defined( 'ABSPATH' ) ) { |
| 10 | die('-1'); } |
| 11 | |
| 12 | if ( ! is_int( $group_id ) ) { |
| 13 | ?> |
| 14 | <div id="message" class="updated"><p><strong><?php _e( 'You did not select an item for editing.', 'advanced-ads' ); ?></strong></p></div> |
| 15 | <?php |
| 16 | return; |
| 17 | } |
| 18 | |
| 19 | do_action( "{$taxonomy}_pre_edit_form", $tag, $taxonomy ); |
| 20 | ?> |
| 21 | |
| 22 | <div class="wrap"> |
| 23 | <h1><?php echo $tax->labels->edit_item; ?></h1> |
| 24 | <div id="ajax-response"></div> |
| 25 | <form name="editgroup" id="editgroup" method="post" action="<?php echo Advanced_Ads_Groups_List::group_page_url(); ?>" class="validate"<?php do_action( $taxonomy . '_term_edit_form_tag' ); ?>> |
| 26 | <input type="hidden" name="action" value="editedgroup" /> |
| 27 | <input type="hidden" name="group_id" value="<?php echo $group_id; ?>" /> |
| 28 | <input type="hidden" name="taxonomy" value="<?php echo esc_attr( $taxonomy ) ?>" /> |
| 29 | <?php wp_original_referer_field( true, 'previous' ); |
| 30 | wp_nonce_field( 'update-group_' . $group_id ); ?> |
| 31 | <table class="form-table"> |
| 32 | <tr class="form-field form-required"> |
| 33 | <th scope="row" valign="top"><label for="name"><?php _ex( 'Name', 'Taxonomy Name', 'advanced-ads' ); ?></label></th> |
| 34 | <td><input name="name" id="name" type="text" value="<?php if ( isset($tag->name) ) { echo esc_attr( $tag->name ); } ?>" size="40" aria-required="true" /></td> |
| 35 | </tr> |
| 36 | <?php if ( ! global_terms_enabled() ) { ?> |
| 37 | <tr class="form-field"> |
| 38 | <th scope="row" valign="top"><label for="slug"><?php _ex( 'Slug', 'Taxonomy Slug', 'advanced-ads' ); ?></label></th> |
| 39 | <td><input name="slug" id="slug" type="text" value="<?php if ( isset($tag->slug) ) { echo esc_attr( apply_filters( 'editable_slug', $tag->slug ) ); } ?>" size="40" /> |
| 40 | <p class="description"><?php _e( 'An id-like string with only letters in lower case, numbers, and hyphens.', 'advanced-ads' ); ?></p></td> |
| 41 | </tr> |
| 42 | <?php } |
| 43 | $text = (isset($tag->description)) ? $tag->description : ''; ?> |
| 44 | <tr class="form-field"> |
| 45 | <th scope="row" valign="top"><label for="description"><?php _ex( 'Description', 'Taxonomy Description', 'advanced-ads' ); ?></label></th> |
| 46 | <td><textarea name="description" id="description" rows="5" cols="50" class="large-text"><?php echo $text; // textarea_escaped ?></textarea></td> |
| 47 | </tr> |
| 48 | <?php |
| 49 | |
| 50 | do_action( $taxonomy . '_edit_form_fields', $tag, $taxonomy ); |
| 51 | ?> |
| 52 | </table> |
| 53 | <?php |
| 54 | do_action( $taxonomy . '_edit_form', $tag, $taxonomy ); |
| 55 | |
| 56 | if ( $group_id == 0 ){ |
| 57 | submit_button( __( 'Create new Ad Group', 'advanced-ads' ) ); |
| 58 | } else { |
| 59 | submit_button( __( 'Update', 'advanced-ads' ) ); |
| 60 | } |
| 61 | ?> |
| 62 | </form> |
| 63 | </div> |
| 64 | <script type="text/javascript"> |
| 65 | try { |
| 66 | document.forms.edittag.name.focus(); |
| 67 | } catch (e) { |
| 68 | } |
| 69 | </script> |
| 70 |