provide a method for loading site/custom widgets
This commit is contained in:
parent
1970670596
commit
1e0e812440
@ -245,6 +245,9 @@ function comanche_widget($name, $text) {
|
||||
}
|
||||
}
|
||||
|
||||
if(file_exists('widget/' . trim($name) . '.php'))
|
||||
require_once('widget/' . trim($name) . '.php');
|
||||
|
||||
$func = 'widget_' . trim($name);
|
||||
if (function_exists($func))
|
||||
return $func($vars);
|
||||
|
Reference in New Issue
Block a user