prefix($wp_prefix . 'options');
$query = "SELECT option_value FROM $db_xpress_options WHERE option_name = 'sidebars_widgets' LIMIT 1";
$res = $xoopsDB->query($query, 0, 0);
if ($res !== false){
$row = $xoopsDB->fetchArray($res);
$sidebars_widgets = @unserialize( $row['option_value'] );
}
if ( !isset($sidebars_widgets['array_version']) )
$sidebars_widgets['array_version'] = 1;
require_once(XOOPS_ROOT_PATH.'/modules/'.$mydirname.'/blocks/block_common.php');
$form = "MyDirectory
";
$form .= "
";
$form .= "
";
$form .= _MB_XP2_SELECT_WIDGET .":
\n";
$select = "
\n";
if ($found){
$form = $form . $select;
} else {
$form = $form . " " . _MB_XP2_NO_WIDGET;
}
return $form;
}
function _b_widget_show($options)
{
$mydirname = empty( $options[0] ) ? 'xpress' : $options[0] ;
$mydirpath = XOOPS_ROOT_PATH . '/modules/' . $mydirname;
$block_function_name = basename( __FILE__ );
require_once $mydirpath.'/include/xpress_block_render.php';
return xpress_block_render($mydirname,$block_function_name,$options);
}
}
?>