| @@ 54-64 (lines=11) @@ | ||
| 51 | ||
| 52 | $xoopsTpl->assign('multicats', intval($xoopsModuleConfig['multicats'])); |
|
| 53 | // To display the list of categories |
|
| 54 | if ( $xoopsModuleConfig['multicats'] == 1 ) { |
|
| 55 | $xoopsTpl -> assign ( 'block0', lx_CatsArray() ); |
|
| 56 | $xoopsTpl->assign('layout', CONFIG_CATEGORY_LAYOUT_PLAIN); |
|
| 57 | if ( $xoopsModuleConfig['useshots'] == 1 ) { |
|
| 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 | if ( !$entryID ) { |
|
| 67 | redirect_header("javascript:history.go(-1)" , 2, _MD_LEXIKON_UNKNOWNERROR ) ; |
|
| @@ 67-77 (lines=11) @@ | ||
| 64 | $xoopsTpl->assign('totalother', $howmanyother); |
|
| 65 | ||
| 66 | // To display the tree of categories |
|
| 67 | if ( $xoopsModuleConfig['multicats'] == 1 ) { |
|
| 68 | $xoopsTpl -> assign ( 'block0', lx_CatsArray() ); |
|
| 69 | $xoopsTpl->assign('layout', CONFIG_CATEGORY_LAYOUT_PLAIN); |
|
| 70 | if ( $xoopsModuleConfig['useshots'] == 1 ) { |
|
| 71 | $xoopsTpl->assign('show_screenshot', true); |
|
| 72 | $xoopsTpl->assign('logo_maximgwidth', $xoopsModuleConfig['logo_maximgwidth']); |
|
| 73 | $xoopsTpl->assign('lang_noscreenshot', _MD_LEXIKON_NOSHOTS); |
|
| 74 | } else { |
|
| 75 | $xoopsTpl->assign('show_screenshot', false); |
|
| 76 | } |
|
| 77 | } |
|
| 78 | // To display the recent entries block |
|
| 79 | $block1 = array(); |
|
| 80 | $result05 = $xoopsDB -> query( "SELECT entryID, categoryID, term, datesub FROM " . $xoopsDB -> prefix( "lxentries" ) . " WHERE datesub < ".time()." AND datesub > 0 AND submit = '0' AND offline = '0' AND request = '0' ".$catperms." ORDER BY datesub DESC", intval($xoopsModuleConfig['blocksperpage']), 0 ); |
|
| @@ 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', lx_CatsArray() ); |
|
| 47 | $xoopsTpl->assign('layout', CONFIG_CATEGORY_LAYOUT_PLAIN); |
|
| 48 | if (lx_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 ) { |
|