Skip to content

Commit

Permalink
Add functions extAddHeaderResource() and extAddFooterResource().
Browse files Browse the repository at this point in the history
  • Loading branch information
5ko committed Apr 10, 2024
1 parent 7e25d41 commit e534f1f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion hub.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
See pmwiki.php for full details and lack of warranty.
*/

$RecipeInfo['ExtensionHub']['Version'] = '2024-03-02';
$RecipeInfo['ExtensionHub']['Version'] = '2024-04-10';
SDVA($FmtPV, [
'$ExtHubVersion' => '$GLOBALS["RecipeInfo"]["ExtensionHub"]["Version"]',
'$ExtPubDirUrl' => 'extFarmPubDirUrl()',
Expand Down Expand Up @@ -269,6 +269,14 @@ function extAddWikiLibDir($path = 'wikilib.d') {
$WikiLibDirs[$path] = new PageStore($path);
}

function extAddHeaderResource($files, $attrs=[]) {
return extAddResource($files, $attrs, 0);
}

function extAddFooterResource($files, $attrs=[]) {
return extAddResource($files, $attrs, 1);
}

function extAddResource($files, $attrs=[], $footer=0) {
global $xHub;
$i = $footer? 1:0;
Expand Down

0 comments on commit e534f1f

Please sign in to comment.