Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
fortytwo-3440234
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Issue forks
fortytwo-3440234
Commits
eca7078e
Commit
eca7078e
authored
4 years ago
by
Fabian de Rijk
Browse files
Options
Downloads
Patches
Plain Diff
Fixed tabs
parent
dc5bbf4e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
includes/bootstrap.inc
+1
-2
1 addition, 2 deletions
includes/bootstrap.inc
includes/fortytwo.inc
+2
-5
2 additions, 5 deletions
includes/fortytwo.inc
with
3 additions
and
7 deletions
includes/bootstrap.inc
+
1
−
2
View file @
eca7078e
...
...
@@ -78,8 +78,7 @@ function fortytwo_preprocess_html(array &$variables) {
(
$variables
[
'responsive_identifier'
])
?
$classes
[]
=
'show-responsive-identifier'
:
FALSE
;
// Set edit tabs.
$variables
[
'ft_layout_tabs'
]
=
theme_get_setting
(
'ft_layout_tabs'
);
(
$variables
[
'ft_layout_tabs'
]
&&
$user
->
isAuthenticated
())
?
$classes
[]
=
'ft-tabs'
:
FALSE
;
(
$user
->
isAuthenticated
())
?
$classes
[]
=
'ft-tabs'
:
FALSE
;
// Add the body classes to the attributes array.
if
(
isset
(
$variables
[
'attributes'
][
'class'
])
&&
is_array
(
$variables
[
'attributes'
][
'class'
]))
{
...
...
This diff is collapsed.
Click to expand it.
includes/fortytwo.inc
+
2
−
5
View file @
eca7078e
...
...
@@ -32,6 +32,8 @@ function fortytwo_get_staticpath($addprefix = FALSE, $theme_key = 'fortytwo') {
* Add libraries to the theme.
*/
function
fortytwo_add_libraries
(
&
$variables
)
{
$variables
[
'page'
][
'#attached'
][
'library'
][]
=
'fortytwo/tabs'
;
$enquire
=
theme_get_setting
(
'ft_enquire_js'
);
if
(
!
empty
(
$enquire
))
{
$variables
[
'page'
][
'#attached'
][
'library'
][]
=
'fortytwo/enquire'
;
...
...
@@ -47,11 +49,6 @@ function fortytwo_add_libraries(&$variables) {
$variables
[
'page'
][
'#attached'
][
'library'
][]
=
'fortytwo/placeholder'
;
}
$tabs
=
theme_get_setting
(
'ft_layout_tabs'
);
if
(
!
empty
(
$tabs
))
{
$variables
[
'page'
][
'#attached'
][
'library'
][]
=
'fortytwo/tabs'
;
}
$prettify
=
theme_get_setting
(
'ft_prettify_js'
);
if
(
!
empty
(
$prettify
))
{
$variables
[
'page'
][
'#attached'
][
'drupalSettings'
][
'fortytwo'
][
'prettify_hide_upload'
]
=
theme_get_setting
(
'ft_prettify_js_hide_upload'
);
...
...
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