From: Marc MAURICE Date: Sat, 17 Aug 2013 14:23:34 +0000 (+0200) Subject: A new hook to include head parts. A new hook to overload thumb function X-Git-Tag: v1.7~13 X-Git-Url: http://positon.org/gitweb/?p=bizou.git;a=commitdiff_plain;h=1ff8c2ce1e3bb5fff44cc5493c5fdc22a34c366e A new hook to include head parts. A new hook to overload thumb function --- diff --git a/functions.php b/functions.php index 7c67db7..630be00 100644 --- a/functions.php +++ b/functions.php @@ -32,6 +32,7 @@ function getImageLink($imageSimplePath) } } +if (! function_exists('getPreview')) { function getPreview($imgFile, $maxSize = THUMB_SIZE) { # example: data/myalbum/100.mypic.jpg @@ -91,6 +92,7 @@ function getPreview($imgFile, $maxSize = THUMB_SIZE) return $newImgFile; } +} function getAlbumPreview($dir) { diff --git a/template.php b/template.php index dfc959f..1d0b4bc 100644 --- a/template.php +++ b/template.php @@ -44,6 +44,7 @@ a { " /> +