renamed formbuilder patch files
This commit is contained in:
@@ -45,7 +45,8 @@ include_once(PLGNTLS_class::get_path() . 'php/redirections.php');
|
||||
include_once(PLGNTLS_class::get_path() . 'php/author_restriction.php');
|
||||
include_once(PLGNTLS_class::get_path() . 'php/reinit_acf_fields.php');
|
||||
|
||||
include_once(PLGNTLS_class::get_path() . 'php/form_builder_patch/form_builder.php');
|
||||
//include_once(PLGNTLS_class::get_path() . 'php/form_builder_patch/url_validation.php');
|
||||
include_once(PLGNTLS_class::get_path() . 'php/form_builder_patch/multiple_modals.php');
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
<?php
|
||||
|
||||
|
||||
function test_modal_PLGNTLS() {
|
||||
$fipf_modal = new PLGNTLS_class();
|
||||
$fipf_modal->add_to_front(
|
||||
array(
|
||||
'js/form_builder_patch/form_builder.js',
|
||||
));
|
||||
}
|
||||
add_shortcode('test_modal', 'test_modal_PLGNTLS');
|
||||
|
||||
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* it means someone outside wp is accessing the file, in this case kill it.
|
||||
*/
|
||||
if (!defined('ABSPATH')) {
|
||||
die('You can not access this file!');
|
||||
}
|
||||
|
||||
|
||||
|
||||
function test_modal_PLGNTLS() {
|
||||
$fipf_modal = new PLGNTLS_class();
|
||||
$fipf_modal->add_to_front(
|
||||
array(
|
||||
'js/form_builder_patch/multiple_modals.js',
|
||||
));
|
||||
}
|
||||
add_shortcode('test_modal', 'test_modal_PLGNTLS');
|
||||
|
||||
|
||||
|
||||
?>
|
||||
@@ -1,12 +1,13 @@
|
||||
<?php
|
||||
/*
|
||||
Plugin Name: formbuilder url patch
|
||||
Plugin URI:
|
||||
Description:
|
||||
Author: hugogogo
|
||||
Version: 1.1.0
|
||||
Author URI:
|
||||
*/
|
||||
|
||||
/**
|
||||
* it means someone outside wp is accessing the file, in this case kill it.
|
||||
*/
|
||||
if (!defined('ABSPATH')) {
|
||||
die('You can not access this file!');
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* in `wp-content/plugins/divi-form-builder/includes/DiviFormBuilder.php`
|
||||
@@ -17,7 +18,7 @@ Author URI:
|
||||
function add_my_jquery_patch()
|
||||
{
|
||||
$handle = 'jquery_validator_url_patch';
|
||||
$url = plugin_dir_url(__FILE__) . 'jquery_validator_url_patch.js';
|
||||
$url = PLGNTLS_class::get_url() . 'js/form_builder_patch/url_validation.js';
|
||||
$dependencies = array('de_fb_validate');
|
||||
$version = '';
|
||||
$defer = true;
|
||||
@@ -25,4 +26,6 @@ function add_my_jquery_patch()
|
||||
}
|
||||
add_action('wp_enqueue_scripts', 'add_my_jquery_patch');
|
||||
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user