| @@ 6145-6153 (lines=9) @@ | ||
| 6142 | * |
|
| 6143 | * @return string |
|
| 6144 | */ |
|
| 6145 | public function contactWebmaster() { |
|
| 6146 | $user_id = $this->tree->getPreference('WEBMASTER_USER_ID'); |
|
| 6147 | $user = User::find($user_id); |
|
| 6148 | if ($user) { |
|
| 6149 | return Theme::theme()->contactLink($user); |
|
| 6150 | } else { |
|
| 6151 | return $user_id; |
|
| 6152 | } |
|
| 6153 | } |
|
| 6154 | ||
| 6155 | /** |
|
| 6156 | * Create a link to contact the genealogy contact. |
|
| @@ 6160-6168 (lines=9) @@ | ||
| 6157 | * |
|
| 6158 | * @return string |
|
| 6159 | */ |
|
| 6160 | public function contactGedcom() { |
|
| 6161 | $user_id = $this->tree->getPreference('CONTACT_USER_ID'); |
|
| 6162 | $user = User::find($user_id); |
|
| 6163 | if ($user) { |
|
| 6164 | return Theme::theme()->contactLink($user); |
|
| 6165 | } else { |
|
| 6166 | return $user_id; |
|
| 6167 | } |
|
| 6168 | } |
|
| 6169 | ||
| 6170 | /** |
|
| 6171 | * What is the current date on the server? |
|