patch to allow theme based widgets

This commit is contained in:
redmatrix
2015-07-23 18:49:37 -07:00
parent 3ec6a431b6
commit 27fa908233
5 changed files with 8 additions and 4 deletions

View File

@@ -284,6 +284,11 @@ function comanche_widget($name, $text) {
if(file_exists('widget/' . trim($name) . '.php'))
require_once('widget/' . trim($name) . '.php');
else {
$theme_widget = 'widget_' . trim($name) . '.php';
if(theme_include($theme_widget))
require_once(theme_include($theme_widget));
}
$func = 'widget_' . trim($name);
if (function_exists($func))