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
36128b30
Commit
36128b30
authored
Jun 17, 2022
by
Kevin Yumang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SERV-2286 - Sidebar navigation menu implementation
parent
5c659225
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
136 additions
and
4 deletions
+136
-4
Home.blade.php
src/Views/Limitless/Help/Pages/Home.blade.php
+34
-4
Config.php
src/Views/Limitless/Navigation/Config.php
+54
-0
NavigationAutoFillMenu.blade.php
...ews/Limitless/Navigation/NavigationAutoFillMenu.blade.php
+48
-0
No files found.
src/Views/Limitless/Help/Pages/Home.blade.php
View file @
36128b30
{{
--
Layout
Reference
--
}}
@
extends
(
'Limitless::Help.Layout.Master'
)
@
section
(
'Limitless::SidebarContent'
)
@
Limitless
::
NavigationAutoFillMenu
([
[
'header'
=>
'Main'
,
'menu'
=>
[
[
'name'
=>
'Home'
,
'link'
=>
'#'
,
'icon'
=>
'icon-home4'
],
[
'name'
=>
'Elements'
,
'icon'
=>
'icon-puzzle2'
,
'submenu'
=>
[
[
'name'
=>
'Code Mirror'
,
'link'
=>
'#'
,
'icon'
=>
'icon-file-css'
],
[
'name'
=>
'Example'
,
'link'
=>
'#'
,
'icon'
=>
'icon-file-text3'
],
[
'name'
=>
'Table'
,
'link'
=>
'#'
,
'icon'
=>
'icon-table2'
]
]
]
]
],
[
'header'
=>
'Test Additional Menu Group'
,
'menu'
=>
[
[
'name'
=>
'A'
,
'link'
=>
'#'
,
'icon'
=>
'icon-home4'
],
[
'name'
=>
'B'
,
'link'
=>
'#'
,
'icon'
=>
'icon-file-css'
],
[
'name'
=>
'C'
,
'link'
=>
'#'
,
'icon'
=>
'icon-file-empty'
],
[
'name'
=>
'D'
,
'link'
=>
'#'
,
'icon'
=>
'icon-table2'
],
[
'name'
=>
'E'
,
'icon'
=>
'icon-list'
,
'submenu'
=>
[
[
'name'
=>
'E1'
,
'link'
=>
'#'
,
'icon'
=>
'icon-list'
],
[
'name'
=>
'E2'
,
'link'
=>
'#'
,
'icon'
=>
'icon-list'
],
]
]
]
]
])
@
stop
@
section
(
'Limitless::Content'
)
...
...
@@ -12,10 +44,8 @@
The
raw
design
is
available
via
the
emulated
<
a
target
=
"_blank"
href
=
"
{
{secure_url('/ceetrox/sidekick/resource/public/Webdesigns/design-limitless/Template/layout_1/LTR/dark/full/index.html')}
}
"
>
<
u
>
CDN
</
u
>
</
a
>
of
the
<
i
>
ceetrox
/
sidekick
</
i
>
package
.
@
Limitless
::
ElementCardStop
@
Limitless
::
ElementCardStart
([
'title'
=>
"Codemirror Test"
]
)
@
Limitless
::
Codemirror
([
'language'
=>
'javascript'
,
'theme'
=>
'zenburn'
,
'value'
=>
'Hello World!'
])
@
Limitless
::
ElementCardStart
([
'title'
=>
"Codemirror Test"
,
'icon'
=>
'icon-file-empty'
]
)
{{
--
@
Limitless
::
Codemirror
([
'language'
=>
'javascript'
,
'theme'
=>
'zenburn'
,
'value'
=>
'Hello World!'
])
--
}}
@
Limitless
::
ElementCardStop
...
...
src/Views/Limitless/Navigation/Config.php
0 → 100644
View file @
36128b30
<?php
/*
|------------------------------------------------------------------------------------------------
| Information
|------------------------------------------------------------------------------------------------
|
| This file is beautified by the command "sidekick:CodebeautifierCommand" of the ceetrox
| sidekick package.
|
| Author: Kevin Almond Roe Yumang <kevin.yumang@itmax.email>
| Update: 2022-06-17 01:45:33
|
*/
namespace
Ceetrox\Sidekick\Views\Limitless\Navigation
;
/*
|------------------------------------------------------------------------------------------------
| Dependencies
|------------------------------------------------------------------------------------------------
*/
use
View
;
/*
|------------------------------------------------------------------------------------------------
| Class "Config"
|------------------------------------------------------------------------------------------------
*/
class
Config
{
public
$methodAllocation
=
[
'Limitless::NavigationAutoFillMenu'
=>
'navigationAutoFillMenu'
,
];
/*
|--------------------------------------------------------------------------------------------
| Method "navigationAutoFillMenu"
|--------------------------------------------------------------------------------------------
*/
public
function
navigationAutoFillMenu
(
$parameters
)
{
return
View
(
'Limitless::Navigation.NavigationAutoFillMenu'
)
->
withData
(
(
!
empty
(
$parameters
))
?
$parameters
:
[]
);
}
}
src/Views/Limitless/Navigation/NavigationAutoFillMenu.blade.php
0 → 100644
View file @
36128b30
@
if
(
!
empty
(
$data
)
)
<
ul
class
="
nav
nav
-
sidebar
" data-nav-type="
accordion
">
{{-- menu group --}}
@foreach(
$data
as
$menuGroup
)
@if(isset(
$menuGroup['header']
))
<li class="
nav
-
item
-
header
">
<div class="
text
-
uppercase
font
-
size
-
xs
line
-
height
-
xs
">
{{
$menuGroup['header']
}}
</div> <i class="
icon
-
menu
" title="
Layout
options
"></i>
</li>
@endif
{{-- main menu --}}
@foreach(
$menuGroup['menu']
as
$menu
)
<li class="
nav
-
item
{{
isset
(
$menu
[
'submenu'
])
&&
count
(
$menu
[
'submenu'
])
>
0
?
'nav-item-submenu'
:
''
}}
">
<a href="
{{
$menu
[
'link'
]
??
'#'
}}
" class="
nav
-
link
">
<i class="
{{
$menu
[
'icon'
]
??
'icon-primitive-dot'
}}
"></i>
<span>
{{
$menu['name']
}}
</span>
</a>
{{-- sub menu --}}
@if(isset(
$menu['submenu']
) && count(
$menu['submenu']
) > 0)
<ul class="
nav
nav
-
group
-
sub
" data-submenu-title="
{{
$menu
[
'name'
]
}}
" style="
display
:
none
;
">
@foreach(
$menu['submenu']
as
$submenu
)
<li class="
nav
-
item
">
<a href="
{{
$submenu
[
'link'
]
??
'#'
}}
" class="
nav
-
link
">
<i class="
{{
$submenu
[
'icon'
]
??
'icon-primitive-dot'
}}
"></i>
<span>
{{
$submenu['name']
}}
</span>
</a>
</li>
@endforeach
</ul>
@endif
</li>
@endforeach
@endforeach
</ul>
@endif
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