mirror of
https://github.com/Karaka-Management/oms-Calendar.git
synced 2026-01-11 15:18:44 +00:00
Make app,localization in url optional+tld+subdomain
This commit is contained in:
parent
71c0efb5bb
commit
d8ad7319e8
|
|
@ -1,11 +1,11 @@
|
|||
[
|
||||
{
|
||||
"id": 1000901001,
|
||||
"pid": "/backend",
|
||||
"pid": "/",
|
||||
"type": 1,
|
||||
"subtype": 1,
|
||||
"name": "Calendar",
|
||||
"uri": "{/lang}/backend/calendar/dashboard?{?}",
|
||||
"uri": "{/prefix}calendar/dashboard?{?}",
|
||||
"target": "self",
|
||||
"icon": "fa fa-calendar",
|
||||
"order": 10,
|
||||
|
|
@ -16,11 +16,11 @@
|
|||
},
|
||||
{
|
||||
"id": 1000901002,
|
||||
"pid": "/backend",
|
||||
"pid": "/",
|
||||
"type": 2,
|
||||
"subtype": 1,
|
||||
"name": "Calendar",
|
||||
"uri": "{/lang}/backend/calendar/dashboard?{?}",
|
||||
"uri": "{/prefix}calendar/dashboard?{?}",
|
||||
"target": "self",
|
||||
"icon": null,
|
||||
"order": 30,
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ use phpOMS\Account\PermissionType;
|
|||
use phpOMS\Router\RouteVerb;
|
||||
|
||||
return [
|
||||
'^.*/backend/calendar/dashboard.*$' => [
|
||||
'^.*/calendar/dashboard.*$' => [
|
||||
[
|
||||
'dest' => '\Modules\Calendar\Controller\BackendController:viewCalendarDashboard',
|
||||
'verb' => RouteVerb::GET,
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@ $calendar = $this->getData('calendar');
|
|||
<div class="col-xs-12 col-md-9">
|
||||
<div class="box wf-100">
|
||||
<ul class="btns floatLeft">
|
||||
<li><a href="<?= $this->printHtml(\phpOMS\Uri\UriFactory::build('{/lang}/backend/calendar/dashboard?date=' . $calendar->getDate()->createModify(0, -1, 0)->format('Y-m-d'))); ?>"><i class="fa fa-arrow-left"></i></a>
|
||||
<li><a href="<?= $this->printHtml(\phpOMS\Uri\UriFactory::build('{/lang}/backend/calendar/dashboard?date=' . $calendar->getDate()->createModify(0, 1, 0)->format('Y-m-d'))); ?>"><i class="fa fa-arrow-right"></i></a>
|
||||
<li><a href="<?= $this->printHtml(\phpOMS\Uri\UriFactory::build('{/prefix}calendar/dashboard?date=' . $calendar->getDate()->createModify(0, -1, 0)->format('Y-m-d'))); ?>"><i class="fa fa-arrow-left"></i></a>
|
||||
<li><a href="<?= $this->printHtml(\phpOMS\Uri\UriFactory::build('{/prefix}calendar/dashboard?date=' . $calendar->getDate()->createModify(0, 1, 0)->format('Y-m-d'))); ?>"><i class="fa fa-arrow-right"></i></a>
|
||||
</ul>
|
||||
<ul class="btns floatRight">
|
||||
<li><a href=""><?= $this->getHtml('Day'); ?></a>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user