| @@ 397-411 (lines=15) @@ | ||
| 394 | $html .= '<strong>'; |
|
| 395 | $html .= "$categoryName ($categoryCourses)"; |
|
| 396 | $html .= '</strong>'; |
|
| 397 | } else { |
|
| 398 | if (!empty($categoryCourses)) { |
|
| 399 | $html .= '<a href="' . CourseCategory::getCourseCategoryUrl( |
|
| 400 | 1, |
|
| 401 | $limit['length'], |
|
| 402 | $categoryCode, |
|
| 403 | $hiddenLinks, |
|
| 404 | $action |
|
| 405 | ) . '">'; |
|
| 406 | $html .= "$categoryName ($categoryCourses)"; |
|
| 407 | $html .= '</a>'; |
|
| 408 | } else { |
|
| 409 | $html .= "$categoryName ($categoryCourses)"; |
|
| 410 | } |
|
| 411 | } |
|
| 412 | ||
| 413 | if (!empty($categories[$categoryCode])) { |
|
| 414 | $html .= '<ul class="nav nav-list">'; |
|
| @@ 421-433 (lines=13) @@ | ||
| 418 | $subCategory1Code = $subCategory1['code']; |
|
| 419 | $subCategory1Courses = $subCategory1['count_courses']; |
|
| 420 | $html .= '<li>'; |
|
| 421 | if ($code == $subCategory1Code) { |
|
| 422 | $html .= "<strong>$subCategory1Name ($subCategory1Courses)</strong>"; |
|
| 423 | } else { |
|
| 424 | $html .= '<a href="' . CourseCategory::getCourseCategoryUrl( |
|
| 425 | 1, |
|
| 426 | $limit['length'], |
|
| 427 | $categoryCode, |
|
| 428 | $hiddenLinks, |
|
| 429 | $action |
|
| 430 | ) . '">'; |
|
| 431 | $html .= "$subCategory1Name ($subCategory1Courses)"; |
|
| 432 | $html .= '</a>'; |
|
| 433 | } |
|
| 434 | ||
| 435 | if (!empty($categories[$subCategory1Code])) { |
|
| 436 | $html .= '<ul class="nav nav-list">'; |
|
| @@ 445-457 (lines=13) @@ | ||
| 442 | ||
| 443 | $html .= '<li>'; |
|
| 444 | ||
| 445 | if ($code == $subCategory2Code) { |
|
| 446 | $html .= "<strong>$subCategory2Name ($subCategory2Courses)</strong>"; |
|
| 447 | } else { |
|
| 448 | $html .= '<a href="' . CourseCategory::getCourseCategoryUrl( |
|
| 449 | 1, |
|
| 450 | $limit['length'], |
|
| 451 | $categoryCode, |
|
| 452 | $hiddenLinks, |
|
| 453 | $action |
|
| 454 | ) . '">'; |
|
| 455 | $html .= "$subCategory2Name ($subCategory2Courses)"; |
|
| 456 | $html .= '</a>'; |
|
| 457 | } |
|
| 458 | ||
| 459 | if (!empty($categories[$subCategory2Code])) { |
|
| 460 | $html .= '<ul class="nav nav-list">'; |
|
| @@ 469-481 (lines=13) @@ | ||
| 466 | ||
| 467 | $html .= '<li>'; |
|
| 468 | ||
| 469 | if ($code == $subCategory3Code) { |
|
| 470 | $html .= "<strong>$subCategory3Name ($subCategory3Courses)</strong>"; |
|
| 471 | } else { |
|
| 472 | $html .= '<a href="' . CourseCategory::getCourseCategoryUrl( |
|
| 473 | 1, |
|
| 474 | $limit['length'], |
|
| 475 | $categoryCode, |
|
| 476 | $hiddenLinks, |
|
| 477 | $action |
|
| 478 | ) . '">'; |
|
| 479 | $html .= "$subCategory3Name ($subCategory3Courses)"; |
|
| 480 | $html .= '</a>'; |
|
| 481 | } |
|
| 482 | $html .= '</li>'; |
|
| 483 | } |
|
| 484 | $html .= '</ul>'; |
|