Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
uw_fdsu_theme_resp
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WCMS
uw_fdsu_theme_resp
Commits
7066d632
Commit
7066d632
authored
1 year ago
by
Lily Yan
Browse files
Options
Downloads
Patches
Plain Diff
Change to wcms_search_show_local
parent
964ef1cf
No related branches found
No related tags found
1 merge request
!110
ISTWCMS-6545 Create search options
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
uw_fdsu_theme_resp.theme
+3
-3
3 additions, 3 deletions
uw_fdsu_theme_resp.theme
with
3 additions
and
3 deletions
uw_fdsu_theme_resp.theme
+
3
−
3
View file @
7066d632
...
...
@@ -167,7 +167,7 @@ function uw_fdsu_theme_resp_preprocess_region(&$variables) {
$region
=
$variables
[
'elements'
][
'#region'
];
// Set 'search_local' variable if not set.
if
(
!
isset
(
$variables
[
'search_local'
]))
{
$variables
[
'search_local'
]
=
theme_get_setting
(
'search_show_local'
,
'uw_fdsu_theme_resp'
);
$variables
[
'search_
show_
local'
]
=
theme_get_setting
(
'
wcms_
search_show_local'
,
'uw_fdsu_theme_resp'
);
}
// Variables that we want to have access to regardless of region.
$variables
[
'branding_level'
]
=
theme_get_setting
(
'wcms_branding_level'
,
'uw_fdsu_theme_resp'
)
?
theme_get_setting
(
'wcms_branding_level'
,
'uw_fdsu_theme_resp'
)
:
'full'
;
...
...
@@ -260,10 +260,10 @@ function uw_fdsu_theme_resp_form_system_theme_settings_alter(&$form, FormStateIn
];
// Search options checkbox field.
$form
[
'search_options'
][
'search_show_local'
]
=
[
$form
[
'search_options'
][
'
wcms_
search_show_local'
]
=
[
'#type'
=>
'checkbox'
,
'#title'
=>
t
(
"Show the 'on this site' search option"
),
'#default_value'
=>
theme_get_setting
(
'search_show_local'
,
'uw_fdsu_theme_resp'
)
??
TRUE
,
'#default_value'
=>
theme_get_setting
(
'
wcms_
search_show_local'
,
'uw_fdsu_theme_resp'
)
??
TRUE
,
];
// Fieldset for colour scheme.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment