Move app/home/default_platform/template_humb #2321

into public/img/template_thumb
pull/2715/head
Julio 6 years ago
parent 9c6405cb73
commit 601b450c9d
  1. 8
      app/home/default_platform_document/template_thumb/index.html
  2. 13
      main/admin/settings.lib.php
  3. 0
      public/img/templates_thumb/audiocomment.gif
  4. 0
      public/img/templates_thumb/checklist.gif
  5. 0
      public/img/templates_thumb/compare.gif
  6. 0
      public/img/templates_thumb/courseobjectives.gif
  7. 0
      public/img/templates_thumb/coursetitle.gif
  8. 0
      public/img/templates_thumb/cyclechart.gif
  9. 0
      public/img/templates_thumb/description.gif
  10. 0
      public/img/templates_thumb/diagram.gif
  11. 0
      public/img/templates_thumb/empty.gif
  12. 0
      public/img/templates_thumb/flash.gif
  13. 0
      public/img/templates_thumb/index.html
  14. 0
      public/img/templates_thumb/learnerwonder.gif
  15. 0
      public/img/templates_thumb/leftlist.gif
  16. 0
      public/img/templates_thumb/leftrightlist.gif
  17. 0
      public/img/templates_thumb/noimage.gif
  18. 0
      public/img/templates_thumb/phasetimeline.gif
  19. 0
      public/img/templates_thumb/rightlist.gif
  20. 0
      public/img/templates_thumb/stopthink.gif
  21. 0
      public/img/templates_thumb/table.gif
  22. 0
      public/img/templates_thumb/video.gif
  23. 0
      public/img/templates_thumb/yourinstructor.gif

@ -1,8 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
</head>
<body>
<br />
</body>
</html>

@ -1077,9 +1077,9 @@ function actionsFilter($id)
function searchImageFilter($image)
{
if (!empty($image)) {
return '<img src="'.api_get_path(WEB_APP_PATH).'home/default_platform_document/template_thumb/'.$image.'" alt="'.get_lang('TemplatePreview').'"/>';
return '<img src="'.api_get_path(WEB_PUBLIC_PATH).'img/templates_thumb/'.$image.'" alt="'.get_lang('TemplatePreview').'"/>';
} else {
return '<img src="'.api_get_path(WEB_APP_PATH).'home/default_platform_document/template_thumb/noimage.gif" alt="'.get_lang('NoTemplatePreview').'"/>';
return '<img src="'.api_get_path(WEB_PUBLIC_PATH).'img/templates_thumb/noimage.gif" alt="'.get_lang('NoTemplatePreview').'"/>';
}
}
@ -1150,8 +1150,7 @@ function addEditTemplate()
'static',
'template_image_preview',
'',
'<img src="'.api_get_path(WEB_APP_PATH)
.'home/default_platform_document/template_thumb/'.$template->getImage()
'<img src="'.api_get_path(WEB_PUBLIC_PATH).'img/template_thumb/'.$template->getImage()
.'" alt="'.get_lang('TemplatePreview')
.'"/>'
);
@ -1160,7 +1159,7 @@ function addEditTemplate()
'static',
'template_image_preview',
'',
'<img src="'.api_get_path(WEB_APP_PATH).'home/default_platform_document/template_thumb/noimage.gif" alt="'.get_lang('NoTemplatePreview').'"/>'
'<img src="'.api_get_path(WEB_PUBLIC_PATH).'img/template_thumb/noimage.gif" alt="'.get_lang('NoTemplatePreview').'"/>'
);
}
@ -1194,7 +1193,9 @@ function addEditTemplate()
$new_file_name = add_ext_on_mime(stripslashes($_FILES['template_image']['name']), $_FILES['template_image']['type']);
// The upload directory.
$upload_dir = api_get_path(SYS_APP_PATH).'home/default_platform_document/template_thumb/';
// todo
$upload_dir = api_get_path(SYS_PATH).'home/default_platform_document/template_thumb/';
// Create the directory if it does not exist.
if (!is_dir($upload_dir)) {

Before

Width:  |  Height:  |  Size: 4.8 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

Before

Width:  |  Height:  |  Size: 254 B

After

Width:  |  Height:  |  Size: 254 B

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Before

Width:  |  Height:  |  Size: 4.0 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

Loading…
Cancel
Save