Commit b7417b8a authored by Carl Schwan's avatar Carl Schwan 🚴🏻

Merge branch 'gplay' into 'master'

feat: Add Get it on Google Play

See merge request !16
parents 61567419 084465ac
......@@ -337,6 +337,19 @@ $site_root = "../";
</a>
</div>
<?php } ?>
<?php if ($app->getGooglePlayLink()) { ?>
<div class="col-12 col-sm-4 d-flex flex-column mb-3">
<a href="<?= $app->getGooglePlayLink() ?>" class="align-self-center d-flex" style="height: 100px">
<img src="/applications/assets/get-it-from-google-play.png" alt="Get it on Google Play" height="80">
</a>
<h2 class="align-self-center">Google Play</h2>
<a class="noblefir align-self-center" href="<?= $app->getGooglePlayLink() ?>"
<i class="fa fa-download"></i>
<span id="install-msg">Get it on Google Play</span>
</a>
<small>Google Play and the Google Play logo are trademarks of Google LLC.</small>
</div>
<?php } ?>
</div>
</section>
</main>
......
......@@ -354,6 +354,14 @@ class AppData
return null;
}
function getGooglePlayLink(): ?string
{
if (isset($this->data['Custom']) && isset($this->data['Custom']['KDE::google_play'])) {
return $this->data['Custom']['KDE::google_play'];
}
return null;
}
// TODO: ebn is broken for now
function hasEbn() {
return false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment