antispam
3 weeks ago
fullscreen
2 years ago
notifications
2 years ago
payment
11 months ago
revisions
1 week ago
themes
10 months ago
field-context-menu.php
2 years ago
help.php
3 years ago
templates-item.php
2 years ago
field-context-menu.php
129 lines
| 1 | <?php |
| 2 | /** |
| 3 | * WPForms Builder Field Context Menu (right click) Template. |
| 4 | * |
| 5 | * @since 1.8.6 |
| 6 | */ |
| 7 | |
| 8 | use WPForms\Admin\Education\Helpers; |
| 9 | |
| 10 | if ( ! defined( 'ABSPATH' ) ) { |
| 11 | exit; |
| 12 | } |
| 13 | |
| 14 | ?> |
| 15 | |
| 16 | <div class="wpforms-context-menu" id="wpforms-field-context-menu"> |
| 17 | <ul class="wpforms-context-menu-list"> |
| 18 | <li class="wpforms-context-menu-list-item" data-action="edit"> |
| 19 | <span class="wpforms-context-menu-list-item-icon"> |
| 20 | <i class="fa fa-pencil-square-o"></i> |
| 21 | </span> |
| 22 | |
| 23 | <span class="wpforms-context-menu-list-item-text"> |
| 24 | <?php esc_html_e( 'Edit', 'wpforms-lite' ); ?> |
| 25 | </span> |
| 26 | </li> |
| 27 | |
| 28 | <li class="wpforms-context-menu-list-item" data-action="duplicate"> |
| 29 | <span class="wpforms-context-menu-list-item-icon"> |
| 30 | <i class="fa fa-files-o"></i> |
| 31 | </span> |
| 32 | |
| 33 | <span class="wpforms-context-menu-list-item-text"> |
| 34 | <?php esc_html_e( 'Duplicate', 'wpforms-lite' ); ?> |
| 35 | </span> |
| 36 | </li> |
| 37 | |
| 38 | <li class="wpforms-context-menu-list-item" data-action="delete"> |
| 39 | <span class="wpforms-context-menu-list-item-icon"> |
| 40 | <i class="fa fa-trash-o"></i> |
| 41 | </span> |
| 42 | |
| 43 | <span class="wpforms-context-menu-list-item-text"> |
| 44 | <?php esc_html_e( 'Delete', 'wpforms-lite' ); ?> |
| 45 | </span> |
| 46 | </li> |
| 47 | |
| 48 | <li class="wpforms-context-menu-list-divider" data-visibility="required, label, field-size"></li> |
| 49 | |
| 50 | <li class="wpforms-context-menu-list-item wpforms-context-menu-list-item-selective" data-action="required"> |
| 51 | <span class="wpforms-context-menu-list-item-icon"> |
| 52 | <i class="fa fa-asterisk"></i> |
| 53 | </span> |
| 54 | |
| 55 | <span class="wpforms-context-menu-list-item-text" data-active-text="<?php esc_html_e( 'Mark as Optional', 'wpforms-lite' ); ?>"> |
| 56 | <?php esc_html_e( 'Mark as Required', 'wpforms-lite' ); ?> |
| 57 | </span> |
| 58 | </li> |
| 59 | |
| 60 | <li class="wpforms-context-menu-list-item wpforms-context-menu-list-item-selective" data-action="label"> |
| 61 | <span class="wpforms-context-menu-list-item-icon"> |
| 62 | <i class="fa fa-tag"></i> |
| 63 | </span> |
| 64 | |
| 65 | <span class="wpforms-context-menu-list-item-text" data-active-text="<?php esc_html_e( 'Show Label', 'wpforms-lite' ); ?>"> |
| 66 | <?php esc_html_e( 'Hide Label', 'wpforms-lite' ); ?> |
| 67 | </span> |
| 68 | </li> |
| 69 | |
| 70 | <li class="wpforms-context-menu-list-item wpforms-context-menu-list-item-has-child" data-action="field-size"> |
| 71 | <span class="wpforms-context-menu-list-item-icon"> |
| 72 | <i class="fa fa-arrows-h"></i> |
| 73 | </span> |
| 74 | |
| 75 | <span class="wpforms-context-menu-list-item-text"> |
| 76 | <?php esc_html_e( 'Field Size', 'wpforms-lite' ); ?> |
| 77 | </span> |
| 78 | |
| 79 | <ul class="wpforms-context-menu-list wpforms-context-menu-list-selective"> |
| 80 | <li class="wpforms-context-menu-list-item wpforms-context-menu-list-item-selective" data-action="field-size" data-value="small"> |
| 81 | <span class="wpforms-context-menu-list-item-icon"> |
| 82 | <i class="fa fa-check"></i> |
| 83 | </span> |
| 84 | |
| 85 | <span class="wpforms-context-menu-list-item-text"> |
| 86 | <?php esc_html_e( 'Small', 'wpforms-lite' ); ?> |
| 87 | </span> |
| 88 | </li> |
| 89 | |
| 90 | <li class="wpforms-context-menu-list-item wpforms-context-menu-list-item-selective" data-action="field-size" data-value="medium"> |
| 91 | <span class="wpforms-context-menu-list-item-icon"> |
| 92 | <i class="fa fa-check"></i> |
| 93 | </span> |
| 94 | |
| 95 | <span class="wpforms-context-menu-list-item-text"> |
| 96 | <?php esc_html_e( 'Medium', 'wpforms-lite' ); ?> |
| 97 | </span> |
| 98 | </li> |
| 99 | |
| 100 | <li class="wpforms-context-menu-list-item wpforms-context-menu-list-item-selective" data-action="field-size" data-value="large"> |
| 101 | <span class="wpforms-context-menu-list-item-icon"> |
| 102 | <i class="fa fa-check"></i> |
| 103 | </span> |
| 104 | |
| 105 | <span class="wpforms-context-menu-list-item-text"> |
| 106 | <?php esc_html_e( 'Large', 'wpforms-lite' ); ?> |
| 107 | </span> |
| 108 | </li> |
| 109 | </ul> |
| 110 | </li> |
| 111 | |
| 112 | <li class="wpforms-context-menu-list-divider" data-visibility="smart-logic"></li> |
| 113 | |
| 114 | <li class="wpforms-context-menu-list-item" data-action="smart-logic"> |
| 115 | <span class="wpforms-context-menu-list-item-icon"> |
| 116 | <i class="fa fa-random"></i> |
| 117 | </span> |
| 118 | |
| 119 | <span class="wpforms-context-menu-list-item-text"> |
| 120 | <?php esc_html_e( 'Edit Smart Logic', 'wpforms-lite' ); ?> |
| 121 | </span> |
| 122 | |
| 123 | <?php if ( ! wpforms()->is_pro() ) : ?> |
| 124 | <?php Helpers::print_badge( 'Pro', 'sm', 'inline', 'stone' ); ?> |
| 125 | <?php endif; ?> |
| 126 | </li> |
| 127 | </ul> |
| 128 | </div> |
| 129 |