Changeset 1527 in ExiteCMS
- Timestamp:
- 07/06/08 08:55:55 (4 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
-
administration/tools/language_pack_English.php (modified) (1 diff)
-
administration/tools/language_pack_Nederlands.php (modified) (1 diff)
-
files/locales/en.main.global.php (modified) (1 diff)
-
includes/forum_functions_include.php (modified) (3 diffs)
-
includes/templates/forum.viewthread.tpl (modified) (1 diff)
-
themes/ExiteCMS/templates/templates/_stylesheets.tpl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/administration/tools/language_pack_English.php
r1524 r1527 2298 2298 $localestrings['580'] = "skype"; 2299 2299 $localestrings['581'] = "Top"; 2300 $localestrings['582'] = "Toggle full code view"; 2301 $localestrings['583'] = "download this %s code"; 2302 $localestrings['584'] = "download"; 2303 $localestrings['585'] = "Code:"; 2300 2304 load_localestrings($localestrings, LP_LOCALE, "forum.main", $step); 2301 2305 -
trunk/administration/tools/language_pack_Nederlands.php
r1524 r1527 2298 2298 $localestrings['580'] = "skype"; 2299 2299 $localestrings['581'] = "Naar boven"; 2300 $localestrings['582'] = "Zichtbare code aanpassen"; 2301 $localestrings['583'] = "deze %s code downloaden"; 2302 $localestrings['584'] = "download"; 2303 $localestrings['585'] = "Code:"; 2300 2304 load_localestrings($localestrings, LP_LOCALE, "forum.main", $step); 2301 2305 -
trunk/files/locales/en.main.global.php
r1524 r1527 3 3 // locale : English 4 4 // locale name : main.global 5 // generated on : Sat Jul 5 2008, 12:21:41CEST5 // generated on : Sat Jul 5 2008, 21:35:58 CEST 6 6 // translators : ExiteCMS team,WanWizard 7 7 // ---------------------------------------------------------- -
trunk/includes/forum_functions_include.php
r1526 r1527 330 330 331 331 function _parseubb_codeblock($matches) { 332 global $codeblocks, $blockcount, $current_message, $raw_color_blocks ;332 global $codeblocks, $blockcount, $current_message, $raw_color_blocks, $locale; 333 333 334 334 // empty code block? … … 364 364 $id = count($codeblocks); 365 365 ++$blockcount; 366 $link = "<img src='".THEME."images/panel_on.gif' alt='' title='Toggle full code view' name='b_code_".$blockcount."' onclick=\"javascript:flipOverflow('code_".$blockcount."')\" />"; 367 $link .= "<div class='side' style='display:inline;'> <a href='".BASEDIR."getfile.php?type=fc&forum_id=".$current_message['forum_id']."&thread_id=".$current_message['thread_id']."&post_id=".$current_message['post_id']."&id=".$id."' title='download this ".$matches[1]." code'>download</a> </div>"; 368 $codeblocks[] = array(" 369 <div id='box_code_".$blockcount."' class='codecontainer'> 370 <table class='codeblock' cellpadding='0' cellspacing='0'> 371 <tr style='padding:0px;margin:0px;'> 372 <td class='codenr'>".$ln."</td> 373 <td class='code'>".$matches[2]."</td> 374 </tr> 375 </table> 376 </div>".$link." 377 ", $matches[1]); 366 $link = "<table class='codecontainer' style='border:0px;'><tr><td align='left'><a href='".BASEDIR."getfile.php?type=fc&forum_id=".$current_message['forum_id']."&thread_id=".$current_message['thread_id']."&post_id=".$current_message['post_id']."&id=".$id."' title='".sprintf($locale['583'],$matches[1])."'>".$locale['584']."</a></td><td align='right'><img src='".THEME."images/right.gif' alt='' title='".$locale['582']."' name='b_code_".$blockcount."' onclick=\"javascript:flipOverflow('code_".$blockcount."')\" /></td></tr></table>"; 367 $codeblocks[] = array("<div id='box_code_".$blockcount."' class='codecontainer'><table class='codeblock' cellpadding='0' cellspacing='0'><tr style='padding:0px;margin:0px;'><td class='codenr'>".$ln."</td><td class='code'>".$matches[2]."</td></tr></table></div>".$link, $matches[1]); 378 368 return "{**@".($id)."@**}"; 379 369 } … … 427 417 $rawmsg = parseubb($rawmsg); 428 418 // convert any newlines to html <br> 419 $rawmsg = str_replace("\r\n\r\n", "\r\n", $rawmsg); 429 420 $rawmsg = nl2br($rawmsg); 421 430 422 431 423 // re-insert the saved code blocks -
trunk/includes/templates/forum.viewthread.tpl
r1526 r1527 22 22 function flipOverflow(who) { 23 23 var tmp; 24 var status; 25 if (document.images['b_' + who].src.indexOf('_on') == -1) { 26 tmp = document.images['b_' + who].src.replace('_off', '_on'); 24 if (document.images['b_' + who].src.indexOf('right.gif') == -1) { 25 tmp = document.images['b_' + who].src.replace('left.gif', 'right.gif'); 27 26 document.getElementById('box_' + who).style.overflowX = 'hidden'; 28 27 document.getElementById('box_' + who).style.overflow = 'hidden'; 29 28 } else { 30 tmp = document.images['b_' + who].src.replace(' _on', '_off');29 tmp = document.images['b_' + who].src.replace('right.gif', 'left.gif'); 31 30 if (BrowserDetect.browser == "Explorer") { 32 31 document.getElementById('box_' + who).style.overflowX = 'scroll'; -
trunk/themes/ExiteCMS/templates/templates/_stylesheets.tpl
r1524 r1527 176 176 .quote { color:#333; background-color:#ddd; padding:4px; margin:5px 10px 5px 10px; border:1px #444 solid; } 177 177 178 .codecontainer { width:480px; b ackground-color:#ffffef; border:1px #bbb solid; overflow:hidden; position:relative; z-index:1; }178 .codecontainer { width:480px; border:1px #bbb solid; overflow:hidden; position:relative; z-index:1; } 179 179 .codeblock { } 180 .codenr { font-family:monospace; font-size:1em; background-color:#fff ef; padding: 0px 5px 0px 5px; vertical-align:top;}180 .codenr { font-family:monospace; font-size:1em; background-color:#ffffdf; padding: 0px 5px 0px 5px; vertical-align:top; text-align:right;} 181 181 .code { font-family:monospace; background-color:#ffffef; white-space:nowrap; } 182 182
Note: See TracChangeset
for help on using the changeset viewer.
