| @@ 1876-1886 (lines=11) @@ | ||
| 1873 | $list[] = $teacher_name; |
|
| 1874 | } |
|
| 1875 | ||
| 1876 | if (!empty($list)) { |
|
| 1877 | if ($orderList === true){ |
|
| 1878 | $html .= '<ul class="user-teacher">'; |
|
| 1879 | foreach ($list as $teacher){ |
|
| 1880 | $html .= Display::tag('li', Display::return_icon('teacher.png', $teacher, null, ICON_SIZE_TINY) . ' ' . $teacher); |
|
| 1881 | } |
|
| 1882 | $html .= '</ul>'; |
|
| 1883 | }else{ |
|
| 1884 | $html .= array_to_string($list, $separator); |
|
| 1885 | } |
|
| 1886 | } |
|
| 1887 | } |
|
| 1888 | ||
| 1889 | return $html; |
|
| @@ 1977-1988 (lines=12) @@ | ||
| 1974 | } |
|
| 1975 | $coaches_to_string = null; |
|
| 1976 | ||
| 1977 | if (!empty($course_coachs)) { |
|
| 1978 | if ($orderList === true){ |
|
| 1979 | $html .= '<ul class="user-coachs">'; |
|
| 1980 | foreach ($course_coachs as $coachs){ |
|
| 1981 | $html .= Display::tag('li', Display::return_icon('teacher.png', $coachs, null, ICON_SIZE_TINY) . ' ' . $coachs); |
|
| 1982 | } |
|
| 1983 | $html .= '</ul>'; |
|
| 1984 | } else { |
|
| 1985 | $coaches_to_string = array_to_string($course_coachs, $separator); |
|
| 1986 | } |
|
| 1987 | ||
| 1988 | } |
|
| 1989 | ||
| 1990 | return $html; |
|
| 1991 | } |
|