CVS リポジトリの参照
Diff of /pukiwiki/pukiwiki/plugin/color.inc.php
Parent Directory
| Revision Log
| Revision Graph
| Patch
6 |
// |
// |
7 |
// Text color plugin |
// Text color plugin |
8 |
|
|
9 |
// Allow CSS instead of font tag (XHTML 1.0 Transitional only) |
// Allow CSS instead of <font> tag |
10 |
|
// NOTE: <font> tag become invalid from XHTML 1.1 |
11 |
define('PLUGIN_COLOR_ALLOW_CSS', TRUE); // TRUE, FALSE |
define('PLUGIN_COLOR_ALLOW_CSS', TRUE); // TRUE, FALSE |
12 |
|
|
13 |
// ---- |
// ---- |
39 |
if ($bgcolor != '') $bgcolor = ';background-color:' . $bgcolor; |
if ($bgcolor != '') $bgcolor = ';background-color:' . $bgcolor; |
40 |
return '<span style="color:' . $color . $bgcolor . '">' . $text . '</span>'; |
return '<span style="color:' . $color . $bgcolor . '">' . $text . '</span>'; |
41 |
} else { |
} else { |
|
// NOTE: <font> tag become invalid from XHTML 1.1 |
|
42 |
if ($bgcolor != '') return '&color(): bgcolor (with CSS) not allowd;'; |
if ($bgcolor != '') return '&color(): bgcolor (with CSS) not allowd;'; |
43 |
return '<font color="' . $color . '">' . $text . '</font>'; |
return '<font color="' . $color . '">' . $text . '</font>'; |
44 |
} |
} |
|
Legend:
Removed from v.1.14 |
|
changed lines |
|
Added in v.1.15 |
|
|
|