mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
fix code tag display original
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.8.6');
|
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.8.6');
|
||||||
defined('RELEASE_DATE') || define('RELEASE_DATE', '2023-07-29');
|
defined('RELEASE_DATE') || define('RELEASE_DATE', '2023-07-30');
|
||||||
defined('IN_TRACKER') || define('IN_TRACKER', false);
|
defined('IN_TRACKER') || define('IN_TRACKER', false);
|
||||||
defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP");
|
defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP");
|
||||||
defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org");
|
defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org");
|
||||||
|
|||||||
@@ -225,7 +225,7 @@ function formatUrl($url, $newWindow = false, $text = '', $linkClass = '') {
|
|||||||
}
|
}
|
||||||
function formatCode($text) {
|
function formatCode($text) {
|
||||||
global $lang_functions;
|
global $lang_functions;
|
||||||
return addTempCode("<br /><div class=\"codetop\">".$lang_functions['text_code']."</div><div class=\"codemain\">$text</div><br />");
|
return addTempCode("<br /><div class=\"codetop\">".$lang_functions['text_code']."</div><div class=\"codemain\"><pre><code>$text</code></pre></div><br />");
|
||||||
}
|
}
|
||||||
|
|
||||||
function formatImg($src, $enableImageResizer, $image_max_width, $image_max_height, $imgId = "") {
|
function formatImg($src, $enableImageResizer, $image_max_width, $image_max_height, $imgId = "") {
|
||||||
|
|||||||
Vendored
+3
@@ -68,3 +68,6 @@ img.hitandrun {
|
|||||||
.text-muted {
|
.text-muted {
|
||||||
color: #7d7b7b
|
color: #7d7b7b
|
||||||
}
|
}
|
||||||
|
.codemain>pre {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user