PluginProbe
weForms – Easy Drag & Drop Contact Form Builder For WordPress / 1.2.7
weForms – Easy Drag & Drop Contact Form Builder For WordPress v1.2.7
1.6.7 1.6.8 1.6.9 1.6.12 1.6.13 1.6.14 1.6.15 1.6.16 1.6.17 1.6.18 1.6.19 1.6.2 1.6.20 1.6.21 1.6.22 1.6.23 1.6.24 1.6.25 1.6.26 1.6.27 1.6.28 1.6.3 1.6.4 1.6.5 1.6.6 All 74 releases
weforms / assets / js-templates / spa-components.php

spa-components.php in weForms – Easy Drag & Drop Contact Form Builder For WordPress 1.2.7, at assets/js-templates/spa-components.php

1,172 lines 59.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <script type="text/x-template" id="tmpl-wpuf-component-table">
2 <div>
3
4 <div class="tablenav top">
5
6 <div class="alignleft actions bulkactions">
7 <label for="bulk-action-selector-top" class="screen-reader-text"><?php _e( 'Select bulk action', 'weforms' ); ?></label>
8 <select name="action" v-model="bulkAction">
9 <option value="-1"><?php _e( 'Bulk Actions', 'weforms' ); ?></option>
10 <option value="restore" v-if="status == 'trash' ">
11 <?php _e('Restore Entries', 'weforms'); ?>
12 </option>
13 <option value="delete">
14 <template v-if="status == 'trash' "><?php _e('Delete Permanently', 'weforms'); ?></template>
15 <template v-else><?php _e('Delete Entries', 'weforms'); ?></template>
16 </option>
17 </select>
18
19 <button class="button action" v-on:click.prevent="handleBulkAction"><?php _e( 'Apply', 'weforms' ); ?></button>
20 </div>
21
22 <div class="alignleft actions" v-if="has_export !== 'no' && status != 'trash' ">
23 <a class="button" :href="'admin-post.php?action=weforms_export_form_entries&selected_forms=' + id + '&_wpnonce=' + nonce" style="margin-top: 0;"><span class="dashicons dashicons-download" style="margin-top: 4px;"></span> <?php _e( 'Export Entries', 'weforms' ); ?></a>
24 </div>
25
26 <div class="tablenav-pages">
27
28 <span v-if="totalItems" class="displaying-num">{{ totalItems }} <?php _e( 'items', 'weforms' ); ?></span>
29
30 <span class="pagination-links">
31 <span v-if="isFirstPage()" class="tablenav-pages-navspan" aria-hidden="true">«</span>
32 <a v-else class="first-page" href="#" @click.prevent="goFirstPage()"><span class="screen-reader-text"><?php _e( 'First page', 'weforms' ); ?></span><span aria-hidden="true">«</span></a>
33
34 <span v-if="currentPage == 1" class="tablenav-pages-navspan" aria-hidden="true"></span>
35 <a v-else class="prev-page" href="#" @click.prevent="goToPage('prev')"><span class="screen-reader-text"><?php _e( 'Previous page', 'weforms' ); ?></span><span aria-hidden="true"></span></a>
36
37 <span class="screen-reader-text"><?php _e( 'Current Page', 'weforms' ); ?></span><input @keydown.enter.prevent="goToPage(pageNumberInput)" class="current-page" id="current-page-selector" v-model="pageNumberInput" type="text" value="1" size="1" aria-describedby="table-paging"> <?php _e( 'of', 'weforms' ); ?> <span class="total-pages">{{ totalPage }}</span>
38
39 <span v-if="currentPage == totalPage" class="tablenav-pages-navspan" aria-hidden="true"></span>
40 <a v-else class="next-page" href="#" @click.prevent="goToPage('next')"><span class="screen-reader-text"><?php _e( 'Next page', 'weforms' ); ?></span><span aria-hidden="true"></span></a>
41
42 <span v-if="isLastPage()" class="tablenav-pages-navspan" aria-hidden="true">»</span>
43 <a v-else class="last-page" href="#" @click.prevent="goLastPage()"><span class="screen-reader-text"><?php _e( 'Last page', 'weforms' ); ?></span><span aria-hidden="true">»</span></a>
44 </span>
45 </div>
46 </div>
47
48 <table class="wp-list-table widefat fixed striped wpuf-contact-form">
49 <thead>
50 <tr>
51 <td id="cb" class="manage-column column-cb check-column">
52 <input type="checkbox" v-model="selectAll">
53 </td>
54 <th class="col-entry-id"><?php _e( 'ID', 'weforms' ); ?></th>
55 <th v-for="(header, index) in columns">{{ header }}</th>
56 <th>Actions</th>
57 </tr>
58 </thead>
59 <tfoot>
60 <tr>
61 <td id="cb" class="manage-column column-cb check-column">
62 <input type="checkbox" v-model="selectAll">
63 </td>
64 <th class="col-entry-id"><?php _e( 'ID', 'weforms' ); ?></th>
65 <th v-for="(header, index) in columns">{{ header }}</th>
66 <th class="col-entry-details"><?php _e( 'Actions', 'weforms' ); ?></th>
67 </tr>
68 </tfoot>
69 <tbody>
70 <tr v-if="loading">
71 <td v-bind:colspan="columnLength + 3"><?php _e( 'Loading...', 'weforms' ); ?></td>
72 </tr>
73 <tr v-if="!items.length && !loading">
74 <td v-bind:colspan="columnLength + 3"><?php _e( 'No entries found!', 'weforms' ); ?></td>
75 </tr>
76 <tr v-for="(entry, index) in items">
77 <template v-if="currentPage == 1">
78 <template v-if="index < perPage">
79 <th scope="row" class="check-column">
80 <input type="checkbox" name="post[]" v-model="checkedItems" :value="entry.id">
81 </th>
82 <th class="col-entry-id">
83 <router-link :to="{ name: 'formEntriesSingle', params: { entryid: entry.id }}">#{{ entry.id }}</router-link>
84 </th>
85 <td v-for="(header, index) in columns"><span v-html="entry.fields[index]"></span></td>
86 <th class="col-entry-details">
87 <template v-if="status == 'trash'">
88 <a href="#" @click.prevent="restore(entry.id)"><?php _e( 'Restore', 'weforms' ); ?></a>
89 <span style="color: #ddd">|</span>
90 <a href="#" @click.prevent="deletePermanently(entry.id)"><?php _e( 'Delete Permanently', 'weforms' ); ?></a>
91 </template>
92 <template v-else>
93 <router-link :to="{ name: 'formEntriesSingle', params: { entryid: entry.id }}">
94 <?php _e( 'Details', 'weforms' ); ?>
95 </router-link>
96 </template>
97 </th>
98 </template>
99 </template>
100 <template v-else>
101 <th scope="row" class="check-column">
102 <input type="checkbox" name="post[]" v-model="checkedItems" :value="entry.id">
103 </th>
104 <th class="col-entry-id">
105 <router-link :to="{ name: 'formEntriesSingle', params: { entryid: entry.id }}">#{{ entry.id }}</router-link>
106 </th>
107 <td v-for="(header, index) in columns"><span v-html="entry.fields[index]"></span></td>
108 <th class="col-entry-details">
109 <template v-if="status == 'trash'">
110 <a href="#" @click.prevent="restore(entry.id)"><?php _e( 'Restore', 'weforms' ); ?></a>
111 <span style="color: #ddd">|</span>
112 <a href="#" @click.prevent="deletePermanently(entry.id)"><?php _e( 'Delete Permanently', 'weforms' ); ?></a>
113 </template>
114 <template v-else>
115 <router-link :to="{ name: 'formEntriesSingle', params: { entryid: entry.id }}">
116 <?php _e( 'Details', 'weforms' ); ?>
117 </router-link>
118 </template>
119 </th>
120 </template>
121 </tr>
122 </tbody>
123 </table>
124
125 <div class="tablenav bottom">
126 <div class="alignleft actions bulkactions">
127 <label for="bulk-action-selector-top" class="screen-reader-text"><?php _e( 'Select bulk action', 'weforms' ); ?></label>
128 <select name="action" v-model="bulkAction">
129 <option value="-1"><?php _e( 'Bulk Actions', 'weforms' ); ?></option>
130 <option value="restore" v-if="status == 'trash' ">
131 <?php _e('Restore Entries', 'weforms'); ?>
132 </option>
133 <option value="delete">
134 <template v-if="status == 'trash' "><?php _e('Delete Permanently', 'weforms'); ?></template>
135 <template v-else><?php _e('Delete Entries', 'weforms'); ?></template>
136 </option>
137 </select>
138
139 <button class="button action" v-on:click.prevent="handleBulkAction"><?php _e( 'Apply', 'weforms' ); ?></button>
140 </div>
141
142 <div class="tablenav-pages">
143
144 <span v-if="totalItems" class="displaying-num">{{ totalItems }} <?php _e( 'items', 'weforms' ); ?></span>
145
146 <span class="pagination-links">
147 <span v-if="isFirstPage()" class="tablenav-pages-navspan" aria-hidden="true">«</span>
148 <a v-else class="first-page" href="#" @click.prevent="goFirstPage()"><span class="screen-reader-text"><?php _e( 'First page', 'weforms' ); ?></span><span aria-hidden="true">«</span></a>
149
150 <span v-if="currentPage == 1" class="tablenav-pages-navspan" aria-hidden="true"></span>
151 <a v-else class="prev-page" href="#" @click.prevent="goToPage('prev')"><span class="screen-reader-text"><?php _e( 'Previous page', 'weforms' ); ?></span><span aria-hidden="true"></span></a>
152
153 <span class="screen-reader-text"><?php _e( 'Current Page', 'weforms' ); ?></span><input @keydown.enter.prevent="goToPage(pageNumberInput)" class="current-page" id="current-page-selector" v-model="pageNumberInput" type="text" value="1" size="1" aria-describedby="table-paging"> of <span class="total-pages">{{ totalPage }}</span>
154
155 <span v-if="currentPage == totalPage" class="tablenav-pages-navspan" aria-hidden="true"></span>
156 <a v-else class="next-page" href="#" @click.prevent="goToPage('next')"><span class="screen-reader-text"><?php _e( 'Next page', 'weforms' ); ?></span><span aria-hidden="true"></span></a>
157
158 <span v-if="isLastPage()" class="tablenav-pages-navspan" aria-hidden="true">»</span>
159 <a v-else class="last-page" href="#" @click.prevent="goLastPage()"><span class="screen-reader-text"><?php _e( 'Last page', 'weforms' ); ?></span><span aria-hidden="true">»</span></a>
160 </span>
161 </div>
162 </div>
163 </div>
164 </script>
165
166 <script type="text/x-template" id="tmpl-wpuf-entries">
167 <div class="wpuf-contact-form-entries">
168 <div>
169 <h1 class="wp-heading-inline">
170 <?php _e( 'Entries', 'weforms' ); ?>
171 <span class="dashicons dashicons-arrow-right-alt2" style="margin-top: 5px;"></span>
172
173 <span style="color: #999;" class="form-name">
174 {{ form_title }}
175 </span>
176
177 <select v-if="Object.keys(forms).length" v-model="selected" @change="status='publish'">
178 <option :value="form.id" v-for="form in forms">{{ form.name }}</option>
179 </select>
180 </h1>
181 </div>
182
183 <div>
184 <ul class="subsubsub">
185 <li class="all">
186 <a href="#" :class="{ current: status =='publish' }" @click.prevent="status='publish'">
187 All
188 <span class="count">
189 ({{total}})
190 </span>
191 </a> |
192 </li>
193 <li class="trash">
194 <a href="#" :class="{ current: status =='trash' }" @click.prevent="status='trash'">
195 Trash
196 <span class="count">
197 ({{totalTrash}})
198 </span>
199 </a>
200 </li>
201 </ul>
202 </div>
203 <div>
204 <template v-if="selected">
205
206 <wpuf-table
207 action="weforms_form_entries"
208 :status="status"
209 :id="selected"
210 v-on:ajaxsuccess="
211 form_title = $event.form_title;
212 $route.params.id = selected;
213 total = $event.meta.total;
214 totalTrash = $event.meta.totalTrash
215 "
216 >
217 </wpuf-table>
218 </template>
219 </div>
220
221 </div>
222 </script>
223
224 <script type="text/x-template" id="tmpl-wpuf-form-builder">
225 <form id="wpuf-form-builder" class="wpuf-form-builder-contact_form" method="post" action="" @submit.prevent="save_form_builder" v-cloak>
226 <fieldset :class="[is_form_saving ? 'disabled' : '']" :disabled="is_form_saving">
227
228 <h2 class="nav-tab-wrapper">
229 <a href="#wpuf-form-builder-container" :class="['nav-tab', isActiveTab( 'editor' ) ? 'nav-tab-active' : '']" v-on:click.prevent="makeActive('editor')">
230 <?php _e( 'Form Editor', 'weforms' ); ?>
231 </a>
232
233 <a href="#wpuf-form-builder-settings" :class="['nav-tab', isActiveTab( 'settings' ) ? 'nav-tab-active' : '']" v-on:click.prevent="makeActive('settings')">
234 <?php _e( 'Settings', 'weforms' ); ?>
235 </a>
236
237 <?php do_action( "wpuf-form-builder-tabs-contact_form" ); ?>
238
239 <span class="pull-right">
240 <a :href="'<?php echo site_url( '/' ); ?>?weforms_preview=1&form_id=' + post.ID" target="_blank" class="button"><span class="dashicons dashicons-visibility" style="padding-top: 3px;"></span> <?php _e( 'Preview', 'weforms' ); ?></a>
241
242 <button v-if="!is_form_saving" type="button" class="button button-primary" @click="save_form_builder">
243 <?php _e( 'Save Form', 'weforms' ); ?>
244 </button>
245
246 <button v-else type="button" class="button button-primary button-ajax-working" disabled>
247 <span class="loader"></span> <?php _e( 'Saving Form Data', 'weforms' ); ?>
248 </button>
249 </span>
250 </h2>
251
252 <div class="tab-contents" v-if="!loading">
253 <div id="wpuf-form-builder-container" v-show="isActiveTab('editor')">
254 <div id="builder-stage">
255 <header class="clearfix">
256 <span v-if="!post_title_editing" title="<?php esc_attr_e( 'Click to edit the form name', 'weforms' ); ?>" class="form-title" @click.prevent="post_title_editing = true"><span class="dashicons dashicons-edit"></span> {{ post.post_title }}</span>
257
258 <span v-show="post_title_editing">
259 <input type="text" v-model="post.post_title" name="post_title" />
260 <button type="button" class="button button-small" style="margin-top: 8px;" @click.prevent="post_title_editing = false"><i class="fa fa-check"></i></button>
261 </span>
262
263 <span class="form-id" title="<?php echo esc_attr_e( 'Click to copy shortcode', 'weforms' ); ?>" :data-clipboard-text='"[weforms id=\"" + post.ID + "\"]"'><i class="fa fa-clipboard" aria-hidden="true"></i> #{{ post.ID }}</span>
264
265 <span :class="{ sharing_on : settings.sharing_on }" class="ann-form-btn form-id" @click="shareForm( '<?php echo site_url( '/' ); ?>',post)" title="<?php echo esc_attr_e( 'Share Your Form', 'weforms' ); ?>">
266 <i class="fa fa-share-alt" aria-hidden="true"></i>
267 <?php _e('Share', 'Share' ); ?>
268 </span>
269
270 </header>
271
272 <ul v-if="is_form_switcher" class="form-switcher-content">
273
274 </ul>
275
276 <section>
277 <div id="form-preview">
278 <builder-stage></builder-stage>
279 </div>
280 </section>
281 </div><!-- #builder-stage -->
282
283 <div id="builder-form-fields">
284 <header>
285 <ul class="clearfix">
286 <li :class="['form-fields' === current_panel ? 'active' : '']">
287 <a href="#add-fields" @click.prevent="set_current_panel('form-fields')">
288 <?php _e( 'Add Fields', 'weforms' ); ?>
289 </a>
290 </li>
291
292 <li :class="['field-options' === current_panel ? 'active' : '', !form_fields_count ? 'disabled' : '']">
293 <a href="#field-options" @click.prevent="set_current_panel('field-options')">
294 <?php _e( 'Field Options', 'weforms' ); ?>
295 </a>
296 </li>
297 </ul>
298 </header>
299
300 <section>
301 <div class="wpuf-form-builder-panel">
302 <component :is="current_panel"></component>
303 </div>
304 </section>
305 </div><!-- #builder-form-fields -->
306 </div><!-- #wpuf-form-builder-container -->
307
308 <div id="wpuf-form-builder-settings" class="clearfix" v-show="isActiveTab('settings')">
309 <fieldset>
310 <h2 id="wpuf-form-builder-settings-tabs" class="nav-tab-wrapper">
311 <?php do_action( "wpuf-form-builder-settings-tabs-contact_form" ); ?>
312 </h2><!-- #wpuf-form-builder-settings-tabs -->
313
314 <div id="wpuf-form-builder-settings-contents" class="tab-contents">
315 <?php do_action( "wpuf-form-builder-settings-tab-contents-contact_form" ); ?>
316 </div><!-- #wpuf-form-builder-settings-contents -->
317 </fieldset>
318 </div><!-- #wpuf-form-builder-settings -->
319
320 <?php do_action( "wpuf-form-builder-tab-contents-contact_form" ); ?>
321 </div>
322 <div v-else>
323 <div class="updating-message">
324 <p><?php _e( 'Loading the editor', 'weforms' ); ?></p>
325 </div>
326 </div>
327
328 <input type="hidden" name="form_settings_key" value="wpuf_form_settings">
329
330 <?php wp_nonce_field( 'wpuf_form_builder_save_form', 'wpuf_form_builder_nonce' ); ?>
331
332 <input type="hidden" name="wpuf_form_id" :value="post.ID">
333 </fieldset>
334 </form><!-- #wpuf-form-builder -->
335 </script>
336
337 <script type="text/x-template" id="tmpl-wpuf-form-entries">
338 <div class="wpuf-contact-form-entries">
339 <div>
340 <h1 class="wp-heading-inline">
341 <?php _e( 'Entries', 'weforms' ); ?>
342 <span class="dashicons dashicons-arrow-right-alt2" style="margin-top: 5px;"></span>
343
344 <span style="color: #999;" class="form-name">
345 {{ form_title }}
346 </span>
347
348 <router-link class="page-title-action" to="/"><?php _e( 'Back to forms', 'weforms' ); ?></router-link>
349 </h1>
350 </div>
351
352 <div>
353 <ul class="subsubsub">
354 <li class="all">
355 <a href="#" :class="{ current: status =='publish' }" @click.prevent="status='publish'">
356 All
357 <span class="count">
358 ({{total}})
359 </span>
360 </a> |
361 </li>
362 <li class="trash">
363 <a href="#" :class="{ current: status =='trash' }" @click.prevent="status='trash'">
364 Trash
365 <span class="count">
366 ({{totalTrash}})
367 </span>
368 </a>
369 </li>
370 </ul>
371 </div>
372 <div>
373 <template>
374
375 <wpuf-table
376 action="weforms_form_entries"
377 :status="status"
378 :id="id"
379 v-on:ajaxsuccess="
380 form_title = $event.form_title;
381 total = $event.meta.total;
382 totalTrash = $event.meta.totalTrash
383 "
384 >
385 </wpuf-table>
386 </template>
387 </div>
388
389 </div>
390 </script>
391
392 <script type="text/x-template" id="tmpl-wpuf-form-entry-single">
393 <div class="wpuf-contact-form-entry">
394 <h1 class="wp-heading-inline"><?php _e( 'Entry Details', 'weforms' ); ?></h1>
395 <router-link class="page-title-action" :to="{ name: 'formEntries', params: { id: $route.params.id }}"><?php _e( 'Back to Entries', 'weforms' ); ?></router-link>
396
397 <div v-if="loading"><?php _e( 'Loading...', 'weforms' ); ?></div>
398 <div v-else class="wpuf-contact-form-entry-wrap">
399
400 <div class="wpuf-contact-form-entry-left">
401 <div class="postbox">
402 <h2 class="hndle ui-sortable-handle">
403 <span>{{ entry.meta_data.form_title }} : Entry # {{ $route.params.entryid }}</span>
404 <span class="pull-right" v-if="hasEmpty">
405 <label style="font-weight: normal; font-size: 12px">
406 <input type="checkbox" v-model="hideEmpty" style="margin-right: 1px"> <?php _e( 'Hide Empty', 'weforms' ) ?>
407 </label>
408 </span>
409 </h2>
410
411 <div class="main">
412 <table v-if="hasFormFields" class="wp-list-table widefat fixed striped posts">
413 <tbody>
414 <template v-for="(field, index) in entry.form_fields">
415 <template v-if="field.value || ! hideEmpty ">
416 <tr class="field-label">
417 <th><strong>{{ field.label }}</strong></th>
418 </tr>
419 <tr class="field-value">
420 <td>
421 <weforms-entry-gmap :lat="field.value.lat" :long="field.value.long" :zoom="field.zoom" v-if="field.type == 'google_map'"></weforms-entry-gmap>
422 <div v-else-if="field.type === 'checkbox_field' || field.type === 'multiple_select'">
423 <ul style="margin: 0;">
424 <li v-for="item in field.value">- {{ item }}</li>
425 </ul>
426 </div>
427 <div v-else v-html="field.value"></div>
428 </td>
429 </tr>
430 </template>
431 </template>
432 </tbody>
433 </table>
434 <div v-else><div class="inside"><?php _e( 'Loading...', 'weforms' ); ?></div></div>
435
436 </div>
437 </div>
438 </div>
439
440 <div class="wpuf-contact-form-entry-right">
441 <div class="postbox">
442 <h2 class="hndle ui-sortable-handle"><span><?php _e( 'Submission Info', 'weforms' ); ?></span></h2>
443 <div class="inside">
444 <div class="main">
445
446 <ul>
447 <li>
448 <span class="label"><?php _e( 'Entry ID', 'weforms' ); ?></span>
449 <span class="sep"> : </span>
450 <span class="value">#{{ $route.params.entryid }}</span>
451 </li>
452 <li>
453 <span class="label"><?php _e( 'User IP', 'weforms' ); ?></span>
454 <span class="sep"> : </span>
455 <span class="value">{{ entry.meta_data.ip_address }}</span>
456 </li>
457 <li>
458 <span class="label"><?php _e( 'Page', 'weforms' ); ?></span>
459 <span class="sep"> : </span>
460 <span class="value"><a :href="entry.meta_data.referer">{{ entry.meta_data.referer }}</a></span>
461 </li>
462 <li v-if="entry.meta_data.user">
463 <span class="label"><?php _e( 'From', 'weforms' ); ?></span>
464 <span class="sep"> : </span>
465 <span class="value">{{ entry.meta_data.user }}</span>
466 </li>
467 <li>
468 <span class="label"><?php _e( 'Submitted On', 'weforms' ); ?></span>
469 <span class="sep"> : </span>
470 <span class="value">{{ entry.meta_data.created }}</span>
471 </li>
472 </ul>
473 </div>
474 </div>
475
476 <div id="major-publishing-actions">
477 <div id="publishing-action">
478 <button class="button button-large button-secondary" v-on:click.prevent="trashEntry"><span class="dashicons dashicons-trash"></span><?php _e( ' Delete', 'weforms' ); ?></button>
479 </div>
480 <div class="clear"></div>
481 </div>
482 </div>
483 </div>
484
485 <div class="wpuf-contact-form-entry-right" v-if="entry.payment_data" style=" clear: right;">
486 <div class="postbox">
487 <h2 class="hndle ui-sortable-handle"><span><?php _e( 'Payment Info', 'weforms' ); ?></span></h2>
488 <div class="inside">
489 <div class="main">
490
491 <ul>
492 <li>
493 <span class="label"><?php _e( 'Payment ID', 'weforms' ); ?></span>
494 <span class="sep"> : </span>
495 <span class="value">#{{ entry.payment_data.id }}</span>
496 </li>
497 <li>
498 <span class="label"><?php _e( 'Gateway', 'weforms' ); ?></span>
499 <span class="sep"> : </span>
500 <span class="value">{{ entry.payment_data.gateway }}</span>
501 </li>
502 <li>
503 <span class="label"><?php _e( 'Status', 'weforms' ); ?></span>
504 <span class="sep"> : </span>
505 <span class="value">{{ entry.payment_data.status }}</span>
506 </li>
507 <li>
508 <span class="label"><?php _e( 'Total', 'weforms' ); ?></span>
509 <span class="sep"> : </span>
510 <span class="value">{{ entry.payment_data.total }}</span>
511 </li>
512 <li>
513 <span class="label"><?php _e( 'Transaction ID', 'weforms' ); ?></span>
514 <span class="sep"> : </span>
515 <span class="value">{{ entry.payment_data.transaction_id ? entry.payment_data.transaction_id : 'N/A' }}</span>
516 </li>
517 <li>
518 <span class="label"><?php _e( 'Created at', 'weforms' ); ?></span>
519 <span class="sep"> : </span>
520 <span class="value">{{ entry.payment_data.created_at }}</span>
521 </li>
522
523 <li v-if="entry.payment_data.payment_data">
524
525 <template v-if="show_payment_data" class="value" v-for="(val,key) in entry.payment_data.payment_data">
526 <template v-if="key && (val === false || val)">
527 <li>
528 <span class="label">{{ key }}</span>
529 <span class="sep"> : </span>
530 <span class="value"> {{ val }}</span>
531 </li>
532 </template>
533 </template>
534
535 <span class="value"> <a href="#" @click.prevent="show_payment_data = !show_payment_data"> {{ show_payment_data ? 'Hide' : 'Show More' }} </a> </span>
536
537 </li>
538
539 </ul>
540 </div>
541 </div>
542 </div>
543 </div>
544 </div>
545 </div>
546 </script>
547
548 <script type="text/x-template" id="tmpl-wpuf-form-list-table">
549 <div class="content table-responsive table-full-width" style="margin-top: 20px;">
550
551 <div class="tablenav top">
552 <div class="alignleft actions bulkactions">
553 <label for="bulk-action-selector-top" class="screen-reader-text"><?php _e( 'Select bulk action', 'weforms' ); ?></label>
554 <select name="action" v-model="bulkAction">
555 <option value="-1"><?php _e( 'Bulk Actions', 'weforms' ); ?></option>
556 <option value="delete"><?php _e( 'Delete Forms', 'weforms' ); ?></option>
557 </select>
558
559 <button class="button action" v-on:click.prevent="handleBulkAction"><?php _e( 'Apply', 'weforms' ); ?></button>
560 </div>
561
562 <div class="tablenav-pages">
563
564 <span v-if="totalItems" class="displaying-num">{{ totalItems }} <?php _e( 'items', 'weforms' ); ?></span>
565
566 <span class="pagination-links">
567 <span v-if="isFirstPage()" class="tablenav-pages-navspan" aria-hidden="true">«</span>
568 <a v-else class="first-page" href="#" @click.prevent="goFirstPage()"><span class="screen-reader-text"><?php _e( 'First page', 'weforms' ); ?></span><span aria-hidden="true">«</span></a>
569
570 <span v-if="currentPage == 1" class="tablenav-pages-navspan" aria-hidden="true"></span>
571 <a v-else class="prev-page" href="#" @click.prevent="goToPage('prev')"><span class="screen-reader-text"><?php _e( 'Previous page', 'weforms' ); ?></span><span aria-hidden="true"></span></a>
572
573 <span class="screen-reader-text"><?php _e( 'Current Page', 'weforms' ); ?></span><input @keydown.enter.prevent="goToPage(pageNumberInput)" class="current-page" id="current-page-selector" v-model="pageNumberInput" type="text" value="1" size="1" aria-describedby="table-paging"> <?php _e( 'of', 'weforms' ); ?> <span class="total-pages">{{ totalPage }}</span>
574
575 <span v-if="currentPage == totalPage || totalPage == 0" class="tablenav-pages-navspan" aria-hidden="true"></span>
576 <a v-else class="next-page" href="#" @click.prevent="goToPage('next')"><span class="screen-reader-text"><?php _e( 'Next page', 'weforms' ); ?></span><span aria-hidden="true"></span></a>
577
578 <span v-if="isLastPage() || totalPage == 0" class="tablenav-pages-navspan" aria-hidden="true">»</span>
579 <a v-else class="last-page" href="#" @click.prevent="goLastPage()"><span class="screen-reader-text"><?php _e( 'Last page', 'weforms' ); ?></span><span aria-hidden="true">»</span></a>
580 </span>
581 </div>
582 </div>
583
584 <table class="wp-list-table widefat fixed striped posts">
585 <thead>
586 <tr>
587 <td id="cb" class="manage-column column-cb check-column">
588 <label class="screen-reader-text" for="cb-select-all-1"><?php _e( 'Select All', 'weforms' ); ?></label>
589 <input type="checkbox" v-model="selectAll">
590 </td>
591 <th scope="col" class="col-form-name"><?php _e( 'Name', 'weforms' ); ?></th>
592 <th scope="col" class="col-form-shortcode"><?php _e( 'Shortcode', 'weforms' ); ?></th>
593 <th scope="col" class="col-form-entries"><?php _e( 'Entries', 'weforms' ); ?></th>
594 <th scope="col" class="col-form-views"><?php _e( 'Views', 'weforms' ); ?></th>
595 <th scope="col" class="col-form-conversion"><?php _e( 'Conversion', 'weforms' ); ?></th>
596 </tr>
597 </thead>
598 <tbody>
599 <tr v-if="loading">
600 <td colspan="6"><?php _e( 'Loading...', 'weforms' ); ?></td>
601 </tr>
602 <tr v-if="!items.length && !loading">
603 <td colspan="6"><?php _e( 'No form found!', 'weforms' ); ?></td>
604 </tr>
605 <tr v-for="(form, index) in items">
606 <th scope="row" class="check-column">
607 <input type="checkbox" name="post[]" v-model="checkedItems" :value="form.id">
608 </th>
609 <td class="title column-title has-row-actions column-primary page-title">
610 <strong><router-link :to="{ name: 'edit', params: { id: form.id }}">{{ form.name }}</router-link> <span v-if="form.data.post_status != 'publish'">({{ form.data.post_status }})</span></strong>
611
612 <div class="row-actions">
613 <span class="edit"><router-link :to="{ name: 'edit', params: { id: form.id }}"><?php _e( 'Edit', 'weforms' ); ?></router-link> | </span>
614
615 <span class="trash"><a href="#" v-on:click.prevent="deleteForm(index)" class="submitdelete"><?php _e( 'Delete', 'weforms' ); ?></a> | </span>
616
617 <span class="duplicate"><a href="#" v-on:click.prevent="duplicate(form.id, index)"><?php _e( 'Duplicate', 'weforms' ); ?></a> <template v-if="form.entries">|</template> </span>
618
619 <router-link v-if="form.entries" :to="{ name: 'formEntries', params: { id: form.id }}"><?php _e( 'View Entries', 'weforms' ); ?></router-link>
620
621 <template v-if="is_pro">
622 <span>
623 <template>|</template>
624 <router-link :to="{ name: 'formReports', params: { id: form.id }}"><?php _e( 'Reports', 'weforms' ); ?></router-link>
625 </span>
626 </template>
627
628 <template v-if="is_pro && has_payment && form.payments">
629 <span>
630 <template>|</template>
631 <router-link :to="{ name: 'formPayments', params: { id: form.id }}"><?php _e( 'Transactions', 'weforms' ); ?></router-link>
632 </span>
633 </template>
634 </div>
635 </td>
636 <td><code>[weforms id="{{ form.id }}"]</code></td>
637 <td>
638 <router-link v-if="form.entries" :to="{ name: 'formEntries', params: { id: form.id }}">{{ form.entries }}</router-link>
639 <span v-else>&mdash;</span>
640 </td>
641 <td>{{ form.views }}</td>
642 <td>
643 <span v-if="form.views">{{ ((form.entries/form.views) * 100).toFixed(2) }}%</span>
644 <span v-else>0%</span>
645 </td>
646 </tr>
647 </tbody>
648
649 <tfoot>
650 <tr>
651 <td id="cb" class="manage-column column-cb check-column">
652 <label class="screen-reader-text" for="cb-select-all-1"><?php _e( 'Select All', 'weforms' ); ?></label>
653 <input type="checkbox" v-model="selectAll">
654 </td>
655 <th scope="col" class="col-form-name"><?php _e( 'Name', 'weforms' ); ?></th>
656 <th scope="col" class="col-form-shortcode"><?php _e( 'Shortcode', 'weforms' ); ?></th>
657 <th scope="col" class="col-form-entries"><?php _e( 'Entries', 'weforms' ); ?></th>
658 <th scope="col" class="col-form-views"><?php _e( 'Views', 'weforms' ); ?></th>
659 <th scope="col" class="col-form-conversion"><?php _e( 'Conversion', 'weforms' ); ?></th>
660 </tr>
661 </tfoot>
662 </table>
663
664 <div class="tablenav bottom">
665 <div class="alignleft actions bulkactions">
666 <label for="bulk-action-selector-top" class="screen-reader-text"><?php _e( 'Select bulk action', 'weforms' ); ?></label>
667 <select name="action" v-model="bulkAction">
668 <option value="-1"><?php _e( 'Bulk Actions', 'weforms' ); ?></option>
669 <option value="delete"><?php _e( 'Delete Forms', 'weforms' ); ?></option>
670 </select>
671
672 <button class="button action" v-on:click.prevent="handleBulkAction"><?php _e( 'Apply', 'weforms' ); ?></button>
673 </div>
674
675 <div class="tablenav-pages">
676
677 <span v-if="totalItems" class="displaying-num">{{ totalItems }} <?php _e( 'items', 'weforms' ); ?></span>
678
679 <span class="pagination-links">
680 <span v-if="isFirstPage()" class="tablenav-pages-navspan" aria-hidden="true">«</span>
681 <a v-else class="first-page" href="#" @click.prevent="goFirstPage()"><span class="screen-reader-text"><?php _e( 'First page', 'weforms' ); ?></span><span aria-hidden="true">«</span></a>
682
683 <span v-if="currentPage == 1" class="tablenav-pages-navspan" aria-hidden="true"></span>
684 <a v-else class="prev-page" href="#" @click.prevent="goToPage('prev')"><span class="screen-reader-text"><?php _e( 'Previous page', 'weforms' ); ?></span><span aria-hidden="true"></span></a>
685
686 <span class="screen-reader-text"><?php _e( 'Current Page', 'weforms' ); ?></span><input @keydown.enter.prevent="goToPage(pageNumberInput)" class="current-page" id="current-page-selector" v-model="pageNumberInput" type="text" value="1" size="1" aria-describedby="table-paging"> <?php _e( 'of', 'weforms' ); ?> <span class="total-pages">{{ totalPage }}</span>
687
688 <span v-if="currentPage == totalPage || totalPage == 0" class="tablenav-pages-navspan" aria-hidden="true"></span>
689 <a v-else class="next-page" href="#" @click.prevent="goToPage('next')"><span class="screen-reader-text"><?php _e( 'Next page', 'weforms' ); ?></span><span aria-hidden="true"></span></a>
690
691 <span v-if="isLastPage() || totalPage == 0" class="tablenav-pages-navspan" aria-hidden="true">»</span>
692 <a v-else class="last-page" href="#" @click.prevent="goLastPage()"><span class="screen-reader-text"><?php _e( 'Last page', 'weforms' ); ?></span><span aria-hidden="true">»</span></a>
693 </span>
694 </div>
695 </div>
696 </div></script>
697
698 <script type="text/x-template" id="tmpl-wpuf-form-payments">
699 <div class="wpuf-contact-form-payments">
700 <h1 class="wp-heading-inline">
701 <?php _e( 'Transactions', 'weforms' ); ?>
702 <span class="dashicons dashicons-arrow-right-alt2" style="margin-top: 5px;"></span>
703 <span style="color: #999;" class="form-name">{{ form_title }}</span>
704 </h1>
705
706 <router-link class="page-title-action" to="/"><?php _e( 'Back to forms', 'weforms' ); ?></router-link>
707
708 <wpuf-table
709 has_export="no"
710 action="weforms_form_payments"
711 delete="weforms_form_payments_trash_bulk"
712 :id="id"
713 v-on:ajaxsuccess="form_title = $event.form_title"
714 >
715 </wpuf-table>
716
717 </div></script>
718
719 <script type="text/x-template" id="tmpl-wpuf-home-page">
720 <div class="contact-form-list">
721 <h1 class="wp-heading-inline"><?php _e( 'All Forms', 'weforms' ); ?></h1>
722 <a class="page-title-action add-form" herf="#" v-on:click.prevent="displayModal()"><?php _e( 'Add Form', 'weforms' ); ?></a>
723
724 <wpuf-template-modal :show.sync="showTemplateModal" :onClose="closeModal"></wpuf-template-modal>
725
726 <form-list-table></form-list-table>
727 </div></script>
728
729 <script type="text/x-template" id="tmpl-wpuf-tools">
730 <div class="export-import-wrap">
731
732 <h2 class="nav-tab-wrapper">
733 <a :class="['nav-tab', isActiveTab( 'export' ) ? 'nav-tab-active' : '']" href="#" v-on:click.prevent="makeActive('export')"><?php _e( 'Export', 'wpuf' ); ?></a>
734 <a :class="['nav-tab', isActiveTab( 'import' ) ? 'nav-tab-active' : '']" href="#" v-on:click.prevent="makeActive('import')"><?php _e( 'Import', 'wpuf' ); ?></a>
735 <a :class="['nav-tab', isActiveTab( 'logs' ) ? 'nav-tab-active' : '']" href="#" v-on:click.prevent="makeActive('logs')"><?php _e( 'Logs', 'wpuf' ); ?></a>
736 </h2>
737
738 <div class="nav-tab-content">
739 <div class="nav-tab-inside" v-show="isActiveTab('export')">
740 <h3><?php _e( 'Export Utility', 'weforms' ); ?></h3>
741
742 <p><?php _e( 'You can export your form, as well as exporting the submitted entries by the users', 'weforms' ); ?></p>
743
744 <div class="postboxes metabox-holder two-col">
745 <div class="postbox">
746 <h3 class="hndle"><?php _e( 'Export Forms', 'weforms' ); ?></h3>
747
748 <div class="inside">
749 <p class="help">
750 <?php _e( 'You can export your existing contact forms and import the same forms into a different site.', 'weforms' ); ?>
751 </p>
752
753 <template v-if="!loading">
754 <form action="admin-post.php?action=weforms_export_forms" method="post">
755 <p><label><input v-model="exportType" type="radio" name="export_type" value="all" checked> <?php _e( 'All Forms', 'weforms' ); ?></label></p>
756 <p><label><input v-model="exportType" type="radio" name="export_type" value="selected"> <?php _e( 'Selected Forms', 'weforms' ); ?></label></p>
757 <p v-show="exportType == 'selected'">
758 <select name="selected_forms[]" class="forms-list" multiple="multiple">
759 <option v-for="entry in forms" :value="entry.id">{{ entry.title }}</option>
760 </select>
761 </p>
762
763 <?php wp_nonce_field( 'weforms-export-forms' ); ?>
764 <input type="submit" class="button button-primary" name="weforms_export_forms" value="<?php _e( 'Export Forms', 'weforms' ) ?>">
765 </form>
766 </template>
767 <template v-else>
768 <div class="spinner loading-spinner is-active"></div>
769 </template>
770 </div>
771 </div><!-- .postbox -->
772
773 <div class="postbox">
774 <h3 class="hndle"><?php _e( 'Export Form Entries', 'weforms' ); ?></h3>
775
776 <div class="inside">
777 <p class="help">
778 <?php _e( 'Export your form entries/submissions as a <strong>CSV</strong> file.', 'weforms' ); ?>
779 </p>
780
781 <template v-if="!loading">
782 <form action="admin-post.php?action=weforms_export_form_entries" method="post">
783 <p>
784 <select name="selected_forms" class="forms-list">
785 <option value=""><?php _e( '&mdash; Select Form &mdash;', 'weforms' ); ?></option>
786 <option v-for="entry in forms" :value="entry.id">{{ entry.title }}</option>
787 </select>
788 </p>
789
790 <?php wp_nonce_field( 'weforms-export-entries' ); ?>
791 <input type="submit" class="button button-primary" name="weforms_export_entries" value="<?php _e( 'Export Entries', 'weforms' ) ?>">
792 </form>
793 </template>
794 <template v-else>
795 <div class="spinner loading-spinner is-active"></div>
796 </template>
797 </div>
798 </div><!-- .postbox -->
799 </div>
800 </div>
801
802 <div class="nav-tab-inside" v-show="isActiveTab('import')">
803 <h3><?php _e( 'Import Contact Form', 'weforms' ); ?></h3>
804
805 <p><?php _e( 'Browse and locate a json file you backed up before.', 'weforms' ); ?></p>
806 <p><?php _e( 'Press <strong>Import</strong> button, we will do the rest for you.', 'weforms' ); ?></p>
807
808 <div class="updated-message notice notice-success is-dismissible" v-if="isSuccess">
809 <p>{{ responseMessage }}</p>
810
811 <button type="button" class="notice-dismiss" v-on:click="currentStatus = 0">
812 <span class="screen-reader-text"><?php _e( 'Dismiss this notice.', 'weforms' ); ?></span>
813 </button>
814 </div>
815
816 <div class="update-message notice notice-error is-dismissible" v-if="isFailed">
817 <p>{{ responseMessage }}</p>
818
819 <button type="button" class="notice-dismiss" v-on:click="currentStatus = 0">
820 <span class="screen-reader-text"><?php _e( 'Dismiss this notice.', 'weforms' ); ?></span>
821 </button>
822 </div>
823
824 <form action="" method="post" enctype="multipart/form-data" style="margin-top: 20px;">
825 <input type="file" name="importFile" v-on:change="importForm( $event.target.name, $event.target.files, $event )" accept="application/json" />
826 <button type="submit" :class="['button', isSaving ? 'updating-message' : '']" disabled="disabled">{{ importButton }}</button>
827 </form>
828
829 <hr>
830 <h3><?php _e( 'Import Other Forms', 'weforms' ); ?></h3>
831 <p><?php _e( 'You can import other WordPress form plugins into weForms.', 'weforms' ); ?></p>
832
833 <div class="updated" v-if="ximport.title">
834 <p><strong>{{ ximport.title }}</strong></p>
835
836 <p>{{ ximport.message }}</p>
837 <p>{{ ximport.action }}</p>
838
839 <ul v-if="hasRefs">
840 <li v-for="ref in ximport.refs">
841 <a target="_blank" :href="'admin.php?page=weforms#/form/' + ref.weforms_id + '/edit'">{{ ref.title }}</a> - <a :href="'admin.php?page=weforms#/form/' + ref.weforms_id + '/edit'" target="_blank" class="button button-small"><span class="dashicons dashicons-external"></span> <?php _e( 'Edit', 'weforms' ); ?></a>
842 </li>
843 </ul>
844
845 <p>
846 <a href="#" class="button button-primary" @click.prevent="replaceX($event.target, 'replace')"><?php _e( 'Replace Shortcodes', 'weforms' ); ?></a>&nbsp;
847 <a href="#" class="button" @click.prevent="replaceX($event.target, 'skip')"><?php _e( 'No Thanks', 'weforms' ); ?></a>
848 </p>
849 </div>
850
851
852 <table style="min-width: 500px;">
853 <tbody>
854 <tr>
855 <td><?php _e( 'Contact Form 7', 'weforms' ); ?></td>
856 <th><button class="button" @click.prevent="importx($event.target, 'cf7')" data-importing="<?php esc_attr_e( 'Importing...', 'weforms' ); ?>" data-original="<?php esc_attr_e( 'Import', 'weforms' ); ?>"><?php _e( 'Import', 'weforms' ); ?></button></th>
857 </tr>
858 <tr>
859 <td><?php _e( 'Ninja Forms', 'weforms' ); ?></td>
860 <th><button class="button" @click.prevent="importx($event.target, 'nf')" data-importing="<?php esc_attr_e( 'Importing...', 'weforms' ); ?>" data-original="<?php esc_attr_e( 'Import', 'weforms' ); ?>"><?php _e( 'Import', 'weforms' ); ?></button></th>
861 </tr>
862 <tr>
863 <td><?php _e( 'Caldera Forms', 'weforms' ); ?></td>
864 <th><button class="button" @click.prevent="importx($event.target, 'caldera-forms')" data-importing="<?php esc_attr_e( 'Importing...', 'weforms' ); ?>" data-original="<?php esc_attr_e( 'Import', 'weforms' ); ?>"><?php _e( 'Import', 'weforms' ); ?></button></th>
865 </tr>
866 <tr>
867 <td><?php _e( 'Gravity Forms', 'weforms' ); ?></td>
868 <th><button class="button" @click.prevent="importx($event.target, 'gf')" data-importing="<?php esc_attr_e( 'Importing...', 'weforms' ); ?>" data-original="<?php esc_attr_e( 'Import', 'weforms' ); ?>"><?php _e( 'Import', 'weforms' ); ?></button></th>
869 </tr>
870 <tr>
871 <td><?php _e( 'WP Forms', 'weforms' ); ?></td>
872 <th><button class="button" @click.prevent="importx($event.target, 'wpforms')" data-importing="<?php esc_attr_e( 'Importing...', 'weforms' ); ?>" data-original="<?php esc_attr_e( 'Import', 'weforms' ); ?>"><?php _e( 'Import', 'weforms' ); ?></button></th>
873 </tr>
874 </tbody>
875 </table>
876 </div>
877
878 <div class="nav-tab-inside" v-show="isActiveTab('logs')">
879 <h3>
880 <?php _e( 'Logs', 'weforms' ); ?>
881
882 <span class="pull-right">
883
884 <button class="button button-large button-secondary" @click.prevent="fetchLogs($event.target)">
885 <span style="margin-top: 4px" class="dashicons dashicons-image-rotate"></span> Reload
886 </button>
887
888 <button class="button button-large button-secondary" @click.prevent="deleteLogs($event.target)" v-if="hasLogs">
889 <span style="margin-top: 4px" class="dashicons dashicons-trash"></span> Delete
890 </button>
891 </span>
892 </h3>
893
894 <table class="wp-list-table widefat fixed striped wpuf-contact-form" v-if="hasLogs">
895 <thead>
896 <tr>
897 <th style="width: 10%"> Type </th>
898 <th style="width: 15%"> Time </th>
899 <th style="width: 75%"> Details </th> </tr>
900 </thead>
901 <tbody>
902 <tr v-for="log in logs">
903 <td> <span> {{ log.type }} </span> </td>
904 <td> <span> {{ log.time }} </span> </td>
905 <td> {{ log.message }} </td>
906 </tr>
907 </tbody>
908 </table>
909 <div v-else>
910 <p><?php _e( 'No logs found. If any error occurs during an action. Those will be displayed here.', 'weforms') ?></p>
911 </div>
912 </div>
913 </div>
914 </div>
915 </script>
916
917 <script type="text/x-template" id="tmpl-wpuf-transactions">
918 <div class="wpuf-contact-form-transactions">
919 <h1 class="wp-heading-inline">
920 <?php _e( 'Transactions', 'weforms' ); ?>
921 <span class="dashicons dashicons-arrow-right-alt2" style="margin-top: 5px;"></span>
922 <span style="color: #999;" class="form-name">
923 {{ form_title }}
924 </span>
925
926 <select v-if="Object.keys(forms).length " v-model="selected">
927 <option :value="form.id" v-for="form in forms">{{ form.name }}</option>
928 </select>
929 </h1>
930
931 <p v-if="no_transactions">
932 <?php printf(
933 __('You don\'t have any transactions yet. Learn how to %sset up payment integration%s and take payments with weFroms.'),
934 '<a target="_blank" href="https://wedevs.com/docs/weforms/integrations/payment/">',
935 '</a>'
936 );
937 ?>
938 </p>
939
940 <wpuf-table v-if="selected"
941 has_export="no"
942 action="weforms_form_payments"
943 delete="weforms_form_payments_trash_bulk"
944 :id="selected"
945 v-on:ajaxsuccess="form_title = $event.form_title; $route.params.id = selected"
946 >
947 </wpuf-table>
948
949 </div>
950 </script>
951
952 <script type="text/x-template" id="tmpl-wpuf-weforms-page-help">
953 <div class="weforms-help-page">
954
955 <div class="help-block">
956 <img src="<?php echo WEFORMS_ASSET_URI; ?>/images/help/docs.svg" alt="<?php esc_attr_e( 'Looking for Something?', 'weforms' ); ?>">
957
958 <h3><?php _e( 'Looking for Something?', 'weforms' ); ?></h3>
959
960 <p><?php _e( 'We have detailed documentation on every aspects of weForms.', 'weforms' ); ?></p>
961
962 <a target="_blank" class="button button-primary" href="https://wedevs.com/docs/weforms/?utm_source=weforms-help-page&utm_medium=help-block&utm_campaign=plugin-docs-link"><?php _e( 'Visit the Plugin Documentation', 'weforms' ); ?></a>
963 </div>
964
965 <div class="help-block">
966 <img src="<?php echo WEFORMS_ASSET_URI; ?>/images/help/support.svg" alt="<?php esc_attr_e( 'Need Any Assistance?', 'weforms' ); ?>">
967
968 <h3><?php _e( 'Need Any Assistance?', 'weforms' ); ?></h3>
969
970 <p><?php _e( 'Our EXPERT Support Team is always ready to Help you out.', 'weforms' ); ?></p>
971
972 <a target="_blank" class="button button-primary" href="https://wedevs.com/account/tickets/?utm_source=weforms-help-page&utm_medium=help-block&utm_campaign=need-assistance"><?php _e( 'Contact Support', 'weforms' ); ?></a>
973 </div>
974
975 <div class="help-block">
976 <img src="<?php echo WEFORMS_ASSET_URI; ?>/images/help/bugs.svg" alt="<?php esc_attr_e( 'Found Any Bugs?', 'weforms' ); ?>">
977
978 <h3><?php _e( 'Found Any Bugs?', 'weforms' ); ?></h3>
979
980 <p><?php _e( 'Report any Bug that you Discovered, Get Instant Solutions.', 'weforms' ); ?></p>
981
982 <a target="_blank" class="button button-primary" href="https://github.com/weDevsOfficial/weforms"><?php _e( 'Report to GitHub', 'weforms' ); ?></a>
983 </div>
984
985 <div class="help-block">
986 <img src="<?php echo WEFORMS_ASSET_URI; ?>/images/help/customization.svg" alt="<?php esc_attr_e( 'Require Customization?', 'weforms' ); ?>">
987
988 <h3><?php _e( 'Require Customization?', 'weforms' ); ?></h3>
989
990 <p><?php _e( 'We would Love to hear your Integration and Customization Ideas.', 'weforms' ); ?></p>
991
992 <a target="_blank" class="button button-primary" href="https://wedevs.com/contact/?utm_source=weforms-help-page&utm_medium=help-block&utm_campaign=requires-customization"><?php _e( 'Contact Our Services', 'weforms' ); ?></a>
993 </div>
994
995 <div class="help-block">
996 <img src="<?php echo WEFORMS_ASSET_URI; ?>/images/help/like.svg" alt="<?php esc_attr_e( 'Like The Plugin?', 'weforms' ); ?>">
997
998 <h3><?php _e( 'Like The Plugin?', 'weforms' ); ?></h3>
999
1000 <p><?php _e( 'Your Review is very important to us as it helps us to grow more.', 'weforms' ); ?></p>
1001
1002 <a target="_blank" class="button button-primary" href="https://wordpress.org/support/plugin/weforms/reviews/?rate=5#new-post"><?php _e( 'Review Us on WP.org', 'weforms' ); ?></a>
1003 </div>
1004 </div></script>
1005
1006 <script type="text/x-template" id="tmpl-wpuf-weforms-premium">
1007 <div class="wrap weforms-premium about-wrap">
1008 <h1><?php _e( 'weForms Pro', 'weforms' ); ?></h1>
1009
1010 <p class="about-text"><?php _e( 'Upgrade to the premium versions of weForms and unlock even more useful features.', 'weforms' ); ?></p>
1011 <div class="wp-badge">weForms Pro</div>
1012
1013 <hr>
1014 <div class="feature-section one-col">
1015 <div class="col">
1016 <h2><?php _e( 'More Features', 'weforms' ); ?></h2>
1017 <p style="text-align: center;">weForms Pro is designed just for you, specially to fulfil your business needs. We have designed and curated every package keeping your requirements in mind.</p>
1018 </div>
1019 </div>
1020
1021 <div class="feature-section two-col">
1022 <div class="col">
1023 <h3>Advanced Fields</h3>
1024 <p>Build any kind of form flexibly with the advanced field option. Its user friendly interface makes sure you do not have to scratch your head over building forms.</p>
1025 </div>
1026
1027 <div class="col">
1028 <h3>Conditional Logic</h3>
1029 <p>Configure your form’s settings and user flow based on conditional selection. Your forms should appear just the way you want it.</p>
1030 </div>
1031
1032 <div class="col">
1033 <h3>Multi-step Form</h3>
1034 <p>Break down the long forms into small and attractive multi step forms. Long and lengthy forms are uninviting, why build one?</p>
1035 </div>
1036
1037 <div class="col">
1038 <h3>File Uploaders</h3>
1039 <p>Let the user upload any kind of file by filling up your contact form. The process is unbelievably smooth and supports a wide range of file formats.</p>
1040 </div>
1041
1042 <div class="col">
1043 <h3>Form Submission Notification</h3>
1044 <p>Receive email notification every time your form is submitted. You can now configure the notification settings just as you like it.</p>
1045 </div>
1046
1047 <div class="col">
1048 <h3>Manage Submission</h3>
1049 <p>View, edit and manage all the submission data stored through your form. We believe that you should own it all- like literally!</p>
1050 </div>
1051 </div>
1052
1053 <hr>
1054
1055 <h2><?php _e( 'More Integrations', 'weforms' ); ?></h2>
1056
1057 <div class="headline-feature four-col">
1058 <div class="col">
1059 <img src="<?php echo WEFORMS_ASSET_URI; ?>/images/integrations/mailchimp.svg" alt="MailChimp Integration">
1060 <h3>MailChimp</h3>
1061 <p>Integrate your desired form to your MailChimp email newsletter using latest API.</p>
1062 </div>
1063
1064 <div class="col">
1065 <img src="<?php echo WEFORMS_ASSET_URI; ?>/images/integrations/campaign-monitor.svg" alt="">
1066 <h3>Campaign Monitor</h3>
1067 <p>Lets you add submission form in your Campaign Monitor email campaigns too.</p>
1068 </div>
1069
1070 <div class="col">
1071 <img src="<?php echo WEFORMS_ASSET_URI; ?>/images/integrations/constant-contact.svg" alt="">
1072 <h3>Constant Contact</h3>
1073 <p>Integrate your contact forms seamlessly with your Constant Contact account.</p>
1074 </div>
1075
1076 <div class="col">
1077 <img src="<?php echo WEFORMS_ASSET_URI; ?>/images/integrations/mailpoet.svg" alt="">
1078 <h3>MailPoet</h3>
1079 <p>Why only MailChimp? Do the same for MailPoet email campaigns as well!</p>
1080 </div>
1081
1082 <div class="col">
1083 <img src="<?php echo WEFORMS_ASSET_URI; ?>/images/integrations/aweber.svg" alt="">
1084 <h3>AWeber</h3>
1085 <p>Use highly customizable forms and create subscriber’s list for AWber email solution.</p>
1086 </div>
1087
1088 <div class="col">
1089 <img src="<?php echo WEFORMS_ASSET_URI; ?>/images/integrations/getresponse.svg" alt="">
1090 <h3>Get Response</h3>
1091 <p>Enjoy seamless integration of weForms with your Get Response account.</p>
1092 </div>
1093
1094 <div class="col">
1095 <img src="<?php echo WEFORMS_ASSET_URI; ?>/images/integrations/convertkit.svg" alt="">
1096 <h3>ConvertKit</h3>
1097 <p>Subscribe a contact to ConvertKit when a form is submited.</p>
1098 </div>
1099
1100 <div class="col">
1101 <img src="<?php echo WEFORMS_ASSET_URI; ?>/images/integrations/more.svg" alt="">
1102 <h3>More...</h3>
1103 <p>A bunch of more integrations are coming soon.</p>
1104 </div>
1105 </div>
1106
1107 <div style="display: block; height: 100px; overflow: hidden;"></div>
1108
1109 <div class="weforms-upgrade-sticky-footer">
1110 <p><a class="button button-primary" href="<?php echo WeForms_Form_Builder_Assets::get_pro_url(); ?>" target="_blank"><?php _e( 'Upgrade Now', 'weforms' ); ?></a></p>
1111 </div>
1112
1113 </div></script>
1114
1115 <script type="text/x-template" id="tmpl-wpuf-weforms-settings">
1116 <div class="weforms-settings clearfix" id="weforms-settings">
1117
1118 <h1><?php _e( 'Settings', 'weforms' ); ?></h1>
1119 <div id="weforms-settings-tabs-warp">
1120 <div id="weforms-settings-tabs">
1121 <ul>
1122 <?php
1123
1124 $tabs = apply_filters( 'weforms_settings_tabs', array() );
1125
1126 foreach ( $tabs as $key => $tab ) :
1127 ?>
1128 <li>
1129 <a
1130 href="#"
1131 :class="['we-settings-nav-tab', isActiveTab( '<?php echo $key; ?>' ) ? 'we-settings-nav-tab-active' : '']"
1132 v-on:click.prevent="makeActive( '<?php echo $key; ?>' )"
1133 >
1134 <?php
1135
1136 if ( ! empty($tab['icon'] ) ) {
1137 printf('<img src="%s">', $tab['icon']);
1138 }
1139 ?>
1140 <?php _e( $tab['label'], 'weforms' ); ?>
1141 </a>
1142 </li>
1143
1144 <?php
1145
1146 endforeach;
1147
1148 do_action( 'weforms_settings_tabs_area' );
1149 ?>
1150 </ul>
1151 </div>
1152
1153 <div id="weforms-settings-tabs-contents">
1154
1155 <?php
1156
1157 foreach ( $tabs as $key => $tab ) :
1158 ?>
1159 <div id="weforms-settings-<?php echo $key; ?>" class="tab-content" v-show="isActiveTab('<?php echo $key; ?>')">
1160 <?php do_action( 'weforms_settings_tab_content_' . $key, $tab ); ?>
1161 </div>
1162 <?php
1163
1164 endforeach;
1165
1166 do_action( 'weforms_settings_tabs_contents' );
1167 ?>
1168
1169 </div>
1170 </div>
1171 </div></script>
1172