Changeset 1110937
- Timestamp:
- 03/12/2015 08:37:43 AM (11 years ago)
- Location:
- gravity-forms-enhancements/trunk
- Files:
-
- 4 edited
-
GravityFormsEnhacner.php (modified) (1 diff)
-
GravityFormsEnhacnerInit.php (modified) (1 diff)
-
libs/GravityFormsEnhancer/Enhancer.php (modified) (2 diffs)
-
readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
gravity-forms-enhancements/trunk/GravityFormsEnhacner.php
r1082240 r1110937 6 6 Author URI: http://latorante.name 7 7 Author Email: martin@latorante.name 8 Version: 1. 28 Version: 1.3 9 9 License: GPLv2 10 10 */ -
gravity-forms-enhancements/trunk/GravityFormsEnhacnerInit.php
r1082240 r1110937 35 35 define('GFENHANCER_ASSETS', GFENHANCER_FOLDER . '/assets/'); 36 36 define('GFENHANCER_ROOT', dirname(__FILE__) . DIRECTORY_SEPARATOR); 37 define('GFENHANCER_VER', '1. 2');37 define('GFENHANCER_VER', '1.3'); 38 38 // Start the engine last file to require, rest is auto 39 39 // Custom auto loader, PSR-0 Standard -
gravity-forms-enhancements/trunk/libs/GravityFormsEnhancer/Enhancer.php
r1082240 r1110937 22 22 { 23 23 /** @var null | array | int */ 24 var$form = NULL;24 public static $form = NULL; 25 25 /** @var int */ 26 26 var $priority = 10; … … 57 57 // in settings. 58 58 if($repositorySettings->enhancer == TRUE){ 59 // PHP lower than 5.4 support (meh) 60 $that = $this; 59 61 // Add gravity forms HTML content filter 60 Filter::add('gform_field_content', function($content, $field, $value, $lead_id, $form_id) use ($repositorySettings ){62 Filter::add('gform_field_content', function($content, $field, $value, $lead_id, $form_id) use ($repositorySettings, $that){ 61 63 // Apply form 62 $this->form = apply_filters('gravity_forms_enhancer_form', $this->form);64 self::$form = apply_filters('gravity_forms_enhancer_form', self::$form); 63 65 // Not for admin 64 66 if(!is_admin()){ 65 if(is_numeric( $this->form)){66 if( $this->form == $form_id){67 if(is_numeric(self::$form)){ 68 if(self::$form == $form_id){ 67 69 // Hunt for specific form 68 $content = $th is->hunt($content, $field, $repositorySettings);69 } 70 } elseif(is_array( $this->form)){71 if(in_array($form_id, $this->form)){70 $content = $that->hunt($content, $field, $repositorySettings); 71 } 72 } elseif(is_array(self::$form)){ 73 if(in_array($form_id, self::$form)){ 72 74 // Hunt for list of forms 73 $content = $th is->hunt($content, $field, $repositorySettings);75 $content = $that->hunt($content, $field, $repositorySettings); 74 76 } 75 77 } else { 76 78 // Hunt for all forms 77 $content = $th is->hunt($content, $field, $repositorySettings);79 $content = $that->hunt($content, $field, $repositorySettings); 78 80 } 79 81 } -
gravity-forms-enhancements/trunk/readme.txt
r1082240 r1110937 1 1 === Gravity Forms Enhancements === 2 2 Contributors: latorante 3 Donate link: http://donate.latorante.name/4 3 Tags: gravity forms, html5 placeholders, gravity forms placeholders, gravity forms labels 5 4 Requires at least: 3.3 … … 7 6 License: GPLv2 or later 8 7 License URI: http://www.gnu.org/licenses/gpl-2.0.html 9 Stable tag: 1. 28 Stable tag: 1.3 10 9 11 10 Simple library to enhance the Gravity Forms experience, build on a necessity and desire not to amend Gravity Forms core files. … … 30 29 = Road-map = 31 30 32 This is what I plan to implement in upcoming versions :31 This is what I plan to implement in upcoming versions. 33 32 34 1. Whatever I will find nice in [Forum / Wishlist.](https://wordpress.org/support/topic/wishlist-10 "Forum / Wishlist.") 33 1. Hooks to apply enhacements only on certain forms. 34 1. Correct HTML5 fields for date, time, email, website, etc. 35 1. Whatever I will find nice in [https://wordpress.org/support/topic/wishlist-10](https://wordpress.org/support/topic/wishlist-10 "Forum -> Wishlist.") 35 36 36 37 == Installation == … … 56 57 == Frequently Asked Questions == 57 58 58 1. **I want a special functionality** - [Forum / Wishlist.](https://wordpress.org/support/topic/wishlist-10 "Forum / Wishlist.")59 1. **I want a special functionality** - Forum -> Wishlist 59 60 60 61 == Upgrade Notice == 61 = 1.2 = 62 New options, new fixes, new looks. 62 63 63 == Changelog == 64 64 65 = 1.3 = 66 * Added support for PHP 5.4 and lower. 67 65 68 = 1.2 = 66 * Added select dropdowns placeholder 67 * Fixed tiny bug with missing value for JS placeholders 68 * Added HTML5 retype functionality 69 * Enabled filters to run enhacements only on specific forms 69 * Added new functionality, better performance. 70 70 71 71 = 1.0 =
Note: See TracChangeset
for help on using the changeset viewer.