upskill-event-manager/wordpress-dev/wordpress/wp-content/plugins/formidable-signature/signature.php
bengizmo d1509b3d60 feat(dev-env): implement backup-based development workflow
This commit introduces a more reliable and consistent approach to setting up
the development environment using backups:

- Add setup-from-backup.sh script for environment setup from existing backups
- Standardize script naming and organization
- Move obsolete scripts to bin/obsolete directory
- Update documentation with new workflow instructions
- Create migration guide for transitioning to new workflow
- Update Memory Bank with workflow improvements

The new workflow provides:
- More reliable environment setup
- Faster setup process
- Offline development capability
- Consistent development environments across team members

Breaking changes:
- setup-dev.sh is replaced by setup-from-backup.sh
- sync-and-setup.sh is replaced by separate scripts
- verify-with-wpcli.sh is no longer used

Migration path is documented in MIGRATION_GUIDE.md
2025-03-26 11:26:18 -03:00

65 lines
1.5 KiB
PHP

<?php
/**
* Plugin Name: Formidable Digital Signatures
* Description: Collect e-signatures in your Formidable forms
* Version: 3.0.5
* Plugin URI: https://formidableforms.com
* Author URI: https://formidableforms.com
* Author: Strategy11
* Text domain: frmsig
*
* @package frmsig
*/
if ( ! defined( 'ABSPATH' ) ) {
die( 'You are not allowed to call this page directly.' );
}
/**
* SPL autoloader.
*
* @param string $class_name class name.
* @return void
*/
function frm_sig_autoloader( $class_name ) {
$path = dirname( __FILE__ );
// Only load Frm classes here.
if ( ! preg_match( '/^FrmSig.+$/', $class_name ) ) {
return;
}
if ( preg_match( '/^.+Helper$/', $class_name ) ) {
$path .= '/helpers/' . $class_name . '.php';
} elseif ( preg_match( '/^.+Controller$/', $class_name ) ) {
$path .= '/controllers/' . $class_name . '.php';
} else {
$path .= '/models/' . $class_name . '.php';
}
if ( file_exists( $path ) ) {
include $path;
}
}
// Add the autoloader.
spl_autoload_register( 'frm_sig_autoloader' );
// Load hooks.
add_action( 'plugins_loaded', 'FrmSigHooksController::load_hooks' );
register_activation_hook( __FILE__, 'frm_signature_update_stylesheet_on_activation' );
/**
* Update signature style on activation.
*
* @return void
*/
function frm_signature_update_stylesheet_on_activation() {
if ( ! function_exists( 'load_formidable_forms' ) ) {
return;
}
FrmSigHooksController::load_hooks();
FrmSigAppController::update_stylesheet();
}