@@ 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); |
@@ 66-76 (lines=11) @@ | ||
63 | $xoopsTpl->assign('totalother', $howmanyother); |
|
64 | ||
65 | // To display the tree of categories |
|
66 | if ($xoopsModuleConfig['multicats'] == 1) { |
|
67 | $xoopsTpl->assign('block0', LexikonUtility::getCategoryArray()); |
|
68 | $xoopsTpl->assign('layout', CONFIG_CATEGORY_LAYOUT_PLAIN); |
|
69 | if ($xoopsModuleConfig['useshots'] == 1) { |
|
70 | $xoopsTpl->assign('show_screenshot', true); |
|
71 | $xoopsTpl->assign('logo_maximgwidth', $xoopsModuleConfig['logo_maximgwidth']); |
|
72 | $xoopsTpl->assign('lang_noscreenshot', _MD_LEXIKON_NOSHOTS); |
|
73 | } else { |
|
74 | $xoopsTpl->assign('show_screenshot', false); |
|
75 | } |
|
76 | } |
|
77 | // To display the recent entries block |
|
78 | $block1 = array(); |
|
79 | $result05 = $xoopsDB->query('SELECT entryID, categoryID, term, datesub FROM ' |
@@ 45-55 (lines=11) @@ | ||
42 | $xoopsTpl->assign('totalother', $howmanyother); |
|
43 | ||
44 | // To display the list of categories |
|
45 | if ($xoopsModuleConfig['multicats'] == 1) { |
|
46 | $xoopsTpl->assign('block0', LexikonUtility::getCategoryArray()); |
|
47 | $xoopsTpl->assign('layout', CONFIG_CATEGORY_LAYOUT_PLAIN); |
|
48 | if (LexikonUtility::getModuleOption('useshots')) { |
|
49 | $xoopsTpl->assign('show_screenshot', true); |
|
50 | $xoopsTpl->assign('logo_maximgwidth', $xoopsModuleConfig['logo_maximgwidth']); |
|
51 | $xoopsTpl->assign('lang_noscreenshot', _MD_LEXIKON_NOSHOTS); |
|
52 | } else { |
|
53 | $xoopsTpl->assign('show_screenshot', false); |
|
54 | } |
|
55 | } |
|
56 | ||
57 | // No initial: we need to see all letters |
|
58 | if (!$init) { |