wip adding fbpatch plugin

This commit is contained in:
asus
2024-03-23 15:24:14 +01:00
parent 1fe5379845
commit b6d1d63b93
11 changed files with 806 additions and 538 deletions

View File

@@ -0,0 +1,27 @@
<?php
namespace FBPATCH;
/*
* 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 add_form_builder_calculations_patch() {
$handle = 'form_builder_calculations_patch';
$url = plugin_dir_url(__DIR__) . '/js/calculations.js';
$dependencies = array('de_fb_calc');
$version = null;
$defer = true;
wp_enqueue_script($handle, $url, $dependencies, $version, $defer);
}
add_action('wp_enqueue_scripts', __NAMESPACE__.'\add_form_builder_calculations_patch', 22);
?>

View File

@@ -0,0 +1,30 @@
<?php
namespace FBPATCH;
/*
* it means someone outside wp is accessing the file, in this case kill it.
*/
if (!defined('ABSPATH')) {
die('You can not access this file!');
}
/*
*
*/
class Fbpatch {
const SLUG_TOOGLE_ADMIN_MENU = ['_name'=>'toogle_admin_menu_url_fbpatch', 'toggle'=>'toggle', 'show'=>'show', 'hide'=>'hide'];
const OPTION_TOGGLE_MENU = ['_name'=>'toggle_admin_menu_option_fbpatch', 'show'=>'show', 'hide'=>'hide'];
//private static $_is_
}
?>