comparison mgallery.php @ 288:cad9e459e12f

Cleanup.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 21 May 2019 14:01:07 +0300
parents 290a42c52e35
children 19fbf800b1f7
comparison
equal deleted inserted replaced
287:290a42c52e35 288:cad9e459e12f
325 $ptmp[] = $curr["image"]; 325 $ptmp[] = $curr["image"];
326 326
327 $atmp = mgCleanPathStr($galImageURL.implode("/", mgCleanPathArray(TRUE, 0, count($ptmp), $ptmp)).".".$galTNFormat); 327 $atmp = mgCleanPathStr($galImageURL.implode("/", mgCleanPathArray(TRUE, 0, count($ptmp), $ptmp)).".".$galTNFormat);
328 } 328 }
329 else 329 else
330 // No album cover, use default 330 // No album cover, use default
331 $atmp = $galAlbumIcon; 331 $atmp = $galAlbumIcon;
332 332
333 echo 333 echo
334 " <a href=\"".mgGetURL(mgCleanPath(TRUE, $galPath, $filename), FALSE)."\">". 334 " <a href=\"".mgGetURL(mgCleanPath(TRUE, $galPath, $filename), FALSE)."\">".
335 "<img class=\"albumIcon\" src=\"".$atmp."\" alt=\"". 335 "<img class=\"albumIcon\" src=\"".$atmp."\" alt=\"".
561 "<h1>".chentities($pageTitle)."</h1>\n"; 561 "<h1>".chentities($pageTitle)."</h1>\n";
562 562
563 if ($ctrlFlags & MGF_BREADCRUMBS) 563 if ($ctrlFlags & MGF_BREADCRUMBS)
564 mgPrintBreadCrumbs($galData); 564 mgPrintBreadCrumbs($galData);
565 565
566 $gpath = isset($data["path"]) ? $data["path"] : $galPath;
566 echo 567 echo
567 mgGetPageInfoHeaderEnd(). 568 mgGetPageInfoHeaderEnd().
568 "\n". 569 "\n".
569 // Hovering navigation buttons 570 // Hovering navigation buttons
570 "<a id=\"pageInfoButton\" href=\"#\" title=\"".mgQM("page_info_button_title")."\">_</a>\n". 571 "<a id=\"pageInfoButton\" href=\"#\" title=\"".mgQM("page_info_button_title")."\">_</a>\n".
573 "<div id=\"pageImageBox\">\n". 574 "<div id=\"pageImageBox\">\n".
574 mgGetNaviControlImageBoxJS($galPath, $galImagesIndex, $galEntries, $index, "prevBtm", -1)."\n". 575 mgGetNaviControlImageBoxJS($galPath, $galImagesIndex, $galEntries, $index, "prevBtm", -1)."\n".
575 mgGetNaviControlImageBox($galPath, $galImagesIndex, $galEntries, $index, "prev", -1)."\n". 576 mgGetNaviControlImageBox($galPath, $galImagesIndex, $galEntries, $index, "prev", -1)."\n".
576 "<div id=\"imageImageBox\" class=\"imageBox\">". 577 "<div id=\"imageImageBox\" class=\"imageBox\">".
577 "<img id=\"imageImage\" src=\"". 578 "<img id=\"imageImage\" src=\"".
578 mgGetImageURL(isset($data["path"]) ? $data["path"] : $galPath, $galMedPath, $galImage, $galMedFormat). 579 mgGetImageURL($gpath, $galMedPath, $galImage, $galMedFormat).
579 "\" alt=\"".chentities($galImage)."\">". 580 "\" alt=\"".chentities($galImage)."\">".
580 "</div>\n". 581 "</div>\n".
581 mgGetNaviControlImageBoxJS($galPath, $galImagesIndex, $galEntries, $index, "nextBtm", 1)."\n". 582 mgGetNaviControlImageBoxJS($galPath, $galImagesIndex, $galEntries, $index, "nextBtm", 1)."\n".
582 mgGetNaviControlImageBox($galPath, $galImagesIndex, $galEntries, $index, "next", 1)."\n". 583 mgGetNaviControlImageBox($galPath, $galImagesIndex, $galEntries, $index, "next", 1)."\n".
583 "</div>\n". // pageImageBox 584 "</div>\n". // pageImageBox
584 (isset($data["caption"]) ? "<div id=\"pageImageCaption\" class=\"imageCaption\">".mgGetArrStr($data, "caption", "%1")."</div>\n" : ""). 585 (isset($data["caption"]) ? "<div id=\"pageImageCaption\" class=\"imageCaption\">".mgGetArrStr($data, "caption", "%1")."</div>\n" : "").
585 // infoBox 586 // infoBox
586 "<div id=\"infoBox\">\n". 587 "<div id=\"infoBox\">\n".
587 mgGetArr($data, "datetime", "<span class=\"infoDateTime\">%1</span>\n", "", "mgTimeStr"). 588 mgGetArr($data, "datetime", "<span class=\"infoDateTime\">%1</span>\n", "", "mgTimeStr").
588 implode(",\n", array_filter($list, function($a) { return $a !== NULL; }))."\n". 589 implode(",\n", array_filter($list, function($a) { return $a !== NULL; }))."\n".
589 "<a id=\"imageLink\" href=\"".$galImageURL.$galPath."/".$galImage."\">". 590 "<a id=\"imageLink\" href=\"".
591 mgCleanPathStr($galImageURL.$gpath."/".$galImage)."\">".
590 mgQM("view_best_quality")."</a>\n". 592 mgQM("view_best_quality")."</a>\n".
591 "</div>\n"; // infoBox 593 "</div>\n"; // infoBox
592 594
593 // Javascript navigation 595 // Javascript navigation
594 if ($ctrlFlags & MGF_JAVASCRIPT) 596 if ($ctrlFlags & MGF_JAVASCRIPT)