122 echo
"<script type=\"text/javascript\">
123 function doImageAction(action, id, folder, filename, itemID, createThumbnails, thumbnailWidth, watermark, watermarkImage, watermarkOpacity, watermarkPosition, offsetX, offsetY, watermarkFont, watermarkTextSize, watermarkColor, watermarkBorderColor, watermarkBorder)
126 url:'../system/plugins/gallery/js/actions.php',
128 data:'action='+action+'&id='+id+'&folder='+folder+'&filename='+filename+'&itemID='+itemID+'&createThumbnails='+createThumbnails+'&thumbnailWidth='+thumbnailWidth+'&watermark='+watermark+'&watermarkImage='+watermarkImage+'&watermarkOpacity='+watermarkOpacity+'&watermarkPosition='+watermarkPosition+'&offsetX='+offsetX+'&offsetY='+offsetY+'&watermarkFont='+watermarkFont+'&watermarkTextSize='+watermarkTextSize+'&watermarkColor='+watermarkColor+'&watermarkBorderColor='+watermarkBorderColor+'&watermarkBorder='+watermarkBorder,
131 success: function(data)
133 // alert(data.status);
134 var status = data.status;
135 var action = data.action;
136 if(status == 'delete')
137 { // delete successful, reload page afterwards to update gallery view
138 // console.log( data );
139 $('#imgCol-'+itemID).hide();
140 $('#toolset-'+itemID).hide();
142 // location.reload();
145 { // after any other action, reload that image to see changes
146 $('#img-'+itemID).hide().removeAttr('src').attr('src', '../'+folder+'/'+filename+'?'+Math.random()).show();
149 if(status == 'false')
150 { // could not manipulate image
151 alert('Sorry, the action '+action+'could not be done.');
156 alert('Sorry, undefined error executing '+action+'. Maybe there is a problem with your image folders, files or permissions.');
172 echo
"<select name=\"folder\" class=\"form-control\" id=\"folder\">
173 <option value=\"\">$lang[SELECT_FOLDER]</option>
185 echo
"<select name=\"folder\" class=\"form-control\" id=\"folder\">
186 <option value=\"$folder\">$folder</option>
198 if (!is_dir(
"$folder/")) {
199 if (mkdir(
"$folder/")) {
219 $path =
"../system/fonts/";
221 foreach (
new \DirectoryIterator(
"$path") as $file) {
222 if ($file->isDot())
continue;
223 if ($file->isDir())
continue;
224 if ($file->getExtension() ===
"ttf") {
226 $html .=
"<option value=\"$path" . $file->getFilename() .
"\">system/fonts/" . $file->getFilename() .
"</option>";
242 $path =
"media/images/";
244 foreach (
new \DirectoryIterator(
"../$path") as $file) {
245 if ($file->isDot())
continue;
246 if ($file->isDir()) {
248 $html .=
"<option value=\"$path" . $file->getFilename() .
"\">images/" . $file->getFilename() .
"</option>";
259 public function delete(
$db)
263 if (isset(
$_GET[
'id']) && (!empty(
$_GET[
'id']) && (is_numeric(
$_GET[
'id'])))) {
268 if (is_dir(
"../$folder/thumbnails/")) {
270 \YAWK\alert::draw(
"warning",
"Could not delete thumbnails!",
"$folder/thumbnails could not be deleted.",
"", 5800);
272 \YAWK\alert::draw(
"success",
"Thumbnails deleted!",
"$folder/thumbnails is removed.",
"", 1200);
276 if (is_dir(
"../$folder/edit/")) {
278 \YAWK\alert::draw(
"warning",
"Could not delete edit folder!",
"$folder/edit could not be deleted.",
"", 5800);
285 if (is_dir(
"../$folder/original/")) {
287 foreach (
new \DirectoryIterator(
"../$folder/") as $fileInfo) {
288 if ($fileInfo->isDir())
continue;
289 if ($fileInfo->isDot())
continue;
291 unlink(
"../$folder/$filename");
294 foreach (
new \DirectoryIterator(
"../$folder/original") as $fileInfo) {
295 if ($fileInfo->isDir())
continue;
296 if ($fileInfo->isDot())
continue;
299 if (!copy(
"../$folder/original/$filename",
"../$folder/$filename")) {
300 \YAWK\alert::draw(
"warning",
"Could not restore file $filename",
"This should not happen. We're sorry!",
"", 800);
306 \YAWK\alert::draw(
"warning",
"Could not delete backup folder!",
"$folder/original could not be deleted.",
"", 5800);
311 if (
$res =
$db->query(
"DELETE FROM {plugin_gallery} WHERE id = '$_GET[id]'")) {
313 if (!$deleteItems =
$db->query(
"DELETE FROM {plugin_gallery_items}
314 WHERE galleryID = '$_GET[id]'")) {
315 \YAWK\alert::draw(
"warning",
"Could not delete gallery items from database",
"Please try again!",
"", 5800);
320 if ($alterTable =
$db->query(
"SELECT MAX(id) FROM {plugin_gallery}")) {
321 $row = mysqli_fetch_row($alterTable);
323 if (!$alterTable =
$db->query(
"ALTER TABLE {plugin_gallery} AUTO_INCREMENT=$row[0]")) {
328 if (!$alterTable =
$db->query(
"ALTER TABLE {plugin_gallery} AUTO_INCREMENT=1")) {
336 if ($alterItemsTable =
$db->query(
"SELECT MAX(id) FROM {plugin_gallery_items}")) {
337 $row = mysqli_fetch_row($alterItemsTable);
339 if (!$alterItemsTable =
$db->query(
"ALTER TABLE {plugin_gallery_items} AUTO_INCREMENT=$row[0]")) {
344 if (!$alterItemsTable =
$db->query(
"ALTER TABLE {plugin_gallery_items} AUTO_INCREMENT=1")) {
351 \YAWK\alert::draw(
"danger",
"Could not delete this gallery",
"Please try again!",
"", 5800);
366 if (
$res =
$db->query(
"SELECT folder from {plugin_gallery} WHERE id='$galleryID'")) {
367 $row = mysqli_fetch_row(
$res);
384 if (!isset($this->folder) && (empty($this->folder))) {
385 $this->folder = $this->getGalleryFolderByID(
$db,
$galleryID);
387 if (
$res =
$db->query(
"SELECT filename from {plugin_gallery_items} WHERE galleryID = $galleryID")) {
388 $dbItems = mysqli_fetch_assoc(
$res);
396 foreach (
new \DirectoryIterator(
"../$this->folder/") as $image) {
397 if ($image->isDot())
continue;
398 if ($image->isDir())
continue;
401 foreach ($dbItems as
$item) {
406 if (!@copy(
"../$this->folder/$filename",
"../$this->folder/original/$filename")) {
407 \YAWK\alert::draw(
"warning",
"Could not copy file $filename to original folder",
"Could not copy image to backup folder!",
"", 800);
409 if (!@copy(
"../$this->folder/$filename",
"../$this->folder/edit/$filename")) {
410 \YAWK\alert::draw(
"warning",
"Could not copy file $filename to edit folder",
"Could not copy image to backup folder!",
"", 800);
412 if (!
$res =
$db->query(
"INSERT INTO {plugin_gallery_items} (galleryID, filename) VALUES ('" .
$galleryID .
"', '" .
$filename .
"')")) {
413 \YAWK\alert::draw(
"warning",
"Could not add image data to database.",
"Error inserting <b>$filename</b>.",
"", 2800);
430 public function add(
$db)
439 \YAWK\alert::draw(
"success",
"Gallery will be created. . .",
"<div class=\"text-center\"><i class=\"fa fa-spinner fa-spin\" style=\"font-size:24px\"></i><br>Please be patient, this should only take a few seconds.</div>",
"", 3800);
442 require_once
'SimpleImage.php';
444 $img = new \YAWK\SimpleImage();
446 if (isset($_POST[
'folder']) && (!empty($_POST[
'folder']))) {
447 $this->folder =
$db->quote($_POST[
'folder']);
449 if (isset($_POST[
'customFolder']) && (!empty($_POST[
'customFolder']))) {
450 $this->folder = $_POST[
'customFolder'];
452 if (isset($_POST[
'title']) && (!empty($_POST[
'title']))) {
453 $this->
title =
$db->quote($_POST[
'title']);
455 if (isset($_POST[
'description']) && (!empty($_POST[
'description']))) {
458 if (isset($_POST[
'createThumbnails']) && (!empty($_POST[
'createThumbnails']))) {
459 $this->createThumbnails =
$db->quote($_POST[
'createThumbnails']);
461 if (isset($_POST[
'thumbnailWidth']) && (!empty($_POST[
'thumbnailWidth']))) {
462 $this->thumbnailWidth =
$db->quote($_POST[
'thumbnailWidth']);
464 if (isset($_POST[
'watermark']) && (!empty($_POST[
'watermark']))) {
465 $this->watermark =
$db->quote($_POST[
'watermark']);
467 if (isset($_POST[
'watermarkPosition']) && (!empty($_POST[
'watermarkPosition']))) {
468 $this->watermarkPosition =
$db->quote($_POST[
'watermarkPosition']);
470 if (isset($_POST[
'author']) && (!empty($_POST[
'author']))) {
471 $this->author =
$db->quote($_POST[
'author']);
473 if (isset($_POST[
'authorUrl']) && (!empty($_POST[
'authorUrl']))) {
474 $this->authorUrl =
$db->quote($_POST[
'authorUrl']);
476 if (isset($_POST[
'watermarkImage']) && (!empty($_POST[
'watermarkImage']))) {
477 $this->watermarkImage =
$db->quote($_POST[
'watermarkImage']);
479 if (isset($_POST[
'offsetY']) && (!empty($_POST[
'offsetY']))) {
480 $this->offsetY =
$db->quote($_POST[
'offsetY']);
482 if (isset($_POST[
'offsetX']) && (!empty($_POST[
'offsetX']))) {
483 $this->offsetX =
$db->quote($_POST[
'offsetX']);
485 if (isset($_POST[
'watermarkFont']) && (!empty($_POST[
'watermarkFont']))) {
487 $this->watermarkFont = ($_POST[
'watermarkFont']);
489 if (isset($_POST[
'watermarkTextSize']) && (!empty($_POST[
'watermarkTextSize']))) {
490 $this->watermarkTextSize =
$db->quote($_POST[
'watermarkTextSize']);
492 if (isset($_POST[
'watermarkOpacity']) && (!empty($_POST[
'watermarkOpacity']))) {
493 $this->watermarkOpacity =
$db->quote($_POST[
'watermarkOpacity']);
495 if (isset($_POST[
'watermarkColor']) && (!empty($_POST[
'watermarkColor']))) {
496 $this->watermarkColor =
$db->quote($_POST[
'watermarkColor']);
498 if (isset($_POST[
'watermarkBorderColor']) && (!empty($_POST[
'watermarkBorderColor']))) {
499 $this->watermarkBorderColor =
$db->quote($_POST[
'watermarkBorderColor']);
501 if (isset($_POST[
'watermarkBorder']) && (!empty($_POST[
'watermarkBorder']))) {
502 $this->watermarkBorder =
$db->quote($_POST[
'watermarkBorder']);
505 if ($this->watermarkPosition ===
"---") {
506 $this->watermarkPosition =
"bottom right";
508 if (empty($this->thumbnailWidth) || ($this->thumbnailWidth ===
"0")) {
509 $this->thumbnailWidth = 200;
513 if (
$res =
$db->query(
"INSERT INTO {plugin_gallery} (folder,
528 watermarkBorderColor,
530 VALUES ('" . $this->folder .
"',
531 '" . $this->title .
"',
532 '" . $this->description .
"',
533 '" . $this->createThumbnails .
"',
534 '" . $this->thumbnailWidth .
"',
535 '" . $this->watermark .
"',
536 '" . $this->watermarkEnabled .
"',
537 '" . $this->watermarkPosition .
"',
538 '" . $this->watermarkImage .
"',
539 '" . $this->offsetY .
"',
540 '" . $this->offsetX .
"',
541 '" . $this->watermarkFont .
"',
542 '" . $this->watermarkTextSize .
"',
543 '" . $this->watermarkOpacity .
"',
544 '" . $this->watermarkColor .
"',
545 '" . $this->watermarkBorderColor .
"',
546 '" . $this->watermarkBorder .
"')")) {
549 \YAWK\alert::draw(
"danger",
"Could not add the new gallery.",
"Please check your data and try again.",
"", 5800);
553 if (
$res =
$db->query(
"SELECT id from {plugin_gallery} WHERE folder = '$this->folder'")) {
554 $row = mysqli_fetch_row(
$res);
564 foreach (
new \DirectoryIterator(
"../$this->folder") as $fileInfo) {
565 if ($fileInfo->isDot())
continue;
566 if ($fileInfo->isDir())
continue;
573 if (!empty($this->watermark) || (!empty($this->watermarkImage))) {
574 if ($this->watermarkPosition ===
"---") {
575 $this->watermarkPosition =
"bottom right";
579 if (!is_dir(
"../$this->folder/edit")) {
580 mkdir(
"../$this->folder/edit");
583 foreach (
new \DirectoryIterator(
"../$this->folder") as $backupFile) {
584 if ($fileInfo->isDot())
continue;
585 if ($fileInfo->isDir())
continue;
586 $copyFile = $backupFile->getFilename();
587 if (!@copy(
"../$this->folder/$copyFile",
"../$this->folder/edit/$copyFile")) {
588 \YAWK\alert::draw(
"warning",
"Could not copy file $filename to edit folder",
"This should not happen. We're sorry!",
"", 800);
596 if (!is_dir(
"../$this->folder/original")) {
597 mkdir(
"../$this->folder/original");
600 foreach (
new \DirectoryIterator(
"../$this->folder") as $backupFile) {
601 if ($fileInfo->isDot())
continue;
602 if ($fileInfo->isDir())
continue;
603 $copyFile = $backupFile->getFilename();
604 if (!@copy(
"../$this->folder/$copyFile",
"../$this->folder/original/$copyFile")) {
605 \YAWK\alert::draw(
"warning",
"Could not backup file $filename",
"This should not happen. We're sorry!",
"", 800);
610 if (!empty($this->watermarkImage)) {
611 $img->fromFile(
"../$this->folder/$filename")
612 ->overlay(
"../$this->watermarkImage",
613 "$this->watermarkPosition",
614 $this->watermarkOpacity)
615 ->toFile(
"../$this->folder/$filename");
617 if (!empty($this->watermark)) {
618 $img->fromFile(
"../$this->folder/$filename")
619 ->text(
"$this->watermark",
620 "$this->watermarkFont",
621 $this->watermarkTextSize,
622 "#$this->watermarkColor",
623 "$this->watermarkPosition",
626 "#$this->watermarkBorderColor",
627 $this->watermarkBorder)
628 ->toFile(
"../$this->folder/$filename");
632 if ($this->createThumbnails ===
"1") {
633 if (empty($this->thumbnailWidth)) {
634 $this->thumbnailWidth = 200;
636 $this->thumbnailWidth = preg_replace(
"/[^0-9]/",
"", $this->thumbnailWidth);
639 $this->
checkDir(
"../$this->folder/thumbnails");
641 $img->fromFile(
"../$this->folder/$filename")
642 ->text(
"$this->watermark",
643 "$this->watermarkFont",
644 $this->watermarkTextSize,
645 "#$this->watermarkColor",
646 "$this->watermarkPosition",
649 "#$this->watermarkBorderColor",
650 $this->watermarkBorder)
651 ->bestFit($this->thumbnailWidth, 600)
652 ->toFile(
"../$this->folder/thumbnails/$filename");
661 if (!is_dir(
"../$this->folder/original")) {
662 mkdir(
"../$this->folder/original");
665 foreach (
new \DirectoryIterator(
"../$this->folder") as $backupFile) {
666 if ($fileInfo->isDot())
continue;
667 if ($fileInfo->isDir())
continue;
668 $copyFile = $backupFile->getFilename();
669 if (!@copy(
"../$this->folder/$copyFile",
"../$this->folder/original/$copyFile")) {
670 \YAWK\alert::draw(
"warning",
"Could not backup file $filename",
"This should not happen. We're sorry!",
"", 800);
677 if (!is_dir(
"../$this->folder/edit")) {
678 mkdir(
"../$this->folder/edit");
681 foreach (
new \DirectoryIterator(
"../$this->folder") as $backupFile) {
682 if ($fileInfo->isDot())
continue;
683 if ($fileInfo->isDir())
continue;
684 $copyFile = $backupFile->getFilename();
685 if (!@copy(
"../$this->folder/$copyFile",
"../$this->folder/edit/$copyFile")) {
686 \YAWK\alert::draw(
"warning",
"Could not copy file $filename to edit folder",
"This should not happen. We're sorry!",
"", 800);
692 if ($this->createThumbnails ===
"1") {
693 if (empty($this->thumbnailWidth)) {
694 $this->thumbnailWidth = 200;
697 $this->
checkDir(
"../$this->folder/thumbnails");
699 $img->fromFile(
"../$this->folder/$filename")
700 ->bestFit($this->thumbnailWidth, 600)
701 ->toFile(
"../$this->folder/thumbnails/$filename");
707 if (
$res =
$db->query(
"INSERT INTO {plugin_gallery_items} (galleryID, sort, filename, title, author, authorUrl)
708 VALUES ('" .
$galleryID .
"', '" .
$i .
"', '" .
$filename .
"', '" . $this->title .
"', '" . $this->author .
"', '" . $this->authorUrl .
"')")) {
711 \YAWK\alert::draw(
"warning",
"Could not insert $filename",
"Database error. Please check folder and try again.",
"", 1200);
726 if (
$res =
$db->query(
"SELECT * from {plugin_gallery} where id = $galleryID")) {
727 while ($row = mysqli_fetch_assoc(
$res)) {
729 $this->folder = $row[
'folder'];
730 $this->
title = $row[
'title'];
732 $this->author = $row[
'author'];
733 $this->authorUrl = $row[
'authorUrl'];
734 $this->createThumbnails = $row[
'createThumbnails'];
735 $this->imageWidth = $row[
'imageWidth'];
736 $this->imageHeight = $row[
'imageHeight'];
737 $this->resizeImages = $row[
'resizeImages'];
738 $this->resizeType = $row[
'resizeType'];
739 $this->thumbnailWidth = $row[
'thumbnailWidth'];
740 $this->watermark = $row[
'watermark'];
741 $this->watermarkEnabled = $row[
'watermarkEnabled'];
742 $this->watermarkPosition = $row[
'watermarkPosition'];
743 $this->watermarkImage = $row[
'watermarkImage'];
744 $this->offsetY = $row[
'offsetY'];
745 $this->offsetX = $row[
'offsetX'];
746 $this->watermarkFont = $row[
'watermarkFont'];
747 $this->watermarkTextSize = $row[
'watermarkTextSize'];
748 $this->watermarkOpacity = $row[
'watermarkOpacity'];
749 $this->watermarkColor = $row[
'watermarkColor'];
750 $this->watermarkBorderColor = $row[
'watermarkBorderColor'];
751 $this->watermarkBorder = $row[
'watermarkBorder'];
769 $this->folder =
$db->quote($_POST[
'folder']);
770 $this->
title =
$db->quote($_POST[
'title']);
772 $this->author =
$db->quote($_POST[
'author']);
773 $this->authorUrl =
$db->quote($_POST[
'authorUrl']);
774 $this->createThumbnails =
$db->quote($_POST[
'createThumbnails']);
775 $this->imageWidth =
$db->quote($_POST[
'imageWidth']);
776 $this->imageHeight =
$db->quote($_POST[
'imageHeight']);
777 $this->imageHeight =
$db->quote($_POST[
'imageHeight']);
778 $this->resizeImages =
$db->quote($_POST[
'resizeImages']);
779 $this->resizeType =
$db->quote($_POST[
'resizeType']);
780 $this->thumbnailWidth =
$db->quote($_POST[
'thumbnailWidth']);
781 $this->watermark =
$db->quote($_POST[
'watermark']);
782 $this->watermarkEnabled =
$db->quote($_POST[
'watermarkEnabled']);
783 $this->watermarkPosition =
$db->quote($_POST[
'watermarkPosition']);
784 $this->watermarkImage =
$db->quote($_POST[
'watermarkImage']);
785 $this->offsetY =
$db->quote($_POST[
'offsetY']);
786 $this->offsetX =
$db->quote($_POST[
'offsetX']);
787 $this->watermarkFont =
$db->quote($_POST[
'watermarkFont']);
788 $this->watermarkTextSize =
$db->quote($_POST[
'watermarkTextSize']);
789 $this->watermarkOpacity =
$db->quote($_POST[
'watermarkOpacity']);
790 $this->watermarkColor =
$db->quote($_POST[
'watermarkColor']);
791 $this->watermarkBorderColor =
$db->quote($_POST[
'watermarkBorderColor']);
792 $this->watermarkBorder =
$db->quote($_POST[
'watermarkBorder']);
795 if (isset(
$_GET[
'imageCount']) && (is_numeric(
$_GET[
'imageCount']))) {
797 $processingDurationPerImage = 200;
798 $notifyDuration =
$i * $processingDurationPerImage;
799 $notifyDurationShort = $notifyDuration / 2;
801 $i = $this->countEntries(
$db, $this->
id);
802 $processingDurationPerImage = 200;
803 $notifyDuration =
$i * $processingDurationPerImage;
804 $notifyDurationShort = $notifyDuration / 2;
807 $oldThumbnailWidth = $_POST[
'thumbnailWidth-old'];
808 if ($oldThumbnailWidth !== $this->thumbnailWidth) {
809 \YAWK\alert::draw(
"success",
"Saving new thumbnails. . .",
"<div class=\"text-center\"><i class=\"fa fa-spinner fa-spin\" style=\"font-size:24px\"></i><br>Please be patient, this should only take a few seconds.</div>",
"", $notifyDuration);
811 if ($this->resizeImages ===
"1") {
813 \YAWK\alert::draw(
"success",
"Resizing your images. . .",
"<div class=\"text-center\"><i class=\"fa fa-spinner fa-spin\" style=\"font-size:24px\"></i><br>Please be patient, this should only take a few seconds.</div>",
"", $notifyDuration);
816 \YAWK\alert::draw(
"success",
"Settings saved.",
"Gallery updated.",
"", $notifyDurationShort);
820 if (
$res =
$db->query(
"SELECT id from {plugin_gallery_items}
821 WHERE galleryID = $this->id")) {
822 while ($row = mysqli_fetch_assoc(
$res)) {
823 $this->itemID = $row[
'id'];
826 $oldFile = $_POST[
'filename-' . $this->itemID .
'-old'];
827 $newFile = $_POST[
'filename-' . $this->itemID .
''];
829 $oldTitle = $_POST[
'title-' . $this->itemID .
'-old'];
830 $newTitle = $_POST[
'title-' . $this->itemID .
''];
832 $oldAuthor = $_POST[
'author-' . $this->itemID .
'-old'];
833 $newAuthor = $_POST[
'author-' . $this->itemID .
''];
835 $oldAuthorUrl = $_POST[
'authorUrl-' . $this->itemID .
'-old'];
836 $newAuthorUrl = $_POST[
'authorUrl-' . $this->itemID .
''];
839 $oldSort = $_POST[
'sort-' . $this->itemID .
'-old'];
840 $newSort = $_POST[
'sort-' . $this->itemID .
''];
841 if ($oldSort !== $newSort) {
842 if (!
$db->query(
"UPDATE {plugin_gallery_items}
843 SET sort = '$newSort'
844 WHERE id = $this->itemID")) {
845 \YAWK\alert::draw(
"warning",
"Could not save new filename $newFile in database!",
"But... the file is already renamed. Expect errors.",
"", 5800);
850 if ($oldFile === $newFile) {
853 if (rename(
"../$this->folder/$oldFile",
"../$this->folder/$newFile")) {
854 \YAWK\alert::draw(
"success",
"$oldFile renamed to $newFile",
"$this->itemID",
"", 800);
856 if (!$saveItem =
$db->query(
"UPDATE {plugin_gallery_items}
857 SET filename = '$newFile'
858 WHERE id = $this->itemID")) {
859 \YAWK\alert::draw(
"warning",
"Could not save new filename $newFile in database!",
"But... the file is already renamed. Expect errors.",
"", 5800);
863 if (is_dir(
"../$this->folder/original/")) {
864 if (!rename(
"../$this->folder/original/$oldFile",
"../$this->folder/original/$newFile")) {
865 \YAWK\alert::draw(
"warning",
"Could not rename original/$oldFile to $newFile",
"Please check folder permissions!",
"", 5800);
870 if (is_dir(
"../$this->folder/edit/")) {
871 if (!rename(
"../$this->folder/edit/$oldFile",
"../$this->folder/edit/$newFile")) {
872 \YAWK\alert::draw(
"warning",
"Could not rename edit/$oldFile to $newFile",
"Please check folder permissions!",
"", 5800);
877 if (is_dir(
"../$this->folder/thumbnails/")) {
878 if (!rename(
"../$this->folder/thumbnails/$oldFile",
"../$this->folder/thumbnails/$newFile")) {
879 \YAWK\alert::draw(
"warning",
"Could not rename thumbnails/$oldFile to $newFile",
"Please check folder permissions!",
"", 5800);
883 \YAWK\alert::draw(
"danger",
"Could not rename $oldFile to $newFile",
"Please check folder permissions!",
"", 5800);
887 if ($oldTitle === $newTitle) {
890 if (!$saveItem =
$db->query(
"UPDATE {plugin_gallery_items}
891 SET title = '$newTitle'
892 WHERE id = $this->itemID")) {
893 \YAWK\alert::draw(
"warning",
"Could not change title $newTitle",
"Please check your data and try again!",
"", 5800);
895 \YAWK\alert::draw(
"success",
"Changed $oldTitle to $newTitle",
"affected image ID: $this->itemID",
"", 800);
899 if ($oldAuthor === $newAuthor) {
902 if (!$saveItem =
$db->query(
"UPDATE {plugin_gallery_items}
903 SET author = '$newAuthor'
904 WHERE id = $this->itemID")) {
905 \YAWK\alert::draw(
"warning",
"Could not change author $newAuthor",
"Please check your data and try again!",
"", 5800);
907 \YAWK\alert::draw(
"success",
"Changed $oldAuthor to $newAuthor",
"affected image ID: $this->itemID",
"", 800);
911 if ($oldAuthorUrl === $newAuthorUrl) {
914 if (!$saveItem =
$db->query(
"UPDATE {plugin_gallery_items}
915 SET authorUrl = '$newAuthorUrl'
916 WHERE id = $this->itemID")) {
917 \YAWK\alert::draw(
"warning",
"Could not change author URL to $newAuthorUrl",
"Please check your data and try again!",
"", 5800);
919 \YAWK\alert::draw(
"success",
"Changed Author URL to $newAuthorUrl",
"affected image ID: $this->itemID",
"", 800);
925 require_once
'SimpleImage.php';
927 $img = new \YAWK\SimpleImage();
929 if (empty($this->watermark) || ($this->watermarkEnabled ===
"0")) {
932 if ($this->createThumbnails ===
"1") {
933 if (empty($this->thumbnailWidth)) {
934 $this->thumbnailWidth = 200;
937 foreach (
new \DirectoryIterator(
"../$this->folder/edit/") as $image) {
938 if ($image->isDot())
continue;
939 if ($image->isDir())
continue;
942 $img->fromFile(
"../$this->folder/edit/$filename")
943 ->toFile(
"../$this->folder/$filename")
944 ->bestFit($this->thumbnailWidth, 600)
945 ->toFile(
"../$this->folder/thumbnails/$filename");
949 foreach (
new \DirectoryIterator(
"../$this->folder/edit/") as $image) {
950 if ($image->isDot())
continue;
951 if ($image->isDir())
continue;
954 $img->fromFile(
"../$this->folder/edit/$filename")
955 ->toFile(
"../$this->folder/$filename");
961 if ($this->createThumbnails ===
"1") {
962 if (empty($this->thumbnailWidth)) {
963 $this->thumbnailWidth = 200;
966 foreach (
new \DirectoryIterator(
"../$this->folder/edit/") as $image) {
967 if ($image->isDot())
continue;
968 if ($image->isDir())
continue;
971 $img->fromFile(
"../$this->folder/edit/$filename")
972 ->text(
"$this->watermark",
973 "$this->watermarkFont",
974 $this->watermarkTextSize,
975 "#$this->watermarkColor",
976 "$this->watermarkPosition",
979 "#$this->watermarkBorderColor",
980 $this->watermarkBorder)
981 ->toFile(
"../$this->folder/$filename")
982 ->bestFit($this->thumbnailWidth, 600)
983 ->toFile(
"../$this->folder/thumbnails/$filename");
987 foreach (
new \DirectoryIterator(
"../$this->folder/edit/") as $image) {
988 if ($image->isDot())
continue;
989 if ($image->isDir())
continue;
992 $img->fromFile(
"../$this->folder/edit/$filename")
993 ->text(
"$this->watermark",
994 "$this->watermarkFont",
995 $this->watermarkTextSize,
996 "#$this->watermarkColor",
997 "$this->watermarkPosition",
1000 "#$this->watermarkBorderColor",
1001 $this->watermarkBorder)
1002 ->toFile(
"../$this->folder/$filename");
1007 if (empty($this->watermarkImage)) {
1011 foreach (
new \DirectoryIterator(
"../$this->folder/edit/") as $image) {
1012 if ($image->isDot())
continue;
1013 if ($image->isDir())
continue;
1018 if ($this->createThumbnails ===
"1") {
1019 if (empty($this->thumbnailWidth)) {
1020 $this->thumbnailWidth = 200;
1023 $img->fromFile(
"../$this->folder/edit/$filename")
1024 ->overlay(
"../$this->watermarkImage",
1025 "$this->watermarkPosition",
1026 $this->watermarkOpacity)
1027 ->toFile(
"../$this->folder/$filename")
1028 ->bestFit($this->thumbnailWidth, 600)
1029 ->toFile(
"../$this->folder/thumbnails/$filename");
1032 $img->fromFile(
"../$this->folder/edit/$filename")
1033 ->overlay(
"../$this->watermarkImage",
1034 "$this->watermarkPosition",
1035 $this->watermarkOpacity)
1036 ->toFile(
"../$this->folder/$filename");
1042 if ($oldThumbnailWidth === $this->thumbnailWidth) {
1046 if ($this->createThumbnails ===
"1") {
1047 if (empty($this->thumbnailWidth)) {
1048 $this->thumbnailWidth = 200;
1051 require_once
'SimpleImage.php';
1053 $img = new \YAWK\SimpleImage();
1056 foreach (
new \DirectoryIterator(
"../$this->folder") as $image) {
1057 if ($image->isDot())
continue;
1058 if ($image->isDir())
continue;
1061 $img->fromFile(
"../$this->folder/$filename")
1062 ->bestFit($this->thumbnailWidth, 600)
1063 ->toFile(
"../$this->folder/thumbnails/$filename");
1070 if ($this->resizeImages ===
"1") {
1071 $this->imageWidth = preg_replace(
'![^0-9]!',
'', $this->imageWidth);
1072 $this->imageHeight = preg_replace(
'![^0-9]!',
'', $this->imageHeight);
1075 if (!isset($this->imageWidth) || (empty($this->imageWidth))) {
1079 if (!isset($this->imageHeight) || (empty($this->imageHeight))) {
1083 if (empty($this->imageWidth) && (empty($this->imageHeight))) {
1084 $this->imageWidth = 300;
1085 $this->imageHeight = 300;
1088 if ($this->resizeType ===
"fit_to_width") {
1090 foreach (
new \DirectoryIterator(
"../$this->folder") as $image) {
1091 if ($image->isDot())
continue;
1092 if ($image->isDir())
continue;
1095 $img->fromFile(
"../$this->folder/$filename")
1096 ->bestFit($this->imageWidth, 600)
1097 ->toFile(
"../$this->folder/$filename");
1100 if ($this->resizeType ===
"fit_to_height") {
1102 foreach (
new \DirectoryIterator(
"../$this->folder") as $image) {
1103 if ($image->isDot())
continue;
1104 if ($image->isDir())
continue;
1107 $img->fromFile(
"../$this->folder/$filename")
1108 ->bestFit($this->imageWidth, 600)
1109 ->toFile(
"../$this->folder/$filename");
1112 if ($this->resizeType ===
"best_fit") {
1114 foreach (
new \DirectoryIterator(
"../$this->folder") as $image) {
1115 if ($image->isDot())
continue;
1116 if ($image->isDir())
continue;
1119 $img->fromFile(
"../$this->folder/$filename")
1120 ->bestFit($this->imageWidth, $this->imageHeight)
1121 ->toFile(
"../$this->folder/$filename");
1124 if ($this->resizeType ===
"resize") {
1126 foreach (
new \DirectoryIterator(
"../$this->folder") as $image) {
1127 if ($image->isDot())
continue;
1128 if ($image->isDir())
continue;
1131 $img->fromFile(
"../$this->folder/$filename")
1132 ->resize($this->imageWidth, $this->imageHeight)
1133 ->toFile(
"../$this->folder/$filename");
1136 if ($this->resizeType ===
"thumbnail") {
1138 foreach (
new \DirectoryIterator(
"../$this->folder") as $image) {
1139 if ($image->isDot())
continue;
1140 if ($image->isDir())
continue;
1143 $img->fromFile(
"../$this->folder/$filename")
1144 ->thumbnail($this->imageWidth, $this->imageHeight,
'top')
1145 ->toFile(
"../$this->folder/$filename");
1152 if (!
$res =
$db->query(
"UPDATE {plugin_gallery}
1153 SET folder='$this->folder',
1154 title='$this->title',
1155 description='$this->description',
1156 author='$this->author',
1157 authorUrl='$this->authorUrl',
1158 createThumbnails='$this->createThumbnails',
1159 thumbnailWidth='$this->thumbnailWidth',
1160 imageWidth='$this->imageWidth',
1161 imageHeight='$this->imageHeight',
1162 resizeImages='$this->resizeImages',
1163 resizeType='$this->resizeType',
1164 watermark='$this->watermark',
1165 watermarkPosition='$this->watermarkPosition',
1166 watermarkImage='$this->watermarkImage',
1167 offsetY='$this->offsetY',
1168 offsetX='$this->offsetX',
1169 watermarkFont='$this->watermarkFont',
1170 watermarkTextSize='$this->watermarkTextSize',
1171 watermarkOpacity='$this->watermarkOpacity',
1172 watermarkColor='$this->watermarkColor',
1173 watermarkBorderColor='$this->watermarkBorderColor',
1174 watermarkBorder='$this->watermarkBorder' WHERE id = '$this->id'")) {
1175 \YAWK\alert::draw(
"warning",
"Could not save gallery settings.",
"Please check your input data and try again.",
"", 5800);
1194 if (
$res =
$db->query(
"SELECT id from {plugin_gallery_items} WHERE galleryID = '$galleryID'")) {
1195 while ($row = mysqli_fetch_assoc(
$res)) {
1210 public function getPreview(
$db,
$lang)
1215 if (
$res =
$db->query(
"SELECT * from {plugin_gallery}")) {
1216 while ($row = mysqli_fetch_assoc(
$res)) {
1217 if (!$getPreviewImages =
$db->query(
"SELECT galleryID, filename from {plugin_gallery_items} WHERE galleryID = '$row[id]' ORDER by sort, filename DESC LIMIT 5")) {
1218 $previewError =
"Sorry, no preview available.";
1220 $imageCount = $this->countEntries(
$db, $row[
'id']);
1222 echo
"<div class=\"row\"><div class=\"col-md-4\"><a class=\"fa fa-trash-o\" role=\"dialog\" data-confirm=\"Soll die Galerie «" . $row[
'id'] .
" / " . $row[
'title'] .
"» wirklich gelöscht werden?\"
1223 title=\"" .
$lang[
'DEL'] .
"\" href=\"index.php?plugin=gallery&delete=1&id=" . $row[
'id'] .
"\"></a>
1224 <!-- <a href=\"index.php?plugin=gallery&refresh=1&id=$row[id]&folder=$row[folder]\" title=\"refresh\"><i class=\"fa fa-refresh\"></i></a> -->
1225 <a href=\"index.php?plugin=gallery&pluginpage=edit&id=$row[id]&folder=$row[folder]&imageCount=$imageCount\" title=\"edit\"><i class=\"fa fa-edit\"></i>
1226 <b>" . $row[
'title'] .
"</b></a><br><small><strong>$imageCount Images</strong><br> " . $row[
'description'] .
"</small></div>
1227 <div class=\"col-md-8\">";
1228 if (isset($previewError)) {
1231 foreach ($getPreviewImages as $property => $image) {
1233 echo
"<a href=\"index.php?plugin=gallery&pluginpage=edit&id=$row[id]&folder=$row[folder]&imageCount=$imageCount\" title=\"edit gallery\">
1234 <img src=\"../$row[folder]/$image[filename]?$rnd\" class=\"img-thumbnail\" width=\"100\"></a>";
1252 if (
$res =
$db->query(
"SELECT * from {plugin_gallery} WHERE id = $galleryID")) {
1253 while ($row = mysqli_fetch_assoc(
$res)) {
1254 if (!$getPreviewImages =
$db->query(
"SELECT id, galleryID, sort, filename, title, author, authorUrl
1255 from {plugin_gallery_items}
1256 WHERE galleryID = $galleryID ORDER BY sort, filename DESC")) {
1257 $previewError =
"Sorry, could not get preview images";
1259 if (isset($previewError)) {
1266 foreach ($getPreviewImages as $property => $image) {
1267 for (
$i = 0;
$i < count($property);
$i++) {
1268 $this->itemID = $image[
'id'];
1269 $this->sort = $image[
'sort'];
1270 $this->filename = $image[
'filename'];
1271 $this->itemTitle = $image[
'title'];
1272 $this->itemAuthor = $image[
'author'];
1273 $this->itemAuthorUrl = $image[
'authorUrl'];
1276 if ($count % 3 == 0) {
1281 <div class="col-md-4 animate text-center" id="imgCol-' . $this->itemID .
'">
1282 <a href="' . $row[
'folder'] .
"/" . $this->filename .
'" data-lightbox="' .
$galleryID .
'" data-title="' . $this->itemTitle .
'"><img class="img-responsive img-rounded hvr-grow" id="img-' . $this->itemID .
'" width="400" alt="' . $this->itemTitle .
'" title="' . $this->itemTitle .
'" src="' . $row[
'folder'] .
"/" . $this->filename .
'"></a><br><br>
1286 <div class="col-md-4 animate text-center" id="imgCol-' . $this->itemID .
'">
1287 <a href="' . $row[
'folder'] .
"/" . $this->filename .
'" data-lightbox="' .
$galleryID .
'" data-title="' . $this->itemTitle .
'"><img class="img-responsive img-rounded hvr-grow"' . $this->itemTitle .
'" id="img-' . $this->itemID .
'" width="400" title="' . $this->itemTitle .
'" src="' . $row[
'folder'] .
"/" . $this->filename .
'"></a><br><br>
1312 if (
$res =
$db->query(
"SELECT * from {plugin_gallery} WHERE id = $galleryID")) {
1313 while ($row = mysqli_fetch_assoc(
$res)) {
1314 if (!$getPreviewImages =
$db->query(
"SELECT id, galleryID, sort, filename, title, author, authorUrl
1315 from {plugin_gallery_items}
1316 WHERE galleryID = $galleryID ORDER BY sort, filename DESC")) {
1317 $previewError =
"Sorry, could not get preview images";
1319 if (!isset(
$_GET[
'imageCount']) && (!empty(
$_GET[
'imageCount']))) {
1320 $imageCount =
$_GET[
'imageCount'];
1325 echo
"<a class=\"fa fa-trash-o\" role=\"dialog\" data-confirm=\"Soll die Galerie «" . $row[
'id'] .
" / " . $row[
'title'] .
"» wirklich gelöscht werden?\"
1326 title=\"" .
$lang[
'DEL'] .
"\" href=\"index.php?plugin=gallery&delete=1&id=" . $row[
'id'] .
"\"></a>
1327 <a href=\"index.php?plugin=gallery&pluginpage=edit&refresh=1&id=$row[id]&folder=$row[folder]&imageCount=" . $imageCount .
"\" title=\"refresh\"><i class=\"fa fa-refresh\"></i></a>
1328 <b>" . $row[
'title'] .
"</b><br><small>" . $row[
'description'] .
"</small><br>
1329 <div class=\"text-center\">";
1330 if (isset($previewError)) {
1337 foreach ($getPreviewImages as $property => $image) {
1339 for (
$i = 0;
$i < mb_strlen($property);
$i++) {
1340 $this->itemID = $image[
'id'];
1341 $this->sort = $image[
'sort'];
1342 $this->filename = $image[
'filename'];
1343 $this->itemTitle = $image[
'title'];
1344 $this->itemAuthor = $image[
'author'];
1345 $this->itemAuthorUrl = $image[
'authorUrl'];
1348 if ($count % 3 == 0) {
1352 <div class="row"><div class="col-md-4" id="imgCol-' . $this->itemID .
'">
1353 <a href="../' . $row[
'folder'] .
"/" . $this->filename .
'?' . $rnd .
'" data-lightbox="' . $this->
id .
'"><img class="img-thumbnail" id="img-' . $this->itemID .
'" width="400" title="' . $this->itemTitle .
'" src="../' . $row[
'folder'] .
"/" . $this->filename .
'?' . $rnd .
'"></a>
1355 <div style="margin-top: 10px; margin-bottom:10px; cursor:pointer;" id="toolset-' . $this->itemID .
'">
1356 <i class="fa fa-arrows-h"
1358 onclick="doImageAction(\'flip-horizontal\',
1359 \'' . $this->
id .
'\',
1360 \
'' . $this->folder .
'\',
1361 \
'' . $this->filename .
'\',
1362 \
'' . $this->itemID .
'\',
1363 \
'' . $this->createThumbnails .
'\',
1364 \
'' . $this->thumbnailWidth .
'\',
1365 \
'' . $this->watermark .
'\',
1366 \
'' . $this->watermarkImage .
'\',
1367 \
'' . $this->watermarkOpacity .
'\',
1368 \
'' . $this->watermarkPosition .
'\',
1369 \
'' . $this->offsetX .
'\',
1370 \
'' . $this->offsetY .
'\',
1371 \
'' . $this->watermarkFont .
'\',
1372 \
'' . $this->watermarkTextSize .
'\',
1373 \
'' . $this->watermarkColor .
'\',
1374 \
'' . $this->watermarkBorderColor .
'\',
1375 \
'' . $this->watermarkBorder .
'\'
1377 <i class="fa fa-arrows-
v"
1379 onclick="doImageAction(\
'flip-vertical\',
1380 \'' . $this->
id .
'\',
1381 \
'' . $this->folder .
'\',
1382 \
'' . $this->filename .
'\',
1383 \
'' . $this->itemID .
'\',
1384 \
'' . $this->createThumbnails .
'\',
1385 \
'' . $this->thumbnailWidth .
'\',
1386 \
'' . $this->watermark .
'\',
1387 \
'' . $this->watermarkImage .
'\',
1388 \
'' . $this->watermarkOpacity .
'\',
1389 \
'' . $this->watermarkPosition .
'\',
1390 \
'' . $this->offsetX .
'\',
1391 \
'' . $this->offsetY .
'\',
1392 \
'' . $this->watermarkFont .
'\',
1393 \
'' . $this->watermarkTextSize .
'\',
1394 \
'' . $this->watermarkColor .
'\',
1395 \
'' . $this->watermarkBorderColor .
'\',
1396 \
'' . $this->watermarkBorder .
'\'
1398 <i class="fa fa-undo
"
1400 onclick="doImageAction(\
'rotate-90\',
1401 \'' . $this->
id .
'\',
1402 \
'' . $this->folder .
'\',
1403 \
'' . $this->filename .
'\',
1404 \
'' . $this->itemID .
'\',
1405 \
'' . $this->createThumbnails .
'\',
1406 \
'' . $this->thumbnailWidth .
'\',
1407 \
'' . $this->watermark .
'\',
1408 \
'' . $this->watermarkImage .
'\',
1409 \
'' . $this->watermarkOpacity .
'\',
1410 \
'' . $this->watermarkPosition .
'\',
1411 \
'' . $this->offsetX .
'\',
1412 \
'' . $this->offsetY .
'\',
1413 \
'' . $this->watermarkFont .
'\',
1414 \
'' . $this->watermarkTextSize .
'\',
1415 \
'' . $this->watermarkColor .
'\',
1416 \
'' . $this->watermarkBorderColor .
'\',
1417 \
'' . $this->watermarkBorder .
'\'
1419 <i class="fa fa-adjust
"
1421 onclick="doImageAction(\
'contrast-plus\',
1422 \'' . $this->
id .
'\',
1423 \
'' . $this->folder .
'\',
1424 \
'' . $this->filename .
'\',
1425 \
'' . $this->itemID .
'\',
1426 \
'' . $this->createThumbnails .
'\',
1427 \
'' . $this->thumbnailWidth .
'\',
1428 \
'' . $this->watermark .
'\',
1429 \
'' . $this->watermarkImage .
'\',
1430 \
'' . $this->watermarkOpacity .
'\',
1431 \
'' . $this->watermarkPosition .
'\',
1432 \
'' . $this->offsetX .
'\',
1433 \
'' . $this->offsetY .
'\',
1434 \
'' . $this->watermarkFont .
'\',
1435 \
'' . $this->watermarkTextSize .
'\',
1436 \
'' . $this->watermarkColor .
'\',
1437 \
'' . $this->watermarkBorderColor .
'\',
1438 \
'' . $this->watermarkBorder .
'\'
1440 <i class="fa fa-adjust text-muted
" style="color:#ccc;
"
1442 onclick="doImageAction(\
'contrast-minus\',
1443 \'' . $this->
id .
'\',
1444 \
'' . $this->folder .
'\',
1445 \
'' . $this->filename .
'\',
1446 \
'' . $this->itemID .
'\',
1447 \
'' . $this->createThumbnails .
'\',
1448 \
'' . $this->thumbnailWidth .
'\',
1449 \
'' . $this->watermark .
'\',
1450 \
'' . $this->watermarkImage .
'\',
1451 \
'' . $this->watermarkOpacity .
'\',
1452 \
'' . $this->watermarkPosition .
'\',
1453 \
'' . $this->offsetX .
'\',
1454 \
'' . $this->offsetY .
'\',
1455 \
'' . $this->watermarkFont .
'\',
1456 \
'' . $this->watermarkTextSize .
'\',
1457 \
'' . $this->watermarkColor .
'\',
1458 \
'' . $this->watermarkBorderColor .
'\',
1459 \
'' . $this->watermarkBorder .
'\'
1461 <i class="fa fa-sun-
o"
1462 id="brightness-plus
"
1463 onclick="doImageAction(\
'brightness-plus\',
1464 \'' . $this->
id .
'\',
1465 \
'' . $this->folder .
'\',
1466 \
'' . $this->filename .
'\',
1467 \
'' . $this->itemID .
'\',
1468 \
'' . $this->createThumbnails .
'\',
1469 \
'' . $this->thumbnailWidth .
'\',
1470 \
'' . $this->watermark .
'\',
1471 \
'' . $this->watermarkImage .
'\',
1472 \
'' . $this->watermarkOpacity .
'\',
1473 \
'' . $this->watermarkPosition .
'\',
1474 \
'' . $this->offsetX .
'\',
1475 \
'' . $this->offsetY .
'\',
1476 \
'' . $this->watermarkFont .
'\',
1477 \
'' . $this->watermarkTextSize .
'\',
1478 \
'' . $this->watermarkColor .
'\',
1479 \
'' . $this->watermarkBorderColor .
'\',
1480 \
'' . $this->watermarkBorder .
'\'
1482 <i class="fa fa-sun-
o text-muted
" style="color:#ccc;
"
1483 id="brightness-minus
"
1484 onclick="doImageAction(\
'brightness-minus\',
1485 \'' . $this->
id .
'\',
1486 \
'' . $this->folder .
'\',
1487 \
'' . $this->filename .
'\',
1488 \
'' . $this->itemID .
'\',
1489 \
'' . $this->createThumbnails .
'\',
1490 \
'' . $this->thumbnailWidth .
'\',
1491 \
'' . $this->watermark .
'\',
1492 \
'' . $this->watermarkImage .
'\',
1493 \
'' . $this->watermarkOpacity .
'\',
1494 \
'' . $this->watermarkPosition .
'\',
1495 \
'' . $this->offsetX .
'\',
1496 \
'' . $this->offsetY .
'\',
1497 \
'' . $this->watermarkFont .
'\',
1498 \
'' . $this->watermarkTextSize .
'\',
1499 \
'' . $this->watermarkColor .
'\',
1500 \
'' . $this->watermarkBorderColor .
'\',
1501 \
'' . $this->watermarkBorder .
'\'
1503 <i class="fa fa-diamond
"
1505 onclick="doImageAction(\
'sharpen\',
1506 \'' . $this->
id .
'\',
1507 \
'' . $this->folder .
'\',
1508 \
'' . $this->filename .
'\',
1509 \
'' . $this->itemID .
'\',
1510 \
'' . $this->createThumbnails .
'\',
1511 \
'' . $this->thumbnailWidth .
'\',
1512 \
'' . $this->watermark .
'\',
1513 \
'' . $this->watermarkImage .
'\',
1514 \
'' . $this->watermarkOpacity .
'\',
1515 \
'' . $this->watermarkPosition .
'\',
1516 \
'' . $this->offsetX .
'\',
1517 \
'' . $this->offsetY .
'\',
1518 \
'' . $this->watermarkFont .
'\',
1519 \
'' . $this->watermarkTextSize .
'\',
1520 \
'' . $this->watermarkColor .
'\',
1521 \
'' . $this->watermarkBorderColor .
'\',
1522 \
'' . $this->watermarkBorder .
'\'
1524 <i class="fa fa-magic
"
1526 onclick="doImageAction(\
'selective-blur\',
1527 \'' . $this->
id .
'\',
1528 \
'' . $this->folder .
'\',
1529 \
'' . $this->filename .
'\',
1530 \
'' . $this->itemID .
'\',
1531 \
'' . $this->createThumbnails .
'\',
1532 \
'' . $this->thumbnailWidth .
'\',
1533 \
'' . $this->watermark .
'\',
1534 \
'' . $this->watermarkImage .
'\',
1535 \
'' . $this->watermarkOpacity .
'\',
1536 \
'' . $this->watermarkPosition .
'\',
1537 \
'' . $this->offsetX .
'\',
1538 \
'' . $this->offsetY .
'\',
1539 \
'' . $this->watermarkFont .
'\',
1540 \
'' . $this->watermarkTextSize .
'\',
1541 \
'' . $this->watermarkColor .
'\',
1542 \
'' . $this->watermarkBorderColor .
'\',
1543 \
'' . $this->watermarkBorder .
'\'
1545 <i class="fa fa-tint text-muted
"
1547 onclick="doImageAction(\
'greyscale\',
1548 \'' . $this->
id .
'\',
1549 \
'' . $this->folder .
'\',
1550 \
'' . $this->filename .
'\',
1551 \
'' . $this->itemID .
'\',
1552 \
'' . $this->createThumbnails .
'\',
1553 \
'' . $this->thumbnailWidth .
'\',
1554 \
'' . $this->watermark .
'\',
1555 \
'' . $this->watermarkImage .
'\',
1556 \
'' . $this->watermarkOpacity .
'\',
1557 \
'' . $this->watermarkPosition .
'\',
1558 \
'' . $this->offsetX .
'\',
1559 \
'' . $this->offsetY .
'\',
1560 \
'' . $this->watermarkFont .
'\',
1561 \
'' . $this->watermarkTextSize .
'\',
1562 \
'' . $this->watermarkColor .
'\',
1563 \
'' . $this->watermarkBorderColor .
'\',
1564 \
'' . $this->watermarkBorder .
'\'
1566 <i class="fa fa-tint
"
1567 style="color:#9b5c1c;
"
1569 onclick="doImageAction(\
'sepia\',
1570 \'' . $this->
id .
'\',
1571 \
'' . $this->folder .
'\',
1572 \
'' . $this->filename .
'\',
1573 \
'' . $this->itemID .
'\',
1574 \
'' . $this->createThumbnails .
'\',
1575 \
'' . $this->thumbnailWidth .
'\',
1576 \
'' . $this->watermark .
'\',
1577 \
'' . $this->watermarkImage .
'\',
1578 \
'' . $this->watermarkOpacity .
'\',
1579 \
'' . $this->watermarkPosition .
'\',
1580 \
'' . $this->offsetX .
'\',
1581 \
'' . $this->offsetY .
'\',
1582 \
'' . $this->watermarkFont .
'\',
1583 \
'' . $this->watermarkTextSize .
'\',
1584 \
'' . $this->watermarkColor .
'\',
1585 \
'' . $this->watermarkBorderColor .
'\',
1586 \
'' . $this->watermarkBorder .
'\'
1588 <i class="fa fa-th text-muted
"
1590 onclick="doImageAction(\
'pixelate\',
1591 \'' . $this->
id .
'\',
1592 \
'' . $this->folder .
'\',
1593 \
'' . $this->filename .
'\',
1594 \
'' . $this->itemID .
'\',
1595 \
'' . $this->createThumbnails .
'\',
1596 \
'' . $this->thumbnailWidth .
'\',
1597 \
'' . $this->watermark .
'\',
1598 \
'' . $this->watermarkImage .
'\',
1599 \
'' . $this->watermarkOpacity .
'\',
1600 \
'' . $this->watermarkPosition .
'\',
1601 \
'' . $this->offsetX .
'\',
1602 \
'' . $this->offsetY .
'\',
1603 \
'' . $this->watermarkFont .
'\',
1604 \
'' . $this->watermarkTextSize .
'\',
1605 \
'' . $this->watermarkColor .
'\',
1606 \
'' . $this->watermarkBorderColor .
'\',
1607 \
'' . $this->watermarkBorder .
'\'
1609 <i class="fa fa-refresh
"
1611 onclick="doImageAction(\
'reset-file\',
1612 \'' . $this->
id .
'\',
1613 \
'' . $this->folder .
'\',
1614 \
'' . $this->filename .
'\',
1615 \
'' . $this->itemID .
'\',
1616 \
'' . $this->createThumbnails .
'\',
1617 \
'' . $this->thumbnailWidth .
'\',
1618 \
'' . $this->watermark .
'\',
1619 \
'' . $this->watermarkImage .
'\',
1620 \
'' . $this->watermarkOpacity .
'\',
1621 \
'' . $this->watermarkPosition .
'\',
1622 \
'' . $this->offsetX .
'\',
1623 \
'' . $this->offsetY .
'\',
1624 \
'' . $this->watermarkFont .
'\',
1625 \
'' . $this->watermarkTextSize .
'\',
1626 \
'' . $this->watermarkColor .
'\',
1627 \
'' . $this->watermarkBorderColor .
'\',
1628 \
'' . $this->watermarkBorder .
'\'
1630 <i class="fa fa-trash-
o"
1632 onclick="doImageAction(\
'delete-file\',
1633 \'' . $this->
id .
'\',
1634 \
'' . $this->folder .
'\',
1635 \
'' . $this->filename .
'\',
1636 \
'' . $this->itemID .
'\',
1637 \
'' . $this->createThumbnails .
'\',
1638 \
'' . $this->thumbnailWidth .
'\',
1639 \
'' . $this->watermark .
'\',
1640 \
'' . $this->watermarkImage .
'\',
1641 \
'' . $this->watermarkOpacity .
'\',
1642 \
'' . $this->watermarkPosition .
'\',
1643 \
'' . $this->offsetX .
'\',
1644 \
'' . $this->offsetY .
'\',
1645 \
'' . $this->watermarkFont .
'\',
1646 \
'' . $this->watermarkTextSize .
'\',
1647 \
'' . $this->watermarkColor .
'\',
1648 \
'' . $this->watermarkBorderColor .
'\',
1649 \
'' . $this->watermarkBorder .
'\'
1652 <input type="hidden
" name="filename-
' . $this->itemID . '-old
" value="' . $this->filename . '">
1653 <input type="hidden
" name="title-
' . $this->itemID . '-old
" value="' . $this->itemTitle . '">
1654 <input type="hidden
" name="author-
' . $this->itemID . '-old
" value="' . $this->itemAuthor . '">
1655 <input type="hidden
" name="authorUrl-
' . $this->itemID . '-old
" value="' . $this->itemAuthorUrl . '">
1656 <input type="hidden
" name="sort-
' . $this->itemID . '-old
" value="' . $this->sort . '">
1657 <input type="text
" class="form-control
" style="margin-bottom:2px;
" maxlength="11
" name="sort-
' . $this->itemID . '" id="sort-
' . $this->itemID . '" placeholder="0
" value="' . $this->sort . '">
1658 <input type="text
" class="form-control
" style="margin-bottom:2px;
" name="filename-
' . $this->itemID . '" id="filename-
' . $this->itemID . '" placeholder="filename.jpg
" value="' . $this->filename . '">
1659 <input type="text
" class="form-control
" style="margin-bottom:2px;
" name="title-
' . $this->itemID . '" id="title-
' . $this->itemID . '" placeholder="File Title
" value="' . $this->itemTitle . '">
1660 <input type="text
" class="form-control
" style="margin-bottom:2px;
" name="author-
' . $this->itemID . '" id="author-
' . $this->itemID . '" placeholder="Copyright owner of
this picture
" value="' . $this->itemAuthor . '">
1661 <input type="text
" class="form-control
" style="margin-bottom:2px;
" name="authorUrl-
' . $this->itemID . '" id="authorUrl-
' . $this->itemID . '" placeholder="URL
" value="' . $this->itemAuthorUrl . '"><br>
1665 <div class="col-md-4
" id="imgCol-
' . $this->itemID . '">
1666 <a href="../
' . $row['folder
'] . "/" . $this->filename . '?
' . $rnd . '" data-lightbox="' . $this->id . '"><img class="img-
thumbnail" id="img-
' . $this->itemID . '" width="400
" title="' . $this->itemTitle . '" src="../
' . $row['folder
'] . "/" . $this->filename . '?
' . $rnd . '"></a>
1668 <div style="margin-top: 10px; margin-bottom:10px; cursor:pointer;
" id="toolset-
' . $this->itemID . '">
1669 <i class="fa fa-arrows-
h"
1671 onclick="doImageAction(\
'flip-horizontal\',
1672 \'' . $this->
id .
'\',
1673 \
'' . $this->folder .
'\',
1674 \
'' . $this->filename .
'\',
1675 \
'' . $this->itemID .
'\',
1676 \
'' . $this->createThumbnails .
'\',
1677 \
'' . $this->thumbnailWidth .
'\',
1678 \
'' . $this->watermark .
'\',
1679 \
'' . $this->watermarkImage .
'\',
1680 \
'' . $this->watermarkOpacity .
'\',
1681 \
'' . $this->watermarkPosition .
'\',
1682 \
'' . $this->offsetX .
'\',
1683 \
'' . $this->offsetY .
'\',
1684 \
'' . $this->watermarkFont .
'\',
1685 \
'' . $this->watermarkTextSize .
'\',
1686 \
'' . $this->watermarkColor .
'\',
1687 \
'' . $this->watermarkBorderColor .
'\',
1688 \
'' . $this->watermarkBorder .
'\'
1690 <i class="fa fa-arrows-
v"
1692 onclick="doImageAction(\
'flip-vertical\',
1693 \'' . $this->
id .
'\',
1694 \
'' . $this->folder .
'\',
1695 \
'' . $this->filename .
'\',
1696 \
'' . $this->itemID .
'\',
1697 \
'' . $this->createThumbnails .
'\',
1698 \
'' . $this->thumbnailWidth .
'\',
1699 \
'' . $this->watermark .
'\',
1700 \
'' . $this->watermarkImage .
'\',
1701 \
'' . $this->watermarkOpacity .
'\',
1702 \
'' . $this->watermarkPosition .
'\',
1703 \
'' . $this->offsetX .
'\',
1704 \
'' . $this->offsetY .
'\',
1705 \
'' . $this->watermarkFont .
'\',
1706 \
'' . $this->watermarkTextSize .
'\',
1707 \
'' . $this->watermarkColor .
'\',
1708 \
'' . $this->watermarkBorderColor .
'\',
1709 \
'' . $this->watermarkBorder .
'\'
1711 <i class="fa fa-undo
"
1713 onclick="doImageAction(\
'rotate-90\',
1714 \'' . $this->
id .
'\',
1715 \
'' . $this->folder .
'\',
1716 \
'' . $this->filename .
'\',
1717 \
'' . $this->itemID .
'\',
1718 \
'' . $this->createThumbnails .
'\',
1719 \
'' . $this->thumbnailWidth .
'\',
1720 \
'' . $this->watermark .
'\',
1721 \
'' . $this->watermarkImage .
'\',
1722 \
'' . $this->watermarkOpacity .
'\',
1723 \
'' . $this->watermarkPosition .
'\',
1724 \
'' . $this->offsetX .
'\',
1725 \
'' . $this->offsetY .
'\',
1726 \
'' . $this->watermarkFont .
'\',
1727 \
'' . $this->watermarkTextSize .
'\',
1728 \
'' . $this->watermarkColor .
'\',
1729 \
'' . $this->watermarkBorderColor .
'\',
1730 \
'' . $this->watermarkBorder .
'\'
1732 <i class="fa fa-adjust
"
1734 onclick="doImageAction(\
'contrast-plus\',
1735 \'' . $this->
id .
'\',
1736 \
'' . $this->folder .
'\',
1737 \
'' . $this->filename .
'\',
1738 \
'' . $this->itemID .
'\',
1739 \
'' . $this->createThumbnails .
'\',
1740 \
'' . $this->thumbnailWidth .
'\',
1741 \
'' . $this->watermark .
'\',
1742 \
'' . $this->watermarkImage .
'\',
1743 \
'' . $this->watermarkOpacity .
'\',
1744 \
'' . $this->watermarkPosition .
'\',
1745 \
'' . $this->offsetX .
'\',
1746 \
'' . $this->offsetY .
'\',
1747 \
'' . $this->watermarkFont .
'\',
1748 \
'' . $this->watermarkTextSize .
'\',
1749 \
'' . $this->watermarkColor .
'\',
1750 \
'' . $this->watermarkBorderColor .
'\',
1751 \
'' . $this->watermarkBorder .
'\'
1753 <i class="fa fa-adjust text-muted
" style="color:#ccc;
"
1755 onclick="doImageAction(\
'contrast-minus\',
1756 \'' . $this->
id .
'\',
1757 \
'' . $this->folder .
'\',
1758 \
'' . $this->filename .
'\',
1759 \
'' . $this->itemID .
'\',
1760 \
'' . $this->createThumbnails .
'\',
1761 \
'' . $this->thumbnailWidth .
'\',
1762 \
'' . $this->watermark .
'\',
1763 \
'' . $this->watermarkImage .
'\',
1764 \
'' . $this->watermarkOpacity .
'\',
1765 \
'' . $this->watermarkPosition .
'\',
1766 \
'' . $this->offsetX .
'\',
1767 \
'' . $this->offsetY .
'\',
1768 \
'' . $this->watermarkFont .
'\',
1769 \
'' . $this->watermarkTextSize .
'\',
1770 \
'' . $this->watermarkColor .
'\',
1771 \
'' . $this->watermarkBorderColor .
'\',
1772 \
'' . $this->watermarkBorder .
'\'
1774 <i class="fa fa-sun-
o"
1775 id="brightness-plus
"
1776 onclick="doImageAction(\
'brightness-plus\',
1777 \'' . $this->
id .
'\',
1778 \
'' . $this->folder .
'\',
1779 \
'' . $this->filename .
'\',
1780 \
'' . $this->itemID .
'\',
1781 \
'' . $this->createThumbnails .
'\',
1782 \
'' . $this->thumbnailWidth .
'\',
1783 \
'' . $this->watermark .
'\',
1784 \
'' . $this->watermarkImage .
'\',
1785 \
'' . $this->watermarkOpacity .
'\',
1786 \
'' . $this->watermarkPosition .
'\',
1787 \
'' . $this->offsetX .
'\',
1788 \
'' . $this->offsetY .
'\',
1789 \
'' . $this->watermarkFont .
'\',
1790 \
'' . $this->watermarkTextSize .
'\',
1791 \
'' . $this->watermarkColor .
'\',
1792 \
'' . $this->watermarkBorderColor .
'\',
1793 \
'' . $this->watermarkBorder .
'\'
1795 <i class="fa fa-sun-
o text-muted
" style="color:#ccc;
"
1796 id="brightness-minus
"
1797 onclick="doImageAction(\
'brightness-minus\',
1798 \'' . $this->
id .
'\',
1799 \
'' . $this->folder .
'\',
1800 \
'' . $this->filename .
'\',
1801 \
'' . $this->itemID .
'\',
1802 \
'' . $this->createThumbnails .
'\',
1803 \
'' . $this->thumbnailWidth .
'\',
1804 \
'' . $this->watermark .
'\',
1805 \
'' . $this->watermarkImage .
'\',
1806 \
'' . $this->watermarkOpacity .
'\',
1807 \
'' . $this->watermarkPosition .
'\',
1808 \
'' . $this->offsetX .
'\',
1809 \
'' . $this->offsetY .
'\',
1810 \
'' . $this->watermarkFont .
'\',
1811 \
'' . $this->watermarkTextSize .
'\',
1812 \
'' . $this->watermarkColor .
'\',
1813 \
'' . $this->watermarkBorderColor .
'\',
1814 \
'' . $this->watermarkBorder .
'\'
1816 <i class="fa fa-diamond
"
1818 onclick="doImageAction(\
'sharpen\',
1819 \'' . $this->
id .
'\',
1820 \
'' . $this->folder .
'\',
1821 \
'' . $this->filename .
'\',
1822 \
'' . $this->itemID .
'\',
1823 \
'' . $this->createThumbnails .
'\',
1824 \
'' . $this->thumbnailWidth .
'\',
1825 \
'' . $this->watermark .
'\',
1826 \
'' . $this->watermarkImage .
'\',
1827 \
'' . $this->watermarkOpacity .
'\',
1828 \
'' . $this->watermarkPosition .
'\',
1829 \
'' . $this->offsetX .
'\',
1830 \
'' . $this->offsetY .
'\',
1831 \
'' . $this->watermarkFont .
'\',
1832 \
'' . $this->watermarkTextSize .
'\',
1833 \
'' . $this->watermarkColor .
'\',
1834 \
'' . $this->watermarkBorderColor .
'\',
1835 \
'' . $this->watermarkBorder .
'\'
1837 <i class="fa fa-magic
"
1839 onclick="doImageAction(\
'selective-blur\',
1840 \'' . $this->
id .
'\',
1841 \
'' . $this->folder .
'\',
1842 \
'' . $this->filename .
'\',
1843 \
'' . $this->itemID .
'\',
1844 \
'' . $this->createThumbnails .
'\',
1845 \
'' . $this->thumbnailWidth .
'\',
1846 \
'' . $this->watermark .
'\',
1847 \
'' . $this->watermarkImage .
'\',
1848 \
'' . $this->watermarkOpacity .
'\',
1849 \
'' . $this->watermarkPosition .
'\',
1850 \
'' . $this->offsetX .
'\',
1851 \
'' . $this->offsetY .
'\',
1852 \
'' . $this->watermarkFont .
'\',
1853 \
'' . $this->watermarkTextSize .
'\',
1854 \
'' . $this->watermarkColor .
'\',
1855 \
'' . $this->watermarkBorderColor .
'\',
1856 \
'' . $this->watermarkBorder .
'\'
1858 <i class="fa fa-tint text-muted
"
1860 onclick="doImageAction(\
'greyscale\',
1861 \'' . $this->
id .
'\',
1862 \
'' . $this->folder .
'\',
1863 \
'' . $this->filename .
'\',
1864 \
'' . $this->itemID .
'\',
1865 \
'' . $this->createThumbnails .
'\',
1866 \
'' . $this->thumbnailWidth .
'\',
1867 \
'' . $this->watermark .
'\',
1868 \
'' . $this->watermarkImage .
'\',
1869 \
'' . $this->watermarkOpacity .
'\',
1870 \
'' . $this->watermarkPosition .
'\',
1871 \
'' . $this->offsetX .
'\',
1872 \
'' . $this->offsetY .
'\',
1873 \
'' . $this->watermarkFont .
'\',
1874 \
'' . $this->watermarkTextSize .
'\',
1875 \
'' . $this->watermarkColor .
'\',
1876 \
'' . $this->watermarkBorderColor .
'\',
1877 \
'' . $this->watermarkBorder .
'\'
1879 <i class="fa fa-tint
"
1880 style="color:#9b5c1c;
"
1882 onclick="doImageAction(\
'sepia\',
1883 \'' . $this->
id .
'\',
1884 \
'' . $this->folder .
'\',
1885 \
'' . $this->filename .
'\',
1886 \
'' . $this->itemID .
'\',
1887 \
'' . $this->createThumbnails .
'\',
1888 \
'' . $this->thumbnailWidth .
'\',
1889 \
'' . $this->watermark .
'\',
1890 \
'' . $this->watermarkImage .
'\',
1891 \
'' . $this->watermarkOpacity .
'\',
1892 \
'' . $this->watermarkPosition .
'\',
1893 \
'' . $this->offsetX .
'\',
1894 \
'' . $this->offsetY .
'\',
1895 \
'' . $this->watermarkFont .
'\',
1896 \
'' . $this->watermarkTextSize .
'\',
1897 \
'' . $this->watermarkColor .
'\',
1898 \
'' . $this->watermarkBorderColor .
'\',
1899 \
'' . $this->watermarkBorder .
'\'
1901 <i class="fa fa-th text-muted
"
1903 onclick="doImageAction(\
'pixelate\',
1904 \'' . $this->
id .
'\',
1905 \
'' . $this->folder .
'\',
1906 \
'' . $this->filename .
'\',
1907 \
'' . $this->itemID .
'\',
1908 \
'' . $this->createThumbnails .
'\',
1909 \
'' . $this->thumbnailWidth .
'\',
1910 \
'' . $this->watermark .
'\',
1911 \
'' . $this->watermarkImage .
'\',
1912 \
'' . $this->watermarkOpacity .
'\',
1913 \
'' . $this->watermarkPosition .
'\',
1914 \
'' . $this->offsetX .
'\',
1915 \
'' . $this->offsetY .
'\',
1916 \
'' . $this->watermarkFont .
'\',
1917 \
'' . $this->watermarkTextSize .
'\',
1918 \
'' . $this->watermarkColor .
'\',
1919 \
'' . $this->watermarkBorderColor .
'\',
1920 \
'' . $this->watermarkBorder .
'\'
1922 <i class="fa fa-refresh
"
1924 onclick="doImageAction(\
'reset-file\',
1925 \'' . $this->
id .
'\',
1926 \
'' . $this->folder .
'\',
1927 \
'' . $this->filename .
'\',
1928 \
'' . $this->itemID .
'\',
1929 \
'' . $this->createThumbnails .
'\',
1930 \
'' . $this->thumbnailWidth .
'\',
1931 \
'' . $this->watermark .
'\',
1932 \
'' . $this->watermarkImage .
'\',
1933 \
'' . $this->watermarkOpacity .
'\',
1934 \
'' . $this->watermarkPosition .
'\',
1935 \
'' . $this->offsetX .
'\',
1936 \
'' . $this->offsetY .
'\',
1937 \
'' . $this->watermarkFont .
'\',
1938 \
'' . $this->watermarkTextSize .
'\',
1939 \
'' . $this->watermarkColor .
'\',
1940 \
'' . $this->watermarkBorderColor .
'\',
1941 \
'' . $this->watermarkBorder .
'\'
1943 <i class="fa fa-trash-
o"
1945 onclick="doImageAction(\
'delete-file\',
1946 \'' . $this->
id .
'\',
1947 \
'' . $this->folder .
'\',
1948 \
'' . $this->filename .
'\',
1949 \
'' . $this->itemID .
'\',
1950 \
'' . $this->createThumbnails .
'\',
1951 \
'' . $this->thumbnailWidth .
'\',
1952 \
'' . $this->watermark .
'\',
1953 \
'' . $this->watermarkImage .
'\',
1954 \
'' . $this->watermarkOpacity .
'\',
1955 \
'' . $this->watermarkPosition .
'\',
1956 \
'' . $this->offsetX .
'\',
1957 \
'' . $this->offsetY .
'\',
1958 \
'' . $this->watermarkFont .
'\',
1959 \
'' . $this->watermarkTextSize .
'\',
1960 \
'' . $this->watermarkColor .
'\',
1961 \
'' . $this->watermarkBorderColor .
'\',
1962 \
'' . $this->watermarkBorder .
'\'
1965 <input type="hidden
" name="filename-
' . $this->itemID . '-old
" value="' . $this->filename . '">
1966 <input type="hidden
" name="title-
' . $this->itemID . '-old
" value="' . $this->itemTitle . '">
1967 <input type="hidden
" name="author-
' . $this->itemID . '-old
" value="' . $this->itemAuthor . '">
1968 <input type="hidden
" name="authorUrl-
' . $this->itemID . '-old
" value="' . $this->itemAuthorUrl . '">
1969 <input type="hidden
" name="sort-
' . $this->itemID . '-old
" value="' . $this->sort . '">
1970 <input type="text
" class="form-control
" style="margin-bottom:2px;
" maxlength="11
" style="margin-bottom:2px;
" name="sort-
' . $this->itemID . '" id="sort-
' . $this->itemID . '" placeholder="0
" value="' . $this->sort . '">
1971 <input type="text
" class="form-control
" style="margin-bottom:2px;
" name="filename-
' . $this->itemID . '" id="filename-
' . $this->itemID . '" placeholder="filename.jpg
" value="' . $this->filename . '">
1972 <input type="text
" class="form-control
" style="margin-bottom:2px;
" name="title-
' . $this->itemID . '" id="title-
' . $this->itemID . '" placeholder="File Title
" value="' . $this->itemTitle . '">
1973 <input type="text
" class="form-control
" style="margin-bottom:2px;
" name="author-
' . $this->itemID . '" id="author-
' . $this->itemID . '" placeholder="Copyright owner of
this picture
" value="' . $this->itemAuthor . '">
1974 <input type="text
" class="form-control
" style="margin-bottom:2px;
" name="authorUrl-
' . $this->itemID . '" id="authorUrl-
' . $this->itemID . '" placeholder="URL
" value="' . $this->itemAuthorUrl . '"><br>
if(!isset($language)||(!isset($lang))) $item
The Gallery Plugin Class. Help you building powerful image galleries nearly automatically.
drawFolderSelect($lang, $path)
draw (output) html folder select field, containing the sub folders of /media/images as value
scanImageDirectory($path)
scan image directory and return images as select field option value
checkDir($folder)
check if folder exists and create it on demand
__construct()
define JS function doImageAction gallery constructor.
drawFolderSelectFromGallery($path, $folder)
draw (output) html folder select field, containing the current folder of /media/images as value
scanFonts($path)
scan system font directory for fonts and return fonts as select field option value
static draw($type, $title, $text, $redirect, $delay)
static recurseRmdir($dir)
remove a directory recurse
This class serves methods to create backup from files.
print $lang['GALLERY_ADD']
function v(e, t, n, r, a)