mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-03 14:10:57 +08:00
add common label cancel
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -31,6 +31,7 @@ return [
|
||||
'operator' => 'Operator',
|
||||
'action' => 'Action',
|
||||
'submit' => 'Submit',
|
||||
'cancel' => 'Cancel',
|
||||
'reset' => 'Reset',
|
||||
'setting' => [
|
||||
'nav_text' => 'Setting',
|
||||
|
||||
@@ -31,6 +31,7 @@ return [
|
||||
'operator' => '操作者',
|
||||
'action' => '操作',
|
||||
'submit' => '提交',
|
||||
'cancel' => '取消',
|
||||
'reset' => '重置',
|
||||
'setting' => [
|
||||
'nav_text' => '设置',
|
||||
|
||||
@@ -31,6 +31,7 @@ return [
|
||||
'operator' => '操作者',
|
||||
'action' => '操作',
|
||||
'submit' => '提交',
|
||||
'cancel' => '取消',
|
||||
'reset' => '重置',
|
||||
'setting' => [
|
||||
'nav_text' => '設置',
|
||||
|
||||
Reference in New Issue
Block a user