Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
S
sidekick
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Privat - Marco Schmiedel
sidekick
Commits
c93f95b0
Commit
c93f95b0
authored
Jul 01, 2022
by
Kevin Yumang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SERV-2286 - script for active menu. ok
parent
e1749d92
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
9 deletions
+31
-9
Master.blade.php
src/Views/Limitless/Help/Layout/Master.blade.php
+1
-1
Config.php
src/Views/Limitless/Navigation/Config.php
+19
-8
navigation.js
src/Views/Limitless/Navigation/navigation.js
+11
-0
No files found.
src/Views/Limitless/Help/Layout/Master.blade.php
View file @
c93f95b0
...
...
@@ -24,7 +24,7 @@
@
section
(
'Limitless::SidebarContent'
)
@
Limitless
::
NavigationStart
@
Limitless
::
NavigationMenuItem
([
'url'
=>
'
/
'
,
'target'
=>
'_self'
,
'icon'
=>
'icon-home2'
,
'title'
=>
'Home'
])
@
Limitless
::
NavigationMenuItem
([
'url'
=>
''
,
'target'
=>
'_self'
,
'icon'
=>
'icon-home2'
,
'title'
=>
'Home'
])
@
Limitless
::
NavigationMenuStart
([
'title'
=>
'Elements'
,
'icon'
=>
'icon-grid5'
])
@
Limitless
::
NavigationMenuItem
([
'url'
=>
'?page=Element.Example'
,
'target'
=>
'_self'
,
'icon'
=>
'icon-exclamation'
,
'title'
=>
'Example'
])
@
Limitless
::
NavigationMenuItem
([
'url'
=>
'?page=Element.Alert'
,
'target'
=>
'_self'
,
'icon'
=>
'icon-bubble-notification'
,
'title'
=>
'Alert'
])
...
...
src/Views/Limitless/Navigation/Config.php
View file @
c93f95b0
...
...
@@ -40,6 +40,17 @@ class Config
'Limitless::NavigationMenuStop'
=>
'navigationMenuStop'
,
];
public
$assetAllocation
;
public
function
__construct
()
{
$this
->
assetAllocation
=
[
'Limitless::NavigationStart'
=>
[
'navigation.js'
]
];
}
/*
|--------------------------------------------------------------------------------------------
...
...
@@ -49,7 +60,7 @@ class Config
public
function
navigationMenuSectionTitle
(
$parameters
)
{
return
View
(
'Limitless::Navigation.NavigationMenuSectionTitle'
)
->
withTitle
(
(
isset
(
$parameters
[
'title'
])
?
$parameters
[
'title'
]
:
'No Title'
)
);
->
withTitle
(
(
$parameters
[
'title'
]
??
'No Title'
)
);
}
...
...
@@ -62,10 +73,10 @@ class Config
public
function
navigationMenuItem
(
$parameters
)
{
return
View
(
'Limitless::Navigation.NavigationMenuItem'
)
->
withUrl
(
(
isset
(
$parameters
[
'url'
])
?
$parameters
[
'url'
]
:
'#'
)
)
->
withTarget
(
(
isset
(
$parameters
[
'target'
])
?
$parameters
[
'target'
]
:
'_self'
)
)
->
withIcon
(
(
isset
(
$parameters
[
'icon'
])
?
$parameters
[
'icon'
]
:
'icon-primitive-dot'
)
)
->
withTitle
(
(
isset
(
$parameters
[
'title'
])
?
$parameters
[
'title'
]
:
'No Title'
)
);
->
withUrl
(
(
$parameters
[
'url'
]
??
'#'
)
)
->
withTarget
(
(
$parameters
[
'target'
]
??
'_self'
)
)
->
withIcon
(
(
$parameters
[
'icon'
]
??
'icon-primitive-dot'
)
)
->
withTitle
(
(
$parameters
[
'title'
]
??
'No Title'
)
);
}
...
...
@@ -78,7 +89,7 @@ class Config
public
function
navigationStart
(
$parameters
)
{
return
View
(
'Limitless::Navigation.NavigationStart'
)
->
withExtra
(
(
isset
(
$parameters
[
'extra'
])
?
$parameters
[
'extra'
]
:
[]
)
);
->
withExtra
(
(
$parameters
[
'extra'
]
??
[]
)
);
}
...
...
@@ -103,8 +114,8 @@ class Config
public
function
navigationMenuStart
(
$parameters
)
{
return
View
(
'Limitless::Navigation.NavigationMenuStart'
)
->
withIcon
(
(
isset
(
$parameters
[
'icon'
])
?
$parameters
[
'icon'
]
:
'icon-primitive-dot'
)
)
->
withTitle
(
(
isset
(
$parameters
[
'title'
])
?
$parameters
[
'title'
]
:
'No Title'
)
);
->
withIcon
(
(
$parameters
[
'icon'
]
??
'icon-primitive-dot'
)
)
->
withTitle
(
(
$parameters
[
'title'
]
??
'No Title'
)
);
}
...
...
src/Views/Limitless/Navigation/navigation.js
0 → 100644
View file @
c93f95b0
$
(
document
).
ready
(
function
()
{
$
(
'
.sidebar-content .nav-link
'
).
each
(
function
()
{
if
(
window
.
location
.
search
==
$
(
this
).
attr
(
'
href
'
))
{
$
(
this
).
addClass
(
'
active
'
)
$
(
this
).
parents
(
'
.nav-item-submenu
'
).
addClass
(
'
nav-item-open
'
);
$
(
this
).
parents
(
'
.nav-group-sub
'
).
css
(
"
display
"
,
"
block
"
);
}
});
})
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment