| @@ 385-399 (lines=15) @@ | ||
| 382 | $html .= '<strong>'; |
|
| 383 | $html .= "$categoryName ($categoryCourses)"; |
|
| 384 | $html .= '</strong>'; |
|
| 385 | } else { |
|
| 386 | if (!empty($categoryCourses)) { |
|
| 387 | $html .= '<a href="' . getCourseCategoryUrl( |
|
| 388 | 1, |
|
| 389 | $limit['length'], |
|
| 390 | $categoryCode, |
|
| 391 | $hiddenLinks, |
|
| 392 | $action |
|
| 393 | ) . '">'; |
|
| 394 | $html .= "$categoryName ($categoryCourses)"; |
|
| 395 | $html .= '</a>'; |
|
| 396 | } else { |
|
| 397 | $html .= "$categoryName ($categoryCourses)"; |
|
| 398 | } |
|
| 399 | } |
|
| 400 | ||
| 401 | if (!empty($categories[$categoryCode])) { |
|
| 402 | $html .= '<ul class="nav nav-list">'; |
|
| @@ 411-423 (lines=13) @@ | ||
| 408 | ||
| 409 | $html .= '<li>'; |
|
| 410 | ||
| 411 | if ($code == $subCategory1Code) { |
|
| 412 | $html .= "<strong>$subCategory1Name ($subCategory1Courses)</strong>"; |
|
| 413 | } else { |
|
| 414 | $html .= '<a href="' . getCourseCategoryUrl( |
|
| 415 | 1, |
|
| 416 | $limit['length'], |
|
| 417 | $categoryCode, |
|
| 418 | $hiddenLinks, |
|
| 419 | $action |
|
| 420 | ) . '">'; |
|
| 421 | $html .= "$subCategory1Name ($subCategory1Courses)"; |
|
| 422 | $html .= '</a>'; |
|
| 423 | } |
|
| 424 | ||
| 425 | if (!empty($categories[$subCategory1Code])) { |
|
| 426 | $html .= '<ul class="nav nav-list">'; |
|
| @@ 435-447 (lines=13) @@ | ||
| 432 | ||
| 433 | $html .= '<li>'; |
|
| 434 | ||
| 435 | if ($code == $subCategory2Code) { |
|
| 436 | $html .= "<strong>$subCategory2Name ($subCategory2Courses)</strong>"; |
|
| 437 | } else { |
|
| 438 | $html .= '<a href="' . getCourseCategoryUrl( |
|
| 439 | 1, |
|
| 440 | $limit['length'], |
|
| 441 | $categoryCode, |
|
| 442 | $hiddenLinks, |
|
| 443 | $action |
|
| 444 | ) . '">'; |
|
| 445 | $html .= "$subCategory2Name ($subCategory2Courses)"; |
|
| 446 | $html .= '</a>'; |
|
| 447 | } |
|
| 448 | ||
| 449 | if (!empty($categories[$subCategory2Code])) { |
|
| 450 | $html .= '<ul class="nav nav-list">'; |
|
| @@ 459-471 (lines=13) @@ | ||
| 456 | ||
| 457 | $html .= '<li>'; |
|
| 458 | ||
| 459 | if ($code == $subCategory3Code) { |
|
| 460 | $html .= "<strong>$subCategory3Name ($subCategory3Courses)</strong>"; |
|
| 461 | } else { |
|
| 462 | $html .= '<a href="' . getCourseCategoryUrl( |
|
| 463 | 1, |
|
| 464 | $limit['length'], |
|
| 465 | $categoryCode, |
|
| 466 | $hiddenLinks, |
|
| 467 | $action |
|
| 468 | ) . '">'; |
|
| 469 | $html .= "$subCategory3Name ($subCategory3Courses)"; |
|
| 470 | $html .= '</a>'; |
|
| 471 | } |
|
| 472 | $html .= '</li>'; |
|
| 473 | } |
|
| 474 | $html .= '</ul>'; |
|