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
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
layerinfo type = "layout";
layerinfo name = "Smooth Sailing";
layerinfo author_name = "Michael Raffoul";
layerinfo author_email = "[email protected]";
layerinfo redist_uniq = "smoothsailing/layout";
layerinfo previews = "smoothsailing/layout.jpg";

set tags_aware = true;
propgroup presentation{
property use page_recent_items;
property use page_friends_items;
property use use_shared_pic;
property use view_entry_disabled;
property string layout_header_usericon {
des = "Header Journal Icon";
note = "The users icon will display in the very upper right corner of the page if this is set to \"show\". This is set to hide by default because the sidebar is turned on by default which contains a Profile box with the icon.";
values = "show|Show User's icon in header|hide|Hide User's icon";
}
property string layout_header_alignment {
des = "Header Text Alignment";
note = "This will affect the alignment of the title, subtitle, the menu links, and the page title below the menu.";
values = "left|Left Alignment|center|Center Alignment|right|Right Alignment";
}
property string layout_show_usericons {
des = "Usericon Visibility";
values = "all|Show on all pages|nonrecent|Show icons on all pages except the recent entries page|friends|Only show usericons on the friends page|none|Do not show any usericons";
}
property string layout_position_userinfo_entry {
des = "Userinfo Position in Entries";
note = "The Userinfo consists of the user's icon and user's LJ name";
values = "left|Left side of the entry text|right|Right side of the entry text";
}
property string layout_position_usernames_entry {
des = "Username Position in Entries";
values = "above|Above usericons|below|Below usericons";
}
property bool layout_wrapping_userinfo_entry {
des = "Wrap Entry text under userinfo";
}
property string layout_position_userinfo_comment {
des = "Userinfo Position in Comments";
note = "The Userinfo consists of the user's icon and user's LJ name";
values = "left|Left side of the entry text|right|Right side of the entry text";
}
property string layout_position_usernames_comment {
des = "Username Position in Comments";
values = "above|Above usericons|below|Below usericons";
}
property bool layout_wrapping_userinfo_comment {
des = "Wrap Comment text under userinfo";
}
property string layout_arrangement_metadata {
des = "MetaData Arrangement";
values = "inline|On a Single Line|block|Each on a Separate Line";
}
property string layout_position_metadata {
des = "MetaData Position";
values = "above|Above entry text|below|Below entry text";
}
property string layout_position_entrytags {
des = "Entry Tags Position";
values = "subject|After subject text in subjectbar|metadata|With Metadata (mood, music)";
}
property string layout_linkbar_alignment_entry {
des = "Linkbar Alignment in Entries";
values = "left|Align Left|center|Align Center|right|Align Right";
}
property string layout_linkbar_alignment_comment {
des = "Linkbar Alignment in Comments";
values = "left|Align Left|center|Align Center|right|Align Right";
}
property int layout_margin_left {
des = "The width (in pixels) of the margin for left side of journal (under Header)";
}
property int layout_margin_right {
des = "The width (in pixels) of the margin for right side of journal (under Header)";
}
property string layout_friends_sortorder {
des = "Order of entries shown on a Friends page";
note = "\"Most recent first\" means the newest entry is at the top of the page, \"Least Recent First\" means the newest entry is at the bottom of the page.";
values = "newest|Most Recent first|oldest|Least Recent First";
}
property string layout_day_sortorder {
des = "Order of days shown on a Day page";
values = "newest|Most Recent first|oldest|Least Recent First";
}
property string layout_year_sortorder {
des = "Order of months shown on a Year page";
values = "newest|Most Recent first|oldest|Least Recent First";
}
property string layout_guestbook_entryid {
des = "EntryID of the Guestbook";
note = "If you have an entry which you'd like to act as a Guestbook, then set this to be its ID number. The Entry's ID can be taken from the Page's URL, eg. if the page was at www.livejournal.com/users/username/12345.html, then the ID number is 12345. Text on the Entry's page body will be formatted differently (as defined by settings in the \"Page Text\" section), and other pages will treat it like a private entry (ie. it will not be seen on a Month page, Day page, etc).";
}
property int layout_replyform_textarea_width {
des = "Width of Message Area on Reply Form";
note = "The message area on the reply form on reply pages can often be very wide, causing the layout to stretch horizontally. If you would like to keep your journal from stretching specifically because of this message area, set a width here. A value of 0 will be translated into an unfixed width. For a browser maximised on a screen resolution of 800x600, a message area width of 450 (pixels) works well.";
}
property use custom_control_strip_colors;
set layout_header_usericon = "hide";
set layout_header_alignment = "left";
set layout_show_usericons = "all";
set layout_position_usernames_entry = "below";
set layout_position_userinfo_entry = "left";
set layout_wrapping_userinfo_entry = false;
set layout_position_usernames_comment = "below";
set layout_position_userinfo_comment = "left";
set layout_wrapping_userinfo_comment = false;
set layout_arrangement_metadata = "inline";
set layout_position_metadata = "below";
set layout_position_entrytags = "metadata";
set layout_linkbar_alignment_entry = "right";
set layout_linkbar_alignment_comment = "right";
set layout_margin_left = 20;
set layout_margin_right = 20;
set page_recent_items = 10;
set page_friends_items = 25;
set layout_friends_sortorder = "newest";
set layout_day_sortorder = "oldest";
set layout_year_sortorder = "newest";
set layout_guestbook_entryid = "0";
set layout_replyform_textarea_width = 0;
}

propgroup colors{
property Color color_header_title_background {
des = "Headerbar Title and Subtitle Background";
}
property Color color_header_title_text {
des = "Headerbar Title Text";
}
property Color color_header_subtitle_text {
des = "Headerbar Subtitle Text";
}
property Color color_header_menubar_background {
des = "Headerbar Menu Background";
}
property Color color_header_menubar_text {
des = "Headerbar Menu Text";
}
property Color color_header_menubar_background_hover {
des = "Headerbar Menu Background (when hovering)";
}
property Color color_header_menubar_text_hover {
des = "Headerbar Menu Text (when hovering)";
}
property Color color_header_borders {
des = "Headerbar Borders";
}
property Color color_body_titlebar_background {
des = "Body Titlebar Background";
note = "The body titlebar is just below the main header, and gives a title for the page (eg. Recent Entries, February 2005, etc)";
}
property Color color_body_titlebar_text {
des = "Body Titlebar Text";
}
property Color color_body_footer_background {
des = "Body Footer Background";
note = "The body footer is the bar at the bottom of the page with the last loaded time.";
}
property Color color_body_footer_text {
des = "Body Footer Text";
}
property Color color_body_background {
des = "Body Background";
}
property Color color_body_text {
des = "Body Text";
note = "This is text that appears directly on the main background, eg Reply Form text";
}
property Color color_body_entrytitle_background {
des = "Entry Title Background";
note = "An 'Entry' is any individual element that could be on a page (eg, a post, a comment, a month on the archive pages, a day listing on the month pages, etc)";
}
property Color color_body_entrytitle_background_alternate {
des = "Entry Title Background (Alternate)";
note = "The alternate background is for screened comment titlebars";
}
property Color color_body_entrytitle_border {
des = "Entry Title Border";
note = "The color of the upper border of the Entry Title";
}
property Color color_body_entrytitle_text {
des = "Entry Title Text";
note = "The color of the text in the Entry Title";
}
property Color color_body_entrytitle_links {
des = "Entry Title Links";
note = "The color of the links in the Entry Title";
}
property Color color_body_entry_userinfo_background {
des = "Entry Userinfo Background";
}
property Color color_body_entry_background {
des = "Entry Background";
}
property Color color_body_entry_text {
des = "Entry Text";
}
property Color color_body_links {
des = "Entry Links color";
}
property Color color_body_links_visited {
des = "Entry Links (visited) color";
}
property Color color_month_borders {
des = "Month View Line Color";
note = "The color of the lines that construct the calendar-like months on the archive page";
}
property Color color_month_title_background {
des = "Month Title Background";
note = "The color of the background where the day names appear in the calendar";
}
property Color color_month_title_text {
des = "Month Title Text";
note = "The color of the text where the day name appears in the calendar";
}
property Color color_month_dates {
des = "Month Date Text";
note = "The color of the text that indicates the dates in the calendar";
}
property Color color_month_postcount {
des = "Month Date Postcount Text";
note = "The color of the text that indicates the post count for a specific day";
}
property string layout_friends_colours {
des = "Usage of friend colors on friends page";
values = "subject|use on Subject line|none|Do not use colors";
}
property use control_strip_bgcolor;
property use control_strip_fgcolor;
property use control_strip_bordercolor;
property use control_strip_linkcolor;
set color_header_title_background = "#6b7da6";
set color_header_title_text = "#ffffff";
set color_header_subtitle_text = "#d4ddee";
set color_header_menubar_background = "#aabbdd";
set color_header_menubar_text = "#000000";
set color_header_menubar_background_hover = "#6b7da6";
set color_header_menubar_text_hover = "#000000";
set color_header_borders = "#ffffff";
set color_body_links = "#000000";
set color_body_links_visited = "#314667";
set color_body_titlebar_background = "#d4ddee";
set color_body_titlebar_text = "#000000";
set color_body_footer_background = "#aabbdd";
set color_body_footer_text = "#000000";
set color_body_background = "#f8f8f8";
set color_body_text = "#000000";
set color_body_entrytitle_background = "#dddddd";
set color_body_entrytitle_background_alternate = "#cccccc";
set color_body_entrytitle_border = "#ffffff";
set color_body_entrytitle_text = "#000000";
set color_body_entrytitle_links = "#000000";
set color_body_entry_userinfo_background = "#f8f8f8";
set color_body_entry_background = "#f8f8f8";
set color_body_entry_text = "#000000";
set color_month_borders = "#dddddd";
set color_month_title_background = "#eeeeee";
set color_month_title_text = "#000000";
set color_month_dates = "#000000";
set color_month_postcount = "#000000";
set layout_friends_colours = "none";
}

propgroup fonts {
property string font_base {
des = "Default Font for the page";
note = "This font will apply to the entire page as the base font. If you set any of the other font properties below, they will override this setting for that specific part of the page.";
}
property int font_base_size {
des = "Default Font Size for the page.";
}
property string font_header_title {
des = "Font for the Header Title";
}
property int font_header_title_size {
des = "Font Size for the Header Title";
}
property string font_header_subtitle {
des = "Font for the Header Subtitle";
}
property int font_header_subtitle_size {
des = "Font Size for the Header Subtitle";
}
property string font_header_menu {
des = "Font for the Header Menu";
}
property int font_header_menu_size {
des = "Font Size for the Header Menu";
}
property string font_body_title {
des = "Font for Body Title";
}
property int font_body_title_size {
des = "Font Size for Body Title";
}
property string font_sidebar_title {
des = "Font for Sidebar Titles";
}
property int font_sidebar_title_size {
des = "Font Size for Sidebar Titles";
}
property string font_sidebar_text {
des = "Font for Sidebar Text";
}
property int font_sidebar_text_size {
des = "Font Size for Sidebar Text";
}
property string font_entry_title {
des = "Font for Entry Title";
}
property int font_entry_title_size {
des = "Font Size for Entry Title";
}
property string font_entry_text {
des = "Font for Entry Text";
}
property int font_entry_text_size {
des = "Font Size for Entry Text";
}
property string font_entry_linkbar {
des = "Font for Entry Linkbar";
}
property int font_entry_linkbar_size {
des = "Font Size for Entry Linkbar";
}
property int font_archive_daycount_size {
des = "Font Size for the Day Counts on the Archive Page";
}
set font_base = "Arial";
set font_base_size = 12;
set font_header_title = "";
set font_header_title_size = 30;
set font_header_subtitle = "";
set font_header_subtitle_size = 24;
set font_header_menu = "";
set font_header_menu_size = 12;
set font_sidebar_title = "";
set font_sidebar_title_size = 12;
set font_sidebar_text = "";
set font_sidebar_text_size = 11;
set font_body_title = "";
set font_body_title_size = 18;
set font_entry_title = "";
set font_entry_title_size = 12;
set font_entry_text = "";
set font_entry_text_size = 12;
set font_entry_linkbar = "";
set font_entry_linkbar_size = 11;
set font_archive_daycount_size = 20;
}

propgroup images{
property string layout_background {
des = "Background image URL";
note = "You can specify a URL for an image to appear as the background on the body of the journal. If you would like to see the background through the entry background (ie. to achieve a transparent effect), go to the Colors section and set the Entry Background BLANK.";
}
set layout_background = "";
}

propgroup text_page = "Page Text";
propgroup text_page{
property string text_comment_to{
des = "Text for titlebar above Entry when commenting to an Entry";
}
property string text_signing_guestbook{
des = "Text for titlebar above Guestbook Entry when signing the Guestbook";
}
property string text_reply_to{
des = "Text for titlebar above Comment when replying to a Comment";
}
property string text_comment_form {
des = "Text for titlebar above Form when commenting to an Entry";
}
property string text_signing_form {
des = "Text for titlebar above Form when signing the Guestbook";
}
property string text_reply_form {
des = "Text for titlebar above Form when replying to a Comment";
}
property string text_comment_seperator {
des = "Text for titlebar between and Entry and its Comments";
}
property string text_signature_seperator {
des = "Text for titlebar between the Guestbook entry and its Signatures";
}
property string text_replypage_warning {
des = "Text for Warning above Reply Form";
note = "This text will appear above the reply form on the reply page if a guestbook is active. It can be used to advise the poster that there is a Guestbook for guest comments. HTML is allowed.";
string_mode = "html-oneline";
}
property string sticky_subject {
des = "Text for the Title of the Welcome Note";
note = "If you leave this empty, no title or header bar will be displayed.";
}
property string sticky_post {
des = "Text for Welcome Note on Recent Entries Page";
note = "If you want a permanent message at the top of your Recent Entries Page, above your entries, you can enter it here. HTML is allowed.";
rows = 20;
cols = 50;
string_mode = "html";
}
property string text_post_comment_entrypage {
des = "Text for make-a-comment link beneath all existing comments";
}
property string text_top_of_page {
des = "Text for lower navigation bar to link to the Top of the Page";
}
property string text_footer_signature {
des = "Text for the footer at the bottom of the page";
note = "You can use this setting to construct a message that will appear at the bottom of the page. You can specify a format for the date and time that the page was loaded, which will be in GMT.";
}
set text_reply_form = "Reply Form";
set text_reply_to = "Replying To";
set text_comment_to = "Commenting To";
set text_comment_form = "Comment Form";
set text_signing_form = "Signing Form";
set text_signing_guestbook= "Signing Guestbook";
set text_comment_seperator = "Comments";
set text_signature_seperator = "Signatures";
set text_replypage_warning = "";
set sticky_subject = "";
set sticky_post = "";
set text_post_comment_entrypage = "Leave a Comment to the Entry";
set text_top_of_page = "Top of Page";
set text_footer_signature = "This page was loaded %%mon%% %%dayord%% %%yyyy%%, %%h%%:%%min%% %%a%%m GMT.";
}

propgroup text_entry = "Entry Text";
propgroup text_entry{
property use text_nosubject;
property use text_poster_anonymous;
property string text_entry_username_seperator {
des = "Entry Username Separator";
note = "This is to place between the poster username and journal username if different on the Friends page. That is, for community posts, it will be {poster}{separator}{journal}.";
noui = 1;
}
property use text_meta_music;
property use text_meta_mood;
property use text_meta_location;
property string text_meta_tags {
des = "Text for Tag list in Entries";
}
property use text_read_comments;
property use text_post_comment;
property string text_post_comment_guestbook {
des = "Text to sign the guestbook";
}
property use text_permalink;
property string text_edit{
des = "Text to edit an entry";
}
property string text_edittag{
des = "Text to edit tags for an entry";
}
property string text_add_to_memories{
des = "Text to add an entry into memories";
}
property use text_tell_friend;
property string text_track_comments{
des = "Text to track new comments on an entry";
}
property string text_untrack_comments{
des = "Text to stop tracking new comments on an entry";
}
property use text_comment_parent;
property use text_comment_reply;
property use text_comment_thread;
property use text_comment_expand;
property string text_comment_permalink {
des = "Text to link to a comment";
}
property use text_multiform_opt_edit;
property use text_multiform_opt_delete;
property use text_multiform_opt_screen;
property use text_multiform_opt_unscreen;
property use text_multiform_opt_freeze;
property use text_multiform_opt_unfreeze;
property use text_multiform_check;
property string text_format_entry_date_and_time {
des = "Format for Date and Time (Recent/Friends/Entry/Reply page)";
note = "This will describe the format to print the date and time on the subject line for the mentioned pages. The subject line will be printed as \"<date/time format> - <subject>\".";
}
property string text_format_entry_time {
des = "Format for Date and Time (Day page only)";
note = "This is provided as a separate customisation from the previous because users may want to supress the printing of the Date part of the subject line on Day pages. On these pages, only entries from that certain Date will be printed and the Page's header will reflect that under the menu. Putting the date on the subject line is unnecessary and is left out by default. If you would like it to appear just as on other pages, use the same format as the previous setting.";
}
set text_entry_username_seperator = "";
set text_meta_music = "Music";
set text_meta_mood = "Mood";
set text_meta_location = "Location";
set text_meta_tags = "Tags";
## this property is declared in core and may be redefined in i18nc layer. Don't override the i18nc value here.
## set text_read_comments = "Read 1 // Read #";
set text_post_comment = "Speak";
set text_post_comment_guestbook = "Sign Guestbook";
set text_edit = "Edit";
set text_edittag = "Edit Tags";
set text_add_to_memories = "Remember";
set text_track_comments = "Track Comments";
set text_untrack_comments = "Stop Tracking Comments";
set text_comment_permalink = "Link";
set text_multiform_check = "Select";
set text_poster_anonymous = "Anonymous";
set text_format_entry_date_and_time = "%%dayord%%-%%mon%%-%%yyyy%% %%hh%%:%%min%% %%a%%m";
set text_format_entry_time = "%%hh%%:%%min%% %%a%%m";
}

propgroup text_header = "Menu";
propgroup text_header{
property bool layout_menubar_memories {
des = "Show Memories link on Menubar";
}
property bool layout_menubar_scrapbook {
des = "Show Scrapbook link on Menubar";
note = "If you have a Scrapbook and would like to show it in your menu bar, turn this option on";
noui = 1;
}
property bool layout_menubar_website {
des = "Show Website link from Userinfo page on Menubar";
}
property use text_view_recent;
property use text_view_archive;
property use text_view_userinfo;
property use text_view_friends;
property use text_view_memories;
property string text_view_guestbook {
des = "Text used to link to the Guestbook Entry (if it exists)";
}
property string text_view_scrapbook{
des = "Text used to link to your Scrapbook Gallery (if you have one)";
noui = 1;
}
property string text_nav_prev_page {
des = "Text used to link to the Previous page (Default)";
}
property string text_nav_next_page {
des = "Text used to link to the Next page (Default)";
}
property string text_nav_prev_recentpage {
des = "Text used to link to the Previous Recent/Friends page";
}
property string text_nav_next_recentpage {
des = "Text used to link to the Next Recent/Friends page";
}
property string text_nav_prev_entrypage {
des = "Text used to link to the Previous Entry page";
}
property string text_nav_next_entrypage {
des = "Text used to link to the Next Entry page";
}
property string text_nav_format_monthpage {
des = "Format used for Month Pages (Previous/Next links and Page Title)";
}
property string text_nav_format_daypage {
des = "Format used for Day Pages (Previous/Next links and Page Title)";
}
set layout_menubar_scrapbook = false;
set layout_menubar_website = true;
set layout_menubar_memories = true;
set text_view_friends = "Friends' Entries";
set text_view_guestbook = "Guestbook";
set text_view_scrapbook = "Galleries";
set text_nav_prev_page = "Previous";
set text_nav_next_page = "Next";
set text_nav_prev_recentpage = "Previous Entry // Previous # Entries";
set text_nav_next_recentpage = "Next Entry // Next # Entries";
set text_nav_prev_entrypage = "Previous Entry";
set text_nav_next_entrypage = "Next Entry";
set text_nav_format_monthpage = "%%month%% %%yyyy%%";
set text_nav_format_daypage = "%%month%% %%dayord%%, %%yyyy%%";
}

propgroup text_sidebar = "Sidebar";
propgroup text_sidebar{
property string layout_sidebar_position {
des = "Sidebar Position";
values = "left|Left Side|right|Right Side|none|Do not show";
}
property int layout_sidebar_width {
des = "Sidebar Width";
note = "The width (in pixels) for the sidebar";
}
property string layout_sidebox_title_alignment {
des = "Sidebox Title Alignment";
values = "left|Align Left|center|Align Center|right|Align Right";
}
property string layout_sidebox_profile_visibility {
des = "Profile Position";
values = "1|1|2|2|3|3|4|4|5|5|6|6|7|7|8|8|9|9|10|10|11|11|12|12|13|13|14|14|15|15|16|16|17|17|hide|hide";
}
property string text_sidebox_profile_title {
des = "Profile Title";
}
property string text_sidebox_profile_userlabel {
des = "Profile Username Label";
}
property string text_sidebox_profile_namelabel {
des = "Profile Name Label";
}
property string text_sidebox_profile_info {
des = "Profile Extra Text";
note = "If you would like extra information in your profile, then place it here. It will appear after the Name is printed. HTML is allowed.";
string_mode = "html-oneline";
}
property string layout_sidebox_summary_visibility {
des = "Summary Position";
values = "1|1|2|2|3|3|4|4|5|5|6|6|7|7|8|8|9|9|10|10|11|11|12|12|13|13|14|14|15|15|16|16|17|17|hide|hide";
}
property string text_sidebox_summary_title {
des = "Summary Sidebox Title";
}
property string text_sidebox_summary_bullet {
des = "Summary Bullet";
note = "If you would like to change the summary bullet from a dot, then you can enter new characters here, including html-ized special characters.";
}
property bool text_sidebox_summary_bullet_bold {
des = "Summary Bullet Bolded";
note = "If you would like your bullets bolded, then choose yes. This will be for a purely cosmetic change to the bullets.";
}
property string text_sidebox_summary_username_seperator {
des = "Summary Username Separator";
note = "This is to place between the poster username and journal username if different in the Summary. That is, for community posts, it will be {poster}{separator}{journal}.";
}
property string layout_sidebox_latestmonth_visibility {
des = "Latest Month Position";
values = "1|1|2|2|3|3|4|4|5|5|6|6|7|7|8|8|9|9|10|10|11|11|12|12|13|13|14|14|15|15|16|16|17|17|hide|hide";
}
property string text_sidebox_latestmonth_title{
des = "Latest Month Sidebox Title";
}
property string layout_sidebox_links_visibility {

des = "Links Visibility";
values = "1|1|2|2|3|3|4|4|5|5|6|6|7|7|8|8|9|9|10|10|11|11|12|12|13|13|14|14|15|15|16|16|17|17|hide|hide";
}
property string text_sidebox_links_title{
des = "Links Sidebox Title";
}
property string layout_sidebox_links_alignment {
des = "Links Sidebox Alignment";
values = "left|Align links left|center|Align links center|right|Align links right";
}
property string layout_sidebox_tags_visibility {
des = "Tags Sidebox Position";
values = "1|1|2|2|3|3|4|4|5|5|6|6|7|7|8|8|9|9|10|10|11|11|12|12|13|13|14|14|15|15|16|16|17|17|hide|hide";
}
property string text_sidebox_tags_title{
des = "Tags Sidebox Title";
}
property string layout_sidebox_tags_alignment {
des = "Tags Sidebox Alignment";
values = "left|Align links left|center|Align links center|right|Align links right";
}
property string layout_sidebox_multisearch_visibility {
des = "Multisearch Position";
values = "1|1|2|2|3|3|4|4|5|5|6|6|7|7|8|8|9|9|10|10|11|11|12|12|13|13|14|14|15|15|16|16|17|17|hide|hide";
}
property string text_sidebox_multisearch_title{
des = "Multisearch Sidebox Title";
}
property string layout_sidebox_freetext_visibility {
des = "Free Text Position";
values = "1|1|2|2|3|3|4|4|5|5|6|6|7|7|8|8|9|9|10|10|11|11|12|12|13|13|14|14|15|15|16|16|17|17|hide|hide";
}
property string text_sidebox_freetext_title{
des = "Free Text Sidebox Title";
}
property string text_sidebox_freetext_text{
des = "Free Text Sidebox Text";
note = "You are allowed to put anything you want here. HTML is allowed.";
rows = 10;
cols = 25;
string_mode = "html";
}
property string layout_sidebox_freetext_2_visibility {
des = "Free Text #2 Position";
values = "1|1|2|2|3|3|4|4|5|5|6|6|7|7|8|8|9|9|10|10|11|11|12|12|13|13|14|14|15|15|16|16|17|17|hide|hide";
}
property string text_sidebox_freetext_2_title{
des = "Free Text Sidebox #2 Title";
}
property string text_sidebox_freetext_2_text{
des = "Free Text Sidebox #2 Text";
note = "You are allowed to put anything you want here. HTML is allowed.";
rows = 10;
cols = 25;
string_mode = "html";
}
property string layout_sidebox_freetext_3_visibility {
des = "Free Text #3 Position";
values = "1|1|2|2|3|3|4|4|5|5|6|6|7|7|8|8|9|9|10|10|11|11|12|12|13|13|14|14|15|15|16|16|17|17|hide|hide";
}
property string text_sidebox_freetext_3_title{
des = "Free Text Sidebox #3 Title";
}
property string text_sidebox_freetext_3_text{
des = "Free Text Sidebox #3 Text";
note = "You are allowed to put anything you want here. HTML is allowed.";
rows = 10;
cols = 25;
string_mode = "html";
}
property string layout_sidebox_freetext_4_visibility {
des = "Free Text #4 Position";
values = "1|1|2|2|3|3|4|4|5|5|6|6|7|7|8|8|9|9|10|10|11|11|12|12|13|13|14|14|15|15|16|16|17|17|hide|hide";
}
property string text_sidebox_freetext_4_title{
des = "Free Text Sidebox #4 Title";
}
property string text_sidebox_freetext_4_text{
des = "Free Text Sidebox #4 Text";
note = "You are allowed to put anything you want here. HTML is allowed.";
rows = 10;
cols = 25;
string_mode = "html";
}
property string layout_sidebox_freetext_5_visibility {
des = "Free Text #5 Position";
values = "1|1|2|2|3|3|4|4|5|5|6|6|7|7|8|8|9|9|10|10|11|11|12|12|13|13|14|14|15|15|16|16|17|17|hide|hide";
}
property string text_sidebox_freetext_5_title{
des = "Free Text Sidebox #5 Title";
}
property string text_sidebox_freetext_5_text{
des = "Free Text Sidebox #5 Text";
note = "You are allowed to put anything you want here. HTML is allowed.";
rows = 10;
cols = 25;
string_mode = "html";
}
property string layout_sidebox_freetext_6_visibility {
des = "Free Text #6 Position";
values = "1|1|2|2|3|3|4|4|5|5|6|6|7|7|8|8|9|9|10|10|11|11|12|12|13|13|14|14|15|15|16|16|17|17|hide|hide";
}
property string text_sidebox_freetext_6_title{
des = "Free Text Sidebox #6 Title";
}
property string text_sidebox_freetext_6_text{
des = "Free Text Sidebox #6 Text";
note = "You are allowed to put anything you want here. HTML is allowed.";
rows = 10;
cols = 25;
string_mode = "html";
}
property string layout_sidebox_freetext_7_visibility {
des = "Free Text #7 Position";
values = "1|1|2|2|3|3|4|4|5|5|6|6|7|7|8|8|9|9|10|10|11|11|12|12|13|13|14|14|15|15|16|16|17|17|hide|hide";
}
property string text_sidebox_freetext_7_title{
des = "Free Text Sidebox #7 Title";
}
property string text_sidebox_freetext_7_text{
des = "Free Text Sidebox #7 Text";
note = "You are allowed to put anything you want here. HTML is allowed.";
rows = 10;
cols = 25;
string_mode = "html";
}
property string layout_sidebox_freetext_8_visibility {
des = "Free Text #8 Position";
values = "1|1|2|2|3|3|4|4|5|5|6|6|7|7|8|8|9|9|10|10|11|11|12|12|13|13|14|14|15|15|16|16|17|17|hide|hide";
}
property string text_sidebox_freetext_8_title{
des = "Free Text Sidebox #8 Title";
}
property string text_sidebox_freetext_8_text{
des = "Free Text Sidebox #8 Text";
note = "You are allowed to put anything you want here. HTML is allowed.";
rows = 10;
cols = 25;
string_mode = "html";
}
property string layout_sidebox_freetext_9_visibility {
des = "Free Text #9 Position";
values = "1|1|2|2|3|3|4|4|5|5|6|6|7|7|8|8|9|9|10|10|11|11|12|12|13|13|14|14|15|15|16|16|17|17|hide|hide";
}
property string text_sidebox_freetext_9_title{
des = "Free Text Sidebox #9 Title";
}
property string text_sidebox_freetext_9_text{
des = "Free Text Sidebox #9 Text";
note = "You are allowed to put anything you want here. HTML is allowed.";
rows = 10;
cols = 25;
string_mode = "html";
}
property string layout_sidebox_freetext_10_visibility {
des = "Free Text #10 Position";
values = "1|1|2|2|3|3|4|4|5|5|6|6|7|7|8|8|9|9|10|10|11|11|12|12|13|13|14|14|15|15|16|16|17|17|hide|hide";
}
property string text_sidebox_freetext_10_title{
des = "Free Text Sidebox #10 Title";
}
property string text_sidebox_freetext_10_text{
des = "Free Text Sidebox #10 Text";
note = "You are allowed to put anything you want here. HTML is allowed.";
rows = 10;
cols = 25;
string_mode = "html";
}
property string layout_sidebox_freetext_private_visibility {
des = "Private Free Text Position";
values = "1|1|2|2|3|3|4|4|5|5|6|6|7|7|8|8|9|9|10|10|11|11|12|12|13|13|14|14|15|15|16|16|17|17|hide|hide";
}
property string text_sidebox_freetext_private_title{
des = "Private Free Text Sidebox Title";
}
property string text_sidebox_freetext_private_text{
des = "Private Free Text Sidebox Text";
note = "You are allowed to put anything you want here. Only you will be able to see this sidebox when logged in. HTML is allowed.";
rows = 10;
cols = 25;
string_mode = "html";
}
set layout_sidebar_position = "left";
set layout_sidebar_width = 200;
set text_sidebox_summary_bullet = "&middot;&nbsp;";
set text_sidebox_summary_bullet_bold = true;
set text_sidebox_profile_info = "";
set text_sidebox_profile_userlabel = "User: ";
set text_sidebox_profile_namelabel = "Name: ";
set text_sidebox_summary_username_seperator = " in ";
set text_sidebox_profile_title = "Profile";
set text_sidebox_links_title = "Links";
set text_sidebox_tags_title = "Entry Tags";
set text_sidebox_summary_title = "Page Summary";
set text_sidebox_latestmonth_title = "Latest Month";
set text_sidebox_multisearch_title = "Search";
set layout_sidebox_profile_visibility = "1";
set layout_sidebox_summary_visibility = "2";
set layout_sidebox_latestmonth_visibility = "3";
set layout_sidebox_links_visibility = "4";
set layout_sidebox_tags_visibility = "17";
set layout_sidebox_multisearch_visibility = "5";
set layout_sidebox_freetext_visibility = "hide";
set text_sidebox_freetext_title = "Note";
set text_sidebox_freetext_text = "";
set layout_sidebox_freetext_2_visibility = "hide";
set text_sidebox_freetext_2_title = "Note 2";
set text_sidebox_freetext_2_text = "";
set layout_sidebox_freetext_3_visibility = "hide";
set text_sidebox_freetext_3_title = "Note 3";
set text_sidebox_freetext_3_text = "";
set layout_sidebox_freetext_4_visibility = "hide";
set text_sidebox_freetext_4_title = "Note 4";
set text_sidebox_freetext_4_text = "";
set layout_sidebox_freetext_5_visibility = "hide";
set text_sidebox_freetext_5_title = "Note 5";
set text_sidebox_freetext_5_text = "";
set layout_sidebox_freetext_6_visibility = "hide";
set text_sidebox_freetext_6_title = "Note 6";
set text_sidebox_freetext_6_text = "";
set layout_sidebox_freetext_7_visibility = "hide";
set text_sidebox_freetext_7_title = "Note 7";
set text_sidebox_freetext_7_text = "";
set layout_sidebox_freetext_8_visibility = "hide";
set text_sidebox_freetext_8_title = "Note 8";
set text_sidebox_freetext_8_text = "";
set layout_sidebox_freetext_9_visibility = "hide";
set text_sidebox_freetext_9_title = "Note 9";
set text_sidebox_freetext_9_text = "";
set layout_sidebox_freetext_10_visibility = "hide";
set text_sidebox_freetext_10_title = "Note 10";
set text_sidebox_freetext_10_text = "";
set layout_sidebox_freetext_private_visibility = "hide";
set text_sidebox_freetext_private_title = "Private";
set text_sidebox_freetext_private_text = "";
set layout_sidebox_links_alignment = "center";
set layout_sidebox_tags_alignment = "center";
}

propgroup text_tagspage = "Tags Page";
propgroup text_tagspage {
property string layout_tagspage {
des = "Layout for the Tags Page";
values = "list|Simple list of tags with overall usage|table|Detailed table with usage counts for various security levels";
}
property string text_tags_pagetitle {
des = "Text for the title of the Tags page";
}
property string text_tags_none {
des = "Text for Tags page when no tags are present";
}
property use text_tag_uses;
property string text_tags_name {
des = "Text for Tags Page table title for name";
}
property string text_tags_usage {
des = "Text for Tags Page table title for usage count";
}
property string text_tags_total {
des = "Text for Tags Page table title for total usage";
}
property string text_tags_public {
des = "Text for Tags Page table title for public usage";
}
property string text_tags_friends {
des = "Text for Tags Page table title for friends usage";
}
property string text_tags_group {
des = "Text for Tags Page table title for custom friends group usage";
}
property string text_tags_private {
des = "Text for Tags Page table title for private usage";
}
set layout_tagspage = "table";
set text_tags_pagetitle = "Entry Tags Listing";
set text_tags_none = "This user currently does not have any Tags.";
set text_tags_name = "Tag";
set text_tags_usage = "Usage Counts";
set text_tags_total = "Total";
set text_tags_public = "Public";
set text_tags_friends = "Friends";
set text_tags_private = "Private";
}

propgroup customcss {
property use include_default_stylesheet;
property bool include_default_stylesheet_with_linked {
des = "Use layout's stylesheet(s) when including custom external stylesheet";
note = "This option will have no effect unless a custom external stylesheet URL has been provided. It will override the previous option's setting.";
}
property string layout_stylesheet {
des = "Custom external stylesheet URL";
note = "If you have a custom external stylesheet that you'd like to use, enter its URL here.";
}
property string layout_custom_css {
des = "Custom stylesheet";
note = "If you'd like to add custom CSS to this style, enter it here.";
cols = 50;
rows = 20;
string_mode = "css";
}
set include_default_stylesheet_with_linked = false;
set layout_stylesheet = "";
set layout_custom_css = "";
}

set external_stylesheet = true;

function prop_init () {
if ($*control_strip_bgcolor.as_string == "") {
$*control_strip_bgcolor = $*color_body_entry_background;
}
if ($*control_strip_fgcolor.as_string == "") {
$*control_strip_fgcolor = $*color_body_entry_text;
}
if ($*control_strip_bordercolor.as_string == "") {
$*control_strip_bordercolor = $*color_body_entrytitle_border;
}
if ($*control_strip_linkcolor.as_string == "") {
$*control_strip_linkcolor = $*color_body_links;
}

$*theme_bgcolor = $*color_body_entry_background;
$*theme_fgcolor = $*color_body_entry_text;
$*theme_bordercolor = $*color_body_entrytitle_border;
$*theme_linkcolor = $*color_body_links;
}

function print_stylesheet() "Prints the CSS that goes into the stylesheet for the layout" {
"""
body {
font-family: $*font_base, sans-serif;
font-size: """; print $*font_base_size; """px;
margin: 0px;
background-color: $*color_body_background;
color: $*color_body_text;
""";
if (clean_url($*layout_background) != "") {
"""background-image: url('$*layout_background');""";
}
"""
}
a {
color: $*color_body_links;
}
a:visited {
color: $*color_body_links_visited;
}
.entryHeaderDate a {
color : $*color_body_entrytitle_links;
text-decoration : none;
}
.entryHeaderDate a:hover {
color : $*color_body_entrytitle_links;
text-decoration : underline;
}
.header-title {
background-color: $*color_header_title_background;
font-family: $*font_header_title;
font-size: """; print $*font_header_title_size; """px;
color: $*color_header_title_text;
padding: 0px 20px 0px 20px;
}
.header-subtitle {
background-color: $*color_header_title_background;
color: $*color_header_subtitle_text;
font-family: $*font_header_subtitle;
font-size: """; print $*font_header_subtitle_size; """px;
padding: 0px 24px 0px 24px;
}
.header-icon {
top: 0px;
right: 0px;
position: absolute;
z-index: 1;
border-left: 2px solid $*color_header_borders;
border-bottom: 2px solid $*color_header_borders;
}
.pageheaderblock {
text-align: $*layout_header_alignment;
}
.pagefooterblock {
border-top: 2px solid $*color_body_entrytitle_border;
background-color: $*color_body_footer_background;
color: $*color_body_footer_text;
padding: 4px 4px 4px 24px;
margin-top: 4px;
}
.pagefooterblock a, .pagefooterblock a:visited {
color: $*color_body_footer_text;
}
.bodyblock {
padding: 10px """;print $*layout_margin_right;"""px 0px """;print $*layout_margin_left;"""px;
}
.bodyheaderblock {
border-top: 2px solid $*color_header_borders;
background-color: $*color_body_titlebar_background;
padding: 4px 0px 4px 0px;
}
.bodynavblock {
border-top: 2px solid $*color_header_borders;
background-color: $*color_body_titlebar_background;
color: $*color_body_titlebar_text;
margin: 10px 0px 4px 0px;
padding: 8px;
}
.bodynavblock a, .bodynavblock a:visited {
color: $*color_body_titlebar_text;
}
.body-title {
font-family: $*font_body_title;
font-size: """; print $*font_body_title_size; """px;
color: $*color_body_titlebar_text;
text-align: $*layout_header_alignment;
padding-left: 24px;
}
.body-midtitle {
font-family: $*font_body_title;
font-size: """; print $*font_body_title_size; """px;
color: $*color_body_titlebar_text;
text-align: left;
padding-left: 8px;
}
.entryHolder {
color: $*color_body_entry_text;
background-color: $*color_body_entry_background;
font-family: $*font_entry_text;
font-size: """; print $*font_entry_text_size; """px;
border-top: 2px solid $*color_body_entrytitle_border;
margin: 4px 0px 4px 0px;
}
.entryUserinfo {
text-align: center;""";
if ($*layout_position_userinfo_entry=="left") { """
margin: 0px 8px 8px 0px;
""";}elseif($*layout_position_userinfo_entry=="right") { """
margin: 0px 0px 8px 8px;
""";}"""
background-color: $*color_body_entry_userinfo_background;
}
.entryUserinfo-usericon img {





border: 0;
}
.entryText {
padding: 6px;
}
.entryHeader {
background-color: $*color_body_entrytitle_background;
color: $*color_body_entrytitle_text;
font-family: $*font_entry_title;
font-size: """; print $*font_entry_title_size; """px;
padding: 4px 0px 4px 8px;
}
.entryHeader a{
color: $*color_body_entrytitle_links;
}
.entryHeaderSubject {
font-weight: bold;
}
.entryHeaderSubject A, .entryHeaderSubject A:hover, .entryHeaderSubject A:visited {
text-decoration: none;
color: $*color_body_entrytitle_text;
}
.entryMetadata {
padding-left: 6px;
}
.entryMetadata ul {
margin: 0px;
padding: 0px;
}
.entryMetadata li {
list-style: none;
display: $*layout_arrangement_metadata;
padding-right: 10px;
}
.entryMetadata-label {
font-weight: bold;
padding-right: 4px;
}
.entryLinkbar {
font-family: $*font_entry_linkbar;
font-size: """; print $*font_entry_linkbar_size; """px;
color: $*color_body_entry_text;
text-align: $*layout_linkbar_alignment_entry;
padding: 4px 0px 4px 0px;
}
.entryLinkbar ul {
margin: 0px;
padding: 0px;
}
.entryLinkbar li {
padding: 0px 5px 0px 5px;
margin: 0px;
display: inline;
}
.commentHolder {
color: $*color_body_entry_text;
background-color: $*color_body_entry_background;
border-top: 2px solid $*color_body_entrytitle_border;
font-family: $*font_entry_text;
font-size: """; print $*font_entry_text_size; """px;
margin: 4px 0px 4px 0px;
}
.commentUserinfo {
text-align: center; """;
if ($*layout_position_userinfo_comment=="left") { """
margin: 0px 8px 8px 0px;
""";}elseif($*layout_position_userinfo_comment=="right") { """
margin: 0px 0px 8px 8px;
""";}"""
background-color: $*color_body_entry_userinfo_background;
}
.commentUserinfo-usericon img {
border: 0;
}
.commentText {
padding: 6px;
}
.commentHeader {
background-color: $*color_body_entrytitle_background;
color: $*color_body_entrytitle_text;
font-family: $*font_entry_title;
font-size: """; print $*font_entry_title_size; """px;
padding: 4px 0px 4px 8px;
}
.commentHeader a{
color: $*color_body_entrytitle_links;
}
.commentHeaderScreened {
font-family: $*font_entry_title;
font-size: """; print $*font_entry_title_size; """px;
background-color: $*color_body_entrytitle_background_alternate;
padding: 4px 0px 4px 8px;
}
.commentHeaderSubject {
font-weight: bold;
}
.commentLinkbar {
font-family: $*font_entry_linkbar;
font-size: """; print $*font_entry_linkbar_size; """px;
color: $*color_body_entry_text;
text-align: $*layout_linkbar_alignment_comment;
padding-top: 4px;
padding-bottom: 4px;
}
.commentLinkbar ul {
margin: 0px;
padding: 0px;
}
.commentLinkbar li {
padding: 0px 5px 0px 5px;
margin: 0px;
display: inline;
}
.replyform {
background-color: $*color_body_entry_background;
color: $*color_body_entry_text;
padding-left: 10px;
}
.yearlinks{
text-align: right;
}
.yearlink{
padding-left:4px;
padding-right: 4px;
}
.month {
width: 500px;
border: 1px solid $*color_month_borders;
margin: 8px 8px 8px 40px;
}
.daysubjects {
color: $*color_body_entry_text;
padding: 8px 8px 8px 40px;
}
.daytitles {
text-align: center;
border: 1px solid $*color_month_borders;
background: $*color_month_title_background;
color: $*color_month_title_text;
}
.day-blank {
border: 1px solid $*color_month_borders;
}
.day {
border: 1px solid $*color_month_borders;
}
.day-date {
border-right: 1px solid $*color_month_borders;
border-bottom: 1px solid $*color_month_borders;
color: $*color_month_dates;
width: 50%;
text-align: center;
}
.day-count {
width: 50%;
text-align: center;
float: right;
font-size: """; print $*font_archive_daycount_size; """px;
}
.day-count a {
text-decoration: none;
color: $*color_month_postcount;
}
""";

# print sidebar css only if we need to
if ($*layout_sidebar_position!="none" or viewer_sees_vbox()) { """
.sidebar {
font-family: $*font_sidebar_text;
font-size: """; print $*font_sidebar_text_size; """px;
margin-"""; if($*layout_sidebar_position=="left"){print "right";}else{print "left";}""": 20px;
width: """; print $*layout_sidebar_width; """px;
}
.sidebox {
color: $*color_body_entry_text;
background-color: $*color_body_entry_background;
margin: 4px 0px 4px 0px;
}
.sideboxTitle {
background-color: $*color_body_entrytitle_background;
color: $*color_body_entrytitle_text;
border-top: 2px solid $*color_body_entrytitle_border;
font-family: $*font_sidebar_title;
font-size: """; print $*font_sidebar_title_size; """px;
padding: 4px 0px 4px 8px;
text-align: $*layout_sidebox_title_alignment;
}
.sideboxContent {
text-align: left;
padding: 2px 4px 2px 4px;
}
.sidebox #profile, .sidebox #latestmonth, .sidebox #search {
text-align: center;
}
.sidebox #tags_sidebox {
text-align: $*layout_sidebox_tags_alignment;
}
.sidebox #systemlinks {
text-align: $*layout_sidebox_links_alignment;
}
.sidebox #latestmonth table{
width: 90%;
margin-left: auto;
margin-right: auto;
margin-top: 4px;
}
.listtitle {
font-weight: bold;
}
.profile-label {
font-weight: bold;
}
""";}

"""
.header-menu {
padding: 0px;
background-color: $*color_header_menubar_background;
border-top: 2px solid $*color_header_borders;
padding-left: 19px;
font-family: $*font_header_menu;
font-size: """; print $*font_header_menu_size; """px;
line-height: """; print ($*font_header_menu_size+8); """px;
}
.header-menu a, .header-menu a:visited {
white-space: nowrap;
text-align: left;
padding: 2px 6px 2px 6px;
color: $*color_header_menubar_text;
text-decoration: none;
}
.header-menu a:hover {
background-color: $*color_header_menubar_background_hover;
color: $*color_header_menubar_text_hover;
}
#footer-menu {
font-size: 11px;
}
#footer-menu a, .footer-menu a:visited {
color: $*color_body_titlebar_text;
white-space: nowrap;
padding: 6px;
text-align: left;
}
.header-menu ul, #footer-menu ul {
margin: 0px;
padding: 0px;
}
.header-menu li, #footer-menu li {
display: inline;
}
.tagstable, .tagstable td {
border: 1px solid $*color_month_borders;
}
.tagstable { width: 500px; }
""";

if ($*layout_replyform_textarea_width>0) { """
.replyform textarea {
width: """; print $*layout_replyform_textarea_width; """px;
}
"""; }

print_custom_control_strip_css();
}

function Page::lay_get_previous_url():string { return ""; }
function Page::lay_get_next_url():string { return ""; }
function Page::lay_get_previous_title():string { return $*text_nav_prev_page; }
function Page::lay_get_next_title():string { return $*text_nav_next_page; }

function RecentPage::lay_get_previous_url():string { return $.nav.backward_url; }
function RecentPage::lay_get_next_url():string { return $.nav.forward_url; }
function RecentPage::lay_get_previous_title():string {
return get_plural_phrase($.nav.backward_count,"text_nav_prev_recentpage");
}
function RecentPage::lay_get_next_title():string {
return get_plural_phrase($.nav.forward_count,"text_nav_next_recentpage");
}

function DayPage::lay_get_previous_url():string { return $.prev_url; }
function DayPage::lay_get_next_url():string { return $.next_url; }
function DayPage::lay_get_previous_title():string {
if (defined $.prev_date) { return $.prev_date->date_format($*text_nav_format_daypage); } else { return ""; }
}
function DayPage::lay_get_next_title():string {
if (defined $.next_date) { return $.next_date->date_format($*text_nav_format_daypage); } else { return ""; }
}

function MonthPage::lay_get_previous_url():string { return $.prev_url; }
function MonthPage::lay_get_next_url():string { return $.next_url; }
function MonthPage::lay_get_previous_title():string {
if (defined $.prev_date) {
return $.prev_date->date_format($*text_nav_format_monthpage);
} else {
return "";
}
}
function MonthPage::lay_get_next_title():string {
if (defined $.next_date) {
return $.next_date->date_format($*text_nav_format_monthpage);
} else {
return "";
}
}

function EntryPage::lay_get_previous_url():string {
var Link prev = $.entry->get_link("nav_prev");
if (defined $prev and $.entry.itemid!=int($*layout_guestbook_entryid)) { return $prev.url; } else { return ""; }
}
function EntryPage::lay_get_next_url():string {
var Link next= $.entry->get_link("nav_next");
if (defined $next and $.entry.itemid!=int($*layout_guestbook_entryid)) { return $next.url; } else { return ""; }
}
function EntryPage::lay_get_previous_title():string { return "$*text_nav_prev_entrypage"; }
function EntryPage::lay_get_next_title():string { return "$*text_nav_next_entrypage"; }

function YearPage::lay_get_previous_url():string {
var int i = size $.years - 1;
foreach var int pos (0..$i) {
var YearYear year = $.years[$pos];
if ($year.displayed) {
if ($pos==0) {
return "";
}else{
var YearYear prevyear = $.years[$pos-1];
return $prevyear.url;
}
}
}
return "";
}
function YearPage::lay_get_next_url():string {
var int i = size $.years - 1;
foreach var int pos (0..$i) {
var YearYear year = $.years[$pos];
if ($year.displayed) {
if ($pos==$i) {
return "";
}else{
var YearYear nextyear = $.years[$pos+1];
return $nextyear.url;
}
}
}
return "";
}

function YearPage::lay_get_previous_title():string {
var int i = size $.years - 1;
foreach var int pos (0..$i) {
var YearYear year = $.years[$pos];
if ($year.displayed) {
if ($pos==0) {
return "";
}else{
var YearYear prevyear = $.years[$pos-1];
return ""+$prevyear.year;
}
}
}
return "";
}
function YearPage::lay_get_next_title():string {
var int i = size $.years - 1;
foreach var int pos (0..$i) {
var YearYear year = $.years[$pos];
if ($year.displayed) {
if ($pos==$i) {
return "";
}else{
var YearYear nextyear = $.years[$pos+1];
return ""+$nextyear.year;
}
}
}
return "";
}

function Page::lay_print_header_links() {
# Menu start
"""<DIV class="header-menu"><ul>""";

# Journal Navigation (Previous page, Next Page)
var string prev_link = $this->lay_get_previous_url();
var string prev_title = $this->lay_get_previous_title();
var string next_link = $this->lay_get_next_url();
var string next_title = $this->lay_get_next_title();
print safe ($prev_link=="" ? "" : "<li><a href=\"$prev_link\">$prev_title</a></li>");
print safe ($next_link=="" ? "" : "<li><a href=\"$next_link\">$next_title</a></li>");

# Standard Journal Pages (Recent, Archive, Friends, Userinfo)
foreach var string v ($.views_order) {
if (lang_viewname($v)!="") {
print "<li><a href=\""+$.view_url{$v}+"\">"+lang_viewname($v)+"</a></li>";
}
}

# Memories
if ($*layout_menubar_memories) {
print safe """<li><a href="$*SITEROOT/tools/memories.bml?user=$.journal.username">$*text_view_memories</a></li>""";
}

# Need to add a link to scrapbook account in user links, not do this manually
# Scrapbook (picture Galleries)
#if ($*layout_menubar_scrapbook) {
# print safe """<li><a href="http://pics.livejournal.com/$.journal.username">$*text_view_scrapbook</a></li>""";
#
#}

# Guestbook
if (int($*layout_guestbook_entryid)!=0) {
var string guestbook_url = "$*SITEROOT/users/$.journal.username/"+$*layout_guestbook_entryid+".html";
print safe """<li><a href="$guestbook_url">$*text_view_guestbook</a></li>""";
}

# Website from Userinfo page
if ($*layout_menubar_website) {
"""<li><a href="$.journal.website_url">$.journal.website_name</a></li>""";
}

# Menu end
"""</ul></div>""";
}

function Page::lay_print_header() {
var string title = $.global_title;
var string subtitle = $.global_subtitle;
"""
<div class="pageheaderblock">
""";
if ($*layout_header_usericon=="show") {"""<div class="header-icon">$this.journal.default_pic</div>"""; }
print safe """<div class="header-title">$title</div>""";
if ($.global_subtitle!="") { print safe """<div class="header-subtitle">$subtitle</div>"""; }
$this->lay_print_header_links();
"""
</div> <!--pageheaderblock-->
""";
}

function EntryLite::lay_show_usericon():bool { return true; }

function EntryLite::lay_print_subjectline() { #will only ever be used for a comment, so we can use comment settings.
"""<div class="commentHeader">""";
# print $.time->date_format("%%dayord%%-%%mon%%-%%yyyy%%")+"&nbsp;"+$.time->time_format();
print $this->time_display($*text_format_entry_date_and_time, "none");
print ($.subject==""?"":" - <span class=\"commentHeaderSubject\">$.subject</span>");
"""</div>""";
}

function EntryLite::lay_print_userinfo() { #will only ever be used for a comment, so we can use comment settings.
"""
<table border=0 cellspacing=0 cellpadding=0 align="$*layout_position_userinfo_comment" class="commentUserinfo"><tr><td>
""";
if (defined $.userpic and $*layout_position_usernames_comment=="below") {"""<div class="commentUserinfo-usericon"><a href="$*SITEROOT/allpics.bml?user=$.poster.username">$.userpic</a></div>""";}
"""<div class="commentUserinfo-username">""";
if (defined $.poster) {
"""<span class="ljuser" style="white-space:nowrap;">$.poster</span>""";
}else{
print safe """<i>$*text_poster_anonymous</i>""";
}
if ($.metadata{"poster_ip"}!="") {
"""<br/>($.metadata{"poster_ip"})""";
}
"""</div>""";
if (defined $.userpic and $*layout_position_usernames_comment=="above") {"""<div class="commentUserinfo-usericon"> $.userpic </div>""";}
"""
</td></tr></table>
""";
}

function EntryLite::print_linkbar() {
"""
<div class="commentLinkbar"><ul>
""";
print safe """<li><a href="$.permalink_url">$*text_comment_permalink</a></li>""";
foreach var string key ($.link_keyseq) {
var Link l = $this->get_link($key);
if ($l.url!="") { """<li><a href="$l.url">$l.caption</a></li>"""; }
}
"""
</ul></div>
""";
}

function EntryLite::lay_print() { #will only ever be used for a comment, so we can use comment settings.
"""
<div class="commentHolder">
""";
$this->lay_print_subjectline();
"""<table width=100% cellpadding=0 cellspacing=0 border=0><tr valign=top><td>""";
if ($*layout_position_userinfo_comment=="left" or $*layout_wrapping_userinfo_comment ) {
$this->lay_print_userinfo();
if (not $*layout_wrapping_userinfo_comment) {"""</td><td width=100%>""";}
}
"""<div class="commentText">""";
$this->print_text();
"""</div>""";
if ($*layout_position_userinfo_comment=="right" and not $*layout_wrapping_userinfo_comment) {
"""</td><td>""";
$this->lay_print_userinfo();
}

"""</td></tr><tr><td colspan=2>""";
$this->print_linkbar();
"""</td></tr></table>
</div>
""";
}

function Entry::lay_show_usericon():bool {
var Page p = get_page();
return $*layout_show_usericons=="all" or ($*layout_show_usericons=="nonrecent" and $p.view!="recent") or ($*layout_show_usericons=="friends" and $p.view=="read" or $p.view=="network");
}

function Entry::lay_print_userinfo() {
var Page p = get_page();
if ($p.view=="read" or $p.view=="network" or $p.journal_type=="C" or ($this->lay_show_usericon() and defined $.userpic)) {
"""<table border=0 cellspacing=0 cellpadding=0 align="$*layout_position_userinfo_entry" class="entryUserinfo"><tr><td>""";
if (defined $.userpic and $this->lay_show_usericon() and $*layout_position_usernames_entry=="below") {
"""<div class="entryUserinfo-usericon"><a href="$*SITEROOT/allpics.bml?user=$.poster.username">$.userpic</a></div>""";
}
if ($p.view=="read" or $p.view=="network" or $p.journal_type=="C") {
"""<div class="entryUserinfo-username">$.poster""";
if ($.journal.username!=$.poster.username and $p.view=="read" or $p.view=="network") {
print "<br />";
if ($*text_entry_username_seperator != "") {
print safe $*text_entry_username_seperator + "<br />";
}
"""$.journal""";
}
"""</div>""";
}
if (defined $.userpic and $this->lay_show_usericon() and $*layout_position_usernames_entry=="above") { """<div class="entryUserinfo-usericon">$.userpic</div>"""; }
"""</td></tr></table>""";
}
}

function Entry::lay_print_subjectline(Color bg, Color fg, bool usecolour) {
var Page p = get_page();
if ($.itemid!=int($*layout_guestbook_entryid)) {
"""<div class='entryHeader'""";
if ($usecolour and $*layout_friends_colours=="subject") { print " style='color:$fg;background:$bg;'"; }
"""><span class="entryHeaderDate">""";
if ($p.view!="day") {
# print "<a href=\""+$.journal->base_url()+"/calendar/$.time.year/"+zeropad($.time.month,2)+"/"+zeropad($.time.day,2)+"/\">"+$.time->date_format("%%dayord%%")+"</a>-";
# print "<a href=\""+$.journal->base_url()+"/calendar/$.time.year/"+zeropad($.time.month,2)+"/\">"+$.time->date_format("%%mon%%")+"</a>-";
# print "<a href=\""+$.journal->base_url()+"/calendar/$.time.year/\">"+$.time->date_format("%%yyyy%%")+"</a> ";
# print $.time->time_format();
print $.time->time_format($*text_format_entry_date_and_time);
}else{
# print $.time->time_format();
print $.time->time_format($*text_format_entry_time);
}
"""</span><span class="entryHeaderSubject">""";
if ($p.view=="entry") {
print (defined $.security_icon?" - $.security_icon":"");
}else{
print (defined $.security_icon or $.subject!=""?" - ":"")+(defined $.security_icon?"$.security_icon ":"")+$this->formatted_subject({"class"=>"subj-link"});
}
"""</span>""";
if ((size $.tags>0)and($*layout_position_entrytags=="subject")) {
"""<span class="entryHeaderTags"> [<a href="$.tags[0].url">$.tags[0].name</a>""";
foreach var int i (1 .. (size $.tags - 1)) {
""", <a href="$.tags[$i].url">$.tags[$i].name</a>""";
}
"""]</span>""";
}
"""</div>""";
}else{
"""<div class="entryHeader">""";
print (defined $.security_icon?""+$.security_icon:"&nbsp;");
"""</div>""";
}
}

function Entry::print_metadata() {
if (((size $.metadata>0) or ((size $.tags>0)and($*layout_position_entrytags=="metadata"))) and ($.itemid!=int($*layout_guestbook_entryid))) {
"""<div class="entryMetadata"><ul>""";
if ((size $.tags>0)and($*layout_position_entrytags=="metadata")) {

print safe """<li><span class="entryMetadata-label">$*text_meta_tags:</span>""";
"""<span class="entryMetadata-content"><a href="$.tags[0].url">$.tags[0].name</a>""";
foreach var int i (1 .. (size $.tags - 1)) {
""", <a href="$.tags[$i].url">$.tags[$i].name</a>""";
}
"""</span></li>""";
}
if ($.metadata{"location"}!="") { print safe """<li><span class="entryMetadata-label">$*text_meta_location:</span><span class="entryMetadata-content">"""; print $.metadata{"location"}; """</span></li>"""; }
if ($.metadata{"mood"}!="") { print safe """<li><span class="entryMetadata-label">$*text_meta_mood:</span><span class="entryMetadata-content">"""; print $.metadata{"mood"}+$.mood_icon; """</span></li>"""; }
if ($.metadata{"music"}!="") { print safe """<li><span class="entryMetadata-label">$*text_meta_music:</span><span class="entryMetadata-content">"""; print $.metadata{"music"}; """</span></li>"""; }
"""</ul></div>""";
}
}

function Entry::print_linkbar() {
var Page p = get_page();
var bool printqr = false;

"""
<div class="entryLinkbar"><ul>
""";
if ($.comments.enabled) {
if ($.itemid==int($*layout_guestbook_entryid)) { print safe """<li><a href="$.comments.post_url">$*text_post_comment_guestbook</a></li>""";
}else{
if ($.comments.count > 0 or $.comments.screened) {
"""<li><a href="$.comments.read_url">"""; print safe get_plural_phrase($.comments.count,"text_read_comments"); """</a></li>""";
}
$printqr = true;
"""<li>"""; $p->print_reply_link({"linktext" => $*text_post_comment, "target" => "qr$.journal.username$.itemid", "reply_url" => $.comments.post_url}); """</li>""";
}
}
print safe """<li><a href="$.permalink_url">$*text_permalink</a></li>""";
var string{} link_caption = {
"edit_entry" => $*text_edit,
"edit_tags" => $*text_edittag,
"mem_add" => $*text_add_to_memories,
"tell_friend" => $*text_tell_friend,
"watch_comments" => $*text_track_comments,
"unwatch_comments" => $*text_untrack_comments,
};
var Link link;
var string url;
var string text;

foreach var string link_key ($.link_keyseq) {
$link = $this->get_link($link_key);
$url = $link.url;
$text = $link_caption{$link_key} != "" ? $link_caption{$link_key} : $link.caption;
if (defined $link) {
print safe """<li><a href="$url">$text</a></li>""";
}
}
"""
</ul></div> <!-- entryLinkbar -->
""";
if ($printqr) { $p->print_reply_container({"class" => "quickreply_entry", "target" => "qr$.journal.username$.itemid"}); }
}

function Entry::lay_print(Page p, Color bg, Color fg, bool usecolour) {
if ( $.itemid==int($*layout_guestbook_entryid) and ($p.view=="recent" or $p.view=="day" )) { return; }
if ( $p.args{"noshow"}==$.journal.username ) { return; }
"""
<a name="$.journal.username$.itemid"></a>
<div class="entryHolder">
""";
$this->lay_print_subjectline($bg,$fg,$usecolour);
"""<table width=100% cellpadding=0 cellspacing=0 border=0><tr valign=top><td>""";
if ($*layout_position_userinfo_entry=="left" or $*layout_wrapping_userinfo_entry ) {
$this->lay_print_userinfo();
if (not $*layout_wrapping_userinfo_entry) {"""</td><td width=100%>""";}
}
if ($*layout_position_metadata=="above") { $this->print_metadata(); }
"""<div class="entryText">"""; $this->print_text(); """</div>""";
if ($*layout_position_metadata=="below") { $this->print_metadata(); }
if ($*layout_position_userinfo_entry=="right" and not $*layout_wrapping_userinfo_entry) {
"""</td><td>""";
$this->lay_print_userinfo();
}
"""</td></tr><tr><td colspan=2>""";
$this->print_linkbar();
"""</td></tr></table>
</div> <!-- entryHolder -->
""";
}

function Page::print_entry(Entry e) {
$e->lay_print($this, new Color, new Color, false);
}
function FriendsPage::print_entry(Entry e) {
$e->lay_print($this, $.friends{$e.journal.username}.bgcolor, $.friends{$e.journal.username}.fgcolor, true);
}

function Comment::lay_print_subjectline() {
"""<div class=""";
print "\"commentHeader"+($.screened?"Screened":"")+"\">";
#print $.time->date_format("%%dayord%%-%%mon%%-%%yyyy%%")+"&nbsp;"+$.time->time_format();

print $this->time_display($*text_format_entry_date_and_time, "none");
print (defined $.subject_icon?""+$.subject_icon:"")+($.subject==""?"":" - <span class=\"commentHeaderSubject\">$.subject</span>");
"""</div>""";
}

function Comment::print_linkbar() {
"""
<div class="commentLinkbar"><ul>
""";
# reply to, parent, thread links.
"""<li>""";
if($.screened == true) {
### if comment screened - show link for unscreen
var Link link;
$link = $this->get_link("unscreen_to_reply");
"""<a href="$link.url" title="$link.caption">$link.caption</a>""";
} else {
### showing reply link if comment not screened
$this->print_reply_link({ "linktext" => $*text_comment_reply });
}

##$this->print_reply_link({"linktext" => $*text_comment_reply});

"""</li>""";
if ($.parent_url!="") { print safe """<li><a href="$.parent_url">$*text_comment_parent</a></li>"""; }
if ($.thread_url!="") {
print safe """<li><a href="$.thread_url">$*text_comment_thread</a></li>""";
var Link expand_link = $this->get_link("expand_comments");
if (defined $expand_link) {
"<li>" + $this->expand_link() + "</li>";
}
}
print safe """<li><a href="$.permalink_url">$*text_comment_permalink</a></li>""";
var Link l;
foreach var string key ($.link_keyseq) {
$l = $this->get_link($key);
if (defined $l) { """<li><a href="$l.url">$l.caption</a></li>"""; }

}
if (viewer_is_owner()) {
print safe """<li>$*text_multiform_check"""; $this->print_multiform_check(); """</li>""";
}
"""
</ul></div>
""";
$this->print_reply_container({"class" => "quickreply_comment"});
}

function EntryPage::print_comments (Comment[] cs) {
if (size $cs == 0) { return; }
foreach var Comment c ($cs) {
var int indent = ($c.depth - 1) * 25;
if ($c.full) {
"""<div style='margin-left: ${indent}px;' id="$c.dom_id" class="ljcmt_full">\n""";
$this->print_comment($c);
} else {
"""<div style='margin-left: ${indent}px;' id="$c.dom_id">\n""";
$this->print_comment_partial($c);
}
"</div>";
$this->print_comments($c.replies);
}
}

function EntryPage::print_comment(Comment comment) {
"""<a name="$comment.anchor"></a>
<div class="commentHolder">""";
$comment->lay_print_subjectline();
"""<table width=100% cellpadding=0 cellspacing=0 border=0><tr valign=top><td>""";
if ($*layout_position_userinfo_comment=="left" or $*layout_wrapping_userinfo_comment) {
$comment->lay_print_userinfo();
if (not $*layout_wrapping_userinfo_comment) {"""</td><td width=100%>""";}
}
"""<div class="commentText">"""; $comment->print_text(); """</div>""";
if ($*layout_position_userinfo_comment=="right" and not $*layout_wrapping_userinfo_comment) {
"""</td><td>""";
$comment->lay_print_userinfo();
}
"""</td></tr><tr><td colspan=2>""";
$comment->print_linkbar();
"""</td></tr></table>
</div>
""";
}

function EntryPage::print_comment_partial(Comment comment) {
"""<a name="$comment.anchor"></a>
<div class="commentHolder"><div class="commentText">""";
print "<a href=\"$comment.permalink_url\">"+($comment.subject==""?"<i>(no subject)</i>":"$comment.subject")+"</a> - ";
print (defined $comment.poster?"<span class=\"ljuser\" style=\"white-space:nowrap;\">$comment.poster</span>":"<i>Anonymous</i>");
var Link expand_link = $comment->get_link("expand_comments");
if ($comment.thread_url != "" and defined $expand_link) {
" " + $comment->expand_link();
}
"""</div></div>""";
}

function Page::lay_print_bodytitlebox(string title, string titletype) {

print safe """
<div class="bodyheaderblock">
<div class="body-$titletype">$title&nbsp;</div>
</div>
""";
}

function MonthPage::view_title : string {
return $.date->date_format($*text_nav_format_monthpage);
}

function DayPage::view_title : string {
return $.date->date_format($*text_nav_format_daypage);
}

function TagsPage::view_title : string {
return $*text_tags_pagetitle;
}

function Page::lay_print_bodytop() {
$this->lay_print_bodytitlebox($this->view_title(),"title");
}

function ReplyPage::lay_print_bodytop() {
if ($.entry.itemid==int($*layout_guestbook_entryid) and $.replyto.depth==0) {
$this->lay_print_bodytitlebox($*text_signing_guestbook,"title");
}elseif ($.replyto.depth==0) {
$this->lay_print_bodytitlebox($*text_comment_to,"title");
}else {
$this->lay_print_bodytitlebox($*text_reply_to,"title");
}
}

function MonthPage::lay_print_bodytop_monthselector() {
"""<div class="bodyheaderblock"><center><form method='post' action='$.redir.url'>""";
$.redir->print_hiddens();
if (size $.months > 1) {
"""<select name='redir_key'>""";
foreach var MonthEntryInfo mei ($.months) {
var string sel;
if ($mei.date.year == $.date.year and $mei.date.month == $.date.month) {
$sel = "selected='selected'";
}
print "<option value='$mei.redir_key'$sel>" + $mei.date->date_format($*lang_fmt_month_long) + "</option>";
}
"""</select><input type='submit' value='View' />""";
}
"""</form></center></div>""";
}

function Page::lay_print_sidebox_top(string title) {
"""
<div class="sidebox">
""";
if ($title!="") {
print safe """
<div class="sideboxTitle">$title</div>
""";
}
}

function Page::lay_print_sidebox_bottom() {
"""
</div> <!-- sidebox -->
""";
}

function Page::lay_print_sidebar_profile() {
$this->lay_print_sidebox_top($*text_sidebox_profile_title);
"""
<div class="sideboxContent" id="profile">
""";
if ($.journal.default_pic.url!="") {
"""<div><a href="$*SITEROOT/allpics.bml?user=$.journal.username"><img src="$.journal.default_pic.url" alt="" border="0" class="profile-userpic" /></a></div>""";
}
print safe """
<div><span class="profile-label">$*text_sidebox_profile_userlabel</span><span class="profile-content">$.journal</span></div>
<div><span class="profile-label">$*text_sidebox_profile_namelabel</span><span class="profile-content">$.journal.name</span></div>
""";
if ($*text_sidebox_profile_info!="") { """<div>"""; print $*text_sidebox_profile_info; """</div>"""; }
"""
</div> <!--sidebox-profile-->
""";
$this->lay_print_sidebox_bottom();
}

function Page::lay_print_sidebar_systemlinks() {
var int num_links = size $.linklist - 1;
if ($num_links<0 or not $*linklist_support) { return; }
$this->lay_print_sidebox_top($*text_sidebox_links_title);
"""
<div class="sideboxContent" id="systemlinks">
""";
foreach var int i (0 .. $num_links) {
if ($.linklist[$i].title=="") {
"""<div class="listspacer">&nbsp;</div>""";
}elseif ($.linklist[$i].url=="") {
"""<div class="listtitle">$.linklist[$i].title</div>""";
}else {
"""<div class="listitem"><a href="$.linklist[$i].url">$.linklist[$i].title</a></div>""";
}
}
"""
</div> <!--sidebox-systemlinks-->
""";
$this->lay_print_sidebox_bottom();
}

function Entry::lay_print_summaryline(Page p) {
"""<div class="summaryList">""";
print safe ($*text_sidebox_summary_bullet_bold ? "<b>$*text_sidebox_summary_bullet</b>" : $*text_sidebox_summary_bullet);
if ($p.view=="read" or $p.view=="network") {
"""$.poster""";
if ($.journal.username!=$.poster.username) { print safe $*text_sidebox_summary_username_seperator; """$.journal"""; }
""" - """;
}elseif ($p.view=="day") {
print $.time->time_format(); """ - """;
}else{
#nothing
}
if (defined $.security_icon) { """$.security_icon """; }
"""<a href="#$.journal.username$.itemid">""";
if ($.subject!="") { print $this->plain_subject(); } else { print safe """<i>$*text_nosubject</i>"""; }
"""</a>""";
if ($.comments.count>0 or $.comments.screened) { """ <a href="$.comments.read_url">[+$.comments.count]</a>"""; }
"""</div>
""";

}

function Comment::lay_count_replies() : int {
var int total = 0;
foreach var Comment reply ($.replies) {
$total = $total + 1 + $reply->lay_count_replies();
}
return $total;
}

function Comment::lay_print_summaryline(Page p) {
"""<div class="summaryList">""";
print safe ($*text_sidebox_summary_bullet_bold ? "<b>$*text_sidebox_summary_bullet</b>" : $*text_sidebox_summary_bullet);
print safe (defined $.poster ? ""+$.poster : "<i>$*text_poster_anonymous</i>");
""" - <a href="#$.anchor">""";
if ($.subject!="") { """$.subject"""; } else { print safe """<i>$*text_nosubject</i>"""; }
"""</a>""";
var int count = $this->lay_count_replies();
if ($count>0) { """ [+$count]"""; }
"""</div>""";
}

function Page::lay_print_sidebar_summary() {}

function RecentPage::lay_print_sidebar_summary() {
$this->lay_print_sidebox_top($*text_sidebox_summary_title);
"""<div class="sideboxContent" id="summary">""";
var int i = size $.entries - 1;
if ($i<0) { """</div> <!--sidebox-summary -->"""; return; }
foreach var int pos (0..$i) {
var Entry e = $.entries[$pos];
if ($e.itemid!=int($*layout_guestbook_entryid)) {$e->lay_print_summaryline($this);}
}
"""</div> <!--sidebox-summary -->""";
$this->lay_print_sidebox_bottom();
}

function FriendsPage::lay_print_sidebar_summary() {
$this->lay_print_sidebox_top($*text_sidebox_summary_title);
"""<div class="sideboxContent" id="summary">""";
var int i = size $.entries - 1;
if ($i<0) { """</div> <!--sidebox-summary -->"""; return; }
foreach var int pos (0..$i) {
var Entry e = $.entries[($*layout_friends_sortorder=="newest"?$pos:$i-$pos)];
$e->lay_print_summaryline($this);
}
"""</div> <!--sidebox-summary -->""";
$this->lay_print_sidebox_bottom();
}

function DayPage::lay_print_sidebar_summary() {

$this->lay_print_sidebox_top($*text_sidebox_summary_title);
"""<div class="sideboxContent" id="summary">""";
var int i = size $.entries - 1;
if ($i<0) { """</div> <!--sidebox-summary -->"""; return; }
foreach var int pos (0..$i) {
var Entry e = $.entries[($*layout_day_sortorder=="newest"?$i-$pos:$pos)];
if ($e.itemid!=int($*layout_guestbook_entryid)) {$e->lay_print_summaryline($this);}
}
"""</div> <!--sidebox-summary -->""";
$this->lay_print_sidebox_bottom();
}

function EntryPage::lay_print_sidebar_summary() {
$this->lay_print_sidebox_top($*text_sidebox_summary_title);
"""<div class="sideboxContent" id="summary">""";
$.entry->lay_print_summaryline($this);
foreach var Comment c ($.comments) {
$c->lay_print_summaryline($this);
}
"""</div> <!--sidebox-summary -->""";
$this->lay_print_sidebox_bottom();
}

function Page::lay_print_sidebar_tags() {
var Tag[] pagetags = $this->visible_tag_list();
if (size $pagetags==0) { return; }
$this->lay_print_sidebox_top($*text_sidebox_tags_title);
"""<div class="sideboxContent" id="tags_sidebox">""";
"""<a href="$pagetags[0].url">$pagetags[0].name</a>""";
foreach var int i (1 .. (size $pagetags - 1)) {
""", <a href="$pagetags[$i].url">$pagetags[$i].name</a>""";
}
"""</div>""";
$this->lay_print_sidebox_bottom();
}

# TODO: Interesting, maybe add as a builtin function later?
function Page::lay_print_sidebar_multisearch() {
$this->lay_print_sidebox_top($*text_sidebox_multisearch_title);
"""
<div class="sideboxContent" id="search">
<form id='Search' action='$*SITEROOT/multisearch.bml' method='post' style='display: inline'>
<label for='SearchTerm'>Search:</label>
<input id='SearchTerm' type='text' name='q' size='15' value='' />
<br/>
<label for='SearchType'>Category:</label>
<select id='SearchType' name='type'>
<option value='nav_and_user' selected='selected'>Site & User</option>
<option value='faq'>FAQ</option>
<option value='nav'>Site</option>
<option value='region'>Region</option>
<option value='int'>Interest</option>
<option value='user'>Username</option>
<option value='email'>Email</option>
<option value='ljtalk'>Gizmo/LJ Talk</option>
<option value='aolim'>AIM</option>
<option value='icq'>ICQ Number</option>
<option value='yahoo'>Yahoo! ID</option>
<option value='msn'>MSN</option>
<option value='jabber'>Jabber</option>
</select>
<br/>
<input type='submit' value='Search' />
</form>
</div> <!-- sidebox-search-->
""";
$this->lay_print_sidebox_bottom();
}

function Page::lay_print_sidebar_latestmonth() {
$this->lay_print_sidebox_top($*text_sidebox_latestmonth_title);
var YearMonth month = $this->get_latest_month();
"""<div class="sideboxContent" id="latestmonth">
<table cellspacing="0" cellpadding="0">
<tr><td colspan="7" align="center"><a href="$month.url">$*lang_monthname_long[$month.month] $month.year</a></td></tr>
""";
foreach var YearWeek week ($month.weeks) {
"""<tr>""";
if ($week.pre_empty>0) { """<td colspan="$week.pre_empty"></td>"""; }
foreach var YearDay day ($week.days) {
if ($day.num_entries==0) {
"""<td width="14.28%"><div class="latestmonth-inactive">$day.day</div></td>""";
}else{
"""<td width="14.28%"><div class="latestmonth-active"><a href="$day.url">$day.day</a></div></td>""";
}
}
if ($week.post_empty>0) { """<td colspan="$week.post_empty"></td>"""; }
"""</tr>""";
}
"""
</table>
</div>""";
$this->lay_print_sidebox_bottom();
}

function Page::lay_print_sidebar_freetextbox() {
$this->lay_print_sidebox_top($*text_sidebox_freetext_title);
"""<div class="sideboxContent" id="freetext">"""; print $*text_sidebox_freetext_text; """</div>""";
$this->lay_print_sidebox_bottom();
}

function Page::lay_print_sidebar_freetextbox_2() {
$this->lay_print_sidebox_top($*text_sidebox_freetext_2_title);
"""<div class="sideboxContent" id="freetext2">"""; print $*text_sidebox_freetext_2_text; """</div>""";
$this->lay_print_sidebox_bottom();
}

function Page::lay_print_sidebar_freetextbox_3() {
$this->lay_print_sidebox_top($*text_sidebox_freetext_3_title);
"""<div class="sideboxContent" id="freetext3">"""; print $*text_sidebox_freetext_3_text; """</div>""";
$this->lay_print_sidebox_bottom();
}

function Page::lay_print_sidebar_freetextbox_4() {
$this->lay_print_sidebox_top($*text_sidebox_freetext_4_title);
"""<div class="sideboxContent" id="freetext4">"""; print $*text_sidebox_freetext_4_text; """</div>""";
$this->lay_print_sidebox_bottom();
}

function Page::lay_print_sidebar_freetextbox_5() {
$this->lay_print_sidebox_top($*text_sidebox_freetext_5_title);
"""<div class="sideboxContent" id="freetext5">"""; print $*text_sidebox_freetext_5_text; """</div>""";
$this->lay_print_sidebox_bottom();
}

function Page::lay_print_sidebar_freetextbox_6() {
$this->lay_print_sidebox_top($*text_sidebox_freetext_6_title);
"""<div class="sideboxContent" id="freetext6">"""; print $*text_sidebox_freetext_6_text; """</div>""";
$this->lay_print_sidebox_bottom();
}

function Page::lay_print_sidebar_freetextbox_7() {
$this->lay_print_sidebox_top($*text_sidebox_freetext_7_title);
"""<div class="sideboxContent" id="freetext7">"""; print $*text_sidebox_freetext_7_text; """</div>""";
$this->lay_print_sidebox_bottom();
}

function Page::lay_print_sidebar_freetextbox_8() {
$this->lay_print_sidebox_top($*text_sidebox_freetext_8_title);
"""<div class="sideboxContent" id="freetext8">"""; print $*text_sidebox_freetext_8_text; """</div>""";
$this->lay_print_sidebox_bottom();
}

function Page::lay_print_sidebar_freetextbox_9() {
$this->lay_print_sidebox_top($*text_sidebox_freetext_9_title);
"""<div class="sideboxContent" id="freetext9">"""; print $*text_sidebox_freetext_9_text; """</div>""";
$this->lay_print_sidebox_bottom();
}

function Page::lay_print_sidebar_freetextbox_10() {
$this->lay_print_sidebox_top($*text_sidebox_freetext_10_title);
"""<div class="sideboxContent" id="freetext10">"""; print $*text_sidebox_freetext_10_text; """</div>""";
$this->lay_print_sidebox_bottom();
}

function Page::lay_print_sidebar_freetextbox_private() {
$this->lay_print_sidebox_top($*text_sidebox_freetext_private_title);
"""<div class="sideboxContent" id="freetext_private">"""; print $*text_sidebox_freetext_private_text; """</div>""";
$this->lay_print_sidebox_bottom();
}

function Page::lay_print_sidebar() {
"""<div class="sidebar">""";
foreach var int position (1..17) {
var string pos = ""+$position;
if ($*layout_sidebox_profile_visibility==$pos) { $this->lay_print_sidebar_profile(); }
elseif ($*layout_sidebox_summary_visibility==$pos) { $this->lay_print_sidebar_summary(); }
elseif ($*layout_sidebox_latestmonth_visibility==$pos) { $this->lay_print_sidebar_latestmonth(); }
elseif ($*layout_sidebox_links_visibility==$pos) { $this->lay_print_sidebar_systemlinks(); }
elseif ($*layout_sidebox_tags_visibility==$pos) { $this->lay_print_sidebar_tags(); }
elseif ($*layout_sidebox_multisearch_visibility==$pos) { $this->lay_print_sidebar_multisearch(); }
elseif ($*layout_sidebox_freetext_visibility==$pos) { $this->lay_print_sidebar_freetextbox(); }
elseif ($*layout_sidebox_freetext_2_visibility==$pos) { $this->lay_print_sidebar_freetextbox_2(); }
elseif ($*layout_sidebox_freetext_3_visibility==$pos) { $this->lay_print_sidebar_freetextbox_3(); }
elseif ($*layout_sidebox_freetext_4_visibility==$pos) { $this->lay_print_sidebar_freetextbox_4(); }
elseif ($*layout_sidebox_freetext_5_visibility==$pos) { $this->lay_print_sidebar_freetextbox_5(); }
elseif ($*layout_sidebox_freetext_6_visibility==$pos) { $this->lay_print_sidebar_freetextbox_6(); }
elseif ($*layout_sidebox_freetext_7_visibility==$pos) { $this->lay_print_sidebar_freetextbox_7(); }
elseif ($*layout_sidebox_freetext_8_visibility==$pos) { $this->lay_print_sidebar_freetextbox_8(); }
elseif ($*layout_sidebox_freetext_9_visibility==$pos) { $this->lay_print_sidebar_freetextbox_9(); }
elseif ($*layout_sidebox_freetext_10_visibility==$pos) { $this->lay_print_sidebar_freetextbox_10(); }
elseif ($*layout_sidebox_freetext_private_visibility==$pos and viewer_is_owner()) { $this->lay_print_sidebar_freetextbox_private(); }
}
"""</div> <!--sidebar-->""";
}
function print_ebox (Entry e) {
if ($e->viewer_sees_ebox()) {
"""<div style="text-aling: center; margin-bottom: 10px;">""";
$e->print_ebox();
"</div>";
}
}

function RecentPage::print_body() {
if ($*sticky_post != "") {
# print the welcome note, styled like an entry by default, but with CSS id
# tags so that the welcome note can be customised through Custom CSS.
"""<div class="entryHolder" id="welcomenoteHolder">""";
if ($*sticky_subject != "") {
print safe """<div class="entryHeader" id="welcomenoteHeader">
<div class="entrySubject" id="welcomenoteSubject">$*sticky_subject</div>
</div>""";
}
"""<div class="entryText" id="welcomenoteText">$*sticky_post</div>
</div>""";
}

var int i = size $.entries - 1;
if ($i<0) {
"""<div class="entryHolder"><center>$*text_noentries_recent<center></div>""";
}else{
foreach var int pos (0..$i) {
var Entry e = $.entries[$pos];
$this->print_entry($e);
print_ebox($e);
}
}
}

function FriendsPage::print_body() {
var int i = size $.entries - 1;
if ($i<0) {
"""<div class="entryHolder"><div class="entryText"><center>$*text_noentries_recent<center></div></div>""";
}else{
foreach var int pos (0..$i) {
var Entry e = $.entries[($*layout_friends_sortorder=="newest"?$pos:$i-$pos)];
$this->print_entry($e);
print_ebox($e);
}
}
}

function DayPage::print_body() {
var int i = size $.entries - 1;
if ($i<0) {
"""<div class="entryHolder"><div class="entryText"><center>$*text_noentries_day</center></div></div>""";
}else{
foreach var int pos (0..$i) {
var Entry e = $.entries[($*layout_day_sortorder=="newest"?$i-$pos:$pos)];
$this->print_entry($e);
print_ebox($e);
}
}
}



function ReplyPage::print_body() {
if ($.replyto.depth==0) {
$this->print_entry($.entry);
}else{
$.replyto->lay_print();
}
if ($.entry.itemid==int($*layout_guestbook_entryid) and $.replyto.depth==0) {
$this->lay_print_bodytitlebox($*text_signing_form,"midtitle");
}elseif ($.replyto.depth==0) {
$this->lay_print_bodytitlebox($*text_comment_form,"midtitle");
}else{
$this->lay_print_bodytitlebox($*text_reply_form,"midtitle");
}
print_ebox($.entry);
"""
<a name="replyform"></a>""";
if ($.replyto.depth==0 and int($*layout_guestbook_entryid)!=0 and $.entry.itemid!=int($*layout_guestbook_entryid) and $*text_replypage_warning!="") {

print safe $*text_replypage_warning;
}
"""
<div class="replyform">""";
$.form->print();
"""</div>""";
}

function EntryPage::print_body() {
$this->print_entry($.entry);
print_ebox($.entry);
if (size $.comments >0) {

if ($.entry.itemid!=int($*layout_guestbook_entryid)) {
$this->lay_print_bodytitlebox($*text_comment_seperator,"midtitle");
}else {
$this->lay_print_bodytitlebox($*text_signature_seperator,"midtitle");
}
if (viewer_is_owner()) { $this->print_multiform_start(); }
$this->print_comments($.comments);
if (not $.comment_pages.all_subitems_displayed) {
"""<div class="bodynavblock">""";
$.comment_pages->print();
"""</div>""";
}
"""<div class="bodynavblock">""";
if (viewer_is_owner()) {
$this->print_multiform_actionline();
$this->print_multiform_end();
}else{
if ($.entry.itemid!=int($*layout_guestbook_entryid)) {
print safe """<b><a href="$.entry.comments.post_url">$*text_post_comment_entrypage</a></b>""";
}else{
print safe """<b><a href="$.entry.comments.post_url">$*text_post_comment_guestbook</a></b>""";
}
}
"""</div>""";
}
}

function MonthDay::print_subjectlist() {
foreach var Entry e ($.entries) {
if ($e.itemid!=int($*layout_guestbook_entryid)) {
print $e.time->time_format();
if ($e.journal.username!=$e.poster.username) { """ - $e.poster"""; }
print " - "+(defined $e.security_icon?"$e.security_icon ":"");
"""<a href="$e.permalink_url">""";
print ($e.subject==""?"<i>(no subject)</i>":$e->plain_subject());
"""</a>""";
if ($e.comments.count>0) { """ &nbsp;&nbsp;[ +$e.comments.count ]"""; }
"""<br/>""";
}
}
}

function MonthPage::print_body() {
foreach var MonthDay day ($.days) {
if ($day.has_entries) {
"""<a name="$day.day"></a>
<div class="entryHolder">
<div class="entryHeader"><a href="$day.url">"""; print $day.date->date_format("%%dayord%%"); """</a></div>
<div class="daysubjects">""";
$day->print_subjectlist();
"""</div>
</div>""";
}
}
}

function YearPage::print_month(YearMonth month) {
"""
<a name="$month.month"></a>
<div class="entryHolder">
<div class="entryHeader"><a href="$month.url">"""; print $month->month_format("%%month%%"); """</a></div>
<table cellspacing="0" cellpadding="0" class="month">
<tr>"""; foreach var int i (1..7) { """<td class="daytitles" width="14.29%">$*lang_dayname_short[$i]</td>"""; } """</tr>
""";
foreach var YearWeek week ($month.weeks) {
"""<tr>""";
if ($week.pre_empty>0) { """<td class="day-blank" colspan="$week.pre_empty"></td>"""; }
foreach var YearDay day ($week.days) {
"""<td class="day" >
<div class="day-date">$day.day</div>
<div class="day-count">""";
print ($day.num_entries==0?"&nbsp;":"<a href=\"$day.url\">"+$day.num_entries+"<a/>");
"""</div>
</td>""";
}
if ($week.post_empty>0) { """<td class="day-blank" colspan="$week.post_empty"></td>"""; }
"""<tr/>""";
}
"""
</table>
</div>
""";
}

function YearPage::print_body() {
var int i = size $.months - 1;
if ($i<0) { return; }
foreach var int pos (0..$i) {
var YearMonth month = $.months[($*layout_year_sortorder=="newest"?$i-$pos:$pos)];
if ($month.has_entries) {
$this->print_month($month);
}
}
}

function MessagePage::print_body() {
"""<div class="entryHolder">""";
"""<div class="entryText">$.message</div>""";
$this->print_links();
"""</div>""";
}

function MessagePage::print_links() {
if (size $.links == 0) { return; }
println """<div class="entryLinkbar"><ul>""";
foreach var string k ($.link_keyseq) {
println """<li><a href="$.links{$k}.url">$.links{$k}.caption</a></li>""";
}
println """</ul></div>""";
}

function TagsPage::lay_print_tagstable() {
print safe """<table cellspacing=0 cellpadding=4 border=0 align=center class="tagstable">
<tr><td rowspan=2 width=25%>$*text_tags_name</td><td colspan=5>$*text_tags_usage</td></tr>
<tr><td width=15%>$*text_tags_total</td><td width=15%>$*text_tags_public</td>
<td width=15%>$*text_tags_friends</td><td width=15%>$*text_tags_group</td>
<td width=15%>$*text_tags_private</td></tr>""";
foreach var TagDetail td ($.tags) {
"""<tr><td><a href="$td.url">$td.name</a></td><td>$td.use_count</td>
<td>$td.security_counts{"public"}</td><td>$td.security_counts{"friends"}</td>
<td>""";
#$td.security_counts{"group"}
print ($td.use_count-($td.security_counts{"public"}+$td.security_counts{"friends"}+$td.security_counts{"private"}));
"""</td><td>$td.security_counts{"private"}</td></tr>""";
}
"""</table>""";
}

function TagsPage::lay_print_tagslist() {
print "<ul class='taglist'>";
foreach var TagDetail td ($.tags) {
var string uses = get_plural_phrase($td.use_count, "text_tag_uses");
print safe """<li><a href="$td.url">$td.name</a> - $uses</li>""";
}
print "</ul>";
}

function TagsPage::view_title:string {
return $*text_tags_pagetitle;
}

function TagsPage::print_body() {
"""<div class="entryHolder">
<div class="entryText">""";
if (size $.tags == 0 ) {
print safe """<center>$*text_tags_none</center>""";
}elseif ($*layout_tagspage=="table") {
$this->lay_print_tagstable();
}else{
$this->lay_print_tagslist();
}
"""</div></div>""";
}

function Page::lay_print_bodybottom() {
var string prev_link = $this->lay_get_previous_url();
var string prev_title = $this->lay_get_previous_title();
var string next_link = $this->lay_get_next_url();
var string next_title = $this->lay_get_next_title();
"""<div class="bodynavblock" id="footer-menu"><ul>""";
print safe ($prev_link=="" ? "" : "<li><a href=\"$prev_link\">$prev_title</a></li>");
print safe ($next_link=="" ? "" : "<li><a href=\"$next_link\">$next_title</a></li>");
print safe """<li><a href="#top">$*text_top_of_page</a></li>""";
"""</ul></div><!--bodynavblock-->""";
}

function EntryPage::lay_print_bodybottom() {}
function ReplyPage::lay_print_bodybottom() {}

function Page::lay_print_body() {
$this->lay_print_bodytop();
"""<div class="bodyblock">""";
if (viewer_sees_hbox_top()) {
"""<div style="text-align: center;">""";
$this->print_hbox_top();
"</div>";
}
"""<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr>""";
if ($*layout_sidebar_position=="left") {
"""<td valign="top" width=\"$*layout_sidebar_width"""; """px\">""";
$this->lay_print_sidebar();
"""</td>""";
} elseif ($*layout_sidebar_position=="right") {
if (viewer_sees_vbox()) {
"""<td valign="top" width=\"$*layout_sidebar_width"""; """px\">""";
"""<div class="sidebox sideboxContent" style="margin-right: 20px;">""";
$this->print_vbox();
"</div>";
"</td>";
}
}
"""<td valign="top" width=100%>""";
$this->print_body();
$this->lay_print_bodybottom();
"""</td>""";
if ($*layout_sidebar_position=="right") {
"""<td valign="top" width=\"$*layout_sidebar_width"""; """px\">""";
$this->lay_print_sidebar();
"""</td>""";
} else {
if (viewer_sees_vbox()) {
"""<td valign="top" width=\"$*layout_sidebar_width"""; """px\">""";
"""<div class="sidebox sideboxContent" style="margin-left: 20px;">""";
$this->print_vbox();
"</div>";
"</td>";
}
}
"""</tr></table>""";
if (viewer_sees_hbox_bottom()) {
"""<div style="text-align: center;">""";
$this->print_hbox_bottom();
"</div>";
}
"""</div> <!--bodyblock-->""";
}

function Page::lay_print_footer() {
if ($*text_footer_signature!="") {
var string footer_signature = $*text_footer_signature;
$footer_signature = $.time->time_format($footer_signature);
"""<div class="pagefooterblock">"""; print safe $footer_signature; """</div>""";
}
}

function Page::lay_print_page() {
"""<div class="pageblock">""";
$this->lay_print_header();
$this->lay_print_body();
$this->lay_print_footer();
"""</div> <!--pageblock-->""";
}

function Page::print_stylesheets() {
if (($*layout_stylesheet != "" and $*include_default_stylesheet_with_linked) or ($*layout_stylesheet == "" and $*include_default_stylesheet)) {
if ($*external_stylesheet) {
println safe """<link title="Smooth Sailing Default" rel="stylesheet" href="$.stylesheet_url" type="text/css" />""";
}
else {
println """<style type="text/css">""";
start_css();
print_stylesheet();
end_css();
println """</style>""";
}
}

if ($*layout_stylesheet != "") {
println safe """<link title="External" rel="stylesheet" href="$*layout_stylesheet" type="text/css" />""";
}

if ($*layout_custom_css != "") {
println """<style type="text/css">""";
start_css();
println safe $*layout_custom_css;
end_css();
println """</style>""";
}
}

function Page::print() {
var string title = $this->title();
"""<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=7"/>
""";

$this->print_head();
$this->print_stylesheets();
print safe """<title>$title</title>""";

"""
</head>
<body>
<a name="top"></a>
""";
$this->print_control_strip();
$this->lay_print_page();
"""
</body>
</html>
""";
}