Skip to content

Instantly share code, notes, and snippets.

@arthur5005
arthur5005 / e-signature-show-if.php
Last active December 8, 2022 21:41
Wordpress Plugin that adds ability to conditionally show/hide a block of text in an ApproveMe (WP E-Signature) contract from a shortcode enclosure
<?php
/*
Plugin Name: E-Signature (ApproveMe) Show-If Gravity Forms Shortcode Block
Description: Description: Adds ability to conditionally show/hide a block of text in an ApproveMe (WP E-Signature) contract from a shortcode enclosure [esiggravity_show_if value='foo' formid='1' field_id='1'] Some HTML content [/esiggravity_show_if]
Version: 1.0.0
Author: Arthur Goldsmith
*/
if ( file_exists( ABSPATH . '/wp-content/plugins/gravity-signature-forms-add-on/includes/esig-gf-generate-value.php' ) ) {
/**
* Some jQuery overrides that help with text normalization
* for our formatted templates that get linted and formatted in ways that
* make it hard to match text content in Cypress.
*
* Really it targets the new lines followed by lots of spaces that the linter adds when breaking up multi part
* buttons or other elements with large amounts of text
*
* Include this in your support/index.js which is is processed and loaded automatically before your other test files.
*/