-
Notifications
You must be signed in to change notification settings - Fork 0
/
modx.prosilver.en.xsl
1821 lines (1597 loc) · 60.1 KB
/
modx.prosilver.en.xsl
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
<?xml version="1.0" encoding="UTF-8" ?>
<!-- MODX by the phpBB MOD Team XSL file v1.0 copyright 2005-2007 the phpBB MOD Team.
$Id: modx.prosilver.en.xsl,v 1.4 2007/05/28 09:57:46 paul999 Exp $ -->
<!DOCTYPE xsl:stylesheet[
<!ENTITY nbsp " ">
]>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:mod="http://www.phpbb.com/mods/xml/modx-1.0.xsd">
<xsl:output method="html" omit-xml-declaration="no" indent="yes" />
<xsl:variable name="title" select="mod:mod/mod:header/mod:title" />
<xsl:variable name="version">
<xsl:for-each select="mod:mod/mod:header/mod:mod-version">
<xsl:call-template name="give-version">
</xsl:call-template>
</xsl:for-each>
</xsl:variable>
<xsl:template match="mod:mod">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Language" content="en" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style>
/* phpBB 3.0 Admin Style Sheet
------------------------------------------------------------------------
Original author: subBlue ( http://www.subblue.com/ )
Copyright 2007 phpBB Group ( http://www.phpbb.com/ )
------------------------------------------------------------------------
*/
/* General markup styles
---------------------------------------- */
* {
/* Reset browsers default margin, padding and font sizes */
margin: 0;
padding: 0;
font-size: 100%;
}
body, div, p, th, td, li, dd {
font-size: x-small;
voice-family: "\"}\"";
voice-family: inherit;
font-size: small
}
html>body, html>div, html>p, html>th, html>td, html>li, html>dd {
font-size: small
}
html {
color: #536482;
background: #DBD7D1;
/* Always show a scrollbar for short pages - stops the jump when the scrollbar appears. non-ie browsers */
height: 100%;
margin-bottom: 1px;
}
body {
/* Text-Sizing with ems: http://www.clagnut.com/blog/348/ */
font-family: "Lucida Grande", Verdana, Helvetica, Arial, sans-serif;
color: #536482;
background: #DBD7D1;
font-size: 62.5%; /* This sets the default font size to be equivalent to 10px */
margin: 10px 15px;
}
img {
border: 0;
}
h1 {
font-family: "Trebuchet MS", Helvetica, sans-serif;
font-size: 1.70em;
font-weight: normal;
color: #333333;
}
h2, caption {
font-family: "Trebuchet MS", Helvetica, sans-serif;
font-size: 1.40em;
font-weight: normal;
color: #115098;
text-align: left;
margin-top: 25px;
}
.rtl h2, .rtl caption {
text-align: right;
}
h3, h4, h5 {
font-family: "Trebuchet MS", Helvetica, sans-serif;
font-size: 1.20em;
text-decoration: none;
line-height: 1.20em;
margin-top: 10px;
}
p {
margin-bottom: 0.7em;
line-height: 1.40em;
font-size: 0.90em;
}
ul {
list-style: disc;
margin: 0 0 1em 2em;
}
.rtl ul {
margin: 0 2em 1em 0;
}
hr {
border: 0 none;
border-top: 1px dashed #999999;
margin-bottom: 5px;
padding-bottom: 5px;
height: 1px;
}
.small {
font-size: 0.85em;
}
/* General links */
a:link, a:visited {
color: #105289;
text-decoration: none;
}
a:hover {
color: #BC2A4D;
text-decoration: underline;
}
a:active {
color: #368AD2;
text-decoration: none;
}
/* Main blocks
---------------------------------------- */
#wrap {
padding: 0 0 15px 0;
min-width: 615px;
}
#page-header {
clear: both;
text-align: right;
background: url(data:image/gif;base64,R0lGODlhiwAwAPf/AMG+uerr7b66tf38/aWint3g4dbSzZaUkefs7+/u7a2qpuHf2tTQyrm2sc7T1bzBxKimoePi4djUz6Wkofb4+ubm5urv8evq6J2bmOjq7N3a1K6sqNDU1/L09rGuqo6MitDMx7m+wcLExejm4318ebS5vNTZ3Pr6+u7w8tbY2PHz9JKQjd/e3e3s69LOyKqopLSxrfj6+pyZlc7KxW1raezv8HV0coWDgeTn6NrW0MTFxeDl6NPW2OXo6np5duHg37a1srKvq8zQ08zOztrd3+no5/n7/JiWk76+vuDk5tbW1ubk4JCNiuXi3crO0KKgnHJxbuLk5t3f4cnNzsjEv+7w8bGxsL+9usXEwvX08+zw8ubq7MfDvoiGg/T299jb3LW1tdza2MjFwNba3N3c2fX3+MbJytDNyMLBv9fTzYqJh9jX1IB/fKuqqNvf4cfEv/n5+PDy887R0rq4tMTBvLWy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kzLJAGcwA8jWD0bZD5/QCangRBMBRUNZlEeZlEt5UOHCClbJCjEAkv8ARSDwCZqADCDAACwZHvBylViplVzplWAplmRJllOBCnCJClkZaG35EG8Zl3NZl3oZKglQCn5ZCnm5l1LRl38ZmIKpl5pQDtAQC4xpBFp5mAghBorJmLHgmHQJmaLRCRBQAbLQmZaJmQdxCpvZmbLwmaBJlgzQAAcABkRQmmjQRqdJEKm5mq1pBK8Zm+FxCTOwi0+QB/sgAH6Im5S0mxDQm78ZnMJZGBIwA7RQBxsAA/SgjMK5nM35nNGZnMBxCQzQCZowAxCJnQKhndwI6Z0RCZ4YERAAOw==) top left no-repeat;
height: 69px;
font-size: 0.85em;
margin-bottom: 10px;
}
.rtl #page-header {
text-align: left;
background: top right no-repeat;
}
#page-header h1 {
color: #767676;
font-family: "Trebuchet MS",Helvetica,sans-serif;
font-size: 1.70em;
padding-top: 10px;
}
#page-header p {
font-size: 1.00em;
}
#page-body {
clear: both;
min-width: 700px;
}
#page-footer {
clear: both;
font-size: 0.75em;
text-align: center;
}
#content {
padding: 30px 10px 10px;
position: relative;
}
#content h1 {
color: #115098;
line-height: 1.2em;
margin-bottom: 0px;
}
#main {
width: 100%;
margin: 0;
min-height: 350px;
}
.rtl #main {
float: right;
margin: 0;
}
* html #main {
height: 350px;
}
/* Main Panel
---------------------------------------- */
#acp {
margin: 4px 0;
padding: 3px 1px;
min-width: 550px;
background-color: #FFFFFF;
border: 1px #999999 solid;
}
.panel {
background: #F3F3F3 url(data:image/gif;base64,R0lGODlhBQAiAfcAAPLy8t7h5Nzf4/Pz8+zt7vHx8uLk5+Xn6e3u79ve4u/v8PHx8d3f4/Dw8d/i5ejp693g4+nq7OPl6PDx8evs7ebo6uTm6N3g5Orr7dze4u/w8ODi5eHj5t/h5ers7fLz8+vs7u7u7+Dj5u7v8N7g5Ofo6uDi5ujq7PLy8+fp6+nr7PHy8t/h5O7v7+Xm6e3t7+Tm6dzf4uHk5+Hj5+bn6ufp6tvf4urr7O/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IQkLEADCjCBAizAhQtYACL8AAYYlrCFMXRhAVYQwxiC4YU7LIAOma+gwxzu8AoxfIMQAUBEIrqwB0KEIhQBAAA6FKAHVtzhAq6wgjesoAdfLAAAVrACAIixBz0YIxXHmAcqpnGNZVxjG+O4RhRQ0Y5rzCMAPgAAFBzhAyjgIyABqYUPABIAAxDDEVDAyCMMYAoD0MIAAHAERxpykQAQwyMHwEkUDOADkTzCFCT5yVJ+QAyA3CQkQcnJVnKSla4MCAA7) repeat-x top;
padding: 0;
}
span.corners-top, span.corners-bottom,
span.corners-top span, span.corners-bottom span {
font-size: 1px;
line-height: 1px;
display: block;
height: 5px;
background-repeat: no-repeat;
}
span.corners-top, span.corners-bottom {
background-image: url(data:image/gif;base64,R0lGODlhiBMMAMQSAP///5mZmfPz89vX0cvIw9zc3PX19bKysqmopvb29pqamvn5+Z2dnLy6t62sqp+fnqCgn/T09P///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAABIALAAAAACIEwwAAAX/4DAQDhScaKqubOu+cCzPdG3feK7vfO//wKBwSCwaj8ikcslsOp/QqHRKrVqv2Kx2y+16v+CweEwum8/otHrNbrvf8Lh8Tq/b7/i8fs/v+/+AgYKDhIWGh4hSAw0HBREAkJGSk5SVlpeYmZqbnJ2en6ChoqOkpaanqKmqq6ytrq+wsbKztLW2t7i5uru8vb6/wMHCw8TFxsfIycrLzM3Oz9DR0tPU1dbX2Nna29zd3t/g4eLj5OXm5+jp6uvs7e7v8PG7BAoCAAkCEvr7/P3+/wADChxIsKDBgwgTKlzIsKHDhxAjSpxIsaLFixgzatzIsaPHjyBDihxJsqTJkyhT/6pcybKly5cwY8qcSbOmzZs4c+rcybOnz59AgwodSrSo0aNIkypdyrSp06dQo0qdSrWq1atYs2rdShJBAQBcw4odS7as2bNo06pdy7at27dw48qdS7eu3bt48+rdy7ev37+AAwseTLiw4cOIizJYYCCx48eQI0ueTLmy5cuYM2vezLmz58+gQ4seTbq06dOoU6teHToAgHysY8ueTbu27du4c+vezbu379/AgwsfTry48ePIkyuX4Br28ufQo0ufTr269evYs2vfzr279+/gw4sfT7704sbl06tfz769+/fw48ufT7++/fv48+vfzx+vV7D9BSjggAQWaOCBCCao4JmCDDbo4IMQRijhdfTYg8+EGGao4YYcdujhhyCGKOKIJJZo4oko5rVIIwbI4+KLMMYo44w01mjjjTjmqOOOPPbo449ABinkkEQWaeSRSCap5JJMNunkk1BGKeWUVFaZjQgkPJDIllx26eWXYIYp5phklmnmmWimqeaabLbp5ptwxinnnHTWaeedeOap55589unnn4AGKigcIQAAOw==);
}
span.corners-top span, span.corners-bottom span {
background-image: url(data:image/gif;base64,R0lGODlhBgAMAMQWAP///9vX0fPz85mZmdzc3Jqamtvb28vIw7y6t62sqsvIxPX19bKysqmop/T09Pb29pycnJ+fnp2dnKCgn/n5+fr6+v///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAABYALAAAAAAGAAwAAAUs4DAlRxAADsEggfAAQqFYNGA0tLVQUi4AAx8w56hAcraGCyYDLFSsQYRkCgEAOw==);
}
span.corners-top {
background-position: 0 0;
margin: -4px -2px 0;
}
span.corners-top span {
background-position: 100% 0;
}
span.corners-bottom {
background-position: 0 100%;
margin: 0 -2px -4px;
clear: both;
}
span.corners-bottom span {
background-position: 100% 100%;
}
/* General form styles
----------------------------------------*/
fieldset {
margin: 15px 0;
padding: 10px;
border-top: 1px solid #D7D7D7;
border-right: 1px solid #CCCCCC;
border-bottom: 1px solid #CCCCCC;
border-left: 1px solid #D7D7D7;
background-color: #FFFFFF;
/*position: relative;*/
}
.rtl fieldset {
border-top: 1px solid #D7D7D7;
border-right: 1px solid #D7D7D7;
border-bottom: 1px solid #CCCCCC;
border-left: 1px solid #CCCCCC;
}
* html fieldset {
padding: 0 10px 5px 10px;
}
fieldset p {
font-size: 0.85em;
}
legend {
padding: 1px 0;
font-family: Tahoma,arial,Verdana,Sans-serif;
font-size: 0.85em;
font-weight: bold;
color: #115098;
position: relative;
text-transform: capitalize;
line-height: 1.00em;
top: 0em;
vertical-align: middle;
}
/* Hide from macIE \*/
legend { top: -1.2em; }
/* end */
* html legend {
margin-bottom: -10px;
margin-left: -7px;
}
/* Holly hack, .rtl comes after html */
* html .rtl legend {
margin: 0;
margin-right: -7px;
}
optgroup, select {
font-family: Verdana, Helvetica, Arial, sans-serif;
font-size: 0.85em;
font-weight: normal;
font-style: normal;
cursor: pointer;
vertical-align: middle;
width: auto;
}
optgroup {
font-size: 1.00em;
font-weight: bold;
}
option {
padding: 0 1em 0 0;
}
.rtl option {
padding: 0 0 0 1em;
}
fieldset.nobg {
margin: 15px 0 0 0;
padding: 0;
border: none;
background-color: transparent;
}
/* MOD-ABOUT STUFFS ~smithy_dll */
.mod-about {
/*float: left;*/
background-color: #CADCEB;
/*width: 100%;*/
}
.mod-about span.corners-top, .mod-about span.corners-bottom,
.mod-about span.corners-top span, .mod-about span.corners-bottom span {
font-size: 1px;
line-height: 1px;
display: block;
height: 5px;
background-repeat: no-repeat;
}
.mod-about span.corners-top, .mod-about span.corners-bottom {
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAMCAYAAABBV8wuAAAABGdBTUEAANbY1E9YMgAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAABVSURBVHjaYviPAD+BeDIQ2wMxGwNU8AkQGwAxAwwzQFXqIgvCJCajC8IkbLBJMIItYmD4xYAGmBhwAJCEMS6JcKxa8DkX5kFdbBKwIJkADRIGgAADAGtyotIvyqGpAAAAAElFTkSuQmCC);
}
.mod-about span.corners-top span, .mod-about span.corners-bottom span {
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAMCAYAAABBV8wuAAAABGdBTUEAANbY1E9YMgAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAABbSURBVHjaYvr//z8bENsD8WQg/vkfChjQsAEQPwFJMDGgggtA7AnEv9AlQOAyEM/CJgECK3FJnMIlwYZLQheXRDg2CV0gzmTCIrgd2Q4bIJ4AxGeAWBokABBgAE4XMoXm9S+UAAAAAElFTkSuQmCC);
}
.mod-about span.corners-top {
background-position: 0 0;
margin: 0 0;
}
.mod-about span.corners-top span {
background-position: 100% 0;
}
.mod-about span.corners-bottom {
background-position: 0 100%;
margin: 0 0;
clear: both;
}
.mod-about span.corners-bottom span {
background-position: 100% 100%;
}
/* END PROSILVER ADMIN PANEL STYLESHEET */
#language { width: 130px; }
.mod-about { margin: 10px 0; }
.mod-about dl, .mod-about p, .mod-about h2, .mod-about h3, .mod-about div { margin: 5px 8px; }
.mod-about div.inner { margin: 0px; }
#modDisclaimer .mod-about, #other-notes.mod-about { background-color: #EECCCC; }
#other-notes.mod-about strong.red { color: #DD3333; }
span.key { font-size: 10px; height: 14px; width: 18px; border: outset 2px #999999; background-color: #EEEECC; display: block; float: left; text-align: center; font-weight: bold; margin-right: 5px; }
.mod-edit { background-color: #D6E6F6; border: solid 1px #336699; margin: 10px 0; padding: 0 10px; }
.mod-inlineedit { background-color: #DDEEFF; border: solid 1px #6699CC; margin: 10px 0; padding: 0 10px; }
dl.author-info dd { margin-left: 100px; }
ol#file-copy { padding: 5px; margin-left: 20px; margin-bottom: 10px; }
ol#file-copy li { margin-left: 30px; }
ol#file-copy span { font-weight: bold; }
/* Code block */
div.codebox {
padding: 3px;
background-color: #FFFFFF;
border: 1px solid #d8d8d8;
font-size: 1em;
}
div.codebox div.codeHead {
text-transform: uppercase;
border-bottom: 1px solid #CCCCCC;
margin-bottom: 3px;
font-size: 0.8em;
font-weight: bold;
display: block;
}
blockquote div.codebox {
margin-left: 0;
}
div.codebox pre {
/* Also see tweaks.css */
overflow: auto;
display: block;
height: auto;
max-height: 200px;
/*white-space: normal;*/
padding-top: 5px;
font: 0.9em Monaco, "Andale Mono","Courier New", Courier, mono;
line-height: 1.3em;
color: #8b8b8b;
margin: 2px 0;
}
</style>
<script type="text/javascript">
var i = 0;
var box = new Array();
/* passed from xslt */
<xsl:for-each select="mod:header">
var documentLanguages = new Array(<xsl:for-each select="mod:title">'<xsl:value-of select="@lang" />'<xsl:if test="position()!=last()">,</xsl:if></xsl:for-each>);
<xsl:for-each select="mod:author-group">
var authors = <xsl:value-of select="count(mod:author)"/>;
var authors_ll = new Array();
i = 0;
<xsl:for-each select="mod:author">
authors_ll[i] = '<xsl:value-of select="generate-id()"/>';
i += 1;
</xsl:for-each>
</xsl:for-each>
var mhes = 0;
var mhes_ll = new Array();
var mhcls = 0;
var mhcls_ll = new Array();
<xsl:for-each select="mod:history/mod:entry">
mhes_ll[mhes] = '<xsl:value-of select="generate-id()"/>';
mhes++;
<xsl:if test="count(mod:changelog) > 1">
mhcls_ll[mhes] = '<xsl:value-of select="generate-id()"/>';
mhcls++;
</xsl:if>
</xsl:for-each>
</xsl:for-each>
var opens = 0;
var opens_ll = new Array();
<xsl:for-each select="mod:action-group/mod:open">
opens_ll[opens] = '<xsl:value-of select="generate-id()"/>';
opens++;
</xsl:for-each>
var codes = 0;
var codes_ll = new Array();
<xsl:for-each select="mod:action-group/mod:sql">
box[codes] = '<xsl:value-of select="generate-id()"/>';
codes_ll[codes] = '<xsl:value-of select="generate-id()"/>';
codes++;
</xsl:for-each>
var finds = 0;
var finds_ll = new Array();
var regex = 0;
var regex_ll = new Array();
var ifinds = 0;
var ifinds_ll = new Array();
var iregex = 0;
var iregex_ll = new Array();
var addafters = 0;
var addafters_ll = new Array();
var iaddafters = 0;
var iaddafters_ll = new Array();
var addbefores = 0;
var addbefores_ll = new Array();
var iaddbefores = 0;
var iaddbefores_ll = new Array();
var replacewiths = 0;
var replacewiths_ll = new Array();
var ireplacewiths = 0;
var ireplacewiths_ll = new Array();
var increments = 0;
var increments_ll = new Array();
var iincrements = 0;
var iincrements_ll = new Array();
var comments = 0;
var comments_ll = new Array();
<xsl:for-each select="mod:action-group/mod:open/mod:edit">
<xsl:for-each select="mod:find">
finds_ll[finds] = '<xsl:value-of select="generate-id()"/>';
finds++;
<xsl:if test="@type = 'regex'">
regex_ll[regex] = '<xsl:value-of select="generate-id()"/>';
regex++;
</xsl:if>
</xsl:for-each>
<xsl:if test="count(mod:comment) > 0">
comments_ll[comments] = '<xsl:value-of select="generate-id()"/>';
comments++;
</xsl:if>
<xsl:for-each select="mod:find|mod:action">
box[codes] = '<xsl:value-of select="generate-id()"/>';
codes_ll[codes] = '<xsl:value-of select="generate-id()"/>';
codes++;
<xsl:if test="name() = 'action'">
<xsl:if test="@type = 'after-add'">
addafters_ll[addafters] = '<xsl:value-of select="generate-id()"/>';
addafters++;
</xsl:if>
<xsl:if test="@type = 'before-add'">
addbefores_ll[addbefores] = '<xsl:value-of select="generate-id()"/>';
addbefores++;
</xsl:if>
<xsl:if test="@type = 'replace-with'">
replacewiths_ll[replacewiths] = '<xsl:value-of select="generate-id()"/>';
replacewiths++;
</xsl:if>
<xsl:if test="@type = 'operation'">
increments_ll[increments] = '<xsl:value-of select="generate-id()"/>';
increments++;
</xsl:if>
</xsl:if>
</xsl:for-each>
<xsl:for-each select="mod:inline-edit">
<xsl:for-each select="mod:inline-find">
ifinds_ll[ifinds] = '<xsl:value-of select="generate-id()"/>';
ifinds++;
<xsl:if test="@type = 'regex'">
iregex_ll[iregex] = '<xsl:value-of select="generate-id()"/>';
iregex++;
</xsl:if>
</xsl:for-each>
<xsl:for-each select="mod:inline-find|mod:inline-action">
box[codes] = '<xsl:value-of select="generate-id()"/>';
codes_ll[codes] = '<xsl:value-of select="generate-id()"/>';
codes++;
<xsl:if test="name() = 'inline-action'">
<xsl:if test="@type = 'after-add'">
iaddafters_ll[iaddafters] = '<xsl:value-of select="generate-id()"/>';
iaddafters++;
</xsl:if>
<xsl:if test="@type = 'before-add'">
iaddbefores_ll[iaddbefores] = '<xsl:value-of select="generate-id()"/>';
iaddbefores++;
</xsl:if>
<xsl:if test="@type = 'replace-with'">
ireplacewiths_ll[ireplacewiths] = '<xsl:value-of select="generate-id()"/>';
ireplacewiths++;
</xsl:if>
<xsl:if test="@type = 'operation'">
iincrements_ll[iincrements] = '<xsl:value-of select="generate-id()"/>';
iincrements++;
</xsl:if>
</xsl:if>
</xsl:for-each>
</xsl:for-each>
</xsl:for-each>
<xsl:for-each select="mod:action-group/mod:diy-instructions">
codes_ll[codes] = '<xsl:value-of select="generate-id()"/>';
codes++;
</xsl:for-each>
var copies = 0;
var copies_ll = new Array();
<xsl:for-each select="mod:action-group/mod:copy/mod:file">
copies_ll[copies] = '<xsl:value-of select="generate-id()"/>';
copies++;
</xsl:for-each>
<xsl:text disable-output-escaping="yes">
<![CDATA[
// The following line from http://www.ryancooper.com/resources/keycode.asp
document.onkeydown = mod_doKeyPress;
var host = "http://www.phpbb.com/mods/modx/i18n/";
var xhr = null;
var xhr_lang = null;
var remoteData = null;
var enStrings = "h1=Installation Instructions for \n" +
"V=Version \n" +
"t=Title:\n" +
"d=Description:\n" +
"aV=Version:\n" +
"mint=minutes\n" +
"it=Installation Time:\n" +
"il=Installation Level:\n" +
"ile=Easy\n" +
"ili=Intermediate\n" +
"ilh=Hard\n" +
"au=Author\n" +
"aus=Authors\n" +
"a-un=Username:\n" +
"a-e=Email:\n" +
"a-n=Name:\n" +
"a-h=WWW:\n" +
"fte=Files to Edit\n" +
"icf=Included Files\n" +
"icfn=No files have been included with this MOD.\n" +
"dcl=Disclaimer\n" +
"dclt=For security purposes, please check: <a href=\"http://www.phpbb.com/mods/\">http://www.phpbb.com/mods/</a> for the latest version of this MOD. Downloading this MOD from other sites could cause malicious code to enter into your phpBB Forum. As such, phpBB will not offer support for MODs not offered in our MODs database, located at: <a href=\"http://www.phpbb.com/mods/\">http://www.phpbb.com/mods/</a>\n" +
"isp=English Support\n" +
"ispt=English support can be obtained at <a href=\"http://www.phpbb.com/mods/\">http://www.phpbb.com/mods/</a> for released MODs.\n" +
"ant=Author Notes\n" +
"lic=License\n" +
"lict=This MOD has been licensed under the following license:\n" +
"ont=Other Notes\n" +
"ontt1=Before adding this MOD to your forum, you should back up all files related to this MOD\n" +
"ontt2=This MOD was designed for phpBB\n" +
"ontt3= and may not function as stated on other phpBB versions. MODs for phpBB3.0 will <strong>not</strong> work on phpBB2.0 and vice versa.\n" +
"onttq=This MOD is development quality. It is not recommended that you install it on a live forum.\n" +
"sql=SQL\n" +
"fca=File Copy\n" +
"c-copy=Copy:\n" +
"c-to=To:\n" +
"cde-c=Code: \n" +
"cde-sa=Select All\n" +
"edts=Edits\n" +
"edtt=Use your keyboard to navigate the code boxes. You may also hit '<em>s</em>' on your keyboard to go to the first code box.\n" +
"opn=Open:\n" +
"cm-cmt=Comments\n" +
"fnd=Find\n" +
"fndt=<strong>Tip:</strong> This may be a partial find and not the whole line.\n" +
"rplw=Replace With\n" +
"rplwt=<strong>Tip:</strong> Replace the preceding line(s) to find with the following lines.\n" +
"aft=Add after\n" +
"aftt=<strong>Tip:</strong> Add these lines on a new blank line after the preceding line(s) to find.\n" +
"bef=Add before\n" +
"beft=<strong>Tip:</strong> Add these lines on a new blank line before the preceding line(s) to find.\n" +
"inc=Increment\n" +
"inct=<strong>Tip:</strong> This allows you to alter integers. For help on what each operator means, click here.\n" +
"ifnd=In-line Find\n" +
"ifndt=<strong>Tip:</strong> This is a partial match of a line for in-line operations.\n" +
"irplw=In-line Replace With\n" +
"irplwt=\n" +
"iaft=In-line Add after\n" +
"iaftt=\n" +
"ibef=In-line Add before\n" +
"ibeft=\n" +
"iinc=In-line Increment\n" +
"iinct=<strong>Tip:</strong> This allows you to alter integers. For help on what each operator means, click here.\n" +
"diy=DIY Instructions\n" +
"diyt=These are manual instructions that cannot be performed automatically. You should follow these instructions carefully.\n" +
"eom=Save all files. End of MOD.\n" +
"eomt=You have finished the installation for this MOD. Upload all changed files to your website. If the installation went bad, simply restore your backed up files.\n" +
"slg=Select Language:\n" +
"foot=MOD UA XSLT File Copyright © 2007 The phpBB Group, this MOD is copyright to the authors listed above.\n" +
"regex=This find contains an advanced feature known as regular expressions, click here to learn more.\n" +
"mhe-v= - Version \n" +
"mh=MOD History\n" +
"atm=About this MOD";
var currentLanguage = "en";
var languagesLoaded = false;
var arrClasCnt = new Array(
new Array('a-', authors, authors_ll),
new Array('c-', copies, copies_ll),
new Array('cm-', comments, comments_ll),
new Array('opn', opens, opens_ll),
new Array('cde-', codes, codes_ll),
new Array('fnd', finds, finds_ll),
new Array('regex', regex, regex_ll),
new Array('rplw', replacewiths, replacewiths_ll),
new Array('aft', addafters, addafters_ll),
new Array('bef', addbefores, addbefores_ll),
new Array('inc', increments, increments_ll),
new Array('ifnd', ifinds, ifinds_ll),
new Array('regex', iregex, iregex_ll),
new Array('irplw', ireplacewiths, ireplacewiths_ll),
new Array('iaft', iaddafters, iaddafters_ll),
new Array('ibef', iaddbefores, iaddbefores_ll),
new Array('iinc', iincrements, iincrements_ll),
new Array('mhe', mhes, mhes_ll));
var languages = new Array('en');
function inArray(array, value)
// Returns true if the passed value is found in the
// array. Returns false if it is not.
{
var i;
for (i=0; i < array.length; i++) {
// Matches identical (===), not just similar (==).
if (array[i] === value) {
return true;
}
}
return false;
};
function startup()
{
xhr = createXHR();
changeLanguage(currentLanguage);
document.getElementById('lang-selector').style.display = "block";
}
function changeLanguage(langCode)
{
langCode = langCode.toLowerCase();
currentLanguage = langCode.split('-')[0];
if (currentLanguage.toLowerCase() != 'en') // if change, only include up to first dash
{
loadLanguage();
xslLanguage(langCode);
return;
}
else
{
var texts = enStrings.split("\n");
applyLanguage(texts);
xslLanguage(langCode);
}
}
function xslLanguage(langCode)
{
i18nedEls = new Array('title','description','author-notes','diy');
var c, h;
for (c in comments_ll)
{
i18nedEls.push('mod-comment[' + comments_ll[c] + ']');
}
for (h in mhcls_ll)
{
i18nedEls.push('mhcl[' + mhcls_ll[h] + ']');
}
// force to english of MODX if the MOD doesn't have a translation of the selected language
if (!inArray(documentLanguages, langCode))
{
langCode = 'en';
}
var i;
for (i in i18nedEls)
{
xslLangEl(langCode, i18nedEls[i]);
}
}
function xslLangEl(langCode, element)
{
var i;
var currentEl = document.getElementById(element);
try
{
for (i in currentEl.childNodes)
{
try
{
split = currentEl.childNodes[i].lang.toLowerCase().split('-')[0];
if (currentEl.childNodes[i].lang.toLowerCase() == langCode.toLowerCase() || split == langCode.toLowerCase())
{
currentEl.childNodes[i].style.display = 'inline';
}
else
{
currentEl.childNodes[i].style.display = 'none';
}
}
catch (o) {}
}
} catch (o) {}
}
function loadLanguages()
{
if (languagesLoaded) return;
languagesLoaded = true;
try {
netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");
} catch (e) { }
var langSel = document.getElementById('language');
var loadingItem = document.createElement('option');
langSel.appendChild(loadingItem);
loadingItem.innerHTML = 'Loading...';
langSel.remove(0);
cacheRnd=parseInt(Math.random()*99999999); // cache
xhr.open("GET", host + "languages.txt?rnd=" + cacheRnd, true);
xhr.onreadystatechange = function()
{
if(xhr.readyState == 4)
{
if(xhr.status == 200)
{
languages = xhr.responseText.replace("\r", "").split("\n");
var i, l, s = 0;
documentLanguages.sort();
for (i in languages)
{
languages[i] = languages[i].replace("\r", "");
languages[i] = languages[i].split("=");
var langItem = document.createElement('option');
langSel.appendChild(langItem);
langItem.value = languages[i][0];
var iso = languages[i][0].split('-');
langItem.innerHTML = languages[i][1];
if (iso.length == 2)
{
langItem.innerHTML += ' [' + iso[1].toUpperCase() + ']';
}
if (languages[i][0] == currentLanguage)
{
langSel.selectedIndex = s;
langSel.text = languages[i][1];
}
s++;
}
langSel.focus();
langSel.onchange =
function()
{
changeLanguage(this.value.replace(" ", ""));
};
langSel.remove(0);
}
}
};
xhr.send(null);
}
function showLanguages()
{
loadLanguages();
}
function createXHR()
{
try {
netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");
} catch (e) { }
var req = null;
if(window.XMLHttpRequest)
{
req = new XMLHttpRequest;
}
else
{
var cases = ["Msxml2.XMLHTTP","MSXML2.XMLHTTP.5.0","MSXML2.XMLHTTP.4.0","MSXML2.XMLHTTP.3.0","MICROSOFT.XMLHTTP.1.0","MICROSOFT.XMLHTTP.1","MICROSOFT.XMLHTTP"];
var i = 0;
for(i in cases)
{
var casei=cases[i];
try
{
req = new ActiveXObject(casei);
}
catch(o)
{
req = null;
}
if(req)
{
break;
}
}
}
return req;
}
function loadLanguage()
{
try {
netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");
} catch (e) { }
xhr_lang = createXHR();
cacheRnd=parseInt(Math.random()*99999999); // cache
xhr_lang.open("GET", host + currentLanguage + ".txt?rnd=" + cacheRnd, true);
xhr_lang.onreadystatechange = function()
{
if(xhr_lang.readyState == 4)
{
if(xhr_lang.status == 200)
{
var texts = xhr_lang.responseText.replace("\r\n", "\n").split("\n");
applyLanguage(texts);
}
}
};
xhr_lang.send(null);
}
function applyLanguage(texts)
{
var i = 0;
for (i in texts)
{
var lang = texts[i].split("=");
if (lang.length < 2) continue;
try
{
var j;
var jflag = false;
for (j = 0; j < arrClasCnt.length; j++)
{
var sw = '-' + lang[0];
if (sw.match('-' + arrClasCnt[j][0]))
{
var k;
for (k = 0; k < arrClasCnt[j][2].length; k++)
{
try
{
document.getElementById('lang-' + lang[0] + '[' + arrClasCnt[j][2][k] + ']').innerHTML = lang[1];
} catch (e) {}
}
jflag = true;
}
}
if (!jflag)
{
var p;
var append = '';
for (p = 1; p < lang.length; p++)
{
if (p > 1) lang[p] = '=' + lang[p];
append += lang[p];
}
document.getElementById('lang-' + lang[0]).innerHTML = append;
}
}
catch (o) {}
}
}
function selectCode(a)
{
// Get ID of code block
var e = a.parentNode.parentNode.getElementsByTagName('PRE')[0];