Skip to content

Commit

Permalink
添加浏览器图标和Logo的CDN支持以及翻译
Browse files Browse the repository at this point in the history
  • Loading branch information
skywalker512 committed Jul 13, 2018
1 parent 9b04d13 commit 41d743d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions addons/languages/Chinese/definitions.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@
$definitions["Forgot Password"] = "忘记密码";
$definitions["Forum"] = "社区";
$definitions["Forum header"] = "社区顶部";
$definitions["Forum Favicon"] = "浏览器图标";
$definitions["Forum language"] = "社区语言";
$definitions["Forum privacy"] = "社区信息";
$definitions["Forum Settings"] = "社区设置";
Expand Down
4 changes: 2 additions & 2 deletions core/lib/ETController.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -471,11 +471,11 @@ public function render($view = "")
$logo = C("esoTalk.forumLogo");
$title = C("esoTalk.forumTitle");
if ($logo) $size = getimagesize($logo);
$data["forumTitle"] = $logo ? "<img src='".getWebPath($logo)."' {$size[3]} alt='$title'/>" : $title;
$data["forumTitle"] = $logo ? "<img src='".C("esoTalk.cdnURL").getWebPath($logo)."' {$size[3]} alt='$title'/>" : $title;

// Add the forum favicon
$favicon = C("esoTalk.forumFavicon");
$data["forumFavicon"] = "<link href='".getWebPath($favicon)."' rel='shortcut icon'/>";
$data["forumFavicon"] = "<link href='".C("esoTalk.cdnURL").getWebPath($favicon)."' rel='shortcut icon'/>";

// Add the details for the "back" button.
$data["backButton"] = ET::$session->getNavigation($this->navigationId);
Expand Down

0 comments on commit 41d743d

Please sign in to comment.