| @@ 291-296 (lines=6) @@ | ||
| 288 | // course path |
|
| 289 | $course_path = api_get_path(SYS_COURSE_PATH).$course['directory']; |
|
| 290 | ||
| 291 | if (file_exists($course_path.'/course-pic.png')) { |
|
| 292 | $course_medium_image = api_get_path(WEB_COURSE_PATH).$course['directory'].'/course-pic.png'; // redimensioned image 85x85 |
|
| 293 | } else { |
|
| 294 | // without picture |
|
| 295 | $course_medium_image = Display::return_icon('session_default.png', null, null, null, null, true); |
|
| 296 | } |
|
| 297 | ||
| 298 | $html .= '<div class="image">'; |
|
| 299 | ||
| @@ 1841-1854 (lines=14) @@ | ||
| 1838 | ||
| 1839 | // Course image |
|
| 1840 | $_course['course_image_source'] = ''; |
|
| 1841 | if (file_exists($courseSys.'/course-pic85x85.png')) { |
|
| 1842 | $url_image = $webCourseHome.'/course-pic85x85.png'; |
|
| 1843 | $_course['course_image_source'] = $courseSys.'/course-pic85x85.png'; |
|
| 1844 | } else { |
|
| 1845 | $url_image = Display::return_icon( |
|
| 1846 | 'course.png', |
|
| 1847 | null, |
|
| 1848 | null, |
|
| 1849 | ICON_SIZE_BIG, |
|
| 1850 | null, |
|
| 1851 | true, |
|
| 1852 | false |
|
| 1853 | ); |
|
| 1854 | } |
|
| 1855 | $_course['course_image'] = $url_image; |
|
| 1856 | ||
| 1857 | // Course large image |
|