/** * execute the backend output filter * Only the basic ones here as sooner or later opf dashboardt will take this place * @param string actual content * @return string modified content */ function executeBackendOutputFilter($content) { $sFilterDirectory = str_replace('\\', '/', dirname(__FILE__)) . '/filters/'; /* ### filter type: execute droplets filter for backend ################################# */ if (OPF_DROPLETS_BE) { if (file_exists($sFilterDirectory . 'filterDropletsBe.php')) { require_once $sFilterDirectory . 'filterDropletsBe.php'; $content = doFilterDropletsBe($content); } } /* ### filter type: fill out placeholders for Javascript, CSS, Metas and Title ################################# */ //now available in BE too if (defined("OPF_INSERT_BE") and OPF_INSERT_BE) { if (class_exists("I")) { $content = I::Filter($content); } } /* ### filter type: protect email addresses ################################# */ // emailfilter not needed in BE /* ### filter type: change [wblinkxx] into real URLs ######################## */ // would remove the [wblinkxxx] texts in CKE for example .. so no good idea /* ### filter type: short url (instead of a droplet) ########### */ // Short url not functional in BE and not needed anyway /* ### filter type: full qualified URLs to relative URLs##################### */ // would disturb BE functions /* ### filter type: moves css definitions from <body> into <head> ########### */ //this one truly may stay in (lots of old modules have inline CSS ) // maybe we even declare having css in the module html as being just ok. if (defined("OPF_CSS_TO_HEAD_BE") and OPF_CSS_TO_HEAD_BE) { if (file_exists($sFilterDirectory . 'filterCssToHead.php')) { require_once $sFilterDirectory . 'filterCssToHead.php'; $content = doFilterCssToHead($content); } } /* ### end of filters ####################################################### */ return $content; }