diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-07-03 18:09:02 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-07-03 18:09:02 -0700 |
commit | 22b2e1044fd3b7be30caba9316f41bdbed8c8a8b (patch) | |
tree | d6b571761cbdf16b84b113551a76beb32de36f0d /modules/g2_import/helpers | |
parent | 715d714ade637b6292bab378c4d7deb332542477 (diff) | |
parent | fcb031c2b60ac9e1888592296cba25791e77b446 (diff) |
Merge branch 'master' of git@github.com:/gallery/gallery3
Diffstat (limited to 'modules/g2_import/helpers')
-rw-r--r-- | modules/g2_import/helpers/g2_import.php | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/modules/g2_import/helpers/g2_import.php b/modules/g2_import/helpers/g2_import.php index 91fcbe8e..2e40eb7f 100644 --- a/modules/g2_import/helpers/g2_import.php +++ b/modules/g2_import/helpers/g2_import.php @@ -756,16 +756,17 @@ class g2_import_Core { } static $bbcode_mappings = array( - "#\\[b\\](.*?)\\[/b\\]#" => "<span style=\"font-weight: bold;\">$1</span>", - "#\\[i\\](.*?)\\[/i\\]#" => "<span style=\"font-style: italic;\">$1</span>", - "#\\[u\\](.*?)\\[/u\\]#" => "<span style=\"text-decoration: underline: bold;\">$1</span>", - "#\\[s\\](.*?)\\[/s\\]#" => "<span style=\"font-decoration: line-through;\">$1</span>", + "#\\[b\\](.*?)\\[/b\\]#" => "<b>$1</b>", + "#\\[i\\](.*?)\\[/i\\]#" => "<i>$1</i>", + "#\\[u\\](.*?)\\[/u\\]#" => "<u>$1</u>", + "#\\[s\\](.*?)\\[/s\\]#" => "<s>$1</s>", "#\\[url\\](.*?)\[/url\\]#" => "<a href=\"$1\">$1</a>", "#\\[url=(.*?)\\](.*?)\[/url\\]#" => "<a href=\"$1\">$2</a>", "#\\[img\\](.*?)\\[/img\\]#" => "<img src=\"$1\"/>", "#\\[quote\\](.*?)\\[/quote\\]#" => "<blockquote><p>$1</p></blockquote>", "#\\[code\\](.*?)\\[/code\\]#" => "<pre>$1</pre>", - "#\\[color=([^\\[]*)\\]([^\\[]*)\\[/color\\]#" => "<span style=\"font-color: $1;\">$2/span>", + "#\\[size=([^\\[]*)\\]([^\\[]*)\\[/size\\]#" => "<font size=\"$1\">$2</font>", + "#\\[color=([^\\[]*)\\]([^\\[]*)\\[/color\\]#" => "<font color=\"$1\">$2/font>", "#\\[ul\\](.*?)\\/ul\\]#" => "<ul>$1</ul>", "#\\[li\\](.*?)\\[/li\\]#" => "<li>$1</li>", ); |