View difference between Paste ID: x0C2HL8U and 0PT9CQLh
SHOW: | | - or go back to the newest paste.
1
<?php header("Content-type: text/css; charset: UTF-8"); 
2
3
require_once( '../../../../wp-load.php' );
4
5
$pexeto_css = array(
6
	'skin'=>get_opt('_skin'),
7
	'custom_color'=>get_opt('_custom_skin'),
8
	'pattern'=>get_opt('_pattern'),
9
'custom_pattern'=>get_opt('_custom_pattern'),
10
	'body_color' => get_opt('_body_color'),
11
	'body_bg' => get_opt('_body_bg'),
12
	'body_text_size' => get_opt('_body_text_size'),
13
	'logo_image' => get_opt('_logo_image'),
14
	'logo_width' => get_opt('_logo_width'),
15
	'logo_height' => get_opt('_logo_height'),
16
	'link_color' => get_opt('_link_color'),
17
	'heading_color' => get_opt('_heading_color'),
18
	'menu_link_color' => get_opt('_menu_link_color'),
19
	'menu_link_hover' => get_opt('_menu_link_hover'),
20
	'boxes_color' => get_opt('_boxes_color'),
21
	'subtitle_color' => get_opt('_subtitle_color'),
22
	'content_text_color' => get_opt('_content_text_color'),
23
	'comments_bg' => get_opt('_comments_bg'),
24
	'footer_bg' => get_opt('_footer_bg'),
25
	'footer_text_color' => get_opt('_footer_text_color'),
26
	'footer_lines_color' => get_opt('_footer_lines_color'),
27
	'subtitle_bg' => get_opt('_subtitle_bg'),
28
	'content_bg_color' => get_opt('_content_bg_color'),
29
	'copyright_bg' => get_opt('_copyright_bg'),
30
	'copyright_text' => get_opt('_copyright_text'),
31
	'border_color' => get_opt('_border_color')
32
);
33
34
35
$pexeto_main_color=$pexeto_css['custom_color']==''?$pexeto_css['skin']:$pexeto_css['custom_color'];
36
37
/**--------------------------------------------------------------------*
38
 * SET THE BACKGROUND COLOR AND PATTERN
39
 *---------------------------------------------------------------------*/
40
41
if($pexeto_main_color!=''){
42
	echo 'body{background-color:#'.$pexeto_main_color.';}';
43
}
44
45
if($pexeto_css['custom_pattern']!='' || ($pexeto_css['pattern']!='' && $pexeto_css['pattern']!='none')){
46
	if($pexeto_css['custom_pattern']!=''){
47
	echo 'body{background-image:url("'.$pexeto_css['custom_pattern'].'");}';
48
	}elseif($pexeto_css['pattern']!='none'){
49-
	echo 'body{background-image:url("'.get_bloginfo('template_url').'/images/patterns/'.$pexeto_css['pattern'].'");}';
49+
	echo 'body{background-image:url("'.get_template_directory_uri().'/images/patterns/'.$pexeto_css['pattern'].'");}';
50
	}else{
51
	echo 'body{background-image:none;}';
52
	}
53
}
54
55
56
if($pexeto_css['body_color']!=''){
57
	echo 'body, .sidebar-box ul li a,#portfolio-big-pagination a{color:#'.$pexeto_css['body_color'].';}';
58
}
59
60
if($pexeto_css['body_bg']!=''){
61
	echo '#menu ul ul li, #menu ul li a, #menu ul li, #menu ul li a:hover, img.shadow-frame, .blog-post-img img, #site, #nivo-controlNav-holder{background-color:#'.$pexeto_css['body_bg'].';}';
62
}
63
64
if($pexeto_css['body_text_size']!=''){
65
	echo 'body, .sidebar,#footer ul li a,#footer{font-size:'.$pexeto_css['body_text_size'].'px;}';
66
}
67
68
/**--------------------------------------------------------------------*
69
 * SET THE LOGO
70
 *---------------------------------------------------------------------*/
71
72
if($pexeto_css['logo_image']!=''){
73
	echo '#logo-container a{background-image:url('.$pexeto_css['logo_image'].');}';
74
}
75
76
if($pexeto_css['logo_width']!=''){
77
	echo '#logo-container, #logo-container a{width:'.$pexeto_css['logo_width'].'px;}';
78
}
79
80
if($pexeto_css['logo_height']!=''){
81
	echo '#header-top, #logo-container a{height:'.$pexeto_css['logo_height'].'px;}';
82
}
83
84
/**--------------------------------------------------------------------*
85
 * TEXT COLORS
86
 *---------------------------------------------------------------------*/
87
88
if($pexeto_css['link_color']!=''){
89
	echo 'a,.post-info, .post-info a{color:#'.$pexeto_css['link_color'].';}';
90
}
91
92
if($pexeto_css['heading_color']!=''){
93
	echo 'h1,h2,h3,h4,h5,h6,.sidebar-box h4,.services-box h4 span,.blog-post h1, .blog-post h1 a,.portfolio-sidebar h4, #portfolio-categories ul li, h1 a, h2 a, h3 a, h4 a, h5 a, h6 a, .services-box h4, .intro-text{color:#'.$pexeto_css['heading_color'].';}';
94
}
95
96
if($pexeto_css['menu_link_color']!=''){
97
	echo '#menu ul li a{color:#'.$pexeto_css['menu_link_color'].';}';
98
}
99
100
if($pexeto_css['menu_link_hover']!=''){
101
	echo '#menu ul li a:hover{color:#'.$pexeto_css['menu_link_hover'].';}';
102
}
103
104
if($pexeto_css['content_text_color']!=''){
105
	echo '#content-slider, #content-slider h2{color:#'.$pexeto_css['content_text_color'].';}';
106
}
107
108
if($pexeto_css['subtitle_color']!=''){
109
	echo '#page-title h6{color:#'.$pexeto_css['subtitle_color'].';}';
110
}
111
112
if($pexeto_css['footer_text_color']!=''){
113
	echo '#footer,#footer ul li a,#footer ul li a:hover,#footer h4{color:#'.$pexeto_css['footer_text_color'].';}';
114
}
115
116
if($pexeto_css['copyright_text']!=''){
117
	echo '#copyrights h5, #copyrights h5 a {color:#'.$pexeto_css['copyright_text'].';}';
118
}
119
120
/**--------------------------------------------------------------------*
121
 * BACKGROUNDS
122
 *---------------------------------------------------------------------*/
123
124
if($pexeto_css['comments_bg']!=''){
125
	echo '.commentContainer{background-color:#'.$pexeto_css['comments_bg'].';}';
126
}
127
128
if($pexeto_css['footer_bg']!=''){
129
	echo '#footer-container {background-color:#'.$pexeto_css['footer_bg'].';}';
130
}
131
132
if($pexeto_css['border_color']!=''){
133
	echo 'hr, ul.blogroll li, .sidebar-box h4, .sidebar-box ul li, .post-info, img.img-frame, img.shadow-frame, img.attachment-post_box_img, #portfolio-categories {border-color:#'.$pexeto_css['border_color'].';}';
134
}
135
136
if($pexeto_css['subtitle_bg']!=''){
137
	echo '#page-title {background-color:#'.$pexeto_css['subtitle_bg'].';}';
138
}
139
140
if($pexeto_css['content_bg_color']!=''){
141
	echo '#content-slider-wrapper {background-color:#'.$pexeto_css['content_bg_color'].';}';
142
}
143
144
if($pexeto_css['copyright_bg']!=''){
145
	echo '#copyrights {background-color:#'.$pexeto_css['copyright_bg'].';}';
146
}
147
148
if($pexeto_css['footer_lines_color']!=''){
149
	echo '#footer-line{background-color:#'.$pexeto_css['footer_lines_color'].';}';
150
	echo '#footer .double-hr,#footer ul li a,#footer-line{border-color:#'.$pexeto_css['footer_lines_color'].';}';
151
}
152
153
if($pexeto_css['boxes_color']!=''){
154
	echo '.pricing-box{background-color:#'.$pexeto_css['boxes_color'].';}';
155
}
156
157
/**--------------------------------------------------------------------*
158
 * ADDITIONAL STYLES
159
 *---------------------------------------------------------------------*/
160
161
if(get_opt('_additional_styles')!=''){
162
	echo(get_opt('_additional_styles'));
163
}
164
?>
165