Changeset 1396079
- Timestamp:
- 04/15/2016 03:06:18 AM (10 years ago)
- Location:
- migrate-ninja-forms-to-gravity-forms
- Files:
-
- 7 added
- 3 edited
-
tags/0.1.1 (added)
-
tags/0.1.1/class-gf-migrate-nf.php (added)
-
tags/0.1.1/includes (added)
-
tags/0.1.1/includes/class-gf-migrate-nf-api.php (added)
-
tags/0.1.1/includes/class-gf-migrate-nf-field.php (added)
-
tags/0.1.1/migrate-nf.php (added)
-
tags/0.1.1/readme.txt (added)
-
trunk/class-gf-migrate-nf.php (modified) (24 diffs)
-
trunk/migrate-nf.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
migrate-ninja-forms-to-gravity-forms/trunk/class-gf-migrate-nf.php
r1361045 r1396079 8 8 * Uses the Gravity Forms Add-On Framework use native elements 9 9 * 10 * @since 1.010 * @since 0.1 11 11 */ 12 12 class GF_Migrate_NF extends GFAddOn { … … 15 15 * Migrate Ninja Forms to Gravity Forms version number 16 16 * 17 * @since 1.017 * @since 0.1 18 18 * @access protected 19 19 * @var string $_version Plugin version number … … 24 24 * Minimum supported version of Gravity Forms 25 25 * 26 * @since 1.026 * @since 0.1 27 27 * @access protected 28 28 * @var string $_min_gravityforms_version The minimum version of Gravity Forms this plugin supports … … 33 33 * The plugin slug. Primarily used in the directory name 34 34 * 35 * @since 1.035 * @since 0.1 36 36 * @access protected 37 37 * @var string $_slug The slug (no slimy, and not a bug) … … 42 42 * Path to the plugin file, relative to the wp-content/plugins directory 43 43 * 44 * @since 1.044 * @since 0.1 45 45 * @access protected 46 46 * @var string $_path The path. … … 51 51 * The absolute path to the main class file. 52 52 * 53 * @since 1.053 * @since 0.1 54 54 * @access protected 55 55 * @var string $_full_path The path. … … 60 60 * The URL for more information about this plugin 61 61 * 62 * @since 1.062 * @since 0.1 63 63 * @access protected 64 64 * @var string $_url A super cool site that all the cool kids go to … … 69 69 * The title of this plugin 70 70 * 71 * @since 1.071 * @since 0.1 72 72 * @access protected 73 73 * @var string $_title The title … … 78 78 * The shorter title 79 79 * 80 * @since 1.080 * @since 0.1 81 81 * @access protected 82 82 * @var string $_short_title The title. In case the other one was too long for you ;) … … 87 87 * The instance of this class. Used to instantiate. 88 88 * 89 * @since 1.089 * @since 0.1 90 90 * @access protected 91 91 * @var object $_instance The instance … … 96 96 * Get an instance of this class. 97 97 * 98 * @since 1.098 * @since 0.1 99 99 * @access public 100 100 * @static … … 114 114 * Register required files and filters. 115 115 * 116 * @since 1.0116 * @since 0.1 117 117 * @access public 118 118 */ … … 138 138 * Callback from gform_export_menu filer, defined within init() 139 139 * 140 * @since 1.0140 * @since 0.1 141 141 * @see $this->init() 142 142 * @access public … … 162 162 * Fired from action call in init() 163 163 * 164 * @since 1.0164 * @since 0.1 165 165 * @see $this->init() 166 166 * @access public … … 231 231 * Then, begins the migration. 232 232 * 233 * @since 1.0233 * @since 0.1 234 234 * @access public 235 235 */ … … 267 267 * Migrates forms and submissions from Ninja Forms to Gravity Forms. 268 268 * 269 * @since 1.0269 * @since 0.1 270 270 * @access public 271 271 * @param array $form_ids The Ninja Forms form IDs being migrated. … … 321 321 * Converts a Ninja Form to a Gravity Form. 322 322 * 323 * @since 1.0323 * @since 0.1 324 324 * @access public 325 325 * @param array $ninja_form The Ninja Forms form being converted. … … 391 391 * Convert a Ninja Forms notification to a Gravity Forms notification/confirmation. 392 392 * 393 * @since 1.0393 * @since 0.1 394 394 * @access public 395 395 * @param array $form The new Gravity Forms form object. … … 406 406 $confirmation = array( 407 407 'id' => uniqid(), 408 'isActive' => boolval( $nf_notification['active'] ),408 'isActive' => '1' === $nf_notification['active'] ? true : false, 409 409 'name' => $nf_notification['name'], 410 410 'type' => 'redirect', … … 423 423 $confirmation = array( 424 424 'id' => uniqid(), 425 'isActive' => boolval( $nf_notification['active'] ),425 'isActive' => '1' === $nf_notification['active'] ? true : false, 426 426 'name' => $nf_notification['name'], 427 427 'type' => 'message', … … 440 440 $notification = array( 441 441 'id' => uniqid(), 442 'isActive' => boolval( $nf_notification['active'] ),442 'isActive' => '1' === $nf_notification['active'] ? true : false, 443 443 'name' => $nf_notification['name'], 444 444 'message' => $this->convert_to_merge_tags( $form, $nf_notification['email_message'] ), … … 464 464 * Convert Ninja Forms submissions to Gravity Forms entries. 465 465 * 466 * @since 1.0466 * @since 0.1 467 467 * @access public 468 468 * @param array $ninja_form The Ninja Forms form being converted. … … 536 536 * Converts any Ninja Forms shortcodes in a string to Gravity Forms merge tags. 537 537 * 538 * @since 1.0538 * @since 0.1 539 539 * @access public 540 540 * @param array $form The Gravity Forms form object. … … 584 584 * Backticks in lists are bad, and you should feel bad. 585 585 * 586 * @since 1.0586 * @since 0.1 587 587 * @access public 588 588 * @param array $form The Gravity Forms form object. -
migrate-ninja-forms-to-gravity-forms/trunk/migrate-nf.php
r1361045 r1396079 5 5 Plugin URI: http://travislop.es/plugins/migrate-ninja-forms-to-gravity-forms/ 6 6 Description: Imports content from Ninja Forms into Gravity Forms 7 Version: 0.1 7 Version: 0.1.1 8 8 Author: travislopes 9 9 Author URI: http://travislop.es … … 11 11 */ 12 12 13 define( 'GF_MIGRATE_NINJAFORMS_VERSION', '0.1 ' );13 define( 'GF_MIGRATE_NINJAFORMS_VERSION', '0.1.1' ); 14 14 15 15 add_action( 'gform_loaded', array( 'GF_Migrate_NinjaForms_Bootstrap', 'load' ), 5 ); -
migrate-ninja-forms-to-gravity-forms/trunk/readme.txt
r1361187 r1396079 61 61 62 62 == Changelog == 63 = v0.1.1 = 64 * Updated notification conversion to not use boolval(). 63 65 = v0.1 = 64 66 * Initial release
Note: See TracChangeset
for help on using the changeset viewer.