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.
}
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'] .= '<link rel="stylesheet" type="text/css" href="'
. $a->get_baseurl() . '/addon/pageheader/pageheader.css' . '" media="all" />' . "\r\n";
- $s = proxy_parse_html(bbcode(get_config('pageheader', 'text'), true));
+
if(! $s)
$s = '';
if ($s != '')