| @@ 55-65 (lines=11) @@ | ||
| 52 | ||
| 53 | $xoopsTpl->assign('multicats', (int)$xoopsModuleConfig['multicats']); |
|
| 54 | // To display the list of categories |
|
| 55 | if ($xoopsModuleConfig['multicats'] == 1) { |
|
| 56 | $xoopsTpl->assign('block0', LexikonUtility::getCategoryArray()); |
|
| 57 | $xoopsTpl->assign('layout', CONFIG_CATEGORY_LAYOUT_PLAIN); |
|
| 58 | if ($xoopsModuleConfig['useshots'] == 1) { |
|
| 59 | $xoopsTpl->assign('show_screenshot', true); |
|
| 60 | $xoopsTpl->assign('logo_maximgwidth', $xoopsModuleConfig['logo_maximgwidth']); |
|
| 61 | $xoopsTpl->assign('lang_noscreenshot', _MD_LEXIKON_NOSHOTS); |
|
| 62 | } else { |
|
| 63 | $xoopsTpl->assign('show_screenshot', false); |
|
| 64 | } |
|
| 65 | } |
|
| 66 | ||
| 67 | if (!$entryID) { |
|
| 68 | redirect_header('javascript:history.go(-1)', 2, _MD_LEXIKON_UNKNOWNERROR); |
|
| @@ 74-84 (lines=11) @@ | ||
| 71 | $xoopsTpl->assign('totalother', $howmanyother); |
|
| 72 | ||
| 73 | // To display the tree of categories |
|
| 74 | if ($xoopsModuleConfig['multicats'] == 1) { |
|
| 75 | $xoopsTpl->assign('block0', LexikonUtility::getCategoryArray()); |
|
| 76 | $xoopsTpl->assign('layout', CONFIG_CATEGORY_LAYOUT_PLAIN); |
|
| 77 | if ($xoopsModuleConfig['useshots'] == 1) { |
|
| 78 | $xoopsTpl->assign('show_screenshot', true); |
|
| 79 | $xoopsTpl->assign('logo_maximgwidth', $xoopsModuleConfig['logo_maximgwidth']); |
|
| 80 | $xoopsTpl->assign('lang_noscreenshot', _MD_LEXIKON_NOSHOTS); |
|
| 81 | } else { |
|
| 82 | $xoopsTpl->assign('show_screenshot', false); |
|
| 83 | } |
|
| 84 | } |
|
| 85 | // To display the recent entries block |
|
| 86 | $block1 = array(); |
|
| 87 | $result05 = $xoopsDB->query('SELECT entryID, categoryID, term, datesub FROM ' |
|
| @@ 54-64 (lines=11) @@ | ||
| 51 | ||
| 52 | ||
| 53 | // To display the list of categories |
|
| 54 | if ($xoopsModuleConfig['multicats'] == 1) { |
|
| 55 | $xoopsTpl->assign('block0', LexikonUtility::getCategoryArray()); |
|
| 56 | $xoopsTpl->assign('layout', CONFIG_CATEGORY_LAYOUT_PLAIN); |
|
| 57 | if (LexikonUtility::getModuleOption('useshots')) { |
|
| 58 | $xoopsTpl->assign('show_screenshot', true); |
|
| 59 | $xoopsTpl->assign('logo_maximgwidth', $xoopsModuleConfig['logo_maximgwidth']); |
|
| 60 | $xoopsTpl->assign('lang_noscreenshot', _MD_LEXIKON_NOSHOTS); |
|
| 61 | } else { |
|
| 62 | $xoopsTpl->assign('show_screenshot', false); |
|
| 63 | } |
|
| 64 | } |
|
| 65 | ||
| 66 | // No initial: we need to see all letters |
|
| 67 | if (!$init) { |
|