PluginProbe
Smart Grid-Layout Design for Contact Form 7 / 3.3.3
Smart Grid-Layout Design for Contact Form 7 v3.3.3
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 / js / ui-custom-helper.js

ui-custom-helper.js in Smart Grid-Layout Design for Contact Form 7 3.3.3, at admin/js/ui-custom-helper.js

32 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /*
2 * Template file from CF7 Smart Grid plugin
3 * cf7-grid-layout/admin/js/ui-custom-helper.js
4 */
5 var cf7sgCustomHelperModule = (function (cch) {
6 // add functionality for your tag, replace 'your_plugin_tag' with the tap type.
7 // example [your_plugin_tag field-name id:field-id class:field-class "additional options"]
8 // cch.<your_plugin_tag> = function(tag){
9 // //basic regex to match a shortcode tag.
10 // const regex = /\[(your_plugin_tag|your_plugin_tag\*)\s(.[^\s\"\'\]]*)(?:\s(.[^\]]*))\]/img;
11 // let m, helpers={'js':[],'php':[]};
12 // while ((m = regex.exec(tag)) !== null) {
13 // //match your shortcode string.
14 // helpers.php[helpers.php.lenght] = 'class-name-for-grid-filter';
15 // }
16 // return helpers;
17 // }
18
19 //example: [map your-location show_address "lat:12.45;lng:80.09"]
20 // cch.map = function(shortcode){
21 // const regex = /\[(map|map\*)\s(.[^\s\"\'\]]*)(?:\s(.[^\]]*))\]/img;
22 // let match, helpers={'js':[],'php':[]};
23 // while ((match = regex.exec(shortcode)) !== null) {
24 // if(match.indexOf('show_address')>-1){
25 // helpers.php[helpers.php.length] = 'map-show_address';
26 // }
27 // }
28 // return helpers;
29 // }
30 return cch;
31 }(cf7sgCustomHelperModule || {}));
32