PluginProbe
weForms – Easy Drag & Drop Contact Form Builder For WordPress / 1.4.9
weForms – Easy Drag & Drop Contact Form Builder For WordPress v1.4.9
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.4.9, at assets/js-templates/spa-components.php

1,459 lines 82.6 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 <?php if ( ! class_exists( 'WeForms_Pro' ) ) {?>
182 <div class="wpuf-premium-cta">
183 <img src="<?php echo plugin_dir_url( dirname( __FILE__ ) ) . 'images/weforms-logo.png'?>">
184 <p><?php _e( 'You&#39;re using weForms Free. For more features, modules and more consider upgrading to Pro.' , 'weforms' ); ?></p>
185 <a href="https://weformspro.com/get-premium/?utm_source=Entries&utm_medium=Button&utm_campaign=Upgrade%20Now" target="_blank" class="button"><?php _e( 'UPGRADE NOW!' , 'weforms' ); ?></a>
186 </div>
187 <?php } ?>
188 </div>
189
190 <div>
191 <ul class="subsubsub">
192 <li class="all">
193 <a href="#" :class="{ current: status =='publish' }" @click.prevent="status='publish'">
194 All
195 <span class="count">
196 ({{total}})
197 </span>
198 </a> |
199 </li>
200 <li class="trash">
201 <a href="#" :class="{ current: status =='trash' }" @click.prevent="status='trash'">
202 Trash
203 <span class="count">
204 ({{totalTrash}})
205 </span>
206 </a>
207 </li>
208 </ul>
209 </div>
210 <div>
211 <template v-if="selected">
212
213 <wpuf-table
214 action="weforms_form_entries"
215 :status="status"
216 :id="selected"
217 v-on:ajaxsuccess="
218 form_title = $event.form_title;
219 $route.params.id = selected;
220 total = $event.meta.total;
221 totalTrash = $event.meta.totalTrash
222 "
223 >
224 </wpuf-table>
225 </template>
226 </div>
227
228 </div>
229 </script>
230
231 <script type="text/x-template" id="tmpl-wpuf-form-builder">
232 <form id="wpuf-form-builder" class="wpuf-form-builder-contact_form" method="post" action="" @submit.prevent="save_form_builder" v-cloak>
233 <fieldset :class="[is_form_saving ? 'disabled' : '']" :disabled="is_form_saving">
234
235 <h2 class="nav-tab-wrapper">
236 <a href="#wpuf-form-builder-container" :class="['nav-tab', isActiveTab( 'editor' ) ? 'nav-tab-active' : '']" v-on:click.prevent="makeActive('editor')">
237 <?php _e( 'Form Editor', 'weforms' ); ?>
238 </a>
239
240 <a href="#wpuf-form-builder-settings" :class="['nav-tab', isActiveTab( 'settings' ) ? 'nav-tab-active' : '']" v-on:click.prevent="makeActive('settings')">
241 <?php _e( 'Settings', 'weforms' ); ?>
242 </a>
243
244 <?php do_action( 'wpuf-form-builder-tabs-contact_form' ); ?>
245
246 <span class="pull-right">
247 <a :href="'<?php echo home_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>
248
249 <button v-if="!is_form_saving" type="button" class="button button-primary weforms-save-form-builder" @click="save_form_builder">
250 <?php _e( 'Save Form', 'weforms' ); ?>
251 </button>
252
253 <button v-else type="button" class="button button-primary button-ajax-working" disabled>
254 <span class="loader"></span> <?php _e( 'Saving Form Data', 'weforms' ); ?>
255 </button>
256 </span>
257 </h2>
258
259 <div class="tab-contents" v-if="!loading">
260 <div id="wpuf-form-builder-container" v-show="isActiveTab('editor')">
261 <div id="builder-stage">
262 <header class="clearfix">
263 <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>
264
265 <span v-show="post_title_editing">
266 <input type="text" v-model="post.post_title" name="post_title" />
267 <button type="button" class="button button-small" style="margin-top: 8px;" @click.prevent="post_title_editing = false"><i class="fa fa-check"></i></button>
268 </span>
269
270 <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>
271
272 <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' ); ?>">
273 <i class="fa fa-share-alt" aria-hidden="true"></i>
274 <?php _e( 'Share', 'Share' ); ?>
275 </span>
276
277 </header>
278
279 <ul v-if="is_form_switcher" class="form-switcher-content">
280
281 </ul>
282
283 <section>
284 <div id="form-preview">
285 <builder-stage></builder-stage>
286 </div>
287 </section>
288 </div><!-- #builder-stage -->
289
290 <div id="builder-form-fields">
291 <header>
292 <ul class="clearfix">
293 <li :class="['form-fields' === current_panel ? 'active' : '']">
294 <a href="#add-fields" @click.prevent="set_current_panel('form-fields')">
295 <?php _e( 'Add Fields', 'weforms' ); ?>
296 </a>
297 </li>
298
299 <li :class="['field-options' === current_panel ? 'active' : '', !form_fields_count ? 'disabled' : '']">
300 <a href="#field-options" @click.prevent="set_current_panel('field-options')">
301 <?php _e( 'Field Options', 'weforms' ); ?>
302 </a>
303 </li>
304 </ul>
305 </header>
306
307 <section>
308 <div class="wpuf-form-builder-panel">
309 <component :is="current_panel"></component>
310 </div>
311 </section>
312 </div><!-- #builder-form-fields -->
313 </div><!-- #wpuf-form-builder-container -->
314
315 <div id="wpuf-form-builder-settings" class="clearfix" v-show="isActiveTab('settings')">
316 <fieldset>
317 <h2 id="wpuf-form-builder-settings-tabs" class="nav-tab-wrapper">
318 <?php do_action( 'wpuf-form-builder-settings-tabs-contact_form' ); ?>
319 </h2><!-- #wpuf-form-builder-settings-tabs -->
320
321 <div id="wpuf-form-builder-settings-contents" class="tab-contents">
322 <?php do_action( 'wpuf-form-builder-settings-tab-contents-contact_form' ); ?>
323 </div><!-- #wpuf-form-builder-settings-contents -->
324 </fieldset>
325 </div><!-- #wpuf-form-builder-settings -->
326
327 <?php do_action( 'wpuf-form-builder-tab-contents-contact_form' ); ?>
328 </div>
329 <div v-else>
330
331 <div class="updating-message">
332 <p><?php _e( 'Loading the editor', 'weforms' ); ?></p>
333 </div>
334 </div>
335
336 <input type="hidden" name="form_settings_key" value="wpuf_form_settings">
337
338 <?php wp_nonce_field( 'wpuf_form_builder_save_form', 'wpuf_form_builder_nonce' ); ?>
339
340 <input type="hidden" name="wpuf_form_id" :value="post.ID">
341 </fieldset>
342 </form><!-- #wpuf-form-builder -->
343 </script>
344
345 <script type="text/x-template" id="tmpl-wpuf-form-entries">
346 <div class="wpuf-contact-form-entries">
347 <div>
348 <h1 class="wp-heading-inline">
349 <?php _e( 'Entries', 'weforms' ); ?>
350 <span class="dashicons dashicons-arrow-right-alt2" style="margin-top: 5px;"></span>
351
352 <span style="color: #999;" class="form-name">
353 {{ form_title }}
354 </span>
355
356 <router-link class="page-title-action" to="/"><?php _e( 'Back to forms', 'weforms' ); ?></router-link>
357 </h1>
358 </div>
359
360 <div>
361 <ul class="subsubsub">
362 <li class="all">
363 <a href="#" :class="{ current: status =='publish' }" @click.prevent="status='publish'">
364 All
365 <span class="count">
366 ({{total}})
367 </span>
368 </a> |
369 </li>
370 <li class="trash">
371 <a href="#" :class="{ current: status =='trash' }" @click.prevent="status='trash'">
372 Trash
373 <span class="count">
374 ({{totalTrash}})
375 </span>
376 </a>
377 </li>
378 </ul>
379 </div>
380 <div>
381 <template>
382
383 <wpuf-table
384 action="weforms_form_entries"
385 :status="status"
386 :id="id"
387 v-on:ajaxsuccess="
388 form_title = $event.form_title;
389 total = $event.meta.total;
390 totalTrash = $event.meta.totalTrash
391 "
392 >
393 </wpuf-table>
394 </template>
395 </div>
396
397 </div>
398 </script>
399
400 <script type="text/x-template" id="tmpl-wpuf-form-entry-single">
401 <div class="wpuf-contact-form-entry">
402 <h1 class="wp-heading-inline"><?php _e( 'Entry Details', 'weforms' ); ?></h1>
403 <router-link class="page-title-action" :to="{ name: 'formEntries', params: { id: $route.params.id }}"><?php _e( 'Back to Entries', 'weforms' ); ?></router-link>
404
405 <div v-if="loading"><?php _e( 'Loading...', 'weforms' ); ?></div>
406 <div v-else class="wpuf-contact-form-entry-wrap">
407
408 <div v-bind:class="['wpuf-contact-form-entry-left', form_settings.quiz_form === 'yes' ? 'weforms-quiz-entry' : '']">
409 <div class="postbox">
410 <h2 class="hndle ui-sortable-handle">
411 <span>{{ entry.meta_data.form_title }} : Entry # {{ $route.params.entryid }}</span>
412 <span class="pull-right" v-if="hasEmpty">
413 <label style="font-weight: normal; font-size: 12px">
414 <input type="checkbox" v-model="hideEmpty" style="margin-right: 1px"> <?php _e( 'Hide Empty', 'weforms' ); ?>
415 </label>
416 </span>
417 </h2>
418
419 <div class="main">
420 <table v-if="hasFormFields" class="wp-list-table widefat fixed striped posts">
421 <tbody>
422 <template v-for="(field, index) in entry.form_fields">
423 <template v-if="field.value || ! hideEmpty ">
424 <tr v-bind:class="['field-label', answers[field.name] ? 'right-answer' : 'wrong-answer']">
425 <th>
426 <strong>{{ field.label }}</strong>
427 <strong v-if="form_settings.quiz_form === 'yes'" class="field-points">
428 <template v-if="answers[field.name] === true">{{ field.points}}/{{field.points}}</template>
429 <template v-else>0/{{field.points}}</template>
430 </strong>
431 </th>
432 </tr>
433 <tr v-bind:class="['field-value', answers[field.name] ? 'right-answer' : 'wrong-answer']">
434 <td>
435 <weforms-entry-gmap :lat="field.value.lat" :long="field.value.long" :zoom="field.zoom" v-if="field.type == 'google_map'"></weforms-entry-gmap>
436 <div v-else-if="field.type === 'checkbox_field' || field.type === 'multiple_select'">
437 <ul style="margin: 0;">
438 <li v-for="item in field.value">- {{ item }}</li>
439 </ul>
440 </div>
441 <div v-else-if="field.type === 'country_list_field'">{{ getCountryName( field.value ) }}</div>
442 <div v-else-if="field.type === 'address_field'" v-html="getAddressFieldValue( field.value)"></div>
443 <div v-else v-html="field.value"></div>
444 </td>
445 </tr>
446 </template>
447 </template>
448 </tbody>
449 </table>
450 <div v-else><div class="inside"><?php _e( 'Loading...', 'weforms' ); ?></div></div>
451
452 </div>
453 </div>
454 </div>
455
456 <div class="wpuf-contact-form-entry-right">
457 <div class="postbox">
458 <h2 class="hndle ui-sortable-handle"><span><?php _e( 'Submission Info', 'weforms' ); ?></span></h2>
459 <div class="inside">
460 <div class="main">
461
462 <ul>
463 <li>
464 <span class="label"><?php _e( 'Entry ID', 'weforms' ); ?></span>
465 <span class="sep"> : </span>
466 <span class="value">#{{ $route.params.entryid }}</span>
467 </li>
468 <li>
469 <span class="label"><?php _e( 'User IP', 'weforms' ); ?></span>
470 <span class="sep"> : </span>
471 <span class="value">{{ entry.meta_data.ip_address }}</span>
472 </li>
473 <li>
474 <span class="label"><?php _e( 'Device', 'weforms' ); ?></span>
475 <span class="sep"> : </span>
476 <span class="value">{{ entry.meta_data.device }}</span>
477 </li>
478 <li>
479 <span class="label"><?php _e( 'Page', 'weforms' ); ?></span>
480 <span class="sep"> : </span>
481 <span class="value"><a :href="entry.meta_data.referer">{{ entry.meta_data.referer }}</a></span>
482 </li>
483 <li v-if="entry.meta_data.user">
484 <span class="label"><?php _e( 'From', 'weforms' ); ?></span>
485 <span class="sep"> : </span>
486 <span class="value">{{ entry.meta_data.user }}</span>
487 </li>
488 <li>
489 <span class="label"><?php _e( 'Submitted On', 'weforms' ); ?></span>
490 <span class="sep"> : </span>
491 <span class="value">{{ entry.meta_data.created }}</span>
492 </li>
493 </ul>
494 </div>
495 </div>
496
497 <div id="major-publishing-actions">
498 <div id="publishing-action">
499 <button class="button button-large button-secondary" v-on:click.prevent="trashEntry"><span class="dashicons dashicons-trash"></span><?php _e( ' Delete', 'weforms' ); ?></button>
500 </div>
501 <div class="clear"></div>
502 </div>
503 </div>
504
505 <div v-if="form_settings.quiz_form === 'yes'" class="postbox">
506 <h2 class="hndle ui-sortable-handle"><span><?php _e( 'Points', 'weforms' ); ?></span></h2>
507 <div class="inside">
508 <div class="main">
509 <p><?php _e( 'Total Points:', 'weforms' ); ?> {{ form_settings.total_points }}</p>
510 <p><?php _e( 'Respondent Points:', 'weforms' ); ?> {{ respondent_points }}</p>
511 </div>
512 </div>
513 </div>
514
515 <?php do_action( 'weforms_entry_single_right_metabox' ); ?>
516 </div>
517
518 <div class="wpuf-contact-form-entry-right" v-if="entry.payment_data" style=" clear: right;">
519 <div class="postbox">
520 <h2 class="hndle ui-sortable-handle"><span><?php _e( 'Payment Info', 'weforms' ); ?></span></h2>
521 <div class="inside">
522 <div class="main">
523
524 <ul>
525 <li>
526 <span class="label"><?php _e( 'Payment ID', 'weforms' ); ?></span>
527 <span class="sep"> : </span>
528 <span class="value">#{{ entry.payment_data.id }}</span>
529 </li>
530 <li>
531 <span class="label"><?php _e( 'Gateway', 'weforms' ); ?></span>
532 <span class="sep"> : </span>
533 <span class="value">{{ entry.payment_data.gateway }}</span>
534 </li>
535 <li>
536 <span class="label"><?php _e( 'Status', 'weforms' ); ?></span>
537 <span class="sep"> : </span>
538 <span class="value">{{ entry.payment_data.status }}</span>
539 </li>
540 <li>
541 <span class="label"><?php _e( 'Total', 'weforms' ); ?></span>
542 <span class="sep"> : </span>
543 <span class="value">{{ entry.payment_data.total }}</span>
544 </li>
545 <li>
546 <span class="label"><?php _e( 'Transaction ID', 'weforms' ); ?></span>
547 <span class="sep"> : </span>
548 <span class="value">{{ entry.payment_data.transaction_id ? entry.payment_data.transaction_id : 'N/A' }}</span>
549 </li>
550 <li>
551 <span class="label"><?php _e( 'Created at', 'weforms' ); ?></span>
552 <span class="sep"> : </span>
553 <span class="value">{{ entry.payment_data.created_at }}</span>
554 </li>
555
556 <li v-if="entry.payment_data.payment_data">
557
558 <template v-if="show_payment_data" class="value" v-for="(val,key) in entry.payment_data.payment_data">
559 <template v-if="key && (val === false || val)">
560 <li>
561 <span class="label">{{ key }}</span>
562 <span class="sep"> : </span>
563 <span class="value"> {{ val }}</span>
564 </li>
565 </template>
566 </template>
567
568 <span class="value"> <a href="#" @click.prevent="show_payment_data = !show_payment_data"> {{ show_payment_data ? 'Hide' : 'Show More' }} </a> </span>
569
570 </li>
571
572 </ul>
573 </div>
574 </div>
575 </div>
576 </div>
577 </div>
578 </div>
579 </script>
580
581 <script type="text/x-template" id="tmpl-wpuf-form-list-table">
582 <div class="content table-responsive table-full-width" style="margin-top: 20px;">
583
584 <div class="tablenav top">
585 <div class="alignleft actions bulkactions">
586 <label for="bulk-action-selector-top" class="screen-reader-text"><?php _e( 'Select bulk action', 'weforms' ); ?></label>
587 <select name="action" v-model="bulkAction">
588 <option value="-1"><?php _e( 'Bulk Actions', 'weforms' ); ?></option>
589 <option value="delete"><?php _e( 'Delete Forms', 'weforms' ); ?></option>
590 </select>
591
592 <button class="button action" v-on:click.prevent="handleBulkAction"><?php _e( 'Apply', 'weforms' ); ?></button>
593 </div>
594
595 <div class="tablenav-pages">
596
597 <span v-if="totalItems" class="displaying-num">{{ totalItems }} <?php _e( 'items', 'weforms' ); ?></span>
598
599 <span class="pagination-links">
600 <span v-if="isFirstPage()" class="tablenav-pages-navspan" aria-hidden="true">«</span>
601 <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>
602
603 <span v-if="currentPage == 1" class="tablenav-pages-navspan" aria-hidden="true"></span>
604 <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>
605
606 <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>
607
608 <span v-if="currentPage == totalPage || totalPage == 0" class="tablenav-pages-navspan" aria-hidden="true"></span>
609 <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>
610
611 <span v-if="isLastPage() || totalPage == 0" class="tablenav-pages-navspan" aria-hidden="true">»</span>
612 <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>
613 </span>
614 </div>
615 </div>
616
617 <table class="wp-list-table widefat fixed striped posts">
618 <thead>
619 <tr>
620 <td id="cb" class="manage-column column-cb check-column">
621 <label class="screen-reader-text" for="cb-select-all-1"><?php _e( 'Select All', 'weforms' ); ?></label>
622 <input type="checkbox" v-model="selectAll">
623 </td>
624 <th scope="col" class="col-form-name"><?php _e( 'Name', 'weforms' ); ?></th>
625 <th scope="col" class="col-form-shortcode"><?php _e( 'Shortcode', 'weforms' ); ?></th>
626 <th scope="col" class="col-form-entries"><?php _e( 'Entries', 'weforms' ); ?></th>
627 <th scope="col" class="col-form-status weforms-form-status-col-title"><?php _e( 'Status', 'weforms' ); ?></th>
628 <th scope="col" class="col-form-views"><?php _e( 'Views', 'weforms' ); ?></th>
629 <th scope="col" class="col-form-conversion"><?php _e( 'Conversion', 'weforms' ); ?></th>
630 <th scope="col" class="col-form-created-by"><?php _e( 'Created by', 'weforms' ); ?></th>
631 </tr>
632 </thead>
633 <tbody>
634 <tr v-if="loading">
635 <td colspan="6"><?php _e( 'Loading...', 'weforms' ); ?></td>
636 </tr>
637 <tr v-if="!items.length && !loading">
638 <td colspan="6"><?php _e( 'No form found!', 'weforms' ); ?></td>
639 </tr>
640 <tr v-for="(form, index) in items">
641 <th scope="row" class="check-column">
642 <input type="checkbox" name="post[]" v-model="checkedItems" :value="form.id">
643 </th>
644 <td class="title column-title has-row-actions column-primary page-title">
645 <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>
646
647 <div class="row-actions">
648 <span class="edit"><router-link :to="{ name: 'edit', params: { id: form.id }}"><?php _e( 'Edit', 'weforms' ); ?></router-link> | </span>
649
650 <span class="trash"><a href="#" v-on:click.prevent="deleteForm(index)" class="submitdelete"><?php _e( 'Delete', 'weforms' ); ?></a> | </span>
651
652 <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>
653
654 <router-link v-if="form.entries" :to="{ name: 'formEntries', params: { id: form.id }}"><?php _e( 'View Entries', 'weforms' ); ?></router-link>
655
656 <template v-if="is_pro">
657 <span>
658 <template>|</template>
659 <router-link :to="{ name: 'formReports', params: { id: form.id }}"><?php _e( 'Reports', 'weforms' ); ?></router-link>
660 </span>
661 </template>
662
663 <template v-if="is_pro && has_payment && form.payments">
664 <span>
665 <template>|</template>
666 <router-link :to="{ name: 'formPayments', params: { id: form.id }}"><?php _e( 'Transactions', 'weforms' ); ?></router-link>
667 </span>
668 </template>
669 </div>
670 </td>
671 <td><code>[weforms id="{{ form.id }}"]</code></td>
672 <td>
673 <router-link v-if="form.entries" :to="{ name: 'formEntries', params: { id: form.id }}">{{ form.entries }}</router-link>
674 <span v-else>&mdash;</span>
675 </td>
676 <td class="weforms-form-status" >
677 <p v-if="isFormStatusClosed(form.settings, form.entries)">
678 <?php _e( 'Closed', 'weforms' ); ?>
679 </p>
680 <p v-else class="open"><?php _e( 'Open', 'weforms' ); ?></p>
681
682 <template v-if="form.settings.limit_entries === 'true'">
683 <span v-if="form.settings.schedule_form === 'true' && isExpiredForm(form.settings.schedule_end)">(Expired at {{formatTime(form.settings.schedule_end)}})</span>
684 <span v-else-if="form.settings.schedule_form === 'true' && isPendingForm(form.settings.schedule_start)">(Starts at {{formatTime(form.settings.schedule_start)}})</span>
685 <span v-else-if="form.entries >= form.settings.limit_number">(Reached maximum entry limit)</span>
686 <span v-else>({{form.settings.limit_number - form.entries}} entries remaining)</span>
687 </template>
688
689 <template v-else-if="form.settings.schedule_form === 'true'">
690 <span v-if="isPendingForm(form.settings.schedule_start)">(Starts at {{formatTime(form.settings.schedule_start)}})</span>
691 <span v-if="isExpiredForm(form.settings.schedule_end)">(Expired at {{formatTime(form.settings.schedule_end)}})</span>
692 <span v-if="isOpenForm(form.settings.schedule_start, form.settings.schedule_end)">(Expires at {{formatTime(form.settings.schedule_end)}})</span>
693 </template>
694
695 <template v-else-if="form.settings.require_login === 'true'">
696 <span><?php _e( '(Requires login)', 'weforms' ); ?></span>
697 </template>
698 </td>
699 <td>{{ form.views }}</td>
700 <td>
701 <span v-if="form.views">{{ ((form.entries/form.views) * 100).toFixed(2) }}%</span>
702 <span v-else>0%</span>
703 </td>
704 <td v-if="form.author" class="weforms-form-creator">
705 <img v-bind:src="form.author.avatar">
706 <span>{{ form.author.username }}</span>
707 <span class="date">{{formatTime(form.data.post_date)}}</span>
708 </td>
709 </tr>
710 </tbody>
711
712 <tfoot>
713 <tr>
714 <td id="cb" class="manage-column column-cb check-column">
715 <label class="screen-reader-text" for="cb-select-all-1"><?php _e( 'Select All', 'weforms' ); ?></label>
716 <input type="checkbox" v-model="selectAll">
717 </td>
718 <th scope="col" class="col-form-name"><?php _e( 'Name', 'weforms' ); ?></th>
719 <th scope="col" class="col-form-shortcode"><?php _e( 'Shortcode', 'weforms' ); ?></th>
720 <th scope="col" class="col-form-entries"><?php _e( 'Entries', 'weforms' ); ?></th>
721 <th scope="col" class="col-form-status weforms-form-status-col-title"><?php _e( 'Status', 'weforms' ); ?></th>
722 <th scope="col" class="col-form-views"><?php _e( 'Views', 'weforms' ); ?></th>
723 <th scope="col" class="col-form-conversion"><?php _e( 'Conversion', 'weforms' ); ?></th>
724 <th scope="col" class="col-form-created-by"><?php _e( 'Created by', 'weforms' ); ?></th>
725 </tr>
726 </tfoot>
727 </table>
728
729 <div class="tablenav bottom">
730 <div class="alignleft actions bulkactions">
731 <label for="bulk-action-selector-top" class="screen-reader-text"><?php _e( 'Select bulk action', 'weforms' ); ?></label>
732 <select name="action" v-model="bulkAction">
733 <option value="-1"><?php _e( 'Bulk Actions', 'weforms' ); ?></option>
734 <option value="delete"><?php _e( 'Delete Forms', 'weforms' ); ?></option>
735 </select>
736
737 <button class="button action" v-on:click.prevent="handleBulkAction"><?php _e( 'Apply', 'weforms' ); ?></button>
738 </div>
739
740 <div class="tablenav-pages">
741
742 <span v-if="totalItems" class="displaying-num">{{ totalItems }} <?php _e( 'items', 'weforms' ); ?></span>
743
744 <span class="pagination-links">
745 <span v-if="isFirstPage()" class="tablenav-pages-navspan" aria-hidden="true">«</span>
746 <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>
747
748 <span v-if="currentPage == 1" class="tablenav-pages-navspan" aria-hidden="true"></span>
749 <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>
750
751 <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>
752
753 <span v-if="currentPage == totalPage || totalPage == 0" class="tablenav-pages-navspan" aria-hidden="true"></span>
754 <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>
755
756 <span v-if="isLastPage() || totalPage == 0" class="tablenav-pages-navspan" aria-hidden="true">»</span>
757 <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>
758 </span>
759 </div>
760 </div>
761 </div>
762 </script>
763
764 <script type="text/x-template" id="tmpl-wpuf-form-payments">
765 <div class="wpuf-contact-form-payments">
766 <h1 class="wp-heading-inline">
767 <?php _e( 'Transactions', 'weforms' ); ?>
768 <span class="dashicons dashicons-arrow-right-alt2" style="margin-top: 5px;"></span>
769 <span style="color: #999;" class="form-name">{{ form_title }}</span>
770 </h1>
771
772 <router-link class="page-title-action" to="/"><?php _e( 'Back to forms', 'weforms' ); ?></router-link>
773
774 <wpuf-table
775 has_export="no"
776 action="weforms_form_payments"
777 delete="weforms_form_payments_trash_bulk"
778 :id="id"
779 v-on:ajaxsuccess="form_title = $event.form_title"
780 >
781 </wpuf-table>
782
783 </div></script>
784
785 <script type="text/x-template" id="tmpl-wpuf-home-page">
786 <div class="contact-form-list">
787 <h1 class="wp-heading-inline"><?php _e( 'All Forms', 'weforms' ); ?></h1>
788 <a class="page-title-action add-form" herf="#" v-on:click.prevent="displayModal()"><?php _e( 'Add Form', 'weforms' ); ?></a>
789 <?php if ( ! class_exists( 'WeForms_Pro' ) ) {?>
790 <div class="wpuf-premium-cta">
791 <img src="<?php echo plugin_dir_url( dirname( __FILE__ ) ) . 'images/weforms-logo.png'?>">
792 <p><?php _e( 'You&#39;re using weForms Free. For more features, modules and more consider upgrading to Pro.' , 'weforms' ); ?></p>
793 <a href="https://weformspro.com/upgrade-now/?utm_source=All%20Forms&utm_medium=Button&utm_campaign=Upgrade%20Now" target="_blank" class="button"><?php _e( 'UPGRADE NOW!' , 'weforms' ); ?></a>
794 </div>
795 <?php } ?>
796 <wpuf-template-modal :show.sync="showTemplateModal" :onClose="closeModal"></wpuf-template-modal>
797
798 <form-list-table></form-list-table>
799 </div></script>
800
801 <script type="text/x-template" id="tmpl-wpuf-tools">
802 <div class="export-import-wrap">
803 <h1><?php _e( 'Tools', 'weforms' ); ?></h1>
804 <?php if ( ! class_exists( 'WeForms_Pro' ) ) {?>
805 <div class="wpuf-premium-cta">
806 <img src="<?php echo plugin_dir_url( dirname( __FILE__ ) ) . 'images/weforms-logo.png'?>">
807 <p><?php _e( 'You&#39;re using weForms Free. For more features, modules and more consider upgrading to Pro.' , 'weforms' ); ?></p>
808 <a href="https://weformspro.com/get-premium-weforms/?utm_source=Tools&utm_medium=Button&utm_campaign=Upgrade%20Now" target="_blank" class="button"><?php _e( 'UPGRADE NOW!' , 'weforms' ); ?></a>
809 </div>
810 <?php } ?>
811 <h2 class="nav-tab-wrapper">
812 <a :class="['nav-tab', isActiveTab( 'export' ) ? 'nav-tab-active' : '']" href="#" v-on:click.prevent="makeActive('export')"><?php _e( 'Export', 'wpuf' ); ?></a>
813 <a :class="['nav-tab', isActiveTab( 'import' ) ? 'nav-tab-active' : '']" href="#" v-on:click.prevent="makeActive('import')"><?php _e( 'Import', 'wpuf' ); ?></a>
814 <a :class="['nav-tab', isActiveTab( 'logs' ) ? 'nav-tab-active' : '']" href="#" v-on:click.prevent="makeActive('logs')"><?php _e( 'Logs', 'wpuf' ); ?></a>
815 </h2>
816
817 <div class="nav-tab-content">
818 <div class="nav-tab-inside" v-show="isActiveTab('export')">
819 <h3><?php _e( 'Export Utility', 'weforms' ); ?></h3>
820
821 <p><?php _e( 'You can export your form, as well as exporting the submitted entries by the users', 'weforms' ); ?></p>
822
823 <div class="postboxes metabox-holder two-col">
824 <div class="postbox">
825 <h3 class="hndle"><?php _e( 'Export Forms', 'weforms' ); ?></h3>
826
827 <div class="inside">
828 <p class="help">
829 <?php _e( 'You can export your existing contact forms and import the same forms into a different site.', 'weforms' ); ?>
830 </p>
831
832 <template v-if="!loading">
833 <form action="admin-post.php?action=weforms_export_forms" method="post">
834 <p><label><input v-model="exportType" type="radio" name="export_type" value="all" checked> <?php _e( 'All Forms', 'weforms' ); ?></label></p>
835 <p><label><input v-model="exportType" type="radio" name="export_type" value="selected"> <?php _e( 'Selected Forms', 'weforms' ); ?></label></p>
836 <p v-show="exportType == 'selected'">
837 <select name="selected_forms[]" class="forms-list" multiple="multiple">
838 <option v-for="entry in forms" :value="entry.id">{{ entry.title }}</option>
839 </select>
840 </p>
841
842 <?php wp_nonce_field( 'weforms-export-forms' ); ?>
843 <input type="submit" class="button button-primary" name="weforms_export_forms" value="<?php _e( 'Export Forms', 'weforms' ); ?>">
844 </form>
845 </template>
846 <template v-else>
847 <div class="spinner loading-spinner is-active"></div>
848 </template>
849 </div>
850 </div><!-- .postbox -->
851
852 <div class="postbox">
853 <h3 class="hndle"><?php _e( 'Export Form Entries', 'weforms' ); ?></h3>
854
855 <div class="inside">
856 <p class="help">
857 <?php _e( 'Export your form entries/submissions as a <strong>CSV</strong> file.', 'weforms' ); ?>
858 </p>
859
860 <template v-if="!loading">
861 <form action="admin-post.php?action=weforms_export_form_entries" method="post">
862 <p>
863 <select name="selected_forms" class="forms-list">
864 <option value=""><?php _e( '&mdash; Select Form &mdash;', 'weforms' ); ?></option>
865 <option v-for="entry in forms" :value="entry.id">{{ entry.title }}</option>
866 </select>
867 </p>
868
869 <?php wp_nonce_field( 'weforms-export-entries' ); ?>
870 <input type="submit" class="button button-primary" name="weforms_export_entries" value="<?php _e( 'Export Entries', 'weforms' ); ?>">
871 </form>
872 </template>
873 <template v-else>
874 <div class="spinner loading-spinner is-active"></div>
875 </template>
876 </div>
877 </div><!-- .postbox -->
878 </div>
879 </div>
880
881 <div class="nav-tab-inside" v-show="isActiveTab('import')">
882 <h3><?php _e( 'Import Contact Form', 'weforms' ); ?></h3>
883
884 <p><?php _e( 'Browse and locate a json file you backed up before.', 'weforms' ); ?></p>
885 <p><?php _e( 'Press <strong>Import</strong> button, we will do the rest for you.', 'weforms' ); ?></p>
886
887 <div class="updated-message notice notice-success is-dismissible" v-if="isSuccess">
888 <p>{{ responseMessage }}</p>
889
890 <button type="button" class="notice-dismiss" v-on:click="currentStatus = 0">
891 <span class="screen-reader-text"><?php _e( 'Dismiss this notice.', 'weforms' ); ?></span>
892 </button>
893 </div>
894
895 <div class="update-message notice notice-error is-dismissible" v-if="isFailed">
896 <p>{{ responseMessage }}</p>
897
898 <button type="button" class="notice-dismiss" v-on:click="currentStatus = 0">
899 <span class="screen-reader-text"><?php _e( 'Dismiss this notice.', 'weforms' ); ?></span>
900 </button>
901 </div>
902
903 <form action="" method="post" enctype="multipart/form-data" style="margin-top: 20px;">
904 <input type="file" name="importFile" v-on:change="importForm( $event.target.name, $event.target.files, $event )" accept="application/json" />
905 <button type="submit" :class="['button', isSaving ? 'updating-message' : '']" disabled="disabled">{{ importButton }}</button>
906 </form>
907
908 <hr>
909 <h3><?php _e( 'Import Other Forms', 'weforms' ); ?></h3>
910 <p><?php _e( 'You can import other WordPress form plugins into weForms.', 'weforms' ); ?></p>
911
912 <div class="updated" v-if="ximport.title">
913 <p><strong>{{ ximport.title }}</strong></p>
914
915 <p>{{ ximport.message }}</p>
916 <p>{{ ximport.action }}</p>
917
918 <ul v-if="hasRefs">
919 <li v-for="ref in ximport.refs">
920 <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>
921 </li>
922 </ul>
923
924 <p>
925 <a href="#" class="button button-primary" @click.prevent="replaceX($event.target, 'replace')"><?php _e( 'Replace Shortcodes', 'weforms' ); ?></a>&nbsp;
926 <a href="#" class="button" @click.prevent="replaceX($event.target, 'skip')"><?php _e( 'No Thanks', 'weforms' ); ?></a>
927 </p>
928 </div>
929
930
931 <table style="min-width: 500px;">
932 <tbody>
933 <tr>
934 <td><?php _e( 'Contact Form 7', 'weforms' ); ?></td>
935 <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>
936 </tr>
937 <tr>
938 <td><?php _e( 'Ninja Forms', 'weforms' ); ?></td>
939 <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>
940 </tr>
941 <tr>
942 <td><?php _e( 'Caldera Forms', 'weforms' ); ?></td>
943 <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>
944 </tr>
945 <tr>
946 <td><?php _e( 'Gravity Forms', 'weforms' ); ?></td>
947 <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>
948 </tr>
949 <tr>
950 <td><?php _e( 'WP Forms', 'weforms' ); ?></td>
951 <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>
952 </tr>
953 </tbody>
954 </table>
955 </div>
956
957 <div class="nav-tab-inside" v-show="isActiveTab('logs')">
958 <h3>
959 <?php _e( 'Logs', 'weforms' ); ?>
960
961 <span class="pull-right">
962
963 <button class="button button-large button-secondary" @click.prevent="fetchLogs($event.target)">
964 <span style="margin-top: 4px" class="dashicons dashicons-image-rotate"></span> Reload
965 </button>
966
967 <button class="button button-large button-secondary" @click.prevent="deleteLogs($event.target)" v-if="hasLogs">
968 <span style="margin-top: 4px" class="dashicons dashicons-trash"></span> Delete
969 </button>
970 </span>
971 </h3>
972
973 <table class="wp-list-table widefat fixed striped wpuf-contact-form" v-if="hasLogs">
974 <thead>
975 <tr>
976 <th style="width: 10%"> Type </th>
977 <th style="width: 15%"> Time </th>
978 <th style="width: 75%"> Details </th> </tr>
979 </thead>
980 <tbody>
981 <tr v-for="log in logs">
982 <td> <span> {{ log.type }} </span> </td>
983 <td> <span> {{ log.time }} </span> </td>
984 <td> {{ log.message }} </td>
985 </tr>
986 </tbody>
987 </table>
988 <div v-else>
989 <p><?php _e( 'No logs found. If any error occurs during an action. Those will be displayed here.', 'weforms' ); ?></p>
990 </div>
991 </div>
992 </div>
993 </div>
994 </script>
995
996 <script type="text/x-template" id="tmpl-wpuf-transactions">
997 <div class="wpuf-contact-form-transactions">
998 <h1 class="wp-heading-inline">
999 <?php _e( 'Transactions', 'weforms' ); ?>
1000 <span class="dashicons dashicons-arrow-right-alt2" style="margin-top: 5px;"></span>
1001 <span style="color: #999;" class="form-name">
1002 {{ form_title }}
1003 </span>
1004
1005 <select v-if="Object.keys(forms).length " v-model="selected">
1006 <option :value="form.id" v-for="form in forms">{{ form.name }}</option>
1007 </select>
1008 </h1>
1009
1010 <p v-if="no_transactions">
1011 <?php printf(
1012 __( 'You don\'t have any transactions yet. Learn how to %sset up payment integration%s and take payments with weFroms.' ),
1013 '<a target="_blank" href="https://wedevs.com/docs/weforms/integrations/payment/">',
1014 '</a>'
1015 );
1016 ?>
1017 </p>
1018
1019 <wpuf-table v-if="selected"
1020 has_export="no"
1021 action="weforms_form_payments"
1022 delete="weforms_form_payments_trash_bulk"
1023 :id="selected"
1024 v-on:ajaxsuccess="form_title = $event.form_title; $route.params.id = selected"
1025 >
1026 </wpuf-table>
1027
1028 </div>
1029 </script>
1030
1031 <script type="text/x-template" id="tmpl-wpuf-weforms-page-help">
1032 <div class="weforms-help-page">
1033
1034 <div class="help-block">
1035 <img src="<?php echo WEFORMS_ASSET_URI; ?>/images/help/docs.svg" alt="<?php esc_attr_e( 'Looking for Something?', 'weforms' ); ?>">
1036
1037 <h3><?php _e( 'Looking for Something?', 'weforms' ); ?></h3>
1038
1039 <p><?php _e( 'We have detailed documentation on every aspects of weForms.', 'weforms' ); ?></p>
1040
1041 <a target="_blank" class="button button-primary" href="https://weformspro.com/docs/?utm_source=weforms-help-page&utm_medium=help-block&utm_campaign=plugin-docs-link"><?php _e( 'Visit the Plugin Documentation', 'weforms' ); ?></a>
1042 </div>
1043
1044 <div class="help-block">
1045 <img src="<?php echo WEFORMS_ASSET_URI; ?>/images/help/support.svg" alt="<?php esc_attr_e( 'Need Any Assistance?', 'weforms' ); ?>">
1046
1047 <h3><?php _e( 'Need Any Assistance?', 'weforms' ); ?></h3>
1048
1049 <p><?php _e( 'Our EXPERT Support Team is always ready to Help you out.', 'weforms' ); ?></p>
1050
1051 <a target="_blank" class="button button-primary" href="https://weformspro.com/support/?utm_source=weforms-help-page&utm_medium=help-block&utm_campaign=need-assistance"><?php _e( 'Contact Support', 'weforms' ); ?></a>
1052 </div>
1053
1054 <div class="help-block">
1055 <img src="<?php echo WEFORMS_ASSET_URI; ?>/images/help/bugs.svg" alt="<?php esc_attr_e( 'Found Any Bugs?', 'weforms' ); ?>">
1056
1057 <h3><?php _e( 'Found Any Bugs?', 'weforms' ); ?></h3>
1058
1059 <p><?php _e( 'Report any Bug that you Discovered, Get Instant Solutions.', 'weforms' ); ?></p>
1060
1061 <a target="_blank" class="button button-primary" href="https://github.com/BoldGrid/weforms/issues/new"><?php _e( 'Report to GitHub', 'weforms' ); ?></a>
1062 </div>
1063
1064 <div class="help-block">
1065 <img src="<?php echo WEFORMS_ASSET_URI; ?>/images/help/customization.svg" alt="<?php esc_attr_e( 'Require Customization?', 'weforms' ); ?>">
1066
1067 <h3><?php _e( 'Require Customization?', 'weforms' ); ?></h3>
1068
1069 <p><?php _e( 'We would Love to hear your Integration and Customization Ideas.', 'weforms' ); ?></p>
1070
1071 <a target="_blank" class="button button-primary" href="https://weformspro.com/support/?utm_source=weforms-help-page&utm_medium=help-block&utm_campaign=requires-customization"><?php _e( 'Contact Our Services', 'weforms' ); ?></a>
1072 </div>
1073
1074 <div class="help-block">
1075 <img src="<?php echo WEFORMS_ASSET_URI; ?>/images/help/like.svg" alt="<?php esc_attr_e( 'Like The Plugin?', 'weforms' ); ?>">
1076
1077 <h3><?php _e( 'Like The Plugin?', 'weforms' ); ?></h3>
1078
1079 <p><?php _e( 'Your Review is very important to us as it helps us to grow more.', 'weforms' ); ?></p>
1080
1081 <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>
1082 </div>
1083 </div>
1084 </script>
1085
1086 <script type="text/x-template" id="tmpl-wpuf-weforms-page-privacy">
1087 <div class="wpuf-privacy-page">
1088
1089 <h1><?php _e('Privacy' , 'weforms'); ?></h1>
1090
1091 <h2><?php _e( 'Your website may need a Privacy Policy by law' , 'weforms' ); ?></h2>
1092
1093 <p><?php _e( 'We at weForms take privacy law compliance seriously, and we want our customers to know just how important it is for them as well.', 'weforms' ); ?></p>
1094
1095 <p><?php _e( 'Because you are implementing a contact form, that means you may be collecting the Personally Identifiable Information (PII) of individuals. This means that there may be privacy laws that apply to your website that require you to have a Privacy Policy. It is important to understand that if your website collects PII from users outside of your jurisdiction, you still may need to comply with the privacy laws of other states and countries. Please note that non-compliance may put you in danger of significant privacy related fines and lawsuits.' , 'weforms' ); ?></p>
1096
1097 <p><?php _e( 'If you do not have a Privacy Policy or are unsure if yours is up to date and compliant, we encourage you to generate one with our partner, Termageddon. Termageddon is a generator of Privacy Policies, Terms &amp; Conditions and more. They monitor privacy laws for you and update your Privacy Policy when new disclosures are required.' , 'weforms' ); ?></p>
1098
1099 <p><?php _e( 'If you decide Termageddon is a good solution for your website, use the promo code <strong>WEFORMS</strong> for 10&#37; off your first purchase at checkout. More information on Termageddon can be found <a href="https://app.termageddon.com/?fp_ref=weforms" target="_blank">here</a>.' , 'weforms' ); ?></p>
1100
1101 <p><?php _e( 'If you own a web design, web development or digital marketing company, check out <a href="https://termageddon.com/agency-partners/" target="_blank">Termageddon&#39;s agency partner program</a>, where you can offer Termageddon licenses to your clients, helping them stay compliant with privacy laws.' , 'weforms' ); ?></p>
1102
1103 <h2><?php _e( 'How to add Privacy Policy consent to your forms' , 'weforms' ); ?></h2>
1104
1105 <p><?php _e( 'Adding a Privacy Policy consent checkbox is your forms is simple. All you will need is the weForms plugin and an existing /privacy-policy page.' , 'weforms' ); ?></p>
1106
1107 <ol>
1108 <li><?php _e( '"Edit" the respective form that you&#39;d like to add a consent checkbox to.' , 'weforms' ); ?></li>
1109 <li><?php _e( 'Click &#39;checkbox&#39; so that it is added to the bottom of your form.' , 'weforms' ); ?></li>
1110 <li><?php _e( '"Edit" the consent checkbox, remove the &#39;Field Label&#39;, and replace &#39;Option&#39; with &#39;INSERT YOUR "I AGREE" LANGUAGE HERE AND PROVIDE A LINK TO YOUR PRIVACY POLICY&#39;.' , 'weforms' ); ?></li>
1111 </ol>
1112
1113 </div>
1114 </script>
1115
1116 <script type="text/x-template" id="tmpl-wpuf-weforms-premium">
1117 <div class="weforms-premium">
1118 <?php
1119 // _e( 'weForms Pro', 'weforms' );
1120 // echo WeForms_Form_Builder_Assets::get_pro_url();
1121 // echo WEFORMS_ASSET_URI; /images/integrations/mailchimp.svg"
1122 ?>
1123 <!-- start banner section -->
1124 <div id="banner" class="wf-banner-section wf-section-wrapper">
1125 <!-- banner left column -->
1126 <div class="banner-left-column">
1127 <div class="banner-icon">
1128 <svg width="25px" height="28px" viewBox="0 0 25 28" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
1129 <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
1130 <g id="Premium-Page-Design-for-weForms" transform="translate(-298.000000, -174.000000)" fill="#4CDAA0">
1131 <g id="Group-3" transform="translate(285.000000, 163.000000)">
1132 <g id="Page-1-Copy-6" transform="translate(13.076923, 11.538462)">
1133 <path d="M22.4734843,6.65402042 L4.95080724,13.9647562 C3.1534996,14.7235956 1.06664956,13.9130012 0.290961897,12.1540325 C-0.484725767,10.3957631 0.343865941,8.35424032 2.14260342,7.59540091 L19.6645656,0.284665163 C21.4625881,-0.474174241 23.5487233,0.336420108 24.3244109,2.09468947 C25.1000986,3.85435762 24.2715069,5.89518101 22.4734843,6.65402042 M22.4734843,19.3276876 L4.95080724,26.6384233 C3.1534996,27.3972627 1.06664956,26.5866684 0.290961897,24.8276996 C-0.484725767,23.0687308 0.343865941,21.0279075 2.14260342,20.269068 L19.6645656,12.9583323 C21.4625881,12.1994929 23.5487233,13.0100872 24.3244109,14.769056 C25.1000986,16.5280248 24.2715069,18.5688481 22.4734843,19.3276876" id="Fill-1"></path>
1134 </g>
1135 </g>
1136 </g>
1137 </g>
1138 </svg>
1139 </div>
1140 <div class="banner-content">
1141 <h1><?php _e( 'weForms Pro', 'weforms' ); ?></h1>
1142 <p><?php _e( 'Upgrade to the premium versions of weForms and <br>unlock even more useful features.' ); ?></p>
1143 </div>
1144 <div class="banner-buttons">
1145 <a href="https://weformspro.com/premium/?utm_source=Premium%20Page&utm_medium=Top%20Button&utm_campaign=Buy%20Now" class="wf-btn wf-btn-primary" target="_blank"><?php _e( 'Buy Now', 'weforms' ); ?></a>
1146 <a href="https://weformspro.com/docs/" class="wf-btn wf-btn-default" target="_blank"><?php _e( 'Read Full Guide', 'weforms' ); ?></a>
1147 </div>
1148 </div><!-- end banner left column -->
1149
1150
1151 <!-- video modal -->
1152
1153 <div id="wf-video-modal" :class="['wf-modal', showModal ? 'wf-modal-open': '']" role="dialog" @click="showModal = false">
1154 <div class="wf-modal-dialog">
1155 <div class="wf-modal-content">
1156 <span class="modal-close" @click="showModal = false">x</span>
1157 <div class="wf-modal-body">
1158 <iframe width="600px" height="400px" src="https://www.youtube.com/embed/668nUCeBHyY?rel=0" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
1159 </div>
1160 </div>
1161 </div>
1162 </div>
1163
1164
1165 <!-- banner right column -->
1166 <div class="banner-right-column">
1167 <div class="banner-thumb">
1168 <img src="<?php echo WEFORMS_ASSET_URI; ?>/images/premium/banner-thumb.svg" alt="Banner">
1169 <!-- <a class="video-play-icon" href="#" @click.prevent="showModal = true">
1170 <svg width="15px" height="17px" viewBox="0 0 15 17" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
1171 <defs>
1172 <linearGradient x1="50%" y1="100%" x2="12.980572%" y2="0%" id="linearGradient-1">
1173 <stop stop-color="#12CE66" offset="0%"></stop>
1174 <stop stop-color="#7EE6D1" offset="100%"></stop>
1175 </linearGradient>
1176 </defs>
1177 <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
1178 <g id="Premium-Page-Design-for-weForms" transform="translate(-1106.000000, -335.000000)" fill="url(#linearGradient-1)">
1179 <g id="Group-9" transform="translate(1087.000000, 318.000000)">
1180 <path d="M32.552792,24.6413241 L21.1089656,18.2019425 C20.0661123,17.6145297 19.2249533,18.0841645 19.2307995,19.2479777 L19.2894009,32.0295103 C19.2946903,33.1930549 20.1461497,33.6667186 21.1920654,33.0838719 L32.5483378,26.7581051 C33.5931399,26.1763328 33.595367,25.2287369 32.552792,24.6413241 Z" id="Path"></path>
1181 </g>
1182 </g>
1183 </g>
1184 </svg>
1185 </a> -->
1186 </div>
1187 </div><!-- end banner right column -->
1188
1189 </div><!-- end banner section -->
1190
1191 <!-- start features section -->
1192 <div id="features" class="wf-features-wrapper wf-section-wrapper">
1193 <div class="section-header">
1194 <h2><?php _e( 'More Features', 'weforms' ); ?></h2>
1195 </div>
1196 <div class="section-content">
1197 <div class="feature-row">
1198 <div class="feature-column feature-advance-fields">
1199 <div class="feature-thumb">
1200 <img src="<?php echo WEFORMS_ASSET_URI; ?>/images/premium/features/advance-fields.svg" alt="Advanced Fields">
1201 </div>
1202 <div class="feature-content">
1203 <h3><?php _e( 'Advance Fields', 'weforms' ); ?></h3>
1204 <p><?php _e( '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.', 'weforms' ); ?></p>
1205 </div>
1206 </div>
1207 <div class="feature-column feature-conditional-logic">
1208 <div class="feature-thumb">
1209 <img src="<?php echo WEFORMS_ASSET_URI; ?>/images/premium/features/conditional-logic.svg" alt="Conditional Logic">
1210 </div>
1211 <div class="feature-content">
1212 <h3><?php _e( 'Conditional Logic', 'weforms' ); ?></h3>
1213 <p><?php _e( 'Configure your form’s settings and user flow based on conditional selection. Your forms should appear just the way you want it.', 'weforms' ); ?></p>
1214 </div>
1215 </div>
1216 <div class="feature-column feature-multi-step">
1217 <div class="feature-thumb">
1218 <img src="<?php echo WEFORMS_ASSET_URI; ?>/images/premium/features/multistep-form.svg" alt="Multi Step">
1219 </div>
1220 <div class="feature-content">
1221 <h3><?php _e( 'Multi-step Form', 'weforms' ); ?></h3>
1222 <p><?php _e( 'Break down the long forms into small and attractive multi step forms. Long and lengthy forms are uninviting, why build one?', 'weforms' ); ?></p>
1223 </div>
1224 </div>
1225 <div class="feature-column feature-file-uploaders">
1226 <div class="feature-thumb">
1227 <img src="<?php echo WEFORMS_ASSET_URI; ?>/images/premium/features/file-uploader.svg" alt="File uploaders">
1228 </div>
1229 <div class="feature-content">
1230 <h3><?php _e( 'File Uploaders', 'weforms' ); ?></h3>
1231 <p><?php _e( '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.', 'weforms' ); ?></p>
1232 </div>
1233 </div>
1234 <div class="feature-column feature-notification">
1235 <div class="feature-thumb">
1236 <img src="<?php echo WEFORMS_ASSET_URI; ?>/images/premium/features/notification.svg" alt="Form Submit Notification">
1237 </div>
1238 <div class="feature-content">
1239 <h3><?php _e( 'Form Submission Notication', 'weforms' ); ?></h3>
1240 <p><?php _e( 'Receive email notification every time your form is submitted. You can now configure the notification settings just as you like it.', 'weforms' ); ?></p>
1241 </div>
1242 </div>
1243 <div class="feature-column feature-submission">
1244 <div class="feature-thumb">
1245 <img src="<?php echo WEFORMS_ASSET_URI; ?>/images/premium/features/submission.svg" alt="Manage Submission">
1246 </div>
1247 <div class="feature-content">
1248 <h3><?php _e( 'Manage Submission', 'weforms' ); ?></h3>
1249 <p><?php _e( 'View, edit and manage all the submission data stored through your form. We believe that you should own it all- like literally!', 'weforms' ); ?></p>
1250 </div>
1251 </div>
1252 </div>
1253 </div>
1254 </div><!-- end features section -->
1255
1256 <!-- start integration section -->
1257 <div id="integration" class="wf-integration-wrapper wf-section-wrapper">
1258 <div class="section-header">
1259 <h2><?php _e( 'More Integrations', 'weforms' ); ?></h2>
1260 </div>
1261 <div class="section-content">
1262 <div class="integration-row">
1263 <div class="integration-column">
1264 <div class="integration-thumb">
1265 <img src="<?php echo WEFORMS_ASSET_URI; ?>/images/premium/integrations/mailchimp.svg" alt="Mailchimp integration">
1266 </div>
1267 <div class="integration-content">
1268 <h3><?php _e( 'Mailchimp', 'weforms' ); ?></h3>
1269 <p><?php _e( 'Integrate your desired form to your MailChimp email newsletter using latest API.', 'weforms' ); ?></p>
1270 </div>
1271 </div>
1272
1273 <div class="integration-column">
1274 <div class="integration-thumb">
1275 <img src="<?php echo WEFORMS_ASSET_URI; ?>/images/premium/integrations/campaign-monitor.svg" alt="Campaign Monitor">
1276 </div>
1277 <div class="integration-content">
1278 <h3><?php _e( 'Campaign Monitor', 'weforms' ); ?></h3>
1279 <p><?php _e( 'Lets you add submission form in your Campaign Monitor email campaigns too.', 'weforms' ); ?></p>
1280 </div>
1281 </div>
1282
1283 <div class="integration-column">
1284 <div class="integration-thumb">
1285 <img src="<?php echo WEFORMS_ASSET_URI; ?>/images/premium/integrations/constant-contact.svg" alt="Constant Contact">
1286 </div>
1287 <div class="integration-content">
1288 <h3><?php _e( 'Constant Contact', 'weforms' ); ?></h3>
1289 <p><?php _e( 'Integrate your contact forms seamlessly with your Constant Contact account.', 'weforms' ); ?></p>
1290 </div>
1291 </div>
1292
1293 <div class="integration-column">
1294 <div class="integration-thumb">
1295 <img src="<?php echo WEFORMS_ASSET_URI; ?>/images/premium/integrations/mailpoet.svg" alt="MailPoet">
1296 </div>
1297 <div class="integration-content">
1298 <h3><?php _e( 'MailPoet', 'weforms' ); ?></h3>
1299 <p><?php _e( 'Why only MailChimp? Do the same for MailPoet email campaigns as well!', 'weforms' ); ?></p>
1300 </div>
1301 </div>
1302
1303 <div class="integration-column">
1304 <div class="integration-thumb">
1305 <img src="<?php echo WEFORMS_ASSET_URI; ?>/images/premium/integrations/aweber.svg" alt="AWeber">
1306 </div>
1307 <div class="integration-content">
1308 <h3><?php _e( 'AWeber', 'weforms' ); ?></h3>
1309 <p><?php _e( 'Use highly customizable forms and create subscriber’s list for AWber email solution.', 'weforms' ); ?></p>
1310 </div>
1311 </div>
1312
1313 <div class="integration-column">
1314 <div class="integration-thumb">
1315 <img src="<?php echo WEFORMS_ASSET_URI; ?>/images/premium/integrations/get-response.svg" alt="Get Response">
1316 </div>
1317 <div class="integration-content">
1318 <h3><?php _e( 'Get Response', 'weforms' ); ?></h3>
1319 <p><?php _e( 'Enjoy seamless integration of weForms with your Get Response account.', 'weforms' ); ?></p>
1320 </div>
1321 </div>
1322
1323 <div class="integration-column">
1324 <div class="integration-thumb">
1325 <img src="<?php echo WEFORMS_ASSET_URI; ?>/images/premium/integrations/convert-kit.svg" alt="ConvertKit">
1326 </div>
1327 <div class="integration-content">
1328 <h3><?php _e( 'ConvertKit', 'weforms' ); ?></h3>
1329 <p><?php _e( 'Subscribe a contact to ConvertKit when a form is submited.', 'weforms' ); ?></p>
1330 </div>
1331 </div>
1332
1333 <div class="integration-column">
1334 <div class="integration-thumb">
1335 <img src="<?php echo WEFORMS_ASSET_URI; ?>/images/premium/integrations/more-integration.svg" alt="More.Integration">
1336 </div>
1337 <div class="integration-content">
1338 <h3><?php _e( 'More...', 'weforms' ); ?></h3>
1339 <p><?php _e( 'A bunch of more integrations are coming soon.', 'weforms' ); ?></p>
1340 </div>
1341 </div>
1342
1343 </div>
1344 </div>
1345 </div><!-- end integration section -->
1346
1347 <!-- start footer section -->
1348 <section id="import" class="wf-import-wrapper">
1349 <div class="section-content">
1350 <div class="import-left">
1351 <div class="import-icon">
1352
1353 <svg width="32px" height="35px" viewBox="0 0 32 35" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
1354 <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
1355 <g id="Premium-Page-Design-for-weForms" transform="translate(-278.000000, -2204.000000)" fill="#FFFFFF">
1356 <g id="Group-3" transform="translate(261.000000, 2189.000000)">
1357 <g id="Page-1-Copy-6" transform="translate(17.000000, 15.000000)">
1358 <path d="M29.2155296,8.65022654 L6.43604941,18.154183 C4.09954948,19.1406742 1.38664443,18.0869016 0.378250466,15.8002422 C-0.630143496,13.514492 0.447025723,10.8605124 2.78538444,9.87402119 L25.5639353,0.370064711 C27.9013646,-0.616426514 30.6133402,0.43734614 31.6217342,2.72309632 C32.6301282,5.01066491 31.5529589,7.66373532 29.2155296,8.65022654 M29.2155296,25.1259938 L6.43604941,34.6299503 C4.09954948,35.6164415 1.38664443,34.5626689 0.378250466,32.2760095 C-0.630143496,29.9893501 0.447025723,27.3362797 2.78538444,26.3497885 L25.5639353,16.845832 C27.9013646,15.8593408 30.6133402,16.9131134 31.6217342,19.1997728 C32.6301282,21.4864322 31.5529589,24.1395026 29.2155296,25.1259938" id="Fill-1"></path>
1359 </g>
1360 </g>
1361 </g>
1362 </g>
1363 </svg>
1364 </div>
1365 <div class="import-text">
1366 <p><?php _e( 'Extend the functionalities while', 'weforms' ); ?></p>
1367 <h2><?php _e( 'Building WordPress Forms', 'wefoms' ); ?></h2>
1368 </div>
1369 </div>
1370 <div class="import-right">
1371 <a href="https://weformspro.com/upgrade/?utm_source=Premium%20Page&utm_medium=Bottom%20Button&utm_campaign=Upgrade%20Now" target="_blank" class="wf-btn wf-btn-primary wf-btn-lg"><?php _e( 'Upgrade Now', 'weforms' ); ?></a>
1372 </div>
1373 </div>
1374 </section><!-- end footer section -->
1375
1376 </div>
1377 </script>
1378
1379 <script type="text/x-template" id="tmpl-wpuf-weforms-settings">
1380 <div class="weforms-settings clearfix" id="weforms-settings">
1381
1382 <h1><?php _e( 'Settings', 'weforms' ); ?></h1>
1383 <?php if ( ! class_exists( 'WeForms_Pro' ) ) {?>
1384 <div class="wpuf-premium-cta">
1385 <img src="<?php echo plugin_dir_url( dirname( __FILE__ ) ) . 'images/weforms-logo.png'?>">
1386 <p><?php _e( 'You&#39;re using weForms Free. For more features, modules and more consider upgrading to Pro.' , 'weforms' ); ?></p>
1387 <a href="https://weformspro.com/premium-weforms/?utm_source=Settings&utm_medium=Button&utm_campaign=Upgrade%20Now" target="_blank" class="button"><?php _e( 'UPGRADE NOW!' , 'weforms' ); ?></a>
1388 </div>
1389 <?php } ?>
1390 <div id="weforms-settings-tabs-warp" class="<?php echo !function_exists( 'weforms_pro' ) ? 'weforms-pro-deactivate' : ''; ?>">
1391 <div id="weforms-settings-tabs">
1392 <ul>
1393 <?php
1394 $tabs = apply_filters( 'weforms_settings_tabs', [] );
1395
1396 foreach ( $tabs as $key => $tab ) {
1397 ?>
1398 <li>
1399 <a
1400 href="#"
1401 :class="['we-settings-nav-tab', isActiveTab( '<?php echo $key; ?>' ) ? 'we-settings-nav-tab-active' : '']"
1402 v-on:click.prevent="makeActive( '<?php echo $key; ?>' )"
1403 >
1404 <?php
1405
1406 if ( !empty( $tab['icon'] ) ) {
1407 printf( '<img src="%s">', $tab['icon'] );
1408 } ?>
1409 <?php _e( $tab['label'], 'weforms' ); ?>
1410 </a>
1411 </li>
1412
1413 <?php
1414 }
1415
1416 do_action( 'weforms_settings_tabs_area' );
1417 ?>
1418 </ul>
1419 </div>
1420
1421 <div id="weforms-settings-tabs-contents">
1422
1423 <?php
1424 foreach ( $tabs as $key => $tab ) {
1425 ?>
1426 <div id="weforms-settings-<?php echo $key; ?>" class="tab-content" v-show="isActiveTab('<?php echo $key; ?>')">
1427 <?php do_action( 'weforms_settings_tab_content_' . $key, $tab ); ?>
1428 </div>
1429 <?php
1430 }
1431
1432 do_action( 'weforms_settings_tabs_contents' );
1433 ?>
1434
1435 </div>
1436 </div>
1437
1438 <?php if ( !function_exists( 'weforms_pro' ) ) { ?>
1439
1440 <div id="weforms-settings-page-sidebar" class="weforms-settings-page-sidebar">
1441 <div class="weforms-settings-page-sidebar-content">
1442 <h2>Upgrade to <br><strong style="color:#57AB64">weForms Pro</strong></h2>
1443
1444 <ul class="weforms-pro-features">
1445 <li><span class="dashicons dashicons-yes"></span> Integration with email marketing solutions such as Aweber, GetResponse, ConvertKit etc.</li>
1446 <li><span class="dashicons dashicons-yes"></span> Connect with productivity tools such as Google Analytics, Zapier, Trello, Google Sheets.</li>
1447 <li><span class="dashicons dashicons-yes"></span> Manage payments directly from your forms with PayPal & Stripe.</li>
1448 <li><span class="dashicons dashicons-yes"></span> Integrate with popular CRM tools such as Zoho, Salesforce, HubSpot and better manage your relationship with your customers.</li>
1449 <li><span class="dashicons dashicons-yes"></span> Create quiz forms, calculate numbers directly in your form, set geolocation and more in weForms Pro.</li>
1450 </ul>
1451
1452 <a href="https://weformspro.com/pricing" target="_blank" class="button button-primary">Get weForms Pro</a>
1453 </div>
1454 </div>
1455
1456 <?php } ?>
1457 </div>
1458 </script>
1459