aboutsummaryrefslogtreecommitdiffstats
path: root/include/bbcode.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-08-12 01:47:08 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-08-12 01:47:08 -0700
commitdfd3cef734be3bc1bf2d16dfe8b2f71d6aff18a7 (patch)
tree9e7384883d118ecbf2d94730fb78f5d9d4c00d85 /include/bbcode.php
parent8d0ba934364fbb65e66edf1b2cda24ebd8afb96b (diff)
downloadvolse-hubzilla-dfd3cef734be3bc1bf2d16dfe8b2f71d6aff18a7.tar.gz
volse-hubzilla-dfd3cef734be3bc1bf2d16dfe8b2f71d6aff18a7.tar.bz2
volse-hubzilla-dfd3cef734be3bc1bf2d16dfe8b2f71d6aff18a7.zip
added code, quote styles to editor
Diffstat (limited to 'include/bbcode.php')
-rw-r--r--include/bbcode.php31
1 files changed, 2 insertions, 29 deletions
diff --git a/include/bbcode.php b/include/bbcode.php
index 60809a7e2..674c44ec2 100644
--- a/include/bbcode.php
+++ b/include/bbcode.php
@@ -59,38 +59,11 @@
$Text = preg_replace("(\[font=(.+?)\](.+?)\[\/font\])","<span style=\"font-family: $1;\">$2</span>",$Text);
// Declare the format for [code] layout
- $CodeLayout = '<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td class="quotecodeheader"> Code:</td>
- </tr>
- <tr>
- <td class="codebody">$1</td>
- </tr>
- </table>';
+ $CodeLayout = '<code>$1</code>';
// Check for [code] text
$Text = preg_replace("/\[code\](.+?)\[\/code\]/is","$CodeLayout", $Text);
- // Declare the format for [php] layout
- $phpLayout = '<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td class="quotecodeheader"> Code:</td>
- </tr>
- <tr>
- <td class="codebody">$1</td>
- </tr>
- </table>';
- // Check for [php] text
- $Text = preg_replace("/\[php\](.+?)\[\/php\]/is",$phpLayout, $Text);
-
// Declare the format for [quote] layout
- $QuoteLayout = '<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td class="quotecodeheader"> Quote:</td>
- </tr>
- <tr>
- <td class="quotebody">$1</td>
- </tr>
- </table>';
-
+ $QuoteLayout = '<blockquote>$1</blockquote>';
// Check for [quote] text
$Text = preg_replace("/\[quote\](.+?)\[\/quote\]/is","$QuoteLayout", $Text);