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