Add app cards to home page
This commit is contained in:
parent
2c0819d8b7
commit
a41b6a689e
9
langs/en/apps.json
Normal file
9
langs/en/apps.json
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"Punch in and check work schedule": "Punch in and check work schedule",
|
||||||
|
"Manage physical items": "Manage physical items",
|
||||||
|
"Create and publish e-newsletters": "Create and publish e-newsletters",
|
||||||
|
"Manage users, permissions, and security": "Manage users, permissions, and security",
|
||||||
|
"Checkout customers and manage online orders": "Checkout customers and manage online orders",
|
||||||
|
"Build websites and manage contact form messages": "Build websites and manage contact form messages",
|
||||||
|
"Track jobs and assigned tasks": "Track jobs and assigned tasks"
|
||||||
|
}
|
@ -8,25 +8,57 @@
|
|||||||
|
|
||||||
<div class="app-dock-container mobile-app-hide">
|
<div class="app-dock-container mobile-app-hide">
|
||||||
<div class="app-dock">
|
<div class="app-dock">
|
||||||
<?php
|
<?php
|
||||||
foreach (EXTERNAL_APPS as $a) {
|
foreach (EXTERNAL_APPS as $a) {
|
||||||
?>
|
?>
|
||||||
<div class="app-dock-item">
|
<div class="app-dock-item">
|
||||||
<p>
|
<p>
|
||||||
<a href="<?php echo $a['url']; ?>">
|
<a href="<?php echo $a['url']; ?>">
|
||||||
<img class="img-responsive app-icon" src="<?php
|
<img class="img-responsive app-icon" src="<?php
|
||||||
if (strpos($a['icon'], "http") !== 0) {
|
if (strpos($a['icon'], "http") !== 0) {
|
||||||
echo $a['url'] . $a['icon'];
|
echo $a['url'] . $a['icon'];
|
||||||
} else {
|
} else {
|
||||||
echo $a['icon'];
|
echo $a['icon'];
|
||||||
}
|
}
|
||||||
?>"/>
|
?>"/>
|
||||||
<span><?php echo $a['title']; ?></span>
|
<span><?php echo $a['title']; ?></span>
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
<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">
|
||||||
|
<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 col-sm-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-12 col-sm-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>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
@ -44,29 +44,13 @@ define('LANGUAGE', "en");
|
|||||||
// Used in the mobile app and in the "dock" in AccountHub.
|
// Used in the mobile app and in the "dock" in AccountHub.
|
||||||
define('EXTERNAL_APPS', [
|
define('EXTERNAL_APPS', [
|
||||||
"accounthub" => [
|
"accounthub" => [
|
||||||
"url" => "http://localhost/accounthub",
|
"url" => "/accounthub",
|
||||||
"mobileapi" => "/mobile/index.php",
|
"mobileapi" => "/mobile/index.php",
|
||||||
"icon" => "/static/img/logo.svg",
|
"icon" => "/static/img/logo.svg",
|
||||||
"title" => SITE_TITLE
|
"title" => SITE_TITLE
|
||||||
],
|
],
|
||||||
"binstack" => [
|
|
||||||
"url" => "http://localhost/inventory",
|
|
||||||
"mobileapi" => "/mobile/index.php",
|
|
||||||
"icon" => "/static/img/logo.svg",
|
|
||||||
"title" => "BinStack"
|
|
||||||
],
|
|
||||||
"taskfloor" => [
|
|
||||||
"url" => "http://localhost/taskfloor",
|
|
||||||
"mobileapi" => "/mobile/index.php",
|
|
||||||
"icon" => "/static/img/logo.svg",
|
|
||||||
"title" => "TaskFloor",
|
|
||||||
"station_features" => [
|
|
||||||
"taskfloor_viewtasks",
|
|
||||||
"taskfloor_viewmessages"
|
|
||||||
]
|
|
||||||
],
|
|
||||||
"qwikclock" => [
|
"qwikclock" => [
|
||||||
"url" => "http://localhost/qwikclock",
|
"url" => "/qwikclock",
|
||||||
"mobileapi" => "/mobile/index.php",
|
"mobileapi" => "/mobile/index.php",
|
||||||
"icon" => "/static/img/logo.svg",
|
"icon" => "/static/img/logo.svg",
|
||||||
"title" => "QwikClock",
|
"title" => "QwikClock",
|
||||||
@ -74,14 +58,77 @@ define('EXTERNAL_APPS', [
|
|||||||
"qwikclock_punchinout",
|
"qwikclock_punchinout",
|
||||||
"qwikclock_myshifts",
|
"qwikclock_myshifts",
|
||||||
"qwikclock_jobs"
|
"qwikclock_jobs"
|
||||||
|
],
|
||||||
|
"card" => [
|
||||||
|
"color" => "blue",
|
||||||
|
"string" => "Punch in and check work schedule"
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"binstack" => [
|
||||||
|
"url" => "/binstack",
|
||||||
|
"mobileapi" => "/mobile/index.php",
|
||||||
|
"icon" => "/static/img/logo.svg",
|
||||||
|
"title" => "BinStack",
|
||||||
|
"card" => [
|
||||||
|
"color" => "green",
|
||||||
|
"string" => "Manage physical items"
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"newspen" => [
|
||||||
|
"url" => "/newspen",
|
||||||
|
"mobileapi" => "/mobile/index.php",
|
||||||
|
"icon" => "/static/img/logo.svg",
|
||||||
|
"title" => "NewsPen",
|
||||||
|
"card" => [
|
||||||
|
"color" => "purple",
|
||||||
|
"string" => "Create and publish e-newsletters"
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
"managepanel" => [
|
"managepanel" => [
|
||||||
"url" => "http://localhost/managepanel",
|
"url" => "/managepanel",
|
||||||
"mobileapi" => "/mobile/index.php",
|
"mobileapi" => "/mobile/index.php",
|
||||||
"icon" => "/static/img/logo.svg",
|
"icon" => "/static/img/logo.svg",
|
||||||
"title" => "ManagePanel"
|
"title" => "ManagePanel",
|
||||||
]
|
"card" => [
|
||||||
|
"color" => "brown",
|
||||||
|
"string" => "Manage users, permissions, and security"
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"nickelbox" => [
|
||||||
|
"url" => "/nickelbox",
|
||||||
|
"mobileapi" => "/mobile/index.php",
|
||||||
|
"icon" => "/static/img/logo.svg",
|
||||||
|
"title" => "NickelBox",
|
||||||
|
"card" => [
|
||||||
|
"color" => "light-green",
|
||||||
|
"text" => "dark",
|
||||||
|
"string" => "Checkout customers and manage online orders"
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"sitewriter" => [
|
||||||
|
"url" => "/sitewriter",
|
||||||
|
"mobileapi" => "/mobile/index.php",
|
||||||
|
"icon" => "/static/img/logo.svg",
|
||||||
|
"title" => "SiteWriter",
|
||||||
|
"card" => [
|
||||||
|
"color" => "light-blue",
|
||||||
|
"string" => "Build websites and manage contact form messages"
|
||||||
|
]
|
||||||
|
],
|
||||||
|
"taskfloor" => [
|
||||||
|
"url" => "/taskfloor",
|
||||||
|
"mobileapi" => "/mobile/index.php",
|
||||||
|
"icon" => "/static/img/logo.svg",
|
||||||
|
"title" => "TaskFloor",
|
||||||
|
"station_features" => [
|
||||||
|
"taskfloor_viewtasks",
|
||||||
|
"taskfloor_viewmessages"
|
||||||
|
],
|
||||||
|
"card" => [
|
||||||
|
"color" => "blue-grey",
|
||||||
|
"string" => "Track jobs and assigned tasks"
|
||||||
|
]
|
||||||
|
],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
// Email settings for receiving admin alerts.
|
// Email settings for receiving admin alerts.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user