PluginProbe
Smart Grid-Layout Design for Contact Form 7 / 3.3.2
Smart Grid-Layout Design for Contact Form 7 v3.3.2
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 / helpers / cf7sg-pre-form-load.php

cf7sg-pre-form-load.php in Smart Grid-Layout Design for Contact Form 7 3.3.2, at admin/partials/helpers/cf7sg-pre-form-load.php

50 lines 2.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 List of helpers for hooks fired prior to the form loading.
4 */
5 ?>
6 <li>
7 <a class="helper" data-cf72post="add_filter( 'cf7sg_pre_cf7_field_html', 'filter_pre_html', 10, 2);
8 function filter_pre_html($html, $cf7_key){
9 //the $html string to change
10 //the $cf7_key is a unique string key to identify your form, which you can find in your form table i nthe dashboard.
11 if('{$form_key}'==$cf7_key ){
12 $html = '<label></label>';
13 }
14 return $html;
15 }" href="javascript:void(0);"><?=__('Filter','cf7-grid-layout')?></a> <?=__('cf7 tag field pre-html.','cf7-grid-layout')?>
16 </li>
17 <li>
18 <a class="helper" data-cf72post="add_filter( 'cf7sg_post_cf7_field_html', 'filter_post_html', 10, 2);
19 function filter_post_html($html, $cf7_key){
20 //the $html string to change
21 //the $cf7_key is a unique string key to identify your form, which you can find in your form table i nthe dashboard.
22 if('{$form_key}'==$cf7_key ){
23 $html = '';
24 }
25 return $html;
26 }" href="javascript:void(0);"><?=__('Filter','cf7-grid-layout')?></a> <?=__('cf7 tag field post-html.','cf7-grid-layout')?>
27 </li>
28 <li>
29 <a class="helper" data-cf72post="add_filter( 'cf7sg_required_cf7_field_html', 'filter_required_html', 10, 2);
30 function filter_required_html($html, $cf7_key){
31 //the $html string to change
32 //the $cf7_key is a unique string key to identify your form, which you can find in your form table i nthe dashboard.
33 if('{$form_key}'==$cf7_key ){
34 $html = '<span>(required)</span>';
35 }
36 return $html;
37 }" href="javascript:void(0);"><?=__('Filter','cf7-grid-layout')?></a> <?=__('cf7 tag required-html.','cf7-grid-layout')?>
38 </li>
39 <li>
40 <a class="helper" data-cf72post="add_filter( 'cf7_smart_grid_form_id','form_wrapper_id',10,2);
41 function form_wrapper_id($css_id, $cf7_key){
42 // $css_id the css id for the html form wrapper.
43 //$cf7_key unique form key to identify your form, $cf7_id is its post_id.
44 if('{$form_key}'!==$cf7_key ){
45 $css_id = 'my-form';
46 }
47 return $css_id;
48 }" href="javascript:void(0);"><?=__('Filter','cf7-grid-layout')?></a> <?=__('the form wrapper css id.','cf7-grid-layout')?>
49 </li>
50