Skip to content

Commit 7791819

Browse files
committed
feat(home): add Fediverse social media block
1 parent 5f544da commit 7791819

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<div class="alert alert-info" role="alert">
2+
<div class="panel-heading"><h4>{t}Join the GeoKrety community{/t}</h4></div>
3+
4+
<div class="panel-body text-center">
5+
<div class="text-primary">
6+
{fa icon="rocket" size="3x"}
7+
</div>
8+
<p class="lead">{t}We are now sharing updates, tips, and release news across the Fediverse.{/t}</p>
9+
</div>
10+
11+
<div class="panel-body text-center">
12+
<a class="btn btn-primary btn-block" rel="me noopener" href="{GK_SITE_FEDIVERSE_URL}" target="_blank"
13+
style="white-space: normal; line-height: 1.4;">
14+
{fa icon="bullhorn"}
15+
{t}@GeoKrety on social.opencaching.earth{/t}
16+
</a>
17+
</div>
18+
19+
<div class="panel-body small text-muted text-center">
20+
{t}Follow us from any Mastodon or Fediverse client and never miss an adventure!{/t}
21+
</div>
22+
</div>

website/app-templates/smarty/pages/home.tpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
<div class="col-md-3">
5050
{include file='blocks/donate.tpl'}
5151
{include file='blocks/found_geokret.tpl'}
52+
{include file='blocks/go_social.tpl'}
5253
</div>
5354
</div>
5455

website/app/GeoKrety/Service/Config.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ public function __construct() {
1818
// SITE CONFIG
1919
define('HOSTNAME', getenv('HOSTNAME') ?: 'localhost');
2020
define('GK_SITE_BASE_SERVER_URL', getenv('GK_SITE_BASE_SERVER_URL') ?: 'https://geokrety.org');
21+
define('GK_SITE_FEDIVERSE_URL', getenv('GK_SITE_FEDIVERSE_URL') ?: 'https://social.opencaching.earth/@geokrety');
2122
define('GK_SITE_BASE_SERVER_FQDN', getenv('GK_SITE_BASE_SERVER_FQDN') ?: 'geokrety.org');
2223
define('GK_SITE_ADMINISTRATORS', explode(',', getenv('GK_SITE_ADMINISTRATORS') ?: '26422'));
2324
define('GK_SITE_SESSION_REMEMBER', getenv('GK_SITE_SESSION_REMEMBER') ?: 60 * 60 * 24); // 24 hours

0 commit comments

Comments
 (0)