Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
visitors
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
visitors
Merge requests
!29
Issue
#2545108
: D7 Allow custom theme for /visitors path
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Issue
#2545108
: D7 Allow custom theme for /visitors path
issue/visitors-2545108:2545108-custom-theme
into
7.x-1.x
Overview
0
Commits
2
Pipelines
0
Changes
2
Merged
Steven Ayers
requested to merge
issue/visitors-2545108:2545108-custom-theme
into
7.x-1.x
2 years ago
Overview
0
Commits
2
Pipelines
0
Changes
2
Expand
0
0
Merge request reports
Compare
7.x-1.x
version 1
a5f2e38e
2 years ago
7.x-1.x (base)
and
latest version
latest version
584e4ee8
2 commits,
2 years ago
version 1
a5f2e38e
1 commit,
2 years ago
2 files
+
43
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
forms/admin_settings.inc
+
16
−
0
Options
@@ -170,5 +170,21 @@ function visitors_admin_settings() {
'#description'
=>
t
(
'Chart height.'
),
);
$installed
=
array_filter
(
list_themes
(),
function
(
$obj
)
{
return
$obj
->
status
;
});
$themes
=
array
(
'_admin'
=>
t
(
'admin'
),
'_default'
=>
t
(
'default'
))
+
array_map
(
function
(
$value
)
{
return
$value
->
name
;
},
$installed
);
$form
[
'visitors_theme'
]
=
array
(
'#title'
=>
t
(
'Theme'
),
'#description'
=>
t
(
'Select a theme for the Visitors reports.'
),
'#type'
=>
'select'
,
'#options'
=>
$themes
,
'#default_value'
=>
variable_get
(
'visitors_theme'
,
'_admin'
),
);
return
system_settings_form
(
$form
);
}
Loading