faqs
3 months ago
arrow.php
2 months ago
articles.php
3 months ago
create-ticket.php
3 months ago
error.php
3 months ago
faqs.php
3 months ago
getting-started.php
3 months ago
latest-tutorials.php
3 months ago
need-help-paid.php
3 months ago
need-help.php
3 months ago
page.php
3 months ago
searchbox.php
3 months ago
videos.php
3 months ago
create-ticket.php
97 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Create ticket modal. |
| 4 | * |
| 5 | * @package AdvancedAds |
| 6 | * @author Advanced Ads <info@wpadvancedads.com> |
| 7 | */ |
| 8 | |
| 9 | ?> |
| 10 | <div class="advads-form"> |
| 11 | <div class="advads-field"> |
| 12 | <div class="advads-field-label"> |
| 13 | <label for="email"><?php esc_html_e( 'Email address', 'advanced-ads' ); ?>*</label> |
| 14 | </div> |
| 15 | <div class="advads-field-input"> |
| 16 | <input |
| 17 | type="email" |
| 18 | name="email" |
| 19 | id="email" |
| 20 | class="regular-text" |
| 21 | required |
| 22 | pattern="^[a-z0-9._%+\-]+@[a-z0-9.\-]+\.[a-z]{2,63}$" |
| 23 | placeholder="<?php esc_attr_e( 'Enter your email address', 'advanced-ads' ); ?>" |
| 24 | value="<?php echo esc_attr( get_current_user_id() ? wp_get_current_user()->user_email : '' ); ?>" |
| 25 | > |
| 26 | </div> |
| 27 | </div> |
| 28 | |
| 29 | <div class="advads-field"> |
| 30 | <div class="advads-field-label"> |
| 31 | <label for="subject"><?php esc_html_e( 'Subject', 'advanced-ads' ); ?>*</label> |
| 32 | </div> |
| 33 | <div class="advads-field-input"> |
| 34 | <input type="text" name="subject" id="subject" class="regular-text" required placeholder="<?php esc_attr_e( 'Enter the subject of your issue', 'advanced-ads' ); ?>"> |
| 35 | </div> |
| 36 | </div> |
| 37 | |
| 38 | <div class="advads-field"> |
| 39 | <div class="advads-field-label"> |
| 40 | <label for="message"><?php esc_html_e( 'Your Message', 'advanced-ads' ); ?>*</label> |
| 41 | </div> |
| 42 | <div class="advads-field-input"> |
| 43 | <textarea name="message" id="message" class="large-text" required placeholder="<?php esc_attr_e( 'Enter the message of your issue', 'advanced-ads' ); ?>" rows="5"></textarea> |
| 44 | </div> |
| 45 | </div> |
| 46 | |
| 47 | <div class="advads-field"> |
| 48 | <div class="advads-field-label"> |
| 49 | <label for="attachments"><?php esc_html_e( 'Attachments', 'advanced-ads' ); ?></label> |
| 50 | </div> |
| 51 | <div id="attachments-container" class="advads-field-input advads-file-uploader"> |
| 52 | <div id="attachments-drop-zone" class="dropzone"> |
| 53 | |
| 54 | <svg xmlns="http://www.w3.org/2000/svg" class="size-8 mb-4" viewBox="0 0 30 30" fill="none"> |
| 55 | <path d="M26.25 18.75V23.75C26.25 24.413 25.9866 25.0489 25.5178 25.5178C25.0489 25.9866 24.413 26.25 23.75 26.25H6.25C5.58696 26.25 4.95107 25.9866 4.48223 25.5178C4.01339 25.0489 3.75 24.413 3.75 23.75V18.75M21.25 10L15 3.75M15 3.75L8.75 10M15 3.75V18.75" stroke="#1E1E1E" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> |
| 56 | </svg> |
| 57 | |
| 58 | <p class="text-sm mt-0 mb-2"> |
| 59 | <?php |
| 60 | printf( |
| 61 | /* translators: 1: strong tag with class text-blue-500, 2: closing strong tag */ |
| 62 | esc_html__( 'Drag & drop or %1$sclick to upload%2$s', 'advanced-ads' ), |
| 63 | '<span class="text-blue-500">', |
| 64 | '</span>' |
| 65 | ); |
| 66 | ?> |
| 67 | </p> |
| 68 | |
| 69 | <input id="attachments" type="file" multiple data-max-files="5" data-max-file-size="5" data-allowed-ext="jpg,jpeg,png,gif,pdf,txt,docx,log" /> |
| 70 | </div> |
| 71 | </div> |
| 72 | </div> |
| 73 | |
| 74 | <div class="advads-field"> |
| 75 | <label for="terms" class="flex items-start gap-2"> |
| 76 | <input type="checkbox" name="terms" id="terms" class="mt-0.5" required> |
| 77 | <span> |
| 78 | <?php |
| 79 | echo wp_kses_post( |
| 80 | sprintf( |
| 81 | /* translators: 1: opening a tag, 2: opening a tag, 3: closing a tag */ |
| 82 | __( 'By submitting this form, I accept the %1$sTerms%3$s and %2$sPrivacy Policy%3$s and consent that my personal information in this form will be stored and processed for the purposes of providing support.', 'advanced-ads' ), |
| 83 | '<a href="https://wpadvancedads.com/terms/" target="_blank">', |
| 84 | '<a href="https://wpadvancedads.com/privacy-policy/" target="_blank">', |
| 85 | '</a>' |
| 86 | ) |
| 87 | ); |
| 88 | ?> |
| 89 | </span> |
| 90 | </label> |
| 91 | </div> |
| 92 | |
| 93 | <input type="hidden" name="domain" value="<?php echo esc_attr( get_site_url() ); ?>"> |
| 94 | <input type="hidden" name="php_version" value="<?php echo esc_attr( phpversion() ); ?>"> |
| 95 | <input type="hidden" name="wp_version" value="<?php echo esc_attr( get_bloginfo( 'version' ) ); ?>"> |
| 96 | </div> |
| 97 |