| @@ 59-70 (lines=12) @@ | ||
| 56 | . ' DESC'; |
|
| 57 | $result = $xoopsDB->query($sql, $options[1], 0); |
|
| 58 | ||
| 59 | if ($totalwords > 0) { // If there are definitions |
|
| 60 | while (list($entryID, $categoryID, $term, $datesub) = $xoopsDB->fetchRow($result)) { |
|
| 61 | $newentries = array(); |
|
| 62 | $linktext = ucfirst($myts->htmlSpecialChars($term)); |
|
| 63 | $newentries['dir'] = $lexikon->dirname(); |
|
| 64 | $newentries['linktext'] = $linktext; |
|
| 65 | $newentries['id'] = (int)$entryID; |
|
| 66 | $newentries['date'] = formatTimestamp($datesub, $lxConfig['dateformat']); |
|
| 67 | ||
| 68 | $block['newstuff'][] = $newentries; |
|
| 69 | } |
|
| 70 | } |
|
| 71 | ||
| 72 | return $block; |
|
| 73 | } |
|
| @@ 94-107 (lines=14) @@ | ||
| 91 | . " AND datesub > 0 AND submit = '0' AND offline = '0' AND request = '0' " |
|
| 92 | . $catperms |
|
| 93 | . ' ORDER BY datesub DESC', (int)$xoopsModuleConfig['blocksperpage'], 0); |
|
| 94 | if ($publishedwords > 0) { // If there are definitions |
|
| 95 | //while (list( $entryID, $term, $datesub ) = $xoopsDB->fetchRow($result05)) { |
|
| 96 | while (list($entryID, $categoryID, $term, $datesub) = $xoopsDB->fetchRow($result05)) { |
|
| 97 | $newentries = array(); |
|
| 98 | $xoopsModule = XoopsModule::getByDirname('lexikon'); |
|
| 99 | $linktext = mb_ucfirst($myts->htmlSpecialChars($term)); |
|
| 100 | $newentries['linktext'] = $linktext; |
|
| 101 | $newentries['id'] = $entryID; |
|
| 102 | $newentries['date'] = formatTimestamp($datesub, 's'); |
|
| 103 | ||
| 104 | $block1['newstuff'][] = $newentries; |
|
| 105 | } |
|
| 106 | $xoopsTpl->assign('block', $block1); |
|
| 107 | } |
|
| 108 | ||
| 109 | // To display the most read entries block |
|
| 110 | $block2 = array(); |
|