Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
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
Kulya
OpnSense
Commits
2eba7f96
Commit
2eba7f96
authored
Aug 28, 2015
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(menu/legacy) stylefix on menu code, no new functionality just make it a bit better readable
parent
7b64c595
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
12 deletions
+19
-12
fbegin.inc
src/www/fbegin.inc
+19
-12
No files found.
src/www/fbegin.inc
View file @
2eba7f96
...
...
@@ -163,18 +163,25 @@ if($need_alert_display == true) {
<nav
class=
"page-side-nav"
role=
"navigation"
>
<div
id=
"mainmenu"
class=
"panel"
style=
"border:0px"
>
<div
class=
"panel list-group"
style=
"border:0px"
>
<?php
foreach
(
$menuSystem
as
$topMenuItem
)
:
?>
<a
href=
"#
<?php
echo
$topMenuItem
->
Id
;
?>
"
class=
"list-group-item
<?php
if
(
$topMenuItem
->
Selected
)
echo
'active-menu-title'
;
?>
"
data-toggle=
"collapse"
data-parent=
"#mainmenu"
><span
class=
"
<?php
echo
$topMenuItem
->
CssClass
;
?>
__iconspacer"
></span>
<?php
echo
$topMenuItem
->
VisibleName
;
?>
</a>
<div
class=
"collapse
<?php
if
(
$topMenuItem
->
Selected
)
echo
'active-menu in'
;
?>
"
id=
"
<?php
echo
$topMenuItem
->
Id
;
?>
"
>
<?php
foreach
(
$topMenuItem
->
Children
as
$subMenuItem
)
:
?>
<?php
if
(
$subMenuItem
->
IsExternal
==
"Y"
)
:?>
<
a
href
=
"<?php echo
$subMenuItem->Url
;?>"
target
=
"_new"
class
="
list
-
group
-
item
<?
php
if
(
$subMenuItem
->
Selected
)
echo
"active"
;
?>
">
<?php
echo
$subMenuItem
->
VisibleName
?>
</a>
<?php
elseif
(
$aclObj
->
isPageAccessible
(
$_SESSION
[
'Username'
],
$subMenuItem
->
Url
))
:?>
<
a
href
=
"<?php echo
$subMenuItem->Url
;?>"
class
="
list
-
group
-
item
<?
php
if
(
$subMenuItem
->
Selected
)
echo
"active"
;
?>
">
<?php
echo
$subMenuItem
->
VisibleName
;
?>
</a>
<?php
endif
;
?>
<?php
endforeach
;
?>
</div>
<?php
endforeach
;
?>
<?php
foreach
(
$menuSystem
as
$topMenuItem
)
:
?>
<a
href=
"#
<?php
echo
$topMenuItem
->
Id
;
?>
"
class=
"list-group-item
<?=
$topMenuItem
->
Selected
?
'active-menu-title'
:
""
;
?>
"
data-toggle=
"collapse"
data-parent=
"#mainmenu"
><span
class=
"
<?=
$topMenuItem
->
CssClass
;
?>
__iconspacer"
></span>
<?=
$topMenuItem
->
VisibleName
;
?>
</a>
<div
class=
"collapse
<?=
$topMenuItem
->
Selected
?
'active-menu in'
:
""
;
?>
"
id=
"
<?=
$topMenuItem
->
Id
;
?>
"
>
<?php
foreach
(
$topMenuItem
->
Children
as
$subMenuItem
)
:
?>
<?php
if
(
$subMenuItem
->
IsExternal
==
"Y"
)
:?>
<
a
href
=
"<?=
$subMenuItem->Url
;?>"
target
=
"_new"
class
="
list
-
group
-
item
<?=
$subMenuItem
->
Selected
?
"active"
:
""
;
?>
">
<?=
$subMenuItem
->
VisibleName
?>
</a>
<?php
elseif
(
$aclObj
->
isPageAccessible
(
$_SESSION
[
'Username'
],
$subMenuItem
->
Url
))
:?>
<
a
href
=
"<?=
$subMenuItem->Url
;?>"
class
="
list
-
group
-
item
<?=
$subMenuItem
->
Selected
?
"active"
:
""
;
?>
">
<?=
$subMenuItem
->
VisibleName
;
?>
</a>
<?php
endif
;
?>
<?php
endforeach
;
?>
</div>
<?php
endforeach
;
?>
</div>
</div>
</nav>
...
...
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