You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
AccountHub/pages/home.php

93 lines
3.6 KiB
PHP

<?php
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
?>
<div class="mobile-app-hide d-flex justify-content-center flex-wrap">
<?php
foreach (EXTERNAL_APPS as $a) {
?>
<div class="app-dock-item m-2">
<p class="mb-0">
<a href="<?php echo $a['url']; ?>">
<img class="img-responsive app-icon" src="<?php
if (strpos($a['icon'], "http") !== 0) {
echo $a['url'] . $a['icon'];
} else {
echo $a['icon'];
}
?>"/>
<span class="d-block text-center"><?php echo $a['title']; ?></span>
</a>
</p>
</div>
<?php
}
?>
</div>
<div class="row mt-4">
<?php
foreach (EXTERNAL_APPS as $a) {
if (!isset($a['card'])) {
continue;
}
?>
<div class="col-12 col-sm-6 col-md-4 mb-4 mobile-app-hide">
<div class="card bg-<?php echo $a['card']['color']; ?> h-100">
<div class="card-body align-middle">
<a href="<?php echo $a['url']; ?>" class="row align-items-center h-100 text-<?php echo (empty($a['card']['text']) ? "light" : $a['card']['text']) ?>">
<div class="col-4">
<img class="img-fluid" src="<?php
if (strpos($a['icon'], "http") !== 0) {
echo $a['url'] . $a['icon'];
} else {
echo $a['icon'];
}
?>"/>
</div>
<div class="col-8">
<span class="h5 font-weight-normal"><?php echo $a['title']; ?></span><br />
<?php $Strings->get($a['card']['string']); ?>
</div>
</a>
</div>
</div>
</div>
<?php
}
?>
<div class="col-12 col-sm-6 col-md-4 mb-4">
<div class="card bg-orange h-100">
<div class="card-body align-middle">
<a href="./app.php?page=security" class="row align-items-center h-100 text-dark">
<div class="col-4 text-center">
<i class="fas fa-lock fa-4x"></i>
</div>
<div class="col-8">
<span class="h5 font-weight-normal"><?php $Strings->get("account security"); ?></span><br />
<?php $Strings->get("Change password, setup 2-factor, and change Station PIN"); ?>
</div>
</a>
</div>
</div>
</div>
<div class="col-12 col-sm-6 col-md-4 mb-4">
<div class="card bg-orange h-100">
<div class="card-body align-middle">
<a href="./app.php?page=sync" class="row align-items-center h-100 text-dark">
<div class="col-4 text-center">
<i class="fas fa-sync fa-4x"></i>
</div>
<div class="col-8">
<span class="h5 font-weight-normal"><?php $Strings->get("sync"); ?></span><br />
<?php $Strings->get("Connect mobile devices to AccountHub"); ?>
</div>
</a>
</div>
</div>
</div>
</div>