From 1ff8c2ce1e3bb5fff44cc5493c5fdc22a34c366e Mon Sep 17 00:00:00 2001 From: Marc MAURICE Date: Sat, 17 Aug 2013 16:23:34 +0200 Subject: [PATCH] A new hook to include head parts. A new hook to overload thumb function --- functions.php | 2 ++ template.php | 1 + 2 files changed, 3 insertions(+) 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 { " /> + -- 1.7.10.4