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
45713f1d
Commit
45713f1d
authored
Aug 03, 2015
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(mvc) add theme to new components
parent
b3e5b9a6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
8 deletions
+13
-8
ControllerBase.php
...ense/mvc/app/controllers/OPNsense/Base/ControllerBase.php
+5
-0
default.volt
src/opnsense/mvc/app/views/layouts/default.volt
+8
-8
No files found.
src/opnsense/mvc/app/controllers/OPNsense/Base/ControllerBase.php
View file @
45713f1d
...
...
@@ -212,6 +212,11 @@ class ControllerBase extends ControllerRoot
$this
->
view
->
menuSystem
=
$menu
->
getItems
(
"/ui"
.
$this
->
router
->
getRewriteUri
());
// set theme in ui_theme template var
if
(
$cnf
->
object
()
->
theme
!=
null
)
{
$this
->
view
->
ui_theme
=
$cnf
->
object
()
->
theme
;
}
// append ACL object to view
$this
->
view
->
acl
=
new
\OPNsense\Core\ACL
();
}
...
...
src/opnsense/mvc/app/views/layouts/default.volt
View file @
45713f1d
...
...
@@ -16,13 +16,16 @@
<title>
{{title|default("OPNsense") }}
</title>
<!-- include (theme) style -->
<link
href=
"/ui/themes/
opnsense
/build/css/main.css"
media=
"screen, projection"
rel=
"stylesheet"
>
<link
href=
"/ui/themes/
{{ui_theme|default('opnsense')}}
/build/css/main.css"
media=
"screen, projection"
rel=
"stylesheet"
>
<!-- Favicon -->
<link
href=
"/ui/themes/
opnsense
/build/images/favicon.png"
rel=
"shortcut icon"
>
<link
href=
"/ui/themes/
{{ui_theme|default('opnsense')}}
/build/images/favicon.png"
rel=
"shortcut icon"
>
<!-- Stylesheet for fancy select/dropdown -->
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/ui/themes/opnsense/build/css/bootstrap-select.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/ui/themes/{{ui_theme|default('opnsense')}}/build/css/bootstrap-select.css"
>
<!-- bootstrap dialog -->
<link
href=
"/ui/themes/{{ui_theme|default('opnsense')}}/build/css/bootstrap-dialog.css"
rel=
"stylesheet"
type=
"text/css"
/>
<!-- Font awesome -->
<link
rel=
"stylesheet"
href=
"/ui/css/font-awesome.min.css"
>
...
...
@@ -55,9 +58,6 @@
</script>
<!-- bootstrap dialog -->
<link
href=
"/ui/themes/opnsense/build/css/bootstrap-dialog.css"
rel=
"stylesheet"
type=
"text/css"
/>
<!-- JQuery Tokenize (http://zellerda.com/projects/tokenize) -->
<script
type=
"text/javascript"
src=
"/ui/js/jquery.tokenize.js"
></script>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"/ui/css/jquery.tokenize.css"
/>
...
...
@@ -78,8 +78,8 @@
<div
class=
"container-fluid"
>
<div
class=
"navbar-header"
>
<a
class=
"navbar-brand"
href=
"/"
>
<img
class=
"brand-logo"
src=
"/ui/themes/
opnsense
/build/images/default-logo.png"
height=
"30"
width=
"150"
/>
<img
class=
"brand-icon"
src=
"/ui/themes/
opnsense
/build/images/icon-logo.png"
height=
"30"
width=
"29"
/>
<img
class=
"brand-logo"
src=
"/ui/themes/
{{ui_theme|default('opnsense')}}
/build/images/default-logo.png"
height=
"30"
width=
"150"
/>
<img
class=
"brand-icon"
src=
"/ui/themes/
{{ui_theme|default('opnsense')}}
/build/images/icon-logo.png"
height=
"30"
width=
"29"
/>
</a>
<button
type=
"button"
class=
"navbar-toggle collapsed"
data-toggle=
"collapse"
data-target=
"#navigation"
>
<span
class=
"sr-only"
>
Toggle navigation
</span>
...
...
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