A new hook to include head parts. A new hook to overload thumb function

This commit is contained in:
Marc MAURICE 2013-08-17 16:23:34 +02:00
parent e5061f2316
commit 1ff8c2ce1e
2 changed files with 3 additions and 0 deletions

View file

@ -32,6 +32,7 @@ function getImageLink($imageSimplePath)
} }
} }
if (! function_exists('getPreview')) {
function getPreview($imgFile, $maxSize = THUMB_SIZE) function getPreview($imgFile, $maxSize = THUMB_SIZE)
{ {
# example: data/myalbum/100.mypic.jpg # example: data/myalbum/100.mypic.jpg
@ -91,6 +92,7 @@ function getPreview($imgFile, $maxSize = THUMB_SIZE)
return $newImgFile; return $newImgFile;
} }
}
function getAlbumPreview($dir) function getAlbumPreview($dir)
{ {

View file

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