diff --git a/acp/acp_mchat_module.php b/acp/acp_mchat_module.php index 52fcf45..94d493f 100644 --- a/acp/acp_mchat_module.php +++ b/acp/acp_mchat_module.php @@ -13,6 +13,8 @@ namespace dmzx\mchat\acp; class acp_mchat_module { + public $tpl_name; + public $page_title; public $u_action; public function main($id, $mode) diff --git a/adm/style/acp_mchat_globalsettings.html b/adm/style/acp_mchat_globalsettings.html index 8f6702a..8a9a2ea 100644 --- a/adm/style/acp_mchat_globalsettings.html +++ b/adm/style/acp_mchat_globalsettings.html @@ -1,277 +1,288 @@ - +{% INCLUDE 'overall_header.html' %} -
{MCHAT_ERROR}
+{{ MCHAT_ERROR }}
{MCHAT_ERROR}
+{{ MCHAT_ERROR }}
{MCHAT_USERS_TOTAL} {MCHAT_ONLINE_EXPLAIN}
{MCHAT_USERS_LIST}
-
+
{{ MCHAT_USERS_TOTAL }} {{ MCHAT_ONLINE_EXPLAIN }}
{{ MCHAT_USERS_LIST }}
+{% endif %}
diff --git a/styles/prosilver/template/event/index_body_forumlist_body_after.html b/styles/prosilver/template/event/index_body_forumlist_body_after.html
index 09b7e33..9385188 100644
--- a/styles/prosilver/template/event/index_body_forumlist_body_after.html
+++ b/styles/prosilver/template/event/index_body_forumlist_body_after.html
@@ -1,3 +1,3 @@
-
-
-
+{% if MCHAT_INDEX and not MCHAT_LOCATION %}
+ {% INCLUDE '@dmzx_mchat/mchat_body.html' %}
+{% endif %}
diff --git a/styles/prosilver/template/event/index_body_markforums_before.html b/styles/prosilver/template/event/index_body_markforums_before.html
index 90d820d..4c94f7b 100644
--- a/styles/prosilver/template/event/index_body_markforums_before.html
+++ b/styles/prosilver/template/event/index_body_markforums_before.html
@@ -1,3 +1,3 @@
-
-
-
+{% if MCHAT_INDEX and MCHAT_LOCATION %}
+ {% INCLUDE '@dmzx_mchat/mchat_body.html' %}
+{% endif %}
diff --git a/styles/prosilver/template/event/overall_footer_copyright_append.html b/styles/prosilver/template/event/overall_footer_copyright_append.html
index a91abfc..278d9be 100644
--- a/styles/prosilver/template/event/overall_footer_copyright_append.html
+++ b/styles/prosilver/template/event/overall_footer_copyright_append.html
@@ -1,4 +1,4 @@
-
+{% if MCHAT_PAGE %}
- {MCHAT_DISPLAY_NAME} © {L_POST_BY_AUTHOR} {MCHAT_AUTHOR_HOMEPAGES}
-
+ {{ MCHAT_DISPLAY_NAME }} © {{ lang('POST_BY_AUTHOR') }} {{ MCHAT_AUTHOR_HOMEPAGES }}
+{% endif %}
diff --git a/styles/prosilver/template/event/overall_header_head_append.html b/styles/prosilver/template/event/overall_header_head_append.html
index 5615e3c..4698c71 100644
--- a/styles/prosilver/template/event/overall_header_head_append.html
+++ b/styles/prosilver/template/event/overall_header_head_append.html
@@ -1 +1 @@
-
+{% INCLUDECSS '@dmzx_mchat/mchat.css' %}
diff --git a/styles/prosilver/template/event/overall_header_navigation_append.html b/styles/prosilver/template/event/overall_header_navigation_append.html
index 555b165..c2a66ec 100644
--- a/styles/prosilver/template/event/overall_header_navigation_append.html
+++ b/styles/prosilver/template/event/overall_header_navigation_append.html
@@ -1,3 +1,3 @@
-
-
-
+{% if MCHAT_CUSTOM_PAGE and MCHAT_NAVBAR_LINK %}
+ {% INCLUDE '@dmzx_mchat/mchat_navlink.html' %}
+{% endif %}
diff --git a/styles/prosilver/template/event/overall_header_stylesheets_after.html b/styles/prosilver/template/event/overall_header_stylesheets_after.html
index fc6000b..578df19 100644
--- a/styles/prosilver/template/event/overall_header_stylesheets_after.html
+++ b/styles/prosilver/template/event/overall_header_stylesheets_after.html
@@ -1,7 +1,7 @@
-
+{% if (MCHAT_CUSTOM_HEIGHT or MCHAT_INDEX_HEIGHT) and MCHAT_PAGE != 'archive' %}
-
+{% endif %}
diff --git a/styles/prosilver/template/mchat_body.html b/styles/prosilver/template/mchat_body.html
index e850ffe..267e567 100644
--- a/styles/prosilver/template/mchat_body.html
+++ b/styles/prosilver/template/mchat_body.html
@@ -1,142 +1,142 @@
-
-
-
+{% if MCHAT_PAGE in ['custom', 'archive'] %}
+ {% INCLUDE 'overall_header.html' %}
+{% endif %}
-
+{% EVENT dmzx_mchat_overall_header_after %}
-
+{% EVENT dmzx_mchat_header_before %}
-
-