mirror of
https://github.com/Karaka-Management/oms-Calendar.git
synced 2026-02-12 22:48:40 +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,
|
"id": 1000901001,
|
||||||
"pid": "/backend",
|
"pid": "/",
|
||||||
"type": 1,
|
"type": 1,
|
||||||
"subtype": 1,
|
"subtype": 1,
|
||||||
"name": "Calendar",
|
"name": "Calendar",
|
||||||
"uri": "{/lang}/backend/calendar/dashboard?{?}",
|
"uri": "{/prefix}calendar/dashboard?{?}",
|
||||||
"target": "self",
|
"target": "self",
|
||||||
"icon": "fa fa-calendar",
|
"icon": "fa fa-calendar",
|
||||||
"order": 10,
|
"order": 10,
|
||||||
|
|
@ -16,11 +16,11 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 1000901002,
|
"id": 1000901002,
|
||||||
"pid": "/backend",
|
"pid": "/",
|
||||||
"type": 2,
|
"type": 2,
|
||||||
"subtype": 1,
|
"subtype": 1,
|
||||||
"name": "Calendar",
|
"name": "Calendar",
|
||||||
"uri": "{/lang}/backend/calendar/dashboard?{?}",
|
"uri": "{/prefix}calendar/dashboard?{?}",
|
||||||
"target": "self",
|
"target": "self",
|
||||||
"icon": null,
|
"icon": null,
|
||||||
"order": 30,
|
"order": 30,
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ use phpOMS\Account\PermissionType;
|
||||||
use phpOMS\Router\RouteVerb;
|
use phpOMS\Router\RouteVerb;
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'^.*/backend/calendar/dashboard.*$' => [
|
'^.*/calendar/dashboard.*$' => [
|
||||||
[
|
[
|
||||||
'dest' => '\Modules\Calendar\Controller\BackendController:viewCalendarDashboard',
|
'dest' => '\Modules\Calendar\Controller\BackendController:viewCalendarDashboard',
|
||||||
'verb' => RouteVerb::GET,
|
'verb' => RouteVerb::GET,
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,8 @@ $calendar = $this->getData('calendar');
|
||||||
<div class="col-xs-12 col-md-9">
|
<div class="col-xs-12 col-md-9">
|
||||||
<div class="box wf-100">
|
<div class="box wf-100">
|
||||||
<ul class="btns floatLeft">
|
<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('{/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('{/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-right"></i></a>
|
||||||
</ul>
|
</ul>
|
||||||
<ul class="btns floatRight">
|
<ul class="btns floatRight">
|
||||||
<li><a href=""><?= $this->getHtml('Day'); ?></a>
|
<li><a href=""><?= $this->getHtml('Day'); ?></a>
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@
|
||||||
"load": [
|
"load": [
|
||||||
{
|
{
|
||||||
"pid": [
|
"pid": [
|
||||||
"/backend/calendar"
|
"/calendar"
|
||||||
],
|
],
|
||||||
"type": 4,
|
"type": 4,
|
||||||
"for": "Content",
|
"for": "Content",
|
||||||
|
|
@ -34,7 +34,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"pid": [
|
"pid": [
|
||||||
"/backend"
|
"/"
|
||||||
],
|
],
|
||||||
"type": 5,
|
"type": 5,
|
||||||
"from": "Calendar",
|
"from": "Calendar",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user