From: hauke Date: Wed, 29 Apr 2015 18:31:16 +0000 (+0200) Subject: Pageheader addon now accepts bbcode X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f53154a4318f52dd330e291d8853884b8183819b;p=friendica-addons.git Pageheader addon now accepts bbcode --- 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 .= ''; }