aboutsummaryrefslogtreecommitdiffstats
path: root/include/bbcode.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-02-29 19:34:23 -0800
committerredmatrix <git@macgirvin.com>2016-02-29 19:34:23 -0800
commit91bb4bdf508ab87951a3e01ac3632cffc7bff07d (patch)
treecbe4dc7b0e4641ea677c159cb6871adf0b40f6db /include/bbcode.php
parentbe2b7c0b5f7f9b8080affbb4bc44c5adda18e82f (diff)
parent2d45f9f385a5738d2126f66c0e5467533e6838c2 (diff)
downloadvolse-hubzilla-91bb4bdf508ab87951a3e01ac3632cffc7bff07d.tar.gz
volse-hubzilla-91bb4bdf508ab87951a3e01ac3632cffc7bff07d.tar.bz2
volse-hubzilla-91bb4bdf508ab87951a3e01ac3632cffc7bff07d.zip
Merge https://github.com/redmatrix/hubzilla into pending_merge
Diffstat (limited to 'include/bbcode.php')
-rw-r--r--include/bbcode.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/bbcode.php b/include/bbcode.php
index a8372d728..477436475 100644
--- a/include/bbcode.php
+++ b/include/bbcode.php
@@ -684,7 +684,11 @@ function bbcode($Text, $preserve_nl = false, $tryoembed = true, $cache = false)
}
// Check for centered text
if (strpos($Text,'[/center]') !== false) {
- $Text = preg_replace("(\[center\](.*?)\[\/center\])ism", "<div style=\"text-align:center;\">$1</div>", $Text);
+ $Text = preg_replace("(\[center\](.*?)\[\/center\])ism", "<div style=\"text-align:center;\">$1</div>", $Text);
+ }
+ // Check for footer
+ if (strpos($Text,'[/footer]') !== false) {
+ $Text = preg_replace("(\[footer\](.*?)\[\/footer\])ism", "<div class=\"wall-item-footer\">$1</div>", $Text);
}
// Check for list text
$Text = str_replace("[*]", "<li>", $Text);