Added function to include a file in all plugins
This commit is contained in:
parent
7fd7065683
commit
fe20539226
1 changed files with 8 additions and 0 deletions
|
@ -25,6 +25,12 @@ array_shift($plugins); array_shift($plugins); // remove . and ..
|
|||
foreach ($plugins as $p) if (is_file("plugins/$p/functions.php"))
|
||||
require "plugins/$p/functions.php";
|
||||
|
||||
function plugins_include($phpFile)
|
||||
{
|
||||
foreach ($GLOBALS['plugins'] as $p) if (is_file("plugins/$p/$phpFile"))
|
||||
require "plugins/$p/$phpFile";
|
||||
}
|
||||
|
||||
if (! function_exists('getThumbTarget')) {
|
||||
function getThumbTarget($imageSimplePath)
|
||||
{
|
||||
|
@ -199,6 +205,8 @@ a {
|
|||
<div id="parentfolder"><a href="<?php echo $parentLink ?>">^</a></div>
|
||||
<?php } ?>
|
||||
|
||||
<?php plugins_include("before_content.php") ?>
|
||||
|
||||
<?php foreach($folders as $folder) { ?>
|
||||
<div class="folder">
|
||||
<?php if ($folder["preview"] === "") { ?>
|
||||
|
|
Loading…
Reference in a new issue