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

View File

@@ -2836,6 +2836,7 @@ if ($msgalert)
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 $hook;
print("</td></tr></table>");
print("<div id=\"footer\">");
if ($Advertisement->enable_ad()){
@@ -2880,6 +2881,7 @@ function stdfoot() {
print("</div>");
if ($analyticscode_tweak)
print("\n".$analyticscode_tweak."\n");
// $hook->dump();
do_action('nexus_footer');
foreach (\Nexus\Nexus::getAppendFooters() as $value) {
print($value);

View File

@@ -244,16 +244,22 @@ final class Nexus
private static function appendJsCss($append, $position, $key = null)
{
$log = "position: $position, key: $key";
if ($key === null) {
$key = md5($append);
$log .= ", md5 key: $key";
}
if ($position == 'header') {
if (!isset(self::$appendHeaders[$key])) {
self::$appendHeaders[$key] = $append;
} else {
do_log("$log, [DUPLICATE]");
}
} elseif ($position == 'footer') {
if (!isset(self::$appendFooters[$key])) {
self::$appendFooters[$key] = $append;
} else {
do_log("$log, [DUPLICATE]");
}
} else {
throw new \InvalidArgumentException("Invalid position: $position");

View File

@@ -870,7 +870,6 @@ if ($action == "viewtopic")
else print($lang_forums['text_unpermitted_posting_here']);
print(key_shortcut($page,$pages-1));
do_action('page_forums_js');
stdfoot();
die;
}

View File

@@ -31,6 +31,7 @@ return [
'operator' => 'Operator',
'action' => 'Action',
'submit' => 'Submit',
'cancel' => 'Cancel',
'reset' => 'Reset',
'setting' => [
'nav_text' => 'Setting',

View File

@@ -31,6 +31,7 @@ return [
'operator' => '操作者',
'action' => '操作',
'submit' => '提交',
'cancel' => '取消',
'reset' => '重置',
'setting' => [
'nav_text' => '设置',

View File

@@ -31,6 +31,7 @@ return [
'operator' => '操作者',
'action' => '操作',
'submit' => '提交',
'cancel' => '取消',
'reset' => '重置',
'setting' => [
'nav_text' => '設置',