-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle-options.php
More file actions
100 lines (90 loc) · 2.42 KB
/
style-options.php
File metadata and controls
100 lines (90 loc) · 2.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<style type="text/css" media="screen">
<?php
$background_stretch = of_get_option('background_stretch');
$site_width = of_get_option('site_width');
$slideshow_height = of_get_option('slideshow_height');
$nav_color = of_get_option('nav_color');
$link_color = of_get_option('link_color');
$link_hover_color = of_get_option('link_hover_color');
$highlight_color = of_get_option('highlight_color');
?>
body {
<?php
if ($background_stretch == '1') {
echo '-webkit-background-size: cover;';
echo '-moz-background-size: cover;';
echo '-o-background-size: cover;';
echo 'background-size: cover;';
};
?>
}
.row, .featured-slideshow .slide-holder.video-holder {
<?php
if ($site_width) {
echo 'max-width: ' .$site_width. ';';
};
?>
}
.featured-slideshow .flexslider .slides > li,
.featured-slideshow .slide-info,
.slideshow .loading {
<?php
if ($slideshow_height) {
echo 'min-height: ' .$slideshow_height. ';';
};
?>
}
.container .menu li:hover, .container .menu ul.sub-menu, .container .menu ul.children {
<?php
if ($nav_color) {
echo 'background-color: ' .$nav_color. '!important;';
};
?>
}
.container a, .container a:link, .container a:visited {
<?php
if ($link_color) {
echo 'color: ' .$link_color. ';';
};
?>
}
.sidebar ul.menu li a, .sidebar ul.menu li a:visited, .sidebar ul.menu li a:link {
<?php
if ($link_color) {
echo 'color: ' .$link_color. ' !important;';
};
?>
}
.container a:hover, .container a:focus, .container a:active {
<?php
if ($link_hover_color) {
echo 'color: ' .$link_hover_color. ';';
};
?>
}
h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover,
.sidebar ul.menu li a:hover, .sidebar ul.menu li a:active, .sidebar ul.menu li a:focus,
.sidebar ul.menu .current_page_item a, .sidebar ul.menu .current-menu-item a,
.archive-result.format-link .headline a:hover {
<?php
if ($link_hover_color) {
echo 'color: ' .$link_hover_color. ' !important;';
};
?>
}
.btn:hover, .reply a:hover, #searchsubmit:hover, #prevLink a:hover, #nextLink a:hover, .more-link:hover,
#submit:hover, #comments #respond input#submit:hover, .gallery img:hover, .container .gform_wrapper input.button:hover {
<?php
if ($highlight_color) {
echo 'background-color: ' .$highlight_color. ';';
};
?>
}
.container #header {
<?php
if ($highlight_color) {
echo 'border-top: 4px solid ' .$highlight_color. ';';
};
?>
}
</style>