PluginProbe
weForms – Easy Drag & Drop Contact Form Builder For WordPress / 1.0.1
weForms – Easy Drag & Drop Contact Form Builder For WordPress v1.0.1
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 / includes / admin / views / form-settings.php

form-settings.php in weForms – Easy Drag & Drop Contact Form Builder For WordPress 1.0.1, at includes/admin/views/form-settings.php

58 lines 2.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <table class="form-table">
2 <tr class="wpuf-redirect-to">
3 <th><?php _e( 'Redirect To', 'weforms' ); ?></th>
4 <td>
5 <select v-model="settings.redirect_to">
6 <?php
7 $redirect_options = array(
8 'same' => __( 'Same Page', 'weforms' ),
9 'page' => __( 'To a page', 'weforms' ),
10 'url' => __( 'To a custom URL', 'weforms' )
11 );
12
13 foreach ($redirect_options as $to => $label) {
14 printf('<option value="%s"%s>%s</option>', $to, '', $label );
15 }
16 ?>
17 </select>
18 <p class="description">
19 <?php _e( 'After successfull submit, where the page will redirect to', 'weforms' ) ?>
20 </p>
21 </td>
22 </tr>
23
24 <tr class="wpuf-same-page" v-show="settings.redirect_to == 'same'">
25 <th><?php _e( 'Message to show', 'weforms' ); ?></th>
26 <td>
27 <textarea rows="3" cols="40" v-model="settings.message"></textarea>
28 </td>
29 </tr>
30
31 <tr class="wpuf-page-id" v-show="settings.redirect_to == 'page'">
32 <th><?php _e( 'Page', 'weforms' ); ?></th>
33 <td>
34 <?php $dropdown = wp_dropdown_pages( array(
35 'name' => 'wpuf_settings[page_id]',
36 'show_option_none' => __( '&mdash; Select a page &mdash;', 'weforms' ),
37 'echo' => false
38 ) );
39
40 echo str_replace('<select', '<select v-model="settings.page_id"', $dropdown );
41 ?>
42 </td>
43 </tr>
44
45 <tr class="wpuf-url" v-show="settings.redirect_to == 'url'">
46 <th><?php _e( 'Custom URL', 'weforms' ); ?></th>
47 <td>
48 <input type="url" v-model="settings.url">
49 </td>
50 </tr>
51
52 <tr class="wpuf-submit-text">
53 <th><?php _e( 'Submit Button text', 'weforms' ); ?></th>
54 <td>
55 <input type="text" v-model="settings.submit_text">
56 </td>
57 </tr>
58 </table>