|
|
|
@ -161,7 +161,7 @@ function load_platform_templates() { |
|
|
|
|
|
|
|
|
|
$search = array('{CSS}', '{IMG_DIR}', '{REL_PATH}', '{COURSE_DIR}'); |
|
|
|
|
$replace = array($css.$js, $img_dir, api_get_path(REL_PATH), $default_course_dir); |
|
|
|
|
$template_thumb = api_get_path(WEB_PATH).'home/default_platform_document/template_thumb/'; |
|
|
|
|
$template_thumb = api_get_path(WEB_DATA_PATH).'home/default_platform_document/template_thumb/'; |
|
|
|
|
|
|
|
|
|
while ($row = Database::fetch_array($result)) { |
|
|
|
|
$image = empty($row['image']) ? $template_thumb.'empty.gif' : $template_thumb.$row['image']; |
|
|
|
@ -223,9 +223,9 @@ function load_personal_templates($user_id = 0) { |
|
|
|
|
$row['content'] = file_get_contents(api_get_path(SYS_COURSE_PATH).$_course['path'].'/document'.$row['path']); |
|
|
|
|
|
|
|
|
|
if (!empty($row['image'])) { |
|
|
|
|
$image = api_get_path(WEB_PATH).'courses/'.$_course['path'].'/upload/template_thumbnails/'.$row['image']; |
|
|
|
|
$image = api_get_path(WEB_COURSE_PATH).'courses/'.$_course['path'].'/upload/template_thumbnails/'.$row['image']; |
|
|
|
|
} else { |
|
|
|
|
$image = api_get_path(WEB_PATH).'home/default_platform_document/template_thumb/noimage.gif'; |
|
|
|
|
$image = api_get_path(WEB_DATA_PATH).'home/default_platform_document/template_thumb/noimage.gif'; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
echo ' |
|
|
|
@ -245,7 +245,7 @@ function load_empty_template() { |
|
|
|
|
/* <?php echo $css; ?> |
|
|
|
|
<?php echo $js; ?> */
|
|
|
|
|
?> |
|
|
|
|
<Template title="<?php echo s2('Empty'); ?>" image="<?php echo api_get_path(WEB_PATH).'home/default_platform_document/template_thumb/empty.gif'; ?>">
|
|
|
|
|
<Template title="<?php echo s2('Empty'); ?>" image="<?php echo api_get_path(WEB_DATA_PATH).'home/default_platform_document/template_thumb/empty.gif'; ?>">
|
|
|
|
|
<Description></Description> |
|
|
|
|
<Html> |
|
|
|
|
<![CDATA[ |
|
|
|
@ -344,4 +344,4 @@ function load_student_templates() { |
|
|
|
|
</Html> |
|
|
|
|
</Template> |
|
|
|
|
<?php |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|