This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script> | |
| jQuery( document ).ready( function() { | |
| /* Form ID #5 */ | |
| var formID = 5; | |
| var category = 'Email List'; | |
| var action = 'Subscribed'; | |
| var label = 'New Subscriber'; | |
| jQuery( document ).on('click', '.nf-form-' + formID + '-cont input[type=button]', function() { | |
| ga('send', 'event', category, action, label ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var myCustomFieldController = Marionette.Object.extend({ | |
| fieldType: 'recaptcha', | |
| initialize: function() { | |
| // See: http://developer.ninjaforms.com/codex/field-submission-data/ | |
| Backbone.Radio.channel( this.fieldType ).reply( ‘get:submitData’, this.getSubmitData ); | |
| }, | |
| getSubmitData: function( fieldData ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * This class can be customized to quickly add a review request system. | |
| * | |
| * It includes: | |
| * - Multiple trigger groups which can be ordered by priority. | |
| * - Multiple triggers per group. | |
| * - Customizable messaging per trigger. | |
| * - Link to review page. | |
| * - Request reviews on a per user basis rather than per site. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Requires PHP v5.3 or higher. | |
| add_filter( 'ninja_forms_create_post_meta_value', function( $meta_value, $post_type, $meta_key ){ | |
| // TODO: Update $post_type check. | |
| // TODO: Update $meta_key check. | |
| if( 'test' == $post_type && 'wpcf-test-date' == $meta_key ){ | |
| // Convert formatted date to timestamp for WP-Types compatibility. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| jQuery( document ).ready( function(){ | |
| var myListController = Marionette.Object.extend({ | |
| initialize: function() { | |
| // Listen to the value change for Checkbox List fields. | |
| this.listenTo( Backbone.Radio.channel( 'listcheckbox' ), 'change:modelValue', this.onChangeModelValue ); | |
| }, | |
| onChangeModelValue: function( fieldModel ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| * Plugin Name: Ninja Forms - Datepicker Customizations | |
| */ | |
| add_filter( 'ninja_forms_enqueue_scripts', 'nf_datepicker_options' ); | |
| function nf_datepicker_options() { | |
| wp_enqueue_script( 'nf_datepicker_options', plugin_dir_url( __FILE__ ) . 'script.js', array( 'jquery' ), false, true ); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| grve-btn-small grve-square grve-bg-primary-2 grve-bg-hover-primary-2 grve-btn-line |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_filter( 'ai1wm_max_file_size', 'my_ai1wm_max_file_size', 10, 1 ); | |
| function my_ai1wm_max_file_size( $max_file_size ){ | |
| $new_max_file_size = 1073741824; | |
| return $new_max_file_size; | |
| } | |
| // apply_filters( ‘ai1wm_max_file_size’, AI1WM_MAX_FILE_SIZE ) ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script id="tmpl-nf-field-submit" type="text/template"> | |
| <a id="nf-field-{{{ data.id }}}" class="btn {{{ data.renderClasses() }}} nf-element " target="_self" href="#"> | |
| <span class="btn-content">{{{ data.label }}}</span> | |
| <div class="icon"> | |
| <div class="icon-arrow-right"></div> | |
| </div> | |
| </a> | |
| </script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| if( version_compare( get_option( 'ninja_forms_version', '0.0.0' ), '3', '<' ) || get_option( 'ninja_forms_load_deprecated', FALSE ) ) { | |
| // Deprecated Codebase (v2.9.x) | |
| } else { | |
| // THREE Codebase (v3) | |
| } |