A new hook to include head parts. A new hook to overload thumb function
This commit is contained in:
parent
e5061f2316
commit
1ff8c2ce1e
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
|
@ -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>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue