瀏覽代碼

Make the data year in the template dynamic by using date().

tags/v16.0.0alpha1
andyg5000 5 年之前
父節點
當前提交
c55643d8d7
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      themes/example/defaults.php

+ 1
- 1
themes/example/defaults.php 查看文件

@@ -90,7 +90,7 @@ class OC_Theme {
* @return string short footer
*/
public function getShortFooter() {
$footer = '© 2018 <a href="'.$this->getBaseUrl().'" target="_blank\">'.$this->getEntity().'</a>'.
$footer = '© ' . date('Y') . ' <a href="'.$this->getBaseUrl().'" target="_blank\">'.$this->getEntity().'</a>'.
'<br/>' . $this->getSlogan();

return $footer;

Loading…
取消
儲存