diff --git a/pageheader.tgz b/pageheader.tgz deleted file mode 100644 index 8b3a5b10..00000000 Binary files a/pageheader.tgz and /dev/null differ diff --git a/pageheader/README b/pageheader/README index 613affbd..9ba60788 100755 --- a/pageheader/README +++ b/pageheader/README @@ -4,4 +4,5 @@ For server admins only. Displays a text message for system announcements' The message is entered in the admin account at settings, Plugin settings. -BBcode can be used to format text or add links. +If you want to use HTML in the pageheader, create a file called pageheader.html +in the document root of your friendica instance and add the html there. diff --git a/pageheader/pageheader.php b/pageheader/pageheader.php index 1e71dec4..33853954 100755 --- a/pageheader/pageheader.php +++ b/pageheader/pageheader.php @@ -75,10 +75,16 @@ function pageheader_addon_settings_post(&$a,&$b) { } function pageheader_fetch($a,&$b) { + + if(file_exists('pageheader.html')){ + $s = file_get_contents('pageheader.html'); + } else { + $s = get_config('pageheader', 'text'); + } $a->page['htmlhead'] .= '' . "\r\n"; - $s = proxy_parse_html(bbcode(get_config('pageheader', 'text'), true)); + if(! $s) $s = ''; if ($s != '')