last update

This commit is contained in:
2018-04-26 07:47:22 +02:00
parent 0f8c34a39c
commit c4f180d439
4 changed files with 7 additions and 6 deletions

View File

@@ -735,6 +735,8 @@ function zenphoto_handler($atts, $content=null) {
*/
$filename = $_SERVER["DOCUMENT_ROOT"] . '/zenphoto/' . 'cache/' . $album . '/' . urlencode($img) . '_' . $size . '_watermark.jpg';
echo $filename;
$zp_size = getimagesize(htmlentities($filename));
$zenphoto_img = (($caption != "") ? '<div id="zp_' . $rnd . '" style="width: ' . ($zp_size[0] + 10) . 'px" class="wp-caption aligncenter">' : '');