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
ad5948c7
Commit
ad5948c7
authored
Sep 26, 2015
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
menu: translate the legacy menu; half of #403
parent
fd00370a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
fbegin.inc
src/www/fbegin.inc
+6
-6
No files found.
src/www/fbegin.inc
View file @
ad5948c7
...
@@ -165,7 +165,7 @@ if($need_alert_display == true) {
...
@@ -165,7 +165,7 @@ if($need_alert_display == true) {
<div
class=
"panel list-group"
style=
"border:0px"
>
<div
class=
"panel list-group"
style=
"border:0px"
>
<?php
<?php
foreach
(
$menuSystem
as
$topMenuItem
)
:
?>
foreach
(
$menuSystem
as
$topMenuItem
)
:
?>
<a
href=
"#
<?=
$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>
<a
href=
"#
<?=
$topMenuItem
->
Id
;
?>
"
class=
"list-group-item
<?=
$topMenuItem
->
Selected
?
'active-menu-title'
:
""
;
?>
"
data-toggle=
"collapse"
data-parent=
"#mainmenu"
><span
class=
"
<?=
$topMenuItem
->
CssClass
;
?>
__iconspacer"
></span>
<?=
gettext
(
$topMenuItem
->
VisibleName
)
;
?>
</a>
<div
class=
"collapse
<?=
$topMenuItem
->
Selected
?
'active-menu in'
:
""
;
?>
"
id=
"
<?=
$topMenuItem
->
Id
;
?>
"
>
<div
class=
"collapse
<?=
$topMenuItem
->
Selected
?
'active-menu in'
:
""
;
?>
"
id=
"
<?=
$topMenuItem
->
Id
;
?>
"
>
<?php
<?php
foreach
(
$topMenuItem
->
Children
as
$subMenuItem
)
:
?>
foreach
(
$topMenuItem
->
Children
as
$subMenuItem
)
:
?>
...
@@ -174,7 +174,7 @@ if($need_alert_display == true) {
...
@@ -174,7 +174,7 @@ if($need_alert_display == true) {
<
a
href
=
"#<?=
$topMenuItem->Id
;?>_<?=
$subMenuItem->Id
;?>"
class
="
list
-
group
-
item
<?=
$subMenuItem
->
Selected
?
"active-menu-title"
:
""
;
?>
" data-toggle="collapse" data-parent="#
<?=
$topMenuItem
->
Id
;
?>
">
<
a
href
=
"#<?=
$topMenuItem->Id
;?>_<?=
$subMenuItem->Id
;?>"
class
="
list
-
group
-
item
<?=
$subMenuItem
->
Selected
?
"active-menu-title"
:
""
;
?>
" data-toggle="collapse" data-parent="#
<?=
$topMenuItem
->
Id
;
?>
">
<div
style=
"display: table;width: 100%;"
>
<div
style=
"display: table;width: 100%;"
>
<div
style=
"display: table-row"
>
<div
style=
"display: table-row"
>
<div
style=
"display: table-cell"
>
<?=
$subMenuItem
->
VisibleName
;
?>
</div>
<div
style=
"display: table-cell"
>
<?=
gettext
(
$subMenuItem
->
VisibleName
)
;
?>
</div>
<div
style=
"display: table-cell; text-align:right; vertical-align:middle;"
><span
class=
"
<?=
$subMenuItem
->
CssClass
;
?>
"
></span></div>
<div
style=
"display: table-cell; text-align:right; vertical-align:middle;"
><span
class=
"
<?=
$subMenuItem
->
CssClass
;
?>
"
></span></div>
</div>
</div>
</div>
</div>
...
@@ -184,10 +184,10 @@ if($need_alert_display == true) {
...
@@ -184,10 +184,10 @@ if($need_alert_display == true) {
foreach
(
$subMenuItem
->
Children
as
$subsubMenuItem
)
:?>
foreach
(
$subMenuItem
->
Children
as
$subsubMenuItem
)
:?>
<?
php
<?
php
if
(
$subsubMenuItem
->
IsExternal
==
"Y"
)
:?>
if
(
$subsubMenuItem
->
IsExternal
==
"Y"
)
:?>
<
a
href
=
"<?=
$subsubMenuItem->Url
;?>"
target
=
"_new"
class
="
list
-
group
-
item
menu
-
level
-
3
-
item
<?=
$subsubMenuItem
->
Selected
?
"active"
:
""
;
?>
">
<?=
$subsubMenuItem
->
VisibleName
;
?>
</a>
<
a
href
=
"<?=
$subsubMenuItem->Url
;?>"
target
=
"_new"
class
="
list
-
group
-
item
menu
-
level
-
3
-
item
<?=
$subsubMenuItem
->
Selected
?
"active"
:
""
;
?>
">
<?=
gettext
(
$subsubMenuItem
->
VisibleName
)
;
?>
</a>
<?php
<?php
elseif
(
$aclObj
->
isPageAccessible
(
$_SESSION
[
'Username'
],
$subsubMenuItem
->
Url
))
:?>
elseif
(
$aclObj
->
isPageAccessible
(
$_SESSION
[
'Username'
],
$subsubMenuItem
->
Url
))
:?>
<
a
href
=
"<?=
$subsubMenuItem->Url
;?>"
class
="
list
-
group
-
item
menu
-
level
-
3
-
item
<?=
$subsubMenuItem
->
Selected
?
"active"
:
""
;
?>
">
<?=
$subsubMenuItem
->
VisibleName
;
?>
</a>
<
a
href
=
"<?=
$subsubMenuItem->Url
;?>"
class
="
list
-
group
-
item
menu
-
level
-
3
-
item
<?=
$subsubMenuItem
->
Selected
?
"active"
:
""
;
?>
">
<?=
gettext
(
$subsubMenuItem
->
VisibleName
)
;
?>
</a>
<?php
<?php
endif
;
endif
;
endforeach
;
?>
endforeach
;
?>
...
@@ -197,7 +197,7 @@ if($need_alert_display == true) {
...
@@ -197,7 +197,7 @@ if($need_alert_display == true) {
<
a
href
=
"<?=
$subMenuItem->Url
;?>"
target
=
"_new"
class
="
list
-
group
-
item
<?=
$subMenuItem
->
Selected
?
"active"
:
""
;
?>
">
<
a
href
=
"<?=
$subMenuItem->Url
;?>"
target
=
"_new"
class
="
list
-
group
-
item
<?=
$subMenuItem
->
Selected
?
"active"
:
""
;
?>
">
<div
style=
"display: table;width: 100%;"
>
<div
style=
"display: table;width: 100%;"
>
<div
style=
"display: table-row"
>
<div
style=
"display: table-row"
>
<div
style=
"display: table-cell"
>
<?=
$subMenuItem
->
VisibleName
;
?>
</div>
<div
style=
"display: table-cell"
>
<?=
gettext
(
$subMenuItem
->
VisibleName
)
;
?>
</div>
<div
style=
"display: table-cell; text-align:right; vertical-align:middle;"
><span
class=
"
<?=
$subMenuItem
->
CssClass
;
?>
"
></span></div>
<div
style=
"display: table-cell; text-align:right; vertical-align:middle;"
><span
class=
"
<?=
$subMenuItem
->
CssClass
;
?>
"
></span></div>
</div>
</div>
</div>
</div>
...
@@ -207,7 +207,7 @@ if($need_alert_display == true) {
...
@@ -207,7 +207,7 @@ if($need_alert_display == true) {
<
a
href
=
"<?=
$subMenuItem->Url
;?>"
class
="
list
-
group
-
item
<?=
$subMenuItem
->
Selected
?
"active"
:
""
;
?>
">
<
a
href
=
"<?=
$subMenuItem->Url
;?>"
class
="
list
-
group
-
item
<?=
$subMenuItem
->
Selected
?
"active"
:
""
;
?>
">
<div
style=
"display: table;width: 100%;"
>
<div
style=
"display: table;width: 100%;"
>
<div
style=
"display: table-row"
>
<div
style=
"display: table-row"
>
<div
style=
"display: table-cell"
>
<?=
$subMenuItem
->
VisibleName
;
?>
</div>
<div
style=
"display: table-cell"
>
<?=
gettext
(
$subMenuItem
->
VisibleName
)
;
?>
</div>
<div
style=
"display: table-cell; text-align:right; vertical-align:middle;"
><span
class=
"
<?=
$subMenuItem
->
CssClass
;
?>
"
></span></div>
<div
style=
"display: table-cell; text-align:right; vertical-align:middle;"
><span
class=
"
<?=
$subMenuItem
->
CssClass
;
?>
"
></span></div>
</div>
</div>
</div>
</div>
...
...
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