-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrelated_list_style.php
285 lines (158 loc) · 4.77 KB
/
related_list_style.php
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
<?php ob_start();
//define all variables the needed alot
include 'the_globals.php';
$rpw_related_posts_settings = rpw_read_options();
?>
<style type="text/css">
.related_posts_rpw_main_image {
<?php $rpw_image_direction = $rpw_related_posts_settings['rpw_image_direction']; ?>
float:<?php echo $rpw_image_direction;?>;
<?php
if($rpw_image_direction == 'left')
echo "margin: 0px 10px 0px 0px;";
else
echo "margin: 0px 0px 0px 10px;";
?>
padding: 0px;
}
.related_posts_rpw_main_image img{
background: none repeat scroll 0 0 #FFFFFF;
margin: 0px 0px 0px 0px;
padding: 0px;
}
.related_posts_rpw_main_image a img{
//border: 3px solid #f5f5f5;
}
<?php
$rpw_use_css3_effects = $rpw_related_posts_settings['rpw_use_css3_effects'];
$rpw_css3_shadow = $rpw_related_posts_settings['rpw_css3_shadow'];
if($rpw_use_css3_effects == 'Yes'){ ?>
.related_posts_rpw_main_image img {
position: relative;
-webkit-box-shadow: 0 0 <?php echo $rpw_css3_shadow; ?>px #666666;// Safari and chrome
-khtml-box-shadow: 0 0 <?php echo $rpw_css3_shadow; ?>px #666666;// Linux browsers
behavior: url(ie-css3.htc);
-moz-box-shadow: 0px 0px <?php echo $rpw_css3_shadow; ?>px #666666;
box-shadow: 0px 0px <?php echo $rpw_css3_shadow; ?>px #666666;
z-index: 2;
behavior: url(<?php echo $rpwpluginsurl; ?>/ie-css3.htc);
}
<?php } ?>
<?php
$rpw_css3_thumb_radius = $rpw_related_posts_settings['rpw_css3_thumb_radius'];
if($rpw_css3_thumb_radius != 'None'){ ?>
.related_posts_rpw_main_image img {
-webkit-border-radius: <?php echo $rpw_css3_thumb_radius; ?>px;// Safari and chrome
-khtml-border-radius: <?php echo $rpw_css3_thumb_radius; ?>px;// Linux browsers
behavior: url(ie-css3.htc);
-moz-border-radius: <?php echo $rpw_css3_thumb_radius; ?>px;
border-radius: <?php echo $rpw_css3_thumb_radius; ?>px;
behavior: url(<?php echo $rpwpluginsurl; ?>/ie-css3.htc);}
<?php } ?>
.imgshadow_light {
background: none repeat scroll 0 0 #FFFFFF;
border: 1px solid #777777;
box-shadow: 0 0 5px #666666;
}
.related_posts_rpw_time {
position: absolute;display: block;
color: #CCCCCC;direction: ltr;font: 13px/28px sans-serif;z-index: 1;right: 15px;top: 0px;
text-align: right;
width: 120px;
}
#related_posts_rpw h3{
text-align:left;
direction:ltr;
font-size: 14px;
border: medium none;
padding: 0px;
margin: 0px;
}
#related_posts_rpw ul h3{
width:88%;
}
#related_posts_rpw
{
text-align: center;
display: table;
}
.related_posts_rpw_main_content {
<?php $rpw_text_direction = $rpw_related_posts_settings['rpw_text_direction']; ?>
direction:<?php echo $rpw_text_direction;?>;
text-align: <?php echo $rpw_text_direction;?>;
}
.related_posts_rpw_main_content p{
$rpw_image_direction = $rpw_related_posts_settings['rpw_image_direction'];
text-align:<?php echo $rpw_image_direction;?>;
color:#4c4c4c;
$rpw_text_direction = $rpw_related_posts_settings['rpw_text_direction'];
direction:<?php echo $rpw_text_direction;?>;
margin: 0px 0px 2px 0px;
}
#related_posts_rpw ul{
margin:0px;
padding: 0px;
justify-content: flex-start flex-end center space-between space-around;
}
#related_posts_rpw li{
display: block;
<?php
$rpw_Style = $rpw_related_posts_settings['rpw_Style'];
if($rpw_Style != "Just_Thumbs" && $rpw_Style != "Big_Thumbs" && $rpw_Style != "Wide_Thumbs" && $rpw_Style != "CSS-Just_Thumbs" && $rpw_Style != "CSS-Big_Thumbs" && $rpw_Style != "CSS-Wide_Thumbs"){ ?>
border-bottom: 1px dotted #CCCCCC;
margin: 0 0 6px;
<?php } ?>
padding: 0 0 6px;
<?php if($rpw_Style == "Just_Thumbs" || $rpw_Style == "CSS-Just_Thumbs" ){ ?>
float: left;
<?php } ?>
}
#related_posts_rpw li:after{
clear: both;
content: ".";
display: block;
height: 0;
line-height: 0;
visibility: hidden;
}
<?php
$rpw_thumbw = $rpw_related_posts_settings['rpw_thumbw'];
$rpw_thumbh = $rpw_related_posts_settings['rpw_thumbh'];
?>
#related_posts_rpw li img{
border-radius: 0;
//float: left;
margin-right: 2px;
padding: 3px;
width: <?php echo $rpw_thumbw;?>px;
height: <?php echo $rpw_thumbh;?>px;
}
#entry-meta-span {
background: none repeat scroll 0 0 #000000;
color: #CCCCCC;
display: block;
font-size: 11px;
height: 20px;
margin: -95px 470px 0;
opacity: 0.55;
position: relative;
text-align: center;
width: 100%;
z-index: 99;
border-radius: 15px 15px 15px 15px;
-moz-border-radius: 15px 15px 15px 15px;
-webkit-border-radius: 15px 15px 15px 15px;
-khtmlborder-radius: 15px 15px 15px 15px;
}
.credit-span,.credit-span a{
color:#8B8B8B;
font-size: 9pt;
text-align:right;
text-decoration:none;
}
//#related_posts_rpw li:hover{background:#F9F9F9;-moz-transition: all 0.3s ease-out 0s;}
</style>
<?php
$out = ob_get_clean();
return $out;
?>