PluginProbe
Smart Grid-Layout Design for Contact Form 7 / 4.11
Smart Grid-Layout Design for Contact Form 7 v4.11
4.18.0 4.17.0 3.2.0 3.2.1 3.3.0 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 4.0.0 4.0.1 4.1.0 4.1.1 4.1.2 4.1.3 4.1.4 4.10 4.11 4.12 4.13 4.14 All 119 releases
cf7-grid-layout / admin / partials / cf7-benchmark-tag.php

cf7-benchmark-tag.php in Smart Grid-Layout Design for Contact Form 7 4.11, at admin/partials/cf7-benchmark-tag.php

102 lines 3.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Provide a admin area view for the plugin
5 *
6 * This file is used to markup the admin-facing aspects of the plugin.
7 *
8 * @link http://syllogic.in
9 * @since 1.5.0
10 *
11 * @package Cf7_2_Post
12 * @subpackage Cf7_2_Post/admin/partials
13 */
14 //TODO: add a check box to include or not address fields
15 ?>
16
17 <!-- This file should primarily consist of HTML with a little bit of PHP. -->
18
19 <div id="benchmark-tag-generator" class="control-box cf7-benchmark">
20 <fieldset>
21 <legend>Benchmark field</legend>
22 <table class="form-table">
23 <tbody>
24 <tr>
25 <th scope="row"><label for="<?php echo esc_attr( $args['content'] . '-name' ); ?>"><?php echo esc_html( __cf7sg( 'Name' ) ); ?></label></th>
26 <td><input type="text" name="name" class="tg-name oneline" id="<?php echo esc_attr( $args['content'] . '-name' ); ?>" /></td>
27 </tr>
28 <tr>
29 <th scope="row">Field type</th>
30 <td><input name="required" type="checkbox"> Required field<br /></td>
31 </tr>
32 <tr>
33 <th scope="row">Hidden field</th>
34 <td>
35 <input name="hidden" type="checkbox">Make this a hidden field<br />
36 <p>
37 A hidden field will need to be populated with your own custom javascript, but the msg and limits will be automatically checked when the field is populated. In case the limits are breached, an event 'cf7sg-benchmark-<span id="event-name"></span>' will be fired on the field itself. Your custom javascript can further take action on the event.
38 </p>
39 </td>
40 </tr>
41 <tr>
42 <th>
43 <label for="tag-generator-panel-number-id">Id attribute</label>
44 </th>
45 <td>
46 <input name="id" class="idvalue oneline option" id="tag-generator-panel-benchmark-id" type="text">
47 </td>
48 </tr>
49 <tr>
50 <th>
51 <label for="tag-generator-panel-number-class">Class attribute</label>
52 </th>
53 <td>
54 <input name="class" class="classvalue oneline option" id="tag-generator-panel-benchmark-class" type="text">
55 </td>
56 </tr>
57 </tbody>
58 </table>
59 <div id="benchmark-sources" class="tabordion">
60 <section id="above-source">
61 <input type="radio" name="bsections" id="above-tab" checked>
62 <label for="above-tab">Above</label>
63 <article>
64 <h4>Above</h4>
65 <label>limit <input type="number" id="benchmark-above" /></label><br />
66 <label class="warning-msg">Warning <input type="text" id="warning-above" value="The value is too high" /></label>
67 </article>
68 </section>
69 <section id="below-source">
70 <input type="radio" name="bsections" id="below-tab">
71 <label for="below-tab">Below</label>
72 <article class="">
73 <h4>Below</h4>
74 <label>limit <input type="number" id="benchmark-below" /></label><br />
75 <label class="warning-msg">Warning <input type="text" id="warning-below" value="The value is too low" /></label>
76 </article>
77 </section>
78 <section id="between-source">
79 <input type="radio" name="bsections" id="between-tab">
80 <label for="between-tab">Between</label>
81 <article>
82 <h4>Between</h4>
83 <label>min <input type="number" id="benchmark-min" /></label>
84 <label>max <input type="number" id="benchmark-max" /></label><br />
85 <label>Warning <input type="text" id="warning-between" value="The value is out of bound" /></label>
86 </article>
87 </section>
88 </div> <!-- end-tabs-->
89
90 </fieldset>
91 </div>
92 <div class="insert-box">
93 <input type="hidden" name="values" value="" />
94 <input type="text" name="benchmark" class="tag code" readonly="readonly" onfocus="this.select()" />
95
96 <div class="submitbox">
97 <input type="button" class="button button-primary insert-tag" value="<?php echo esc_attr( __cf7sg( 'Insert Tag' ) ); ?>" />
98 </div>
99
100 <br class="clear" />
101 </div>
102