Project

General

Profile

1
<?php
2

    
3
/*
4
 * make use of Thorn's OutputFilter Dashboard (OpF Dashboard)
5
 * @param string &$content : reference to global $content
6
 * @return void
7
 */
8
function doFilterOpF($content)
9
{
10
	// Load OutputFilter functions
11
	$sOpfFile = WbAdaptor::getInstance()->AppPath.'modules/outputfilter_dashboard/functions.php';
12
	if (is_readable($sOpfFile)) {
13
		require_once($sOpfFile);
14
	   // apply outputfilter
15
		if (function_exists('opf_apply_filters')) {
16
			// use 'cache' instead of 'nocache' to enable page-cache.
17
			// Do not use 'cache' in case you use dynamic contents (e.g. snippets)!
18
			opf_controller('init', 'nocache');
19
			$content = opf_controller('page', $content);
20
		}
21
	}
22
	return $content;
23
}
(4-4/7)