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
ad-submitbox-meta.php
37 lines
| 1 | <?php |
| 2 | $TZ = Advanced_Ads_Admin::timezone_get_name( Advanced_Ads_Admin::get_wp_timezone() ); |
| 3 | ?><div id="advanced-ads-expiry-date" class="misc-pub-section curtime misc-pub-curtime"> |
| 4 | <label onclick="advads_toggle_box('#advanced-ads-expiry-date-enable', '#advanced-ads-expiry-date .inner')"> |
| 5 | <input type="checkbox" id="advanced-ads-expiry-date-enable" name="advanced_ad[expiry_date][enabled]" value="1" <?php checked( $enabled, 1 ); ?>/><?php _e( 'Set expiry date', 'advanced-ads' ); ?> |
| 6 | </label> |
| 7 | <br/> |
| 8 | |
| 9 | <div class="inner" <?php |
| 10 | if ( ! $enabled ) : |
| 11 | ?> style="display:none;"<?php endif; ?>><?php |
| 12 | $month = '<label><span class="screen-reader-text">' . __( 'Month', 'advanced-ads' ) . '</span><select id="advads-exp-mm" name="advanced_ad[expiry_date][month]"' . ">\n"; |
| 13 | for ( $i = 1; $i < 13; $i = $i + 1 ) { |
| 14 | $monthnum = zeroise( $i, 2 ); |
| 15 | $month .= "\t\t\t" . '<option value="' . $monthnum . '" ' . selected( $curr_month, $monthnum, false ) . '>'; |
| 16 | $month .= sprintf( |
| 17 | _x( '%1$s-%2$s', '1: month number (01, 02, etc.), 2: month abbreviation', 'advanced-ads' ), |
| 18 | $monthnum, $wp_locale->get_month_abbrev( $wp_locale->get_month( $i ) ) |
| 19 | ) . "</option>\n"; |
| 20 | } |
| 21 | $month .= '</select></label>'; |
| 22 | |
| 23 | $day = '<label><span class="screen-reader-text">' . __( 'Day', 'advanced-ads' ) . '</span><input type="text" id="advads-exp-jj" name="advanced_ad[expiry_date][day]" value="' . $curr_day . '" size="2" maxlength="2" autocomplete="off" /></label>'; |
| 24 | $year = '<label><span class="screen-reader-text">' . __( 'Year', 'advanced-ads' ) . '</span><input type="text" id="advads-exp-aa" name="advanced_ad[expiry_date][year]" value="' . $curr_year . '" size="4" maxlength="4" autocomplete="off" /></label>'; |
| 25 | $hour = '<label><span class="screen-reader-text">' . __( 'Hour', 'advanced-ads' ) . '</span><input type="text" id="advads-exp-hh" name="advanced_ad[expiry_date][hour]" value="' . $curr_hour . '" size="2" maxlength="2" autocomplete="off" /></label>'; |
| 26 | $minute = '<label><span class="screen-reader-text">' . __( 'Minute', 'advanced-ads' ) . '</span><input type="text" id="advads-exp-mn" name="advanced_ad[expiry_date][minute]" value="' . $curr_minute . '" size="2" maxlength="2" autocomplete="off" /></label>'; |
| 27 | |
| 28 | ?> |
| 29 | <fieldset id="advads-exp-timestampdiv"> |
| 30 | <div class="timestamp-wrap"> |
| 31 | <?php printf( _x( '%1$s %2$s, %3$s @ %4$s %5$s', 'order of expiry date fields 1: month, 2: day, 3: year, 4: hour, 5: minute', 'advanced-ads' ), $month, $day, $year, $hour, $minute ); ?> |
| 32 | </div> |
| 33 | </fieldset> |
| 34 | (<?php echo $TZ; ?>) |
| 35 | </div> |
| 36 | </div> |
| 37 |