This topic has 8 replies, 2 voices, and was last updated 3 years, 9 months ago by Fem.
Viewing 9 posts - 1 through 9 (of 9 total)
hello i need help on skin.php when the values on options is not set it prints css empty like before . How can i add a code it tells when the values of options is empty to not print the css from options ? thanks a lot
Error: CSS: font-size: Parse Error.
At line 37, column 27
le a{ font-size:; color:; line
Error: CSS: color: Parse Error.
At line 37, column 35
nt-size:; color:; line-height:
Error: CSS: line-height: Parse Error.
At line 37, column 49
r:; line-height:; font-style:;
Error: CSS: font-style: Parse Error.
At line 37, column 62
ht:; font-style:; font-weight:
Error: CSS: font-weight: Parse Error.
At line 37, column 76
e:; font-weight:;} ↩h2#site-de
Error: CSS: font-size: Parse Error.
At line 38, column 31
tion{ font-size:; color:; line
Error: CSS: color: Parse Error.
At line 38, column 39
nt-size:; color:; line-height:
Error: CSS: line-height: Parse Error.
At line 38, column 53
r:; line-height:; font-style:;
Error: CSS: font-style: Parse Error.
At line 38, column 66
ht:; font-style:; font-weight:
Error: CSS: font-weight: Parse Error.
At line 38, column 80
e:; font-weight:;} ↩body{ back
Error: CSS: background-color: Parse Error.
At line 39, column 49
ackground-color:; background-p
Error: CSS: background-color: Parse Error.
At line 43, column 55
ackground-color:; background-p
Error: CSS: background-color: Parse Error.
At line 44, column 52
ackground-color:; background-p
Error: CSS: padding-top: Parse Error.
At line 45, column 24
er{ padding-top:; padding-bott
Error: CSS: padding-bottom: Parse Error.
At line 45, column 41
padding-bottom:; } ↩.logo{ ma
Error: CSS: color: Parse Error.
At line 52, column 26
ize:34px; color:; line-height:
Error: CSS: font-size: Parse Error.
At line 53, column 14
↩h2{ font-size:; color:; line
Error: CSS: color: Parse Error.
At line 53, column 22
nt-size:; color:; line-height:
Error: CSS: line-height: Parse Error.
At line 53, column 36
r:; line-height:; font-style:;
Error: CSS: font-style: Parse Error.
At line 53, column 49
ht:; font-style:; font-weight:
Error: CSS: font-weight: Parse Error.
At line 53, column 63
e:; font-weight:;} ↩h3{ font-s
Error: CSS: font-size: Parse Error.
At line 54, column 14
↩h3{ font-size:; color:; line
Error: CSS: color: Parse Error.
At line 54, column 22
nt-size:; color:; line-height:
Error: CSS: line-height: Parse Error.
At line 54, column 36
r:; line-height:; font-style:;
Error: CSS: font-style: Parse Error.
At line 54, column 49
ht:; font-style:; font-weight:
Error: CSS: font-weight: Parse Error.
At line 54, column 63
e:; font-weight:;} ↩h4{ font-s
Error: CSS: font-size: Parse Error.
At line 55, column 14
↩h4{ font-size:; color:; line
Error: CSS: color: Parse Error.
At line 55, column 22
nt-size:; color:; line-height:
Error: CSS: line-height: Parse Error.
At line 55, column 36
r:; line-height:; font-style:;
Error: CSS: font-style: Parse Error.
At line 55, column 49
ht:; font-style:; font-weight:
Error: CSS: font-weight: Parse Error.
At line 55, column 63
e:; font-weight:;} ↩h5{ font-s
Error: CSS: font-size: Parse Error.
At line 56, column 14
↩h5{ font-size:; color:; line
Error: CSS: color: Parse Error.
At line 56, column 22
nt-size:; color:; line-height:
Error: CSS: line-height: Parse Error.
At line 56, column 36
r:; line-height:; font-style:;
Error: CSS: font-style: Parse Error.
At line 56, column 49
ht:; font-style:; font-weight:
Error: CSS: font-weight: Parse Error.
At line 56, column 63
e:; font-weight:;} ↩h6{ font-s
Error: CSS: font-size: Parse Error.
At line 57, column 14
↩h6{ font-size:; color:; line
Error: CSS: color: Parse Error.
At line 57, column 22
nt-size:; color:; line-height:
Error: CSS: line-height: Parse Error.
At line 57, column 36
r:; line-height:; font-style:;
Error: CSS: font-style: Parse Error.
At line 57, column 49
ht:; font-style:; font-weight:
Error: CSS: font-weight: Parse Error.
At line 57, column 63
e:; font-weight:;} ↩.widget-ti
Error: CSS: font-size: Parse Error.
At line 58, column 25
itle{ font-size:; color:; line
Error: CSS: color: Parse Error.
At line 58, column 33
nt-size:; color:; line-height:
Error: CSS: line-height: Parse Error.
At line 58, column 47
r:; line-height:; font-style:;
Error: CSS: font-style: Parse Error.
At line 58, column 60
ht:; font-style:; font-weight:
Error: CSS: font-weight: Parse Error.
At line 58, column 74
e:; font-weight:;} ↩#footer .w
Error: CSS: font-size: Parse Error.
At line 59, column 33
itle{ font-size:; color:; line
Error: CSS: color: Parse Error.
At line 59, column 41
nt-size:; color:; line-height:
Error: CSS: line-height: Parse Error.
At line 59, column 55
r:; line-height:; font-style:;
Error: CSS: font-style: Parse Error.
At line 59, column 68
ht:; font-style:; font-weight:
Error: CSS: font-weight: Parse Error.
At line 59, column 82
e:; font-weight:;} ↩#footer{ f
Error: CSS: font-size: Parse Error.
At line 60, column 19
oter{ font-size:; color:; line
Error: CSS: color: Parse Error.
At line 60, column 27
nt-size:; color:; line-height:
Error: CSS: line-height: Parse Error.
At line 60, column 41
r:; line-height:; font-style:;
Error: CSS: font-style: Parse Error.
At line 60, column 54
ht:; font-style:; font-weight:
Error: CSS: font-weight: Parse Error.
At line 60, column 68
e:; font-weight:;} ↩#footer .c
Error: CSS: font-size: Parse Error.
At line 61, column 30
ight{ font-size:; color:; line
Error: CSS: color: Parse Error.
At line 61, column 38
nt-size:; color:; line-height:
Error: CSS: line-height: Parse Error.
At line 61, column 52
r:; line-height:; font-style:;
Error: CSS: font-style: Parse Error.
At line 61, column 65
ht:; font-style:; font-weight:
Error: CSS: font-weight: Parse Error.
At line 61, column 79
e:; font-weight:;} ↩.iva-date-
Error: CSS: color: Parse Error.
At line 63, column 29
et-title{ color:; } ↩.rightsid
i trying https://regex101.com/r/eAbvHg/10
with
$custom_css = preg_replace( ‘/\b[\w-]+:(?:(?:url\(\))?;|(?=}))/’, ”, $custom_css );
but i had some errors any idea what else to do ? thanks
with if ( ! empty( to all of the php ? show me an example please
or on $$value to use array ?
$values[$value] = get_option($value); and then you can loop over $values instead of accessing things individually.
???
Here we have to use individual only not possible to loop it. you can add a conditional code for each like the below code. If you want I can make the changes for you in skin.php send me the file and I will do it for you.
if($atp_boxedcontent_width) {
$custom_css .= anona_gen_css_prop(
array(
'#boxed #wrapper',
), array(
'width' => $atp_boxedcontent_width . 'px',
)
);
}
Regards
Maqk
ok the code is here https://github.com/insecttrojan/skin/blob/main/skin.php
Viewing 9 posts - 1 through 9 (of 9 total)
The topic ‘skin.php and options’ is closed to new replies.