aboutsummaryrefslogtreecommitdiffstats
path: root/include/bbcode.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-02-29 23:58:32 +0100
committerMario Vavti <mario@mariovavti.com>2016-02-29 23:58:32 +0100
commit2d45f9f385a5738d2126f66c0e5467533e6838c2 (patch)
treea1b45bbdf64584ed92ca384c40c5ca8f2678abe6 /include/bbcode.php
parent3f90da5643e36cd09b53043f05a3e3e2dea6d90a (diff)
downloadvolse-hubzilla-2d45f9f385a5738d2126f66c0e5467533e6838c2.tar.gz
volse-hubzilla-2d45f9f385a5738d2126f66c0e5467533e6838c2.tar.bz2
volse-hubzilla-2d45f9f385a5738d2126f66c0e5467533e6838c2.zip
provide footer bbcode
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);