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
| /* Stack the groups vertically */ | |
| .gpb-booking-time-picker__grid { | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| /* Each section stays in its own row */ | |
| .gpb-time-group { | |
| display: flex; | |
| flex-direction: column; |
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
| const config = { | |
| first_start: "07:00", | |
| first_end: "16:59", | |
| second_start: "17:00", | |
| second_end: "23:59", | |
| first_label: "Lunch Time", | |
| second_label: "Dinner Time" | |
| }; | |
| function timeToMinutes(timeStr) { |
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 | |
| /** | |
| * Gravity Forms Credit Card Fee Field | |
| * | |
| * Adds a new field type to Gravity Forms that automatically calculates and adds credit card processing fees | |
| * to orders. The fee is calculated based on a configurable fixed fee + percentage rate. | |
| * Ensure the form has a total or subtotal field for accurate calculations. | |
| */ | |
| // Ensure this runs after all plugins are loaded. | |
| add_action( |
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_action( 'gform_update_status', function( $entry_id, $status, $previous_status ) { | |
| // When entry is marked as spam. | |
| if ( $status !== 'spam' || $previous_status === 'spam' ) { | |
| return; | |
| } | |
| $entry = GFAPI::get_entry( $entry_id ); |
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
| /** | |
| * Gravity Perks // Multi-page Navigation // Dropdown Navigation | |
| * https://gravitywiz.com/documentation/gravity-forms-multi-page-navigation/ | |
| * | |
| * Instruction Video: https://www.loom.com/share/38fcc941036842d6a81a599fd8de39d7 | |
| * | |
| * This snippet is designed to be used with the Gravity Forms Code Chest plugin. | |
| * https://gravitywiz.com/gravity-forms-code-chest/ | |
| */ | |
| const pageNameTemplate = 'Step {pageNumber}: {pageName}'; |
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
| /** | |
| * Gravity Perks // GP QR Code // Translate QR Scanner Interface to Spanish | |
| * https://gravitywiz.com/documentation/gravity-forms-qr-code/ | |
| * | |
| * Instructions: | |
| * | |
| * 1. Install this snippet with our free Custom JavaScript plugin. | |
| * https://gravitywiz.com/gravity-forms-code-chest/ | |
| */ | |
| ( function( $ ) { |
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 | |
| <?php | |
| /** | |
| * Gravity Perks // Populate Anything // Recteurs d'Académie JSON | |
| */ | |
| class GPPA_Object_Type_Recteurs extends GPPA_Object_Type { | |
| public function __construct( $id ) { | |
| parent::__construct( $id ); |
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 | |
| /** | |
| * Gravity Wiz // Gravity Forms // Calculation Subtotal Merge Tag | |
| * https://gravitywiz.com/subtotal-merge-tag-for-calculations/ | |
| * | |
| * Adds a {subtotal} merge tag which calculates the subtotal of the form. | |
| * | |
| * This merge tag can only be used within the "Formula" setting of Calculation-enabled fields (i.e. Number, Calculated Product). | |
| * | |
| * Plugin Name: Gravity Forms Subtotal Merge Tag |
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( 'gform_pre_render', function ( $form, $ajax, $field_values ) { | |
| if ( ! session_id() ) { | |
| session_start(); | |
| } | |
| if ( ! isset( $_SESSION['gwreadonly_disabled_fields'] ) ) { | |
| $_SESSION['gwreadonly_disabled_fields'] = array(); | |
| } | |
| $gwreadonly_disabled_fields = $_SESSION['gwreadonly_disabled_fields']; |
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 | |
| /** | |
| * Gravity Wiz // Gravity Forms // Update Posts | |
| * https://gravitywiz.com/how-to-update-posts-with-gravity-forms/ | |
| * | |
| * Update existing post title, content, author and custom fields with values from Gravity Forms. | |
| * | |
| * @version 0.6 | |
| * @author Scott Ryer <scott@gravitywiz.com> | |
| * @license GPL-2.0+ |
NewerOlder