mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-06-07 09:54:27 +02:00
Changes:
- added missing type-hints - avoided local variables - added some documentation - changed double-quotes to single
This commit is contained in:
parent
c0c15644a3
commit
06b15a6ed0
29 changed files with 191 additions and 204 deletions
|
@ -54,15 +54,15 @@ function pageheader_addon_admin_post(App $a)
|
|||
|
||||
function pageheader_fetch(App $a, string &$b)
|
||||
{
|
||||
if(file_exists('pageheader.html')){
|
||||
if (file_exists('pageheader.html')) {
|
||||
$s = file_get_contents('pageheader.html');
|
||||
} else {
|
||||
$s = DI::config()->get('pageheader', 'text');
|
||||
}
|
||||
|
||||
DI::page()->registerStylesheet(__DIR__ .'/pageheader.css');
|
||||
|
||||
if ($s) {
|
||||
$b .= '<div class="pageheader">' . $s . '</div>';
|
||||
}
|
||||
|
||||
if ($s) {
|
||||
$b .= '<div class="pageheader">' . $s . '</div>';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue