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
79a08f87
Commit
79a08f87
authored
Mar 14, 2016
by
Ad Schellevis
Committed by
Franco Fichtner
Mar 15, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
whitespace
(cherry picked from commit
d9d87849
)
parent
709795a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
64 additions
and
61 deletions
+64
-61
foot.inc
src/www/foot.inc
+64
-61
No files found.
src/www/foot.inc
View file @
79a08f87
<footer
class=
"page-foot col-sm-push-2"
>
<footer
class=
"page-foot col-sm-push-2"
>
<div
class=
"container-fluid"
>
<div
class=
"container-fluid"
>
<a
target=
"_blank"
href=
"
<?=
$g
[
'product_website'
]
?>
"
class=
"redlnk"
>
<?=
$g
[
'product_name'
]
?>
</a>
(c)
<a
target=
"_blank"
href=
"
<?=
$g
[
'product_website'
]
?>
"
class=
"redlnk"
>
<?=
$g
[
'product_name'
]
?>
</a>
(c)
<?=
$g
[
'product_copyright_years'
]
?>
<a
href=
"
<?=
$g
[
'product_copyright_url'
]
?>
"
class=
"tblnk"
>
<?=
$g
[
'product_copyright_owner'
]
?>
</a>
<?=
$g
[
'product_copyright_years'
]
?>
<a
href=
"
<?=
$g
[
'product_copyright_url'
]
?>
"
class=
"tblnk"
>
<?=
$g
[
'product_copyright_owner'
]
?>
</a>
</div>
</div>
</footer>
</footer>
</div>
</div>
<!-- /row-->
<!-- /row-->
</main>
</main>
<?php
if
(
isset
(
$widgetfiles
))
:
$widgetfiles_add
=
$widgetfiles
;
sort
(
$widgetfiles_add
);
<?php
if
(
isset
(
$widgetfiles
))
:
?>
$widgetfiles_add
=
$widgetfiles
;
<div
class=
"modal fade"
id=
"modal_widgets"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"modal_widgets_label"
aria-hidden=
"true"
>
sort
(
$widgetfiles_add
);
<div
class=
"modal-dialog"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
><span
aria-hidden=
"true"
>
×
</span><span
class=
"sr-only"
>
Close
</span></button>
<h4
class=
"modal-title"
id=
"modal_widgets_label"
>
<?=
gettext
(
"Available Widgets"
);
?>
</h4>
</div>
?>
<div
class=
"modal-body"
>
<div
class=
"modal fade"
id=
"modal_widgets"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"modal_widgets_label"
aria-hidden=
"true"
>
<table
class=
"table table-striped table-hover"
>
<div
class=
"modal-dialog"
>
<?php
<div
class=
"modal-content"
>
foreach
(
$widgetfiles_add
as
$widget
)
:
<div
class=
"modal-header"
>
if
(
!
stristr
(
$widget
,
"widget.php"
))
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
><span
aria-hidden=
"true"
>
×
</span><span
class=
"sr-only"
>
Close
</span></button>
continue
;
<h4
class=
"modal-title"
id=
"modal_widgets_label"
>
<?=
gettext
(
"Available Widgets"
);
?>
</h4>
</div>
<div
class=
"modal-body"
>
$periodpos
=
strpos
(
$widget
,
"."
);
<table
class=
"table table-striped table-hover"
>
$widgetname
=
substr
(
$widget
,
0
,
$periodpos
);
<?php
$nicename
=
$widgetname
;
foreach
(
$widgetfiles_add
as
$widget
)
:
$nicename
=
str_replace
(
"_"
,
" "
,
$nicename
);
if
(
!
stristr
(
$widget
,
"widget.php"
))
//make the title look nice
continue
;
$nicename
=
ucwords
(
$nicename
)
;
$periodpos
=
strpos
(
$widget
,
"."
);
$widgettitle
=
$widgetname
.
"_title"
;
$widgetname
=
substr
(
$widget
,
0
,
$periodpos
);
$widgettitlelink
=
$widgetname
.
"_title_link"
;
$nicename
=
$widgetname
;
if
(
isset
(
$$widgettitle
))
:?>
$nicename
=
str_replace
(
"_"
,
" "
,
$nicename
);
<
tr
>
//make the title look nice
<
td
style
=
"cursor: pointer;"
onclick
=
'return addWidget("<?=$widgetname; ?>")'
><?=
$$widgettitle
;
?>
</td>
$nicename
=
ucwords
(
$nicename
);
</tr>
<?php
elseif
(
$nicename
!=
""
)
:
?>
<tr>
<td
style=
"cursor: pointer;"
onclick=
'return addWidget("
<?=
$widgetname
;
?>
")'
>
<?=
$nicename
;
?>
</td>
</tr>
<?php
endif
;
endforeach
;
?>
</table>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
Close
</button>
</div>
</div>
<!-- /modal-content -->
</div>
<!-- /modal-dialog -->
</div>
<!-- /modal -->
<?php
endif
;
?>
$widgettitle
=
$widgetname
.
"_title"
;
<!-- bootstrap script -->
$widgettitlelink
=
$widgetname
.
"_title_link"
;
<script
type=
"text/javascript"
src=
"/ui/js/bootstrap.min.js"
></script>
if
(
isset
(
$$widgettitle
))
:
<!-- Fancy select with search options -->
?>
<script
type=
"text/javascript"
src=
"/ui/js/bootstrap-select.min.js"
></script>
<!-- bootstrap dialog -->
<script
src=
"/ui/js/bootstrap-dialog.min.js"
></script>
<tr><td
style=
"cursor: pointer;"
onclick=
'return addWidget("
<?php
echo
$widgetname
;
?>
")'
>
<?php
echo
$$widgettitle
;
?>
</td></tr>
</body>
<?php
elseif
(
$nicename
!=
""
)
:
?>
<tr><td
style=
"cursor: pointer;"
onclick=
'return addWidget("
<?php
echo
$widgetname
;
?>
")'
>
<?php
echo
$nicename
;
?>
</td></tr>
<?php
endif
;
endforeach
;
?>
</table>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
Close
</button>
</div>
</div>
<!-- /modal-content -->
</div>
<!-- /modal-dialog -->
</div>
<!-- /modal -->
<?php
endif
;
?>
<!-- bootstrap script -->
<script
type=
"text/javascript"
src=
"/ui/js/bootstrap.min.js"
></script>
<!-- Fancy select with search options -->
<script
type=
"text/javascript"
src=
"/ui/js/bootstrap-select.min.js"
></script>
<!-- bootstrap dialog -->
<script
src=
"/ui/js/bootstrap-dialog.min.js"
></script>
</body>
</html>
</html>
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