Changeset 1267 in ExiteCMS
- Timestamp:
- 02/12/08 00:23:31 (4 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
includes/core_functions.php (modified) (2 diffs)
-
themes/ExiteCMS/templates/templates/_stylesheets.tpl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/core_functions.php
r1264 r1267 526 526 // Parse bbcode into HTML code 527 527 function parseubb($text) { 528 global $ locale;528 global $settings, $locale; 529 529 530 530 $text = preg_replace('#\[li\](.*?)\[/li\]#si', '<li>\1</li>', $text); … … 540 540 541 541 // new wiki bbcode 542 $text = preg_replace('#\[wiki\](.*?)\[/wiki\]#si', '<a href="'.BASEDIR.'modules/wiki/index.php?wakka=\1" class="wiki_link" alt="">\1</a>', $text); 542 if (isset($settings['wiki_forum_links']) && $settings['wiki_forum_links']) { 543 // add the link to the wiki page 544 $text = preg_replace('#\[wiki\](.*?)\[/wiki\]#si', '<a href="'.BASEDIR.'modules/wiki/index.php?wakka=\1" class="wiki_link">\1</a>', $text); 545 } else { 546 // strip the wiki bbcode 547 $text = preg_replace('#\[wiki\](.*?)\[/wiki\]#si', '\1', $text); 548 } 543 549 544 550 // correct illegal [url=] BBcode -
trunk/themes/ExiteCMS/templates/templates/_stylesheets.tpl
r1266 r1267 186 186 187 187 /* wiki links */ 188 .wiki_link { color:# 333333; text-decoration:none; border-bottom:1px dotted color #9c0204; }188 .wiki_link { color:#9c0204; text-decoration:none; border-bottom:1px dotted color #333333; } 189 189 190 190 /* --- Upgrade admin module -------------------------------- */
Note: See TracChangeset
for help on using the changeset viewer.
