add common label cancel

This commit is contained in:
xiaomlove
2022-09-03 00:05:51 +08:00
parent 875e8ea797
commit 26a9c7b6ed
6 changed files with 11 additions and 1 deletions
+2
View File
@@ -2836,6 +2836,7 @@ if ($msgalert)
function stdfoot() { function stdfoot() {
global $SITENAME,$BASEURL,$Cache,$datefounded,$tstart,$icplicense_main,$add_key_shortcut,$query_name, $USERUPDATESET, $CURUSER, $enablesqldebug_tweak, $sqldebug_tweak, $Advertisement, $analyticscode_tweak; global $SITENAME,$BASEURL,$Cache,$datefounded,$tstart,$icplicense_main,$add_key_shortcut,$query_name, $USERUPDATESET, $CURUSER, $enablesqldebug_tweak, $sqldebug_tweak, $Advertisement, $analyticscode_tweak;
global $hook;
print("</td></tr></table>"); print("</td></tr></table>");
print("<div id=\"footer\">"); print("<div id=\"footer\">");
if ($Advertisement->enable_ad()){ if ($Advertisement->enable_ad()){
@@ -2880,6 +2881,7 @@ function stdfoot() {
print("</div>"); print("</div>");
if ($analyticscode_tweak) if ($analyticscode_tweak)
print("\n".$analyticscode_tweak."\n"); print("\n".$analyticscode_tweak."\n");
// $hook->dump();
do_action('nexus_footer'); do_action('nexus_footer');
foreach (\Nexus\Nexus::getAppendFooters() as $value) { foreach (\Nexus\Nexus::getAppendFooters() as $value) {
print($value); print($value);
+6
View File
@@ -244,16 +244,22 @@ final class Nexus
private static function appendJsCss($append, $position, $key = null) private static function appendJsCss($append, $position, $key = null)
{ {
$log = "position: $position, key: $key";
if ($key === null) { if ($key === null) {
$key = md5($append); $key = md5($append);
$log .= ", md5 key: $key";
} }
if ($position == 'header') { if ($position == 'header') {
if (!isset(self::$appendHeaders[$key])) { if (!isset(self::$appendHeaders[$key])) {
self::$appendHeaders[$key] = $append; self::$appendHeaders[$key] = $append;
} else {
do_log("$log, [DUPLICATE]");
} }
} elseif ($position == 'footer') { } elseif ($position == 'footer') {
if (!isset(self::$appendFooters[$key])) { if (!isset(self::$appendFooters[$key])) {
self::$appendFooters[$key] = $append; self::$appendFooters[$key] = $append;
} else {
do_log("$log, [DUPLICATE]");
} }
} else { } else {
throw new \InvalidArgumentException("Invalid position: $position"); throw new \InvalidArgumentException("Invalid position: $position");
-1
View File
@@ -870,7 +870,6 @@ if ($action == "viewtopic")
else print($lang_forums['text_unpermitted_posting_here']); else print($lang_forums['text_unpermitted_posting_here']);
print(key_shortcut($page,$pages-1)); print(key_shortcut($page,$pages-1));
do_action('page_forums_js');
stdfoot(); stdfoot();
die; die;
} }
+1
View File
@@ -31,6 +31,7 @@ return [
'operator' => 'Operator', 'operator' => 'Operator',
'action' => 'Action', 'action' => 'Action',
'submit' => 'Submit', 'submit' => 'Submit',
'cancel' => 'Cancel',
'reset' => 'Reset', 'reset' => 'Reset',
'setting' => [ 'setting' => [
'nav_text' => 'Setting', 'nav_text' => 'Setting',
+1
View File
@@ -31,6 +31,7 @@ return [
'operator' => '操作者', 'operator' => '操作者',
'action' => '操作', 'action' => '操作',
'submit' => '提交', 'submit' => '提交',
'cancel' => '取消',
'reset' => '重置', 'reset' => '重置',
'setting' => [ 'setting' => [
'nav_text' => '设置', 'nav_text' => '设置',
+1
View File
@@ -31,6 +31,7 @@ return [
'operator' => '操作者', 'operator' => '操作者',
'action' => '操作', 'action' => '操作',
'submit' => '提交', 'submit' => '提交',
'cancel' => '取消',
'reset' => '重置', 'reset' => '重置',
'setting' => [ 'setting' => [
'nav_text' => '設置', 'nav_text' => '設置',