Project

General

Profile

« Previous | Next » 

Revision 1626

Added by darkviper over 12 years ago

started rebuild and reorganize the OutputFilter-System

View differences:

index.php
122 122
require(WB_PATH.'/templates/'.TEMPLATE.'/index.php');
123 123
$output = ob_get_contents();
124 124
if(ob_get_length() > 0) { ob_end_clean(); }
125

  
126
// wb->preprocess() -- replace all [wblink123] with real, internal links
127
if( method_exists($wb, 'preprocess') )
128
{
129
   $wb->preprocess($output);
130
}
131

  
132
// Load Droplet engine and process
133
	if(file_exists(WB_PATH .'/modules/droplets/droplets.php')) {
134
		include_once(WB_PATH .'/modules/droplets/droplets.php');
135
		if(function_exists('evalDroplets')) {
136
			$output = evalDroplets($output);
137
		}
138
	}
139

  
140
// Load backwards compatible frontend filter support and process
141
	if(file_exists(WB_PATH .'/modules/output_filter/filter-routines.php')) {
142
		include_once(WB_PATH .'/modules/output_filter/filter-routines.php');
125
// execute frontend output filters
126
	if(file_exists(WB_PATH .'/modules/output_filter/index.php')) {
127
		include_once(WB_PATH .'/modules/output_filter/index.php');
143 128
		if(function_exists('executeFrontendOutputFilter')) {
144 129
			$output = executeFrontendOutputFilter($output);
145
		}elseif(function_exists('filter_frontend_output')) {
146
			$output = filter_frontend_output($output);
147 130
		}
148

  
149 131
	}
150

  
151
// move css definitions into head section
152
	if(function_exists('moveCssToHead')) {
153
		$output = moveCssToHead($output);
154
	}
155 132
// now send complete page to the browser
156 133
echo $output;
157 134
// end of wb-script

Also available in: Unified diff