Changeset 1504333
- Timestamp:
- 09/28/2016 09:13:32 AM (10 years ago)
- Location:
- bluecube-mighty-gravity-forms
- Files:
-
- 5 added
- 3 edited
-
tags/1.1 (added)
-
tags/1.1/bluecube-mighty-gravityforms.php (added)
-
tags/1.1/class (added)
-
tags/1.1/class/Mighty_Gravity_Forms.php (added)
-
tags/1.1/readme.txt (added)
-
trunk/bluecube-mighty-gravityforms.php (modified) (2 diffs)
-
trunk/class/Mighty_Gravity_Forms.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bluecube-mighty-gravity-forms/trunk/bluecube-mighty-gravityforms.php
r1487459 r1504333 6 6 * Description: This plugin adds some advanced features to Gravity Forms e.g. custom validation rules etc. 7 7 * Author: Blue Cube Communications Ltd 8 * Version: 1. 0.18 * Version: 1.1 9 9 * Author URI: https://thebluecube.com 10 10 * License: GPLv2 or later … … 17 17 18 18 $bc_mighty_gravityforms = new BlueCube\Mighty_Gravity_Forms(); 19 -
bluecube-mighty-gravity-forms/trunk/class/Mighty_Gravity_Forms.php
r1487459 r1504333 39 39 40 40 add_filter('gform_field_input', [$this, 'addFrontEndNumberRangeChange'], 10, 5); 41 42 // Adding a shortcode to have advanced conditional logic in email notifications 43 add_shortcode('gf_notification_conditional_block', [$this, 'notificationConditionalBlockShortcode']); 41 44 } 42 45 … … 840 843 return ''; // We did not want to return any html 841 844 } 845 846 /** 847 * A function to process the `gf_notification_conditional_block` shortcode. 848 * This shortcode helps adding a conditional block of content to email notifications. 849 * The shortcode should have an attribute called `function`. 850 * The `function` attribute is the name of the callback that would determine whether 851 * the block should be shown on the email or not. 852 * Please note that all the attributes of the shortcode are passed to the callback 853 * as an associative array. 854 * 855 * @param $atts 856 * @param string $content 857 * @return string 858 */ 859 public function notificationConditionalBlockShortcode($atts, $content = '') 860 { 861 // If no content is defined, we do not proceed with the process 862 if ($content == '' || ! isset($atts['function']) || ! function_exists($atts['function'])) 863 return ''; 864 865 return (call_user_func($atts['function'], $atts)) ? $content : ''; 866 } 842 867 } -
bluecube-mighty-gravity-forms/trunk/readme.txt
r1487817 r1504333 4 4 Tags: form, forms, form validation, gravity forms, add-on, extension 5 5 Requires at least: 4.6 6 Tested up to: 4.6 7 Stable tag: 1. 0.16 Tested up to: 4.6.1 7 Stable tag: 1.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 10 11 This plugin adds some additional features to the Gravity Forms plugin: Advanced input validations, Input ID change, Form access control 11 This plugin adds some additional features to the Gravity Forms plugin: Advanced input validations, Input ID change, Form access control, Advanced conditional logic for email notifications 12 12 13 13 == Description == … … 18 18 * Advanced input validations 19 19 * Form access control 20 * Advanced conditional logic shortcode to be used in email notifications 20 21 21 22 Documentation: https://thebluecube.com/wordpress-plugins/bluecube-mighty-gravity-forms/documentation/ … … 34 35 == Changelog == 35 36 37 = 1.1 = 38 * Adding advanced conditional logic shortcode to be used in email notifications 39 36 40 = 1.0.1 = 37 41 * Passing an array of additional arguments to the custom validation rule function
Note: See TracChangeset
for help on using the changeset viewer.