Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
sshop
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
sshop
Merge requests
!23
Resolve
#3424736
sshop settings are hard to find
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve
#3424736
sshop settings are hard to find
issue/sshop-3424736:3424736-sshop-settings-are
into
8.x-1.x
Overview
0
Commits
3
Pipelines
0
Changes
1
Merged
skaught
requested to merge
issue/sshop-3424736:3424736-sshop-settings-are
into
8.x-1.x
1 year ago
Overview
0
Commits
3
Pipelines
0
Changes
1
Expand
Closes
#3424736
0
0
Merge request reports
Compare
8.x-1.x
version 1
4b550c2d
1 year ago
8.x-1.x (base)
and
latest version
latest version
6ef02ab0
3 commits,
1 year ago
version 1
4b550c2d
2 commits,
1 year ago
1 file
+
21
−
18
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
sshop.theme
+
21
−
18
Options
@@ -52,7 +52,7 @@ function sshop_preprocess_page(&$vars) {
$display_theme_credits
=
theme_get_setting
(
'display_theme_credits'
);
if
(
!
empty
(
$display_theme_credits
))
{
$vars
[
'theme_credits'
][
'#markup'
]
=
t
(
'Buil
d
by <a rel="nofollow" href="@url">OPTASY</a>'
,
'Buil
t
by <a rel="nofollow" href="@url">OPTASY</a>'
,
[
'@url'
=>
'https://www.optasy.com'
]
);
}
@@ -128,36 +128,39 @@ function sshop_form_system_theme_settings_alter(&$form, FormStateInterface $form
$form
[
'general'
][
'container'
][
'fluid_container'
][
'#default_value'
]
=
1
;
$form
[
'general'
][
'container'
][
'fluid_container'
][
'#disabled'
]
=
TRUE
;
$form
[
'general'
][
'container'
][
'fluid_container'
][
'#description'
]
=
t
(
'SShop theme works with fluid container only.'
);
// Footer copyrights settings.
$form
[
'sshop_settings'
][
'sshop_settings'
]
=
[
'#
type'
=>
'details'
,
'#
title'
=>
t
(
'SShop Settings'
),
$form
[
'sshop_wrap'
]
=
[
'#type'
=>
'container'
,
'#
weight'
=>
-
20
,
'#
prefix'
=>
'<h3>'
.
t
(
'SShop Settings'
)
.
'</h3>'
,
'#collapsible'
=>
TRUE
,
'#collapsed'
=>
FALSE
,
];
$form
[
'sshop_settings'
][
'sshop_settings'
][
'copyright_text'
]
=
[
$form
[
'sshop_wrap'
][
'footer'
]
=
[
'#type'
=>
'fieldset'
,
'#weight'
=>
-
10
,
'#title'
=>
t
(
'Footer Region'
)
];
$form
[
'sshop_wrap'
][
'footer'
][
'copyright_text'
]
=
[
'#type'
=>
'textfield'
,
'#title'
=>
t
(
'Enter copyright text'
),
'#default_value'
=>
theme_get_setting
(
'copyright_text'
),
'#description'
=>
t
(
'Use @year placeholder for define current year.'
),
];
$form
[
'sshop_settings'
][
'sshop_settings'
][
'display_theme_credits'
]
=
[
$form
[
'sshop_wrap'
][
'footer'
][
'display_theme_credits'
]
=
[
'#type'
=>
'checkbox'
,
'#title'
=>
t
(
'Display theme credits'
),
'#default_value'
=>
theme_get_setting
(
'display_theme_credits'
),
];
$message
=
t
(
'
Do you need help to customize this theme? We can help!<br
>
-
web: <a href="@url">https://www.optasy.com</a><
br
>
-
e-mail: <a href="mailto:@email">contact@optasy.com</a><
br
>
-
phone: (416) 243.2431
'
,
$message
=
t
(
'<h3>Do you need help to customize this theme?</h3>
<p>We can help!</p>
<ul
>
<li>
web: <a href="@url">https://www.optasy.com</a><
/li
>
<li>
e-mail: <a href="mailto:@email">contact@optasy.com</a><
/li
>
<li>
phone: (416) 243.2431
</li>
</ul>
'
,
[
'@url'
=>
'https://www.optasy.com'
,
'@email'
=>
'contact@optasy.com'
]
);
\Drupal
::
messenger
()
->
addMessage
(
$message
);
\Drupal
::
messenger
()
->
addMessage
(
$message
,
'custom'
);
}
Loading