26 lines
486 B
PHP
26 lines
486 B
PHP
<?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 test_modal() {
|
|
$handle = 'form_builder_modals_patch';
|
|
$url = Fbpatch::root_url() . '/js/modals.js';
|
|
$dependencies = array();
|
|
$version = null;
|
|
$defer = true;
|
|
wp_enqueue_script($handle, $url, $dependencies, $version, $defer);
|
|
}
|
|
add_shortcode('test_modal', __NAMESPACE__.'\test_modal');
|
|
|
|
|
|
|
|
?>
|