/[LeafOK_CVS]/fenglin/bbs/theme.inc.php
ViewVC logotype

Diff of /fenglin/bbs/theme.inc.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.3 by sysadm, Mon Apr 7 14:16:29 2025 UTC Revision 1.19 by sysadm, Wed Apr 23 10:47:04 2025 UTC
# Line 5  if (!defined("_BBS_THEME_INIT_")) Line 5  if (!defined("_BBS_THEME_INIT_"))
5    
6          $BBS_theme_set = array(          $BBS_theme_set = array(
7                  "default" => array(                  "default" => array(
8                          "css" => "css/default.css",                          "css/default" => "css/default.css",
9                          "post" => "post.view.php",                          "js/lml_assistant" => "js/lml_assistant.js",
10                          "member_service_guide" => "member_service_guide.view.php",                          "view/list" => "list.view.php",
11                          "update_profile" => "update_profile.view.php",                          "view/post" => "post.view.php",
12                          "preference" => "preference.view.php",                          "view/view_article" => "view_article.view.php",
13                          "s_favor" => "s_favor.view.php",                          "view/search_article" => "search_article.view.php",
14                            "view/search_user" => "search_user.view.php",
15                            "view/member_service_guide" => "member_service_guide.view.php",
16                            "view/update_profile" => "update_profile.view.php",
17                            "view/preference" => "preference.view.php",
18                            "view/user_section_favor" => "user_section_favor.view.php",
19                            "view/section_setting" => "section_setting.view.php",
20                            "view/view_user" => "view_user.view.php",
21                            "view/score_detail" => "score_detail.view.php",
22                            "view/suicide" => "suicide.view.php",
23                            "view/msg_read" => "msg_read.view.php",
24                    ),
25                    "xml" => array(
26                            "xsl/1" => "xsl/1.xsl",
27                            "view/view_article" => "view_article_xml.view.php",
28                    ),
29                    "gen_ex" => array(
30                            "view/view_article" => "gen_ex_article.view.php",
31                    ),
32                    "portal" => array(
33                            "css/default" => "../www/css/default.css",
34                            "view/view_article" => "view_article.view.php",
35                  ),                  ),
36          );          );
37    
38          $BBS_theme_current = "";          $BBS_theme_current = "";
39    
40          function get_theme_view_file(string $view_name, string $theme_name = "") : string | null          function get_theme_file(string $view_name, string $theme_name = "") : string | null
41          {          {
42                  global $BBS_theme_set;                  global $BBS_theme_set;
43                  global $BBS_theme_current;                  global $BBS_theme_current;
# Line 38  if (!defined("_BBS_THEME_INIT_")) Line 59  if (!defined("_BBS_THEME_INIT_"))
59                          return null; // View not exist                          return null; // View not exist
60                  }                  }
61    
62                  $file = "./themes/" . $theme_name . "/" . $BBS_theme_set[$theme_name][$view_name];                  $file = "../bbs/themes/" . $theme_name . "/" . $BBS_theme_set[$theme_name][$view_name];
63    
64                  if (!file_exists($file))                  if (!file_exists($file))
65                  {                  {


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1