Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CSU
tweeki
Commits
4864c263
Unverified
Commit
4864c263
authored
Jun 19, 2020
by
Ammar Abdulhamid
Committed by
GitHub
Jun 19, 2020
Browse files
Remove method, make $bodyClasses property public
parent
a7c09030
Changes
1
Show whitespace changes
Inline
Side-by-side
includes/SkinTweeki.php
View file @
4864c263
...
...
@@ -42,7 +42,7 @@ class SkinTweeki extends SkinTemplate {
->
makeConfig
(
'tweeki'
);
}
p
rotected
static
$bodyClasses
=
array
(
'tweeki-animateLayout'
);
p
ublic
static
$bodyClasses
=
array
(
'tweeki-animateLayout'
);
/**
...
...
@@ -88,20 +88,6 @@ class SkinTweeki extends SkinTemplate {
$out
->
addModuleStyles
(
$styles
);
}
/**
* Adds classes to the body element.
*
* @param $out OutputPage object
* @param &$bodyAttrs Array of attributes that will be set on the body element
*/
function
addToBodyAttributes
(
$out
,
&
$bodyAttrs
)
{
if
(
isset
(
$bodyAttrs
[
'class'
]
)
&&
strlen
(
$bodyAttrs
[
'class'
]
)
>
0
)
{
$bodyAttrs
[
'class'
]
.
=
' '
.
implode
(
' '
,
static
::
$bodyClasses
);
}
else
{
$bodyAttrs
[
'class'
]
=
implode
(
' '
,
static
::
$bodyClasses
);
}
}
/**
* Override to pass our Config instance to it
* @param string $classname
...
...
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