1
|
<?php
|
2
|
/**
|
3
|
* execute droplets
|
4
|
* @copyright Manuela v.d.Decken <manuela@isteam.de>
|
5
|
* @author Manuela v.d.Decken <manuela@isteam.de>
|
6
|
* @param string $content
|
7
|
* @return string
|
8
|
*/
|
9
|
function doFilterDroplets($content)
|
10
|
{
|
11
|
$aFilterSettings = getOutputFilterSettings();
|
12
|
$key = preg_replace('=^.*?filter([^\.\/\\\\]+)(\.[^\.]+)?$=is', '\1', __FILE__);
|
13
|
if ($aFilterSettings[$key]) {
|
14
|
if(file_exists(WB_PATH .'/modules/droplets/droplets.php')) {
|
15
|
include_once(WB_PATH .'/modules/droplets/droplets.php');
|
16
|
if(function_exists('evalDroplets')) {
|
17
|
$content = evalDroplets($content);
|
18
|
}
|
19
|
}
|
20
|
}
|
21
|
return $content;
|
22
|
}
|