diff --git a/main/document/edit_document.php b/main/document/edit_document.php
index a3e94103e3..5c8e8b12cf 100644
--- a/main/document/edit_document.php
+++ b/main/document/edit_document.php
@@ -600,6 +600,11 @@ if(isset($msgError))
if( isset($info_message))
{
Display::display_confirmation_message($info_message); //main API
+ if (isset($_POST['origin']))
+ {
+ $slide_id=$_POST['origin_opt'];
+ nav_to_slideshow($slide_id);
+ }
}
@@ -634,6 +639,8 @@ if ($owner_id == $_user['user_id'] || api_is_platform_admin() || $is_allowed_to_
$form->addElement('hidden','file_path');
$form->addElement('hidden','commentPath');
$form->addElement('hidden','showedit');
+ $form->addElement('hidden','origin');
+ $form->addElement('hidden','origin_opt');
if($use_document_title)
{
@@ -692,18 +699,34 @@ if ($owner_id == $_user['user_id'] || api_is_platform_admin() || $is_allowed_to_
$defaults['commentPath'] = $file;
$defaults['renameTo'] = $file_name;
$defaults['newComment'] = $oldComment;
+ $defaults['origin'] = Security::remove_XSS($_GET['origin']);
+ $defaults['origin_opt'] = Security::remove_XSS($_GET['origin_opt']);
$form->setDefaults($defaults);
// show templates
/*
$form->addElement('html','
');
*/
+
+
+ $origin=Security::remove_XSS($_GET['origin']);
+ if ($origin=='slideshow') {
+ $slide_id=$_GET['origin_opt'];
+ nav_to_slideshow($slide_id);
+ }
$form->display();
//Display::display_error_message(get_lang('ReadOnlyFile')); //main API
}
+//for better navigation when a slide is been commented
+function nav_to_slideshow($slide_id)
+{
+ echo '';
+}
/*
==============================================================================
DOKEOS FOOTER
diff --git a/main/document/slideshow.php b/main/document/slideshow.php
index 8e9d993451..a5275cb087 100644
--- a/main/document/slideshow.php
+++ b/main/document/slideshow.php
@@ -232,15 +232,72 @@ if ($slide_id !== "all") {
$result = Database::query($sql,__FILE__,__LINE__);
$row = Database::fetch_array($result);
+ echo '';
+ echo '';
+ echo '';
+ echo $row['title'];
+ echo ' | ';
+ echo '
';
+ echo '';
+ echo '';
+ echo " ";
+ echo ' | ';
+ echo '
';
+ echo '';
+ echo '';
+ echo $row['comment'];
+ echo ' | ';
+ echo '
';
+ echo '
';
+ echo '';
+ if (api_is_allowed_to_edit(null,true))
+ {
+ echo '';
+ echo '';
+ echo ' ';
+ $aux= explode(".", htmlspecialchars($image_files_only[$slide]));
+ $ext= $aux[count($aux)-1];
+ echo $image_files_only[$slide].' ';
+ list($width, $high) = getimagesize($image);
+ echo $width.' x '.$high.' ';
+ echo round((filesize($image)/1024),2).' KB';
+ echo ' - '.$ext;
+ echo ' | ';
+ echo '
';
+ echo '';
+ echo '';
+ if($_SESSION['image_resizing']=="resizing")
+ {
+ $resize_info=get_lang('_resizing').'';
+ $resize_widht=$_SESSION["image_resizing_width"].' x ';
+ $resize_height=$_SESSION['image_resizing_height'];
+ }
+ else
+ {
+ $resize_info=get_lang('_no_resizing').'';
+ }
+ echo $resize_info;
+ echo $resize_widht;
+ echo $resize_height;
+ echo ' | ';
+ echo '
';
+ }
+ echo '
';
+
+ echo '
';
+
// back forward buttons
echo '';
-
- echo '
';
-
- echo '';
- echo '';
- echo '';
- echo " ";
- echo ' | ';
- echo '
';
- echo '';
- echo '';
- $aux= explode(".", htmlspecialchars($image_files_only[$slide]));
- $ext= $aux[count($aux)-1];
- echo ''.basename(htmlspecialchars($image_files_only[$slide]), '.'.$ext).'';
- echo ' | ';
- echo '
';
- echo '';
- echo '';
- echo $row['comment'];
- echo ' | ';
- echo '
';
-
- if (api_is_allowed_to_edit(null,true))
- {
- echo '';
- echo '';
-
-
- echo ' ';
+ echo ' |
';
- list($width, $high) = getimagesize($image);
- echo $width.' x '.$high.'
';
- echo round((filesize($image)/1024),2).' KB';
- echo ' - '.$ext;
- echo '';
- echo '';
- }
- echo '';
} else {
Display::display_warning_message(get_lang('FileNotFound'));
}
} // if ($slide_id!=="all")
Display :: display_footer();
-?>
+?>
\ No newline at end of file
diff --git a/main/img/slide_first.png b/main/img/slide_first.png
new file mode 100644
index 0000000000..5439dce60e
Binary files /dev/null and b/main/img/slide_first.png differ
diff --git a/main/img/slide_last.png b/main/img/slide_last.png
new file mode 100644
index 0000000000..179509c47c
Binary files /dev/null and b/main/img/slide_last.png differ
diff --git a/main/img/slide_next.png b/main/img/slide_next.png
new file mode 100644
index 0000000000..b41fa2b975
Binary files /dev/null and b/main/img/slide_next.png differ
diff --git a/main/img/slide_previous.png b/main/img/slide_previous.png
new file mode 100644
index 0000000000..4fcc0fa49e
Binary files /dev/null and b/main/img/slide_previous.png differ