main/auth/courses_categories.php 1 location
|
@@ 286-291 (lines=6) @@
|
| 283 |
|
// course path |
| 284 |
|
$course_path = api_get_path(SYS_COURSE_PATH).$course['directory']; |
| 285 |
|
|
| 286 |
|
if (file_exists($course_path.'/course-pic.png')) { |
| 287 |
|
$course_medium_image = api_get_path(WEB_COURSE_PATH).$course['directory'].'/course-pic.png'; // redimensioned image 85x85 |
| 288 |
|
} else { |
| 289 |
|
// without picture |
| 290 |
|
$course_medium_image = Display::return_icon( |
| 291 |
|
'session_default.png', |
| 292 |
|
null, |
| 293 |
|
null, |
| 294 |
|
null, |
main/inc/lib/api.lib.php 1 location
|
@@ 1856-1869 (lines=14) @@
|
| 1853 |
|
|
| 1854 |
|
// Course image |
| 1855 |
|
$_course['course_image_source'] = ''; |
| 1856 |
|
if (file_exists($courseSys.'/course-pic85x85.png')) { |
| 1857 |
|
$url_image = $webCourseHome.'/course-pic85x85.png'; |
| 1858 |
|
$_course['course_image_source'] = $courseSys.'/course-pic85x85.png'; |
| 1859 |
|
} else { |
| 1860 |
|
$url_image = Display::return_icon( |
| 1861 |
|
'course.png', |
| 1862 |
|
null, |
| 1863 |
|
null, |
| 1864 |
|
ICON_SIZE_BIG, |
| 1865 |
|
null, |
| 1866 |
|
true, |
| 1867 |
|
false |
| 1868 |
|
); |
| 1869 |
|
} |
| 1870 |
|
$_course['course_image'] = $url_image; |
| 1871 |
|
|
| 1872 |
|
// Course large image |