7e8a34bab92d6055f99f2c8ec662b1f535047240
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 14 years ago

1) #!/usr/bin/env wml
Runa A. Sandvik list available languages /...

Runa A. Sandvik authored 13 years ago

2) #use "functions.wmi"
3) 
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 14 years ago

4)     <div id="footer">
Sebastian Hahn de-xhtmlify more stuff

Sebastian Hahn authored 14 years ago

5)     	<div class="onion"><img src="$(IMGROOT)/onion.jpg" alt="Tor"></div>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 14 years ago

6)       <div class="about">
Andrew Lewman fix the trademark-faq link

Andrew Lewman authored 14 years ago

7) 	<p>"Tor" and the "Onion Logo" are registered trademarks of
8) 	<a href="<page docs/trademark-faq>">The Tor Project, Inc.</a>
Andrew Lewman add the cc-by link in the f...

Andrew Lewman authored 14 years ago

9) 	Content on this site is licensed under a <a
10) 	href="http://creativecommons.org/licenses/by/3.0/us/">Creative
Andrew Lewman fix the trademark-faq link

Andrew Lewman authored 14 years ago

11) 	Commons Attribution 3.0 United States License</a>, unless
12) 	otherwise noted.</p>
Andrew Lewman move the svn-based info int...

Andrew Lewman authored 14 years ago

13) <!--
Sebastian Hahn Grab the last modified date...

Sebastian Hahn authored 12 years ago

14)         # This will grab the date from svn info/git
15)         # REQUIRES svn or git for this to work
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 14 years ago

16)         <:{
Sebastian Hahn Grab the last modified date...

Sebastian Hahn authored 12 years ago

17)           my $svninfo = `svn info 2>/dev/null`;
18)           my $modifydate;
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 14 years ago

19)           if ($svninfo =~ m/Last Changed Date: (\d{4}-\d{2}-\d{2})\s(\d{2}:\d{2}:\d{2})\s(.*)\s\((.*)\)/) {
Sebastian Hahn Grab the last modified date...

Sebastian Hahn authored 12 years ago

20)             $modifydate = "$4 $2 $3";
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 14 years ago

21)             # remove commas from date
22)             $modifydate =~ s/,//;
Sebastian Hahn Grab the last modified date...

Sebastian Hahn authored 12 years ago

23)           } else {
24)             $modifydate = `git log --format=%cd -n 1`
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 14 years ago

25)           }
Sebastian Hahn Grab the last modified date...

Sebastian Hahn authored 12 years ago

26)           print 'Last modified: '.$modifydate."\n";
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 14 years ago

27)         }:>
28)         <:{
29)           #my $compiledate = `date`;
30)           my $compiledate = `date +"%a %b %d %Y %k:%M:%S %z"`;
31)           print 'Last compiled: '.$compiledate."\n";
32)         }:>
Andrew Lewman move the svn-based info int...

Andrew Lewman authored 14 years ago

33) -->
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 14 years ago

34)       </div>
35)       <!-- END ABOUT -->
Andrew Lewman comment out the newsletter...

Andrew Lewman authored 14 years ago

36)       <!-- WE HAVE NO NEWSLETTER SO REMOVE THIS
37)       <div class="newsletter">
38)         <form action="">
Sebastian Hahn de-xhtmlify more stuff

Sebastian Hahn authored 14 years ago

39)           <input class="textfield" type="text" name="email" value="Sign up for our newsletter! Enter email." onClick="clearDefault(this);">
40)           <input class="signup" type="submit" name="submit" value="Sign Up">
Andrew Lewman comment out the newsletter...

Andrew Lewman authored 14 years ago

41)         </form>
42)       </div>
43)       END NEWSLETTER -->
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 14 years ago

44)       <div class="col first">
45)       	<h4>About Tor</h4>
46)         <ul>
Andrew Lewman fix up the info blurb, upda...

Andrew Lewman authored 14 years ago

47)           <li><a href="<page about/overview>">What Tor Does</a></li>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 14 years ago

48)           <li><a href="<page about/torusers>">Users of Tor</a></li>
49)           <li><a href="<page about/corepeople>">Core Tor People</a></li>
50)           <li><a href="<page about/sponsors>">Sponsors</a></li>
51)           <li><a href="<page about/contact>">Contact Us</a></li>
52)         </ul>
53)       </div>
54)       <!-- END COL -->
55)       <div class="col">
56)       	<h4>Get Involved</h4>
57)         <ul>
58)           <li><a href="<page donate/donate>">Donate</a></li>
Sebastian Hahn Fix the mailing list link....

Sebastian Hahn authored 14 years ago

59)           <li><a href="<page docs/documentation>#MailingLists">Mailing List</a></li>
Andrew Lewman link to the right mirror page

Andrew Lewman authored 14 years ago

60)           <li><a href="<page getinvolved/mirrors>">Mirrors</a></li>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 14 years ago

61)           <li><a href="<page docs/hidden-services>">Hidden Services</a></li>
62)           <li><a href="<page getinvolved/translation>">Translations</a></li>
Andrew Lewman comment out careers in the...

Andrew Lewman authored 13 years ago

63) #          <li><a href="<page getinvolved/open-positions>">Careers</a></li>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 14 years ago

64)         </ul>
65)       </div>
66)       <!-- END COL -->
67)       <div class="col">
68)       	<h4>Documentation</h4>
69)         <ul>
70)           <li><a href="<page docs/tor-manual>">Manuals</a></li>
71)           <li><a href="<page docs/documentation>">Installation Guides</a></li>
Andrew Lewman remove the glossary. fix up...

Andrew Lewman authored 14 years ago

72)           <li><a href="<wiki>">Tor Wiki</a></li>
Andrew Lewman link the static faq page in...

Andrew Lewman authored 14 years ago

73)           <li><a href="<page docs/faq>">General Tor FAQ</a></li>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 14 years ago

74)         </ul>
75)       </div>
76)       <!-- END COL -->
Runa A. Sandvik list available languages /...

Runa A. Sandvik authored 13 years ago

77) 
78) 	<!-- List available languages -->
79) 	<div class="col wider">
80) 	<h4>Languages</h4>
81) 	<: if (has_translations()) {  :>
82) 		<p>
83) 		This page is also available in the following languages:
84) 		<: print list_translations() :>.<br />
85) 		How to set <a href="http://www.debian.org/intro/cn#howtoset">the default document language</a>.
86) 		</p>
87) 	<: }; :>
88) 	</div>
89) 
Andrew Lewman comment out careers in the...

Andrew Lewman authored 13 years ago

90) # LANGUAGE SWITCH CGI 
91) #      <div class="col wider">
92) #      	<h4>Languages</h4>
93) #        # this is a cgi trampoline to bounce us to the right page
94) #        # alternately, if the client supports javascript we can redirect that way
95) #        # noscript does not block onclick but clients may have disabled javascript completely
96) #        #
97) #        # for this to work we need to know the relative path from the document root
98) #        # to the current directory that wml is in. 
99) #        <form action="$(DOCROOT)/cgi-bin/languageswitch.cgi">
100) #          <select name="Language" id="lang">
101) #          <:{
102) #            #import "perl-globals.wmi";
103) #            use Cwd;
104) #            use Cwd 'abs_path';
105) #            use File::Spec;
106) #            my $urlbase = File::Spec->abs2rel(getcwd(),abs_path("$(DOCROOT)"));
107) #            my $LANGUAGES;
108) #            my $page = $WML_SRC_FILENAME;
109) #            opendir(DIR, getcwd()) or die $!;
110) #            # take a look and see what language support we have
111) #            while (my $file = readdir(DIR)) {
112) #                if (-d $file) {
113) #                    if (-e "$file/$page") {
114) #                        my $url = $urlbase.'/'.$WML_SRC_BASENAME.'.html.'.$file;
115) #                        my $url2js = $WML_SRC_BASENAME.'.html.'.$file;
116) #                        print '<option value="'.$url.'" onclick="window.location=\''.$url2js.'\'">'.$LANGUAGES{$file}.'</option>'."\n" unless not defined $LANGUAGES{$file};
117) #                    }
118) #                }
119) #            }
120) #            closedir(DIR);
121) #          }:>
122) #          </select>
123) #          <input class="go" type="submit" name="submit" value="Go">
124) #        </form>
125) #        <p>Questions on this? Visit <a href="http://www.debian.org/intro/cn#howtoset">how to set the default document language</a>.</p>
126) #      </div>
127) #