Commit b030b071 authored by Carl Schwan's avatar Carl Schwan

Merge branch 'list-downloads' into 'master'

Add list of stores

See merge request !13
parents d3c5708e fcac3a96
......@@ -6,6 +6,8 @@ RewriteRule .? - [S=5]
# ... and also skip fonts.
RewriteCond %{REQUEST_FILENAME} "^.*/fonts/.*"
RewriteRule .? - [S=4]
RewriteCond %{REQUEST_FILENAME} "^.*/assets/.*"
RewriteRule .? - [S=3]
# Rewrite the application and category pages
RewriteRule ^([\w]+)/?$ applicationlist.php?category=$1 [NS,PT]
......
......@@ -297,6 +297,36 @@ $site_root = "../";
</div>
</div>
</div>
<section id="installation" class="container">
<h2>Installation</h2>
<div class="row">
<div class="col-12 col-sm-4 d-flex flex-column mb-3">
<a class="align-self-center" href="appstream://<?= $app->AppStreamId() ?>" style="height: 100px">
<img src="https://kde.carlschwan.eu/applications/icons/org.kde.discover.svg" alt="logo discover" class="img-fluid" width="100" />
</a>
<h2 class="align-self-center">Linux</h2>
<a class="noblefir align-self-center mb-3"
href="appstream://<?= $app->AppStreamId() ?>"
<i class="fa fa-download"></i>
<span id="install-msg">Install on Linux</span>
</a>
<small>This button only work with <a href="/applications/system/org.kde.discover">Discover</a> and other AppStream application stores. You can also use your distribution packet manager.</small>
</div>
<?php if ($app->getWindowsStoreLink() !== null) { ?>
<div class="col-12 col-sm-4 d-flex flex-column mb-3">
<a href="<?= $app->getWindowsStoreLink() ?>" class="align-self-center d-flex" style="height: 100px">
<img src="/applications/assets/get-it-from-ms.png" alt="get it from the microsoft store" class="img-fluid align-self-center" width="150" />
</a>
<h2 class="align-self-center">Windows Store</h2>
<a class="noblefir align-self-center"
href="<?= $app->getWindowsStoreLink() ?>"
<i class="fa fa-download"></i>
<span id="install-msg">Install on Windows</span>
</a>
</div>
<?php } ?>
</div>
</section>
</main>
<script>
let install_button = document.getElementById('install-button');
......
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