From c55643d8d71572c5355d31cf6e24a81a201ff944 Mon Sep 17 00:00:00 2001 From: andyg5000 Date: Thu, 20 Sep 2018 10:51:57 -0400 Subject: [PATCH 1/2] Make the data year in the template dynamic by using date(). --- themes/example/defaults.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/example/defaults.php b/themes/example/defaults.php index 370c9aeecfa6d..74c29fbc56a53 100644 --- a/themes/example/defaults.php +++ b/themes/example/defaults.php @@ -90,7 +90,7 @@ public function getLogoClaim() { * @return string short footer */ public function getShortFooter() { - $footer = '© 2018 '.$this->getEntity().''. + $footer = '© ' . date('Y') . ' '.$this->getEntity().''. '
' . $this->getSlogan(); return $footer; From 42eb1538efb12a30e6bbafe1eb2f801ae99fb445 Mon Sep 17 00:00:00 2001 From: splitt3r Date: Thu, 31 Jan 2019 11:47:59 +0100 Subject: [PATCH 2/2] Update dynamic year in example theme --- themes/example/defaults.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/themes/example/defaults.php b/themes/example/defaults.php index 74c29fbc56a53..dd9c9b0629116 100644 --- a/themes/example/defaults.php +++ b/themes/example/defaults.php @@ -90,7 +90,7 @@ public function getLogoClaim() { * @return string short footer */ public function getShortFooter() { - $footer = '© ' . date('Y') . ' '.$this->getEntity().''. + $footer = '© ' . date('Y') . ' ' . $this->getEntity() . '' . '
' . $this->getSlogan(); return $footer; @@ -101,14 +101,18 @@ public function getShortFooter() { * @return string long footer */ public function getLongFooter() { - $footer = '© 2017 '.$this->getEntity().''. + $footer = '© ' . date('Y') . ' ' . $this->getEntity() . '' . '
' . $this->getSlogan(); return $footer; } + /** + * Generate a documentation link for a given key + * @return string documentation link + */ public function buildDocLinkToKey($key) { - return $this->getDocBaseUrl() . '/server/12/go.php?to=' . $key; + return $this->getDocBaseUrl() . '/server/15/go.php?to=' . $key; }