28 $xoTheme->addStylesheet( XOOPS_URL .
'/modules/system/css/admin.css' );
29 $xoTheme->addStylesheet( XOOPS_URL .
'/modules/system/css/help.css' );
41 if (
$module->getVar(
'dirname',
'e') ==
'system' ) {
45 $admin_dir = XOOPS_ROOT_PATH .
'/modules/system/admin';
49 if ( file_exists(
$admin_dir .
'/' . $directory .
'/xoops_version.php' ) ) {
51 require
$admin_dir .
'/' . $directory .
'/xoops_version.php';
56 $xoopsTpl->append_by_ref(
'help', $help );
66 $help[
'link'] =
'help.php?mid=' .
$mid .
'&' .
$module->getInfo(
'help');
67 $xoopsTpl->append_by_ref(
'help', $help );
75 if ( file_exists( XOOPS_ROOT_PATH .
'/modules/' .
$module->getVar(
'dirname',
'e') .
'/language/' .
$xoopsConfig[
'language'] .
'/help/' .
$page .
'.html' ) ) {
76 $helpcontent =
$xoopsTpl->fetch( XOOPS_ROOT_PATH .
'/modules/' .
$module->getVar(
'dirname',
'e') .
'/language/' .
$xoopsConfig[
'language'] .
'/help/' .
$page .
'.html' );
78 if ( file_exists( XOOPS_ROOT_PATH .
'/modules/' .
$module->getVar(
'dirname',
'e') .
'/language/english/help/' .
$page .
'.html' ) ) {
79 $helpcontent =
$xoopsTpl->fetch(XOOPS_ROOT_PATH.
'/modules/' .
$module->getVar(
'dirname',
'e') .
'/language/english/help/' .
$page .
'.html');
85 $xoopsTpl->assign(
'helpcontent', $helpcontent);
88 if ( file_exists( XOOPS_ROOT_PATH .
'/modules/' .
$module->getVar(
'dirname',
'e') .
'/language/' .
$xoopsConfig[
'language'] .
'/help/module_index.html' ) ) {
89 $helpcontent =
$xoopsTpl->fetch( XOOPS_ROOT_PATH .
'/modules/' .
$module->getVar(
'dirname',
'e') .
'/language/' .
$xoopsConfig[
'language'] .
'/help/module_index.html' );
91 $helpcontent =
$module->getInfo(
'description');
92 $helpcontent =
'<div id="non-modhelp">' . $helpcontent .
'</div>';
95 $xoopsTpl->assign(
'helpcontent', $helpcontent);
111 $list_help = array();
115 $listed_mods[
$i][
'version'] = round( $module->getVar(
'version') / 100, 2 );
117 $listed_mods[
$i][
'author'] = $module->getInfo(
'author');
118 $listed_mods[
$i][
'credits'] = $module->getInfo(
'credits');
119 $listed_mods[
$i][
'license'] = $module->getInfo(
'license');
120 $listed_mods[
$i][
'description'] = $module->getInfo(
'description');
122 if ( $module->getVar(
'dirname',
'e') ==
'system' ) {
125 $admin_dir = XOOPS_ROOT_PATH .
'/modules/system/admin';
129 if ( file_exists(
$admin_dir .
'/' . $directory .
'/xoops_version.php' ) ) {
131 require
$admin_dir .
'/' . $directory .
'/xoops_version.php';
135 $list_help[
$j][
'link'] =
'help.php?mid=' . $module->getVar(
'mid',
'e') .
'&' .
system_adminVersion( $directory,
'help' );
143 if ( $module->getInfo(
'help') !=
'' ) {
144 $list_help[
$j][
'name'] = $module->getVar(
'dirname',
's');
145 $list_help[
$j][
'link'] =
'help.php?mid=' . $module->getVar(
'mid',
'e') .
'&' . $module->getInfo(
'help');
148 $listed_mods[
$i][
'help_page'] = $list_help;
149 if ( $module->getInfo(
'help') ==
'' ) {
150 unset($listed_mods[
$i]);
159 if ( file_exists( XOOPS_ROOT_PATH .
'/modules/system/language/' .
$xoopsConfig[
'language'] .
'/help/help_center.html' ) ) {
160 $helpcontent =
$xoopsTpl->fetch( XOOPS_ROOT_PATH .
'/modules/system/language/' . $xoopsConfig[
'language'] .
'/help/help_center.html' );
165 $xoopsTpl->assign(
'helpcontent', $helpcontent);