@@ 3512-3525 (lines=14) @@ | ||
3509 | // Fill alphabet array |
|
3510 | $alphabet = getXtubeAlphabet(); |
|
3511 | $alphabet_array = array(); |
|
3512 | foreach ($alphabet as $letter) { |
|
3513 | $letter_array = array(); |
|
3514 | if (isset($countsByLetters[$letter])) { |
|
3515 | $letter_array['letter'] = $letter; |
|
3516 | $letter_array['count'] = $countsByLetters[$letter]; |
|
3517 | $letter_array['url'] = '' . XOOPS_URL . "/modules/$moduleDirName/viewcat.php?list={$letter}"; |
|
3518 | } else { |
|
3519 | $letter_array['letter'] = $letter; |
|
3520 | $letter_array['count'] = 0; |
|
3521 | $letter_array['url'] = ''; |
|
3522 | } |
|
3523 | $alphabet_array[$letter] = $letter_array; |
|
3524 | unset($letter_array); |
|
3525 | } |
|
3526 | // Render output |
|
3527 | if (!isset($GLOBALS['xoTheme']) || !is_object($GLOBALS['xoTheme'])) { |
|
3528 | require_once $GLOBALS['xoops']->path('class/theme.php'); |
|
@@ 3566-3579 (lines=14) @@ | ||
3563 | $alphabet = array(); |
|
3564 | $alphabet = getXtubeAlphabet(); |
|
3565 | $alphabet_array = array(); |
|
3566 | foreach ($alphabet as $letter) { |
|
3567 | $letter_array = array(); |
|
3568 | if (isset($countsByLetters[$letter])) { |
|
3569 | $letter_array['letter'] = $letter; |
|
3570 | $letter_array['count'] = $countsByLetters[$letter]; |
|
3571 | $letter_array['url'] = XOOPS_URL . "/modules/{$xoopstube->getModule()->dirname()}/viewcat.php?list={$letter}"; |
|
3572 | } else { |
|
3573 | $letter_array['letter'] = $letter; |
|
3574 | $letter_array['count'] = 0; |
|
3575 | $letter_array['url'] = ''; |
|
3576 | } |
|
3577 | $alphabet_array[$letter] = $letter_array; |
|
3578 | unset($letter_array); |
|
3579 | } |
|
3580 | // Render output |
|
3581 | if (!isset($GLOBALS['xoTheme']) || !is_object($GLOBALS['xoTheme'])) { |
|
3582 | include_once $GLOBALS['xoops']->path('/class/theme.php'); |