This commit is contained in:
Dennis Eichhorn 2022-12-10 22:17:54 +01:00
parent 2aec6b2c94
commit 066b6ddafb
8 changed files with 22 additions and 22 deletions

View File

@ -19,9 +19,9 @@ use phpOMS\Uri\UriFactory;
<div class="floater"> <div class="floater">
<hr> <hr>
<ul> <ul>
<li><a href="<?= UriFactory::build('{/app}/terms'); ?>">Terms</a> <li><a href="<?= UriFactory::build('{/lang}/{/app}/{/app}/terms'); ?>">Terms</a>
<li><a href="<?= UriFactory::build('{/app}/privacy'); ?>">Data Protection</a> <li><a href="<?= UriFactory::build('{/lang}/{/app}/{/app}/privacy'); ?>">Data Protection</a>
<li><a href="<?= UriFactory::build('{/app}/imprint'); ?>">Imprint</a> <li><a href="<?= UriFactory::build('{/lang}/{/app}/{/app}/imprint'); ?>">Imprint</a>
</ul> </ul>
</div> </div>
</footer> </footer>

View File

@ -18,8 +18,8 @@ use phpOMS\Uri\UriFactory;
<header> <header>
<nav> <nav>
<ul> <ul>
<li><a href="<?= UriFactory::build('{/app}'); ?>">Website</a> <li><a href="<?= UriFactory::build('{/lang}/{/app}/{/app}'); ?>">Website</a>
<li><a href="<?= UriFactory::build('{/app}/components'); ?>">Profile</a> <li><a href="<?= UriFactory::build('{/lang}/{/app}/{/app}/components'); ?>">Profile</a>
</ul> </ul>
</nav> </nav>
<div id="search"> <div id="search">

View File

@ -12,7 +12,7 @@
}, },
"creator": { "creator": {
"name": "Karaka", "name": "Karaka",
"website": "www.spl1nes.com" "website": "jingga.app"
}, },
"description": "The shop application.", "description": "The shop application.",
"directory": "Shop", "directory": "Shop",

View File

@ -19,7 +19,7 @@
"type": 2, "type": 2,
"subtype": 1, "subtype": 1,
"name": "Tickets", "name": "Tickets",
"uri": "{/prefix}support/list", "uri": "{/lang}/{/app}/support/list",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 1, "order": 1,
@ -33,7 +33,7 @@
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "List", "name": "List",
"uri": "{/prefix}support/list", "uri": "{/lang}/{/app}/support/list",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 1, "order": 1,
@ -49,7 +49,7 @@
"type": 3, "type": 3,
"subtype": 1, "subtype": 1,
"name": "Create", "name": "Create",
"uri": "{/prefix}support/create?{?}", "uri": "{/lang}/{/app}/support/create?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 5, "order": 5,
@ -67,7 +67,7 @@
"type": 2, "type": 2,
"subtype": 1, "subtype": 1,
"name": "Settings", "name": "Settings",
"uri": "{/prefix}support/settings/dashboard?{?}", "uri": "{/lang}/{/app}/support/settings/dashboard?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 5, "order": 5,
@ -83,7 +83,7 @@
"type": 2, "type": 2,
"subtype": 1, "subtype": 1,
"name": "Analysis", "name": "Analysis",
"uri": "{/prefix}support/analysis/dashboard?{?}", "uri": "{/lang}/{/app}/support/analysis/dashboard?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 10, "order": 10,
@ -101,7 +101,7 @@
"type": 2, "type": 2,
"subtype": 1, "subtype": 1,
"name": "Support", "name": "Support",
"uri": "{/prefix}private/support/dashboard?{?}", "uri": "{/lang}/{/app}/private/support/dashboard?{?}",
"target": "self", "target": "self",
"icon": null, "icon": null,
"order": 5, "order": 5,

View File

@ -40,7 +40,7 @@ echo $this->getData('nav')->render(); ?>
<?php <?php
$c = 0; $c = 0;
foreach ($tickets as $key => $ticket) : ++$c; foreach ($tickets as $key => $ticket) : ++$c;
$url = UriFactory::build('support/ticket?{?}&id=' . $ticket->getId()); $url = UriFactory::build('{/lang}/{/app}/support/ticket?{?}&id=' . $ticket->getId());
?> ?>
<tr data-href="<?= $url; ?>"> <tr data-href="<?= $url; ?>">
<td><a href="<?= $url; ?>"> <td><a href="<?= $url; ?>">
@ -49,9 +49,9 @@ echo $this->getData('nav')->render(); ?>
</span></a> </span></a>
<td><a href="<?= $url; ?>"><?= $this->getHtml('P' . $ticket->task->getPriority(), 'Tasks'); ?></a> <td><a href="<?= $url; ?>"><?= $this->getHtml('P' . $ticket->task->getPriority(), 'Tasks'); ?></a>
<td><a href="<?= $url; ?>"><?= $this->printHtml($ticket->task->title); ?></a> <td><a href="<?= $url; ?>"><?= $this->printHtml($ticket->task->title); ?></a>
<td><a class="content" href="<?= UriFactory::build('profile/single?for=' . $ticket->task->createdBy->getId()); ?>"><?= $this->printHtml($ticket->task->createdBy->name1); ?> <?= $this->printHtml($ticket->task->createdBy->name2); ?></a> <td><a class="content" href="<?= UriFactory::build('{/lang}/{/app}/profile/single?for=' . $ticket->task->createdBy->getId()); ?>"><?= $this->printHtml($ticket->task->createdBy->name1); ?> <?= $this->printHtml($ticket->task->createdBy->name2); ?></a>
<td><a class="content" href="<?= $url; ?>"><?= $this->printHtml($ticket->task->createdBy->name1); ?> <?= $this->printHtml($ticket->task->createdBy->name2); ?></a> <td><a class="content" href="<?= $url; ?>"><?= $this->printHtml($ticket->task->createdBy->name1); ?> <?= $this->printHtml($ticket->task->createdBy->name2); ?></a>
<td><a class="content" href="<?= UriFactory::build('profile/single?for=' . $ticket->for->getId()); ?>"><?= $this->printHtml($ticket->for->name1); ?> <?= $this->printHtml($ticket->for->name2); ?></a> <td><a class="content" href="<?= UriFactory::build('{/lang}/{/app}/profile/single?for=' . $ticket->for->getId()); ?>"><?= $this->printHtml($ticket->for->name1); ?> <?= $this->printHtml($ticket->for->name2); ?></a>
<td><a href="<?= $url; ?>"><?= $this->printHtml($ticket->task->createdAt->format('Y-m-d H:i')); ?></a> <td><a href="<?= $url; ?>"><?= $this->printHtml($ticket->task->createdAt->format('Y-m-d H:i')); ?></a>
<?php endforeach; if ($c == 0) : ?> <?php endforeach; if ($c == 0) : ?>
<tr><td colspan="7" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?> <tr><td colspan="7" class="empty"><?= $this->getHtml('Empty', '0', '0'); ?>

View File

@ -88,7 +88,7 @@ echo $this->getData('nav')->render(); ?>
<?php if (!empty($taskMedia)) : ?> <?php if (!empty($taskMedia)) : ?>
<div> <div>
<?php foreach ($taskMedia as $media) : ?> <?php foreach ($taskMedia as $media) : ?>
<span><a class="content" href="<?= UriFactory::build('media/single?id=' . $media->getId());?>"><?= $media->name; ?></a></span> <span><a class="content" href="<?= UriFactory::build('{/lang}/{/app}/media/single?id=' . $media->getId());?>"><?= $media->name; ?></a></span>
<?php endforeach; ?> <?php endforeach; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
@ -245,7 +245,7 @@ echo $this->getData('nav')->render(); ?>
<?php if (!empty($elementMedia)) : ?> <?php if (!empty($elementMedia)) : ?>
<div> <div>
<?php foreach ($elementMedia as $media) : ?> <?php foreach ($elementMedia as $media) : ?>
<span><a class="content" href="<?= UriFactory::build('media/single?id=' . $media->getId());?>"><?= $media->name; ?></a></span> <span><a class="content" href="<?= UriFactory::build('{/lang}/{/app}/media/single?id=' . $media->getId());?>"><?= $media->name; ?></a></span>
<?php endforeach; ?> <?php endforeach; ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
@ -291,10 +291,10 @@ echo $this->getData('nav')->render(); ?>
) : ?> ) : ?>
<section class="portlet wf-100"> <section class="portlet wf-100">
<div class="portlet-body"> <div class="portlet-body">
<a href="<?= UriFactory::build('profile/single?{?}&for=' . $element->taskElement->createdBy->getId()); ?>"><?= $this->printHtml($element->taskElement->createdBy->name1); ?></a> <?= $this->getHtml('forwarded_to'); ?> <a href="<?= UriFactory::build('{/lang}/{/app}/profile/single?{?}&for=' . $element->taskElement->createdBy->getId()); ?>"><?= $this->printHtml($element->taskElement->createdBy->name1); ?></a> <?= $this->getHtml('forwarded_to'); ?>
<?php foreach ($tos as $to) : ?> <?php foreach ($tos as $to) : ?>
<?php if ($to instanceof AccountRelation) : ?> <?php if ($to instanceof AccountRelation) : ?>
<a href="<?= UriFactory::build('profile/single?{?}&for=' . $to->getRelation()->getId()); ?>"><?= $this->printHtml($to->getRelation()->name1); ?></a> <a href="<?= UriFactory::build('{/lang}/{/app}/profile/single?{?}&for=' . $to->getRelation()->getId()); ?>"><?= $this->printHtml($to->getRelation()->name1); ?></a>
<?php elseif ($to instanceof GroupRelation) : ?> <?php elseif ($to instanceof GroupRelation) : ?>
<?= $this->printHtml($to->getRelation()->name); ?> <?= $this->printHtml($to->getRelation()->name); ?>
<?php endif; ?> <?php endif; ?>

View File

@ -70,10 +70,10 @@ class TicketView extends View
$profile = ProfileMapper::get()->with('image')->where('account', $account)->execute(); $profile = ProfileMapper::get()->with('image')->where('account', $account)->execute();
if (($profile instanceof NullProfile) || $profile->image->getPath() === '') { if (($profile instanceof NullProfile) || $profile->image->getPath() === '') {
return UriFactory::build('' . $this->defaultProfileImage->getPath()); return UriFactory::build('{/lang}/{/app}/' . $this->defaultProfileImage->getPath());
} }
return UriFactory::build('' . $profile->image->getPath()); return UriFactory::build('{/lang}/{/app}/' . $profile->image->getPath());
} }
/** /**

View File

@ -12,7 +12,7 @@
}, },
"creator": { "creator": {
"name": "Karaka", "name": "Karaka",
"website": "www.spl1nes.com" "website": "jingga.app"
}, },
"description": "Support module.", "description": "Support module.",
"directory": "Support", "directory": "Support",