3 $diabook_font_size=false;
6 $site_line_height = get_config("diabook","line_height");
7 $site_diabook_font_size = get_config("diabook", "font_size" );
8 $site_resolution = get_config("diabook", "resolution" );
9 $site_color = get_config("diabook", "color" );
13 $line_height = get_pconfig(local_user(), "diabook","line_height");
14 $diabook_font_size = get_pconfig(local_user(), "diabook", "font_size");
15 $resolution = get_pconfig(local_user(), "diabook", "resolution");
16 $color = get_pconfig(local_user(), "diabook", "color");
19 if ($line_height===false) $line_height=$site_line_height;
20 if ($line_height===false) $line_height="1.3";
21 if ($diabook_font_size===false) $diabook_font_size=$site_diabook_font_size;
22 if ($diabook_font_size===false) $diabook_font_size="13";
23 if ($resolution===false) $resolution=$site_resolution;
24 if ($resolution===false) $resolution="normal";
25 if ($color===false) $color=$site_color;
26 if ($color===false) $color="diabook";
28 if($color == "diabook") {
29 if($resolution == "normal") {
30 if (file_exists("$THEMEPATH/style.css")){
31 echo file_get_contents("$THEMEPATH/style.css");
34 if($diabook_font_size == "15"){
36 .wall-item-container .wall-item-content {
40 .wall-item-photo-container .wall-item-content {
45 if($diabook_font_size == "14"){
47 .wall-item-container .wall-item-content {
51 .wall-item-photo-container .wall-item-content {
56 if($diabook_font_size == "13.5"){
58 .wall-item-container .wall-item-content {
62 .wall-item-photo-container .wall-item-content {
67 if($diabook_font_size == "13"){
69 .wall-item-container .wall-item-content {
73 .wall-item-photo-container .wall-item-content {
78 if($diabook_font_size == "12.5"){
80 .wall-item-container .wall-item-content {
84 .wall-item-photo-container .wall-item-content {
89 if($diabook_font_size == "12"){
91 .wall-item-container .wall-item-content {
95 .wall-item-photo-container .wall-item-content {
100 if($line_height == "1.5"){
102 .wall-item-container .wall-item-content {
106 .wall-item-photo-container .wall-item-content {
111 if($line_height == "1.4"){
113 .wall-item-container .wall-item-content {
117 .wall-item-photo-container .wall-item-content {
122 if($line_height == "1.3"){
124 .wall-item-container .wall-item-content {
128 .wall-item-photo-container .wall-item-content {
133 if($line_height == "1.2"){
135 .wall-item-container .wall-item-content {
139 .wall-item-photo-container .wall-item-content {
144 if($line_height == "1.1"){
146 .wall-item-container .wall-item-content {
150 .wall-item-photo-container .wall-item-content {
157 if($resolution == "wide") {
158 if (file_exists("$THEMEPATH/style-wide.css")){
159 echo file_get_contents("$THEMEPATH/style-wide.css");
161 if($diabook_font_size == "15"){
163 .wall-item-container .wall-item-content {
167 .wall-item-photo-container .wall-item-content {
172 if($diabook_font_size == "14"){
174 .wall-item-container .wall-item-content {
178 .wall-item-photo-container .wall-item-content {
183 if($diabook_font_size == "13.5"){
185 .wall-item-container .wall-item-content {
189 .wall-item-photo-container .wall-item-content {
194 if($diabook_font_size == "13"){
196 .wall-item-container .wall-item-content {
200 .wall-item-photo-container .wall-item-content {
205 if($diabook_font_size == "12.5"){
207 .wall-item-container .wall-item-content {
211 .wall-item-photo-container .wall-item-content {
216 if($diabook_font_size == "12"){
218 .wall-item-container .wall-item-content {
222 .wall-item-photo-container .wall-item-content {
227 if($line_height == "1.5"){
229 .wall-item-container .wall-item-content {
233 .wall-item-photo-container .wall-item-content {
238 if($line_height == "1.4"){
240 .wall-item-container .wall-item-content {
244 .wall-item-photo-container .wall-item-content {
249 if($line_height == "1.3"){
251 .wall-item-container .wall-item-content {
255 .wall-item-photo-container .wall-item-content {
260 if($line_height == "1.2"){
262 .wall-item-container .wall-item-content {
266 .wall-item-photo-container .wall-item-content {
271 if($line_height == "1.1"){
273 .wall-item-container .wall-item-content {
277 .wall-item-photo-container .wall-item-content {
285 if($color == "aerith") {
286 if($resolution == "normal") {
287 if (file_exists("$THEMEPATH/diabook-aerith/style.css")){
288 echo file_get_contents("$THEMEPATH/diabook-aerith/style.css");
291 if($diabook_font_size == "15"){
293 .wall-item-container .wall-item-content {
297 .wall-item-photo-container .wall-item-content {
302 if($diabook_font_size == "14"){
304 .wall-item-container .wall-item-content {
308 .wall-item-photo-container .wall-item-content {
313 if($diabook_font_size == "13.5"){
315 .wall-item-container .wall-item-content {
319 .wall-item-photo-container .wall-item-content {
324 if($diabook_font_size == "13"){
326 .wall-item-container .wall-item-content {
330 .wall-item-photo-container .wall-item-content {
335 if($diabook_font_size == "12.5"){
337 .wall-item-container .wall-item-content {
341 .wall-item-photo-container .wall-item-content {
346 if($diabook_font_size == "12"){
348 .wall-item-container .wall-item-content {
352 .wall-item-photo-container .wall-item-content {
357 if($line_height == "1.5"){
359 .wall-item-container .wall-item-content {
363 .wall-item-photo-container .wall-item-content {
368 if($line_height == "1.4"){
370 .wall-item-container .wall-item-content {
374 .wall-item-photo-container .wall-item-content {
379 if($line_height == "1.3"){
381 .wall-item-container .wall-item-content {
385 .wall-item-photo-container .wall-item-content {
390 if($line_height == "1.2"){
392 .wall-item-container .wall-item-content {
396 .wall-item-photo-container .wall-item-content {
401 if($line_height == "1.1"){
403 .wall-item-container .wall-item-content {
407 .wall-item-photo-container .wall-item-content {
414 if($resolution == "wide") {
415 if (file_exists("$THEMEPATH/diabook-aerith/style-wide.css")){
416 echo file_get_contents("$THEMEPATH/diabook-aerith/style-wide.css");
418 if($diabook_font_size == "15"){
420 .wall-item-container .wall-item-content {
424 .wall-item-photo-container .wall-item-content {
429 if($diabook_font_size == "14"){
431 .wall-item-container .wall-item-content {
435 .wall-item-photo-container .wall-item-content {
440 if($diabook_font_size == "13.5"){
442 .wall-item-container .wall-item-content {
446 .wall-item-photo-container .wall-item-content {
451 if($diabook_font_size == "13"){
453 .wall-item-container .wall-item-content {
457 .wall-item-photo-container .wall-item-content {
462 if($diabook_font_size == "12.5"){
464 .wall-item-container .wall-item-content {
468 .wall-item-photo-container .wall-item-content {
473 if($diabook_font_size == "12"){
475 .wall-item-container .wall-item-content {
479 .wall-item-photo-container .wall-item-content {
484 if($line_height == "1.5"){
486 .wall-item-container .wall-item-content {
490 .wall-item-photo-container .wall-item-content {
495 if($line_height == "1.4"){
497 .wall-item-container .wall-item-content {
501 .wall-item-photo-container .wall-item-content {
506 if($line_height == "1.3"){
508 .wall-item-container .wall-item-content {
512 .wall-item-photo-container .wall-item-content {
517 if($line_height == "1.2"){
519 .wall-item-container .wall-item-content {
523 .wall-item-photo-container .wall-item-content {
528 if($line_height == "1.1"){
530 .wall-item-container .wall-item-content {
534 .wall-item-photo-container .wall-item-content {
542 if($color== "blue") {
543 if($resolution == "normal") {
544 if (file_exists("$THEMEPATH/diabook-blue/style.css")){
545 echo file_get_contents("$THEMEPATH/diabook-blue/style.css");
548 if($diabook_font_size == "15"){
550 .wall-item-container .wall-item-content {
554 .wall-item-photo-container .wall-item-content {
559 if($diabook_font_size == "14"){
561 .wall-item-container .wall-item-content {
565 .wall-item-photo-container .wall-item-content {
570 if($diabook_font_size == "13.5"){
572 .wall-item-container .wall-item-content {
576 .wall-item-photo-container .wall-item-content {
581 if($diabook_font_size == "13"){
583 .wall-item-container .wall-item-content {
587 .wall-item-photo-container .wall-item-content {
592 if($diabook_font_size == "12.5"){
594 .wall-item-container .wall-item-content {
598 .wall-item-photo-container .wall-item-content {
603 if($diabook_font_size == "12"){
605 .wall-item-container .wall-item-content {
609 .wall-item-photo-container .wall-item-content {
614 if($line_height == "1.5"){
616 .wall-item-container .wall-item-content {
620 .wall-item-photo-container .wall-item-content {
625 if($line_height == "1.4"){
627 .wall-item-container .wall-item-content {
631 .wall-item-photo-container .wall-item-content {
636 if($line_height == "1.3"){
638 .wall-item-container .wall-item-content {
642 .wall-item-photo-container .wall-item-content {
647 if($line_height == "1.2"){
649 .wall-item-container .wall-item-content {
653 .wall-item-photo-container .wall-item-content {
658 if($line_height == "1.1"){
660 .wall-item-container .wall-item-content {
664 .wall-item-photo-container .wall-item-content {
671 if($resolution == "wide") {
672 if (file_exists("$THEMEPATH/diabook-blue/style-wide.css")){
673 echo file_get_contents("$THEMEPATH/diabook-blue/style-wide.css");
675 if($diabook_font_size == "15"){
677 .wall-item-container .wall-item-content {
681 .wall-item-photo-container .wall-item-content {
686 if($diabook_font_size == "14"){
688 .wall-item-container .wall-item-content {
692 .wall-item-photo-container .wall-item-content {
697 if($diabook_font_size == "13.5"){
699 .wall-item-container .wall-item-content {
703 .wall-item-photo-container .wall-item-content {
708 if($diabook_font_size == "13"){
710 .wall-item-container .wall-item-content {
714 .wall-item-photo-container .wall-item-content {
719 if($diabook_font_size == "12.5"){
721 .wall-item-container .wall-item-content {
725 .wall-item-photo-container .wall-item-content {
730 if($diabook_font_size == "12"){
732 .wall-item-container .wall-item-content {
736 .wall-item-photo-container .wall-item-content {
741 if($line_height == "1.5"){
743 .wall-item-container .wall-item-content {
747 .wall-item-photo-container .wall-item-content {
752 if($line_height == "1.4"){
754 .wall-item-container .wall-item-content {
758 .wall-item-photo-container .wall-item-content {
763 if($line_height == "1.3"){
765 .wall-item-container .wall-item-content {
769 .wall-item-photo-container .wall-item-content {
774 if($line_height == "1.2"){
776 .wall-item-container .wall-item-content {
780 .wall-item-photo-container .wall-item-content {
785 if($line_height == "1.1"){
787 .wall-item-container .wall-item-content {
791 .wall-item-photo-container .wall-item-content {
800 if($resolution == "normal") {
801 if (file_exists("$THEMEPATH/diabook-red/style.css")){
802 echo file_get_contents("$THEMEPATH/diabook-red/style.css");
805 if($diabook_font_size == "15"){
807 .wall-item-container .wall-item-content {
811 .wall-item-photo-container .wall-item-content {
816 if($diabook_font_size == "14"){
818 .wall-item-container .wall-item-content {
822 .wall-item-photo-container .wall-item-content {
827 if($diabook_font_size == "13.5"){
829 .wall-item-container .wall-item-content {
833 .wall-item-photo-container .wall-item-content {
838 if($diabook_font_size == "13"){
840 .wall-item-container .wall-item-content {
844 .wall-item-photo-container .wall-item-content {
849 if($diabook_font_size == "12.5"){
851 .wall-item-container .wall-item-content {
855 .wall-item-photo-container .wall-item-content {
860 if($diabook_font_size == "12"){
862 .wall-item-container .wall-item-content {
866 .wall-item-photo-container .wall-item-content {
871 if($line_height == "1.5"){
873 .wall-item-container .wall-item-content {
877 .wall-item-photo-container .wall-item-content {
882 if($line_height == "1.4"){
884 .wall-item-container .wall-item-content {
888 .wall-item-photo-container .wall-item-content {
893 if($line_height == "1.3"){
895 .wall-item-container .wall-item-content {
899 .wall-item-photo-container .wall-item-content {
904 if($line_height == "1.2"){
906 .wall-item-container .wall-item-content {
910 .wall-item-photo-container .wall-item-content {
915 if($line_height == "1.1"){
917 .wall-item-container .wall-item-content {
921 .wall-item-photo-container .wall-item-content {
928 if($resolution == "wide") {
929 if (file_exists("$THEMEPATH/diabook-red/style-wide.css")){
930 echo file_get_contents("$THEMEPATH/diabook-red/style-wide.css");
932 if($diabook_font_size == "15"){
934 .wall-item-container .wall-item-content {
938 .wall-item-photo-container .wall-item-content {
943 if($diabook_font_size == "14"){
945 .wall-item-container .wall-item-content {
949 .wall-item-photo-container .wall-item-content {
954 if($diabook_font_size == "13.5"){
956 .wall-item-container .wall-item-content {
960 .wall-item-photo-container .wall-item-content {
965 if($diabook_font_size == "13"){
967 .wall-item-container .wall-item-content {
971 .wall-item-photo-container .wall-item-content {
976 if($diabook_font_size == "12.5"){
978 .wall-item-container .wall-item-content {
982 .wall-item-photo-container .wall-item-content {
987 if($diabook_font_size == "12"){
989 .wall-item-container .wall-item-content {
993 .wall-item-photo-container .wall-item-content {
998 if($line_height == "1.5"){
1000 .wall-item-container .wall-item-content {
1004 .wall-item-photo-container .wall-item-content {
1009 if($line_height == "1.4"){
1011 .wall-item-container .wall-item-content {
1015 .wall-item-photo-container .wall-item-content {
1020 if($line_height == "1.3"){
1022 .wall-item-container .wall-item-content {
1026 .wall-item-photo-container .wall-item-content {
1031 if($line_height == "1.2"){
1033 .wall-item-container .wall-item-content {
1037 .wall-item-photo-container .wall-item-content {
1042 if($line_height == "1.1"){
1044 .wall-item-container .wall-item-content {
1048 .wall-item-photo-container .wall-item-content {
1056 if($color== "pink") {
1057 if($resolution == "normal") {
1058 if (file_exists("$THEMEPATH/diabook-pink/style.css")){
1059 echo file_get_contents("$THEMEPATH/diabook-pink/style.css");
1062 if($diabook_font_size == "15"){
1064 .wall-item-container .wall-item-content {
1068 .wall-item-photo-container .wall-item-content {
1073 if($diabook_font_size == "14"){
1075 .wall-item-container .wall-item-content {
1079 .wall-item-photo-container .wall-item-content {
1084 if($diabook_font_size == "13.5"){
1086 .wall-item-container .wall-item-content {
1090 .wall-item-photo-container .wall-item-content {
1095 if($diabook_font_size == "13"){
1097 .wall-item-container .wall-item-content {
1101 .wall-item-photo-container .wall-item-content {
1106 if($diabook_font_size == "12.5"){
1108 .wall-item-container .wall-item-content {
1112 .wall-item-photo-container .wall-item-content {
1117 if($diabook_font_size == "12"){
1119 .wall-item-container .wall-item-content {
1123 .wall-item-photo-container .wall-item-content {
1128 if($line_height == "1.5"){
1130 .wall-item-container .wall-item-content {
1134 .wall-item-photo-container .wall-item-content {
1139 if($line_height == "1.4"){
1141 .wall-item-container .wall-item-content {
1145 .wall-item-photo-container .wall-item-content {
1150 if($line_height == "1.3"){
1152 .wall-item-container .wall-item-content {
1156 .wall-item-photo-container .wall-item-content {
1161 if($line_height == "1.2"){
1163 .wall-item-container .wall-item-content {
1167 .wall-item-photo-container .wall-item-content {
1172 if($line_height == "1.1"){
1174 .wall-item-container .wall-item-content {
1178 .wall-item-photo-container .wall-item-content {
1185 if($resolution == "wide") {
1186 if (file_exists("$THEMEPATH/diabook-pink/style-wide.css")){
1187 echo file_get_contents("$THEMEPATH/diabook-pink/style-wide.css");
1189 if($diabook_font_size == "15"){
1191 .wall-item-container .wall-item-content {
1195 .wall-item-photo-container .wall-item-content {
1200 if($diabook_font_size == "14"){
1202 .wall-item-container .wall-item-content {
1206 .wall-item-photo-container .wall-item-content {
1211 if($diabook_font_size == "13.5"){
1213 .wall-item-container .wall-item-content {
1217 .wall-item-photo-container .wall-item-content {
1222 if($diabook_font_size == "13"){
1224 .wall-item-container .wall-item-content {
1228 .wall-item-photo-container .wall-item-content {
1233 if($diabook_font_size == "12.5"){
1235 .wall-item-container .wall-item-content {
1239 .wall-item-photo-container .wall-item-content {
1244 if($diabook_font_size == "12"){
1246 .wall-item-container .wall-item-content {
1250 .wall-item-photo-container .wall-item-content {
1255 if($line_height == "1.5"){
1257 .wall-item-container .wall-item-content {
1261 .wall-item-photo-container .wall-item-content {
1266 if($line_height == "1.4"){
1268 .wall-item-container .wall-item-content {
1272 .wall-item-photo-container .wall-item-content {
1277 if($line_height == "1.3"){
1279 .wall-item-container .wall-item-content {
1283 .wall-item-photo-container .wall-item-content {
1288 if($line_height == "1.2"){
1290 .wall-item-container .wall-item-content {
1294 .wall-item-photo-container .wall-item-content {
1299 if($line_height == "1.1"){
1301 .wall-item-container .wall-item-content {
1305 .wall-item-photo-container .wall-item-content {