-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart.php
executable file
·30 lines (26 loc) · 1.02 KB
/
start.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
use Core\Exception\PluginPathException;
// Launch autoloader
require_once("Loader/SplClassLoader.php");
$loader = new SplClassLoader('Core', __DIR__);
$loader->register();
/**
* Initialize the plugin information
* @param String $pluginPath : The location of the plugin in the project
* @throws PluginPathException : Exception when pluginPath is not specified
*/
function loadFormMakerPluginInfo($pluginPath) {
if (!empty($pluginPath)) {
echo
'<!-- jQuery UI -->
<script src="'. $pluginPath .'/Core/Resources/lib/jquery-ui/jquery-ui.min.js"></script>
<link rel="stylesheet" href="'. $pluginPath .'/Core/Resources/lib/jquery-ui/jquery-ui.min.css">
<link rel="stylesheet" href="'. $pluginPath .'/Core/Resources/lib/jquery-ui/jquery-ui.structure.min.css">
<link rel="stylesheet" href="'. $pluginPath .'/Core/Resources/lib/jquery-ui/jquery-ui.theme.min.css">
<!-- formulaire -->
<script src="'. $pluginPath .'/Core/Script/form.js"></script>';
}else{
throw new PluginPathException('loadFormMakerPluginInfo');
}
}
?>