From f53154a4318f52dd330e291d8853884b8183819b Mon Sep 17 00:00:00 2001 From: hauke Date: Wed, 29 Apr 2015 20:31:16 +0200 Subject: [PATCH] Pageheader addon now accepts bbcode --- pageheader/pageheader.css | 2 ++ pageheader/pageheader.php | 11 ++++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/pageheader/pageheader.css b/pageheader/pageheader.css index 49232cfa..24608edb 100755 --- a/pageheader/pageheader.css +++ b/pageheader/pageheader.css @@ -7,6 +7,8 @@ #pageheader-words { float: left; margin-top: 10px; + width: 400px; + height: 150px; } #pageheader-submit { diff --git a/pageheader/pageheader.php b/pageheader/pageheader.php index 947926cd..068b6cc9 100755 --- a/pageheader/pageheader.php +++ b/pageheader/pageheader.php @@ -6,9 +6,13 @@ * Description: Inserts a page header * Version: 1.0 * Author: Keith Fernie + * Hauke Altmann * */ +require_once('include/bbcode.php'); +require_once('mod/proxy.php'); + function pageheader_install() { register_hook('page_content_top', 'addon/pageheader/pageheader.php', 'pageheader_fetch'); register_hook('plugin_settings', 'addon/pageheader/pageheader.php', 'pageheader_addon_settings'); @@ -49,7 +53,8 @@ function pageheader_addon_settings(&$a,&$s) { $s .= '
'; $s .= '

' . t('"pageheader" Settings') . '

'; $s .= '
'; $s .= '
'; @@ -73,9 +78,9 @@ function pageheader_fetch($a,&$b) { $a->page['htmlhead'] .= '' . "\r\n"; - $s = get_config('pageheader','text'); + $s = proxy_parse_html(bbcode(get_config('pageheader', 'text'), true)); if(! $s) $s = ''; if ($s != '') - $b .= ''; + $b .= ''; } -- 2.39.5