A new hook to include head parts. A new hook to overload thumb function
authorMarc MAURICE <marc-bizou@pub.positon.org>
Sat, 17 Aug 2013 14:23:34 +0000 (16:23 +0200)
committerMarc MAURICE <marc-bizou@pub.positon.org>
Sat, 17 Aug 2013 14:23:34 +0000 (16:23 +0200)
functions.php
template.php

index 7c67db7..630be00 100644 (file)
@@ -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)
 {
index dfc959f..1d0b4bc 100644 (file)
@@ -44,6 +44,7 @@ a {
 <?php foreach ($plugins as $p) if (is_file("plugins/$p/style.css")) { ?>
        <link rel="stylesheet" type="text/css" href="<?php echo $rootUrl."plugins/$p/style.css" ?>" />
 <?php } ?>
+<?php plugins_include("head.php") ?>
 </head>
 <body>