diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-08-12 01:47:08 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-08-12 01:47:08 -0700 |
commit | dfd3cef734be3bc1bf2d16dfe8b2f71d6aff18a7 (patch) | |
tree | 9e7384883d118ecbf2d94730fb78f5d9d4c00d85 /include/bbcode.php | |
parent | 8d0ba934364fbb65e66edf1b2cda24ebd8afb96b (diff) | |
download | volse-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.php | 31 |
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); |