abdf68f059a256d85d8314f67a456540f8f919e9
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

1) #!/usr/bin/env wml
2)     <div id="footer">
Sebastian Hahn de-xhtmlify more stuff

Sebastian Hahn authored 13 years ago

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

Andrew Lewman authored 13 years ago

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

Andrew Lewman authored 13 years ago

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

Andrew Lewman authored 13 years ago

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

Andrew Lewman authored 13 years ago

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

Andrew Lewman authored 13 years ago

11) <!--
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

12)         # This will grab the date from svn info but formatting is tedious
13)        	# REQUIRES svn for this to work
14)         <:{
15)           my $svninfo = `svn info`;
16)           if ($svninfo =~ m/Last Changed Date: (\d{4}-\d{2}-\d{2})\s(\d{2}:\d{2}:\d{2})\s(.*)\s\((.*)\)/) {
17)             my $modifydate = "$4 $2 $3";
18)             # remove commas from date
19)             $modifydate =~ s/,//;
20)             print 'Last modified: '.$modifydate."\n";
21)           }
22)         }:>
23)         <:{
24)           #my $compiledate = `date`;
25)           my $compiledate = `date +"%a %b %d %Y %k:%M:%S %z"`;
26)           print 'Last compiled: '.$compiledate."\n";
27)         }:>
Andrew Lewman move the svn-based info int...

Andrew Lewman authored 13 years ago

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

Andrew Lewman authored 13 years ago

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

Andrew Lewman authored 13 years ago

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

Sebastian Hahn authored 13 years ago

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

Andrew Lewman authored 13 years ago

36)         </form>
37)       </div>
38)       END NEWSLETTER -->
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

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

Andrew Lewman authored 13 years ago

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

Andrew Lewman authored 13 years ago

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

Sebastian Hahn authored 13 years ago

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

Andrew Lewman authored 13 years ago

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

Andrew Lewman authored 13 years ago

56)           <li><a href="<page docs/hidden-services>">Hidden Services</a></li>
57)           <li><a href="<page getinvolved/translation>">Translations</a></li>
58)           <li><a href="<page getinvolved/open-positions>">Careers</a></li>
59)         </ul>
60)       </div>
61)       <!-- END COL -->
62)       <div class="col">
63)       	<h4>Documentation</h4>
64)         <ul>
65)           <li><a href="<page docs/tor-manual>">Manuals</a></li>
66)           <li><a href="<page docs/documentation>">Installation Guides</a></li>
Andrew Lewman remove the glossary. fix up...

Andrew Lewman authored 13 years ago

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

Andrew Lewman authored 13 years ago

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

Andrew Lewman authored 13 years ago

69)         </ul>
70)       </div>
71)       <!-- END COL -->
Andrew Lewman fix the trademark-faq link

Andrew Lewman authored 13 years ago

72) <!-- LANGUAGE SWITCH CGI 
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

73)       <div class="col wider">
74)       	<h4>Languages</h4>
75)         # this is a cgi trampoline to bounce us to the right page
76)         # alternately, if the client supports javascript we can redirect that way
77)         # noscript does not block onclick but clients may have disabled javascript completely
78)         #
79)         # for this to work we need to know the relative path from the document root
80)         # to the current directory that wml is in. 
81)         <form action="$(DOCROOT)/cgi-bin/languageswitch.cgi">
82)           <select name="Language" id="lang">
83)           <:{
84)             #import "perl-globals.wmi";
85)             use Cwd;
86)             use Cwd 'abs_path';
87)             use File::Spec;
88)             my $urlbase = File::Spec->abs2rel(getcwd(),abs_path("$(DOCROOT)"));
89)             my $LANGUAGES;
90)             my $page = $WML_SRC_FILENAME;
91)             opendir(DIR, getcwd()) or die $!;
92)             # take a look and see what language support we have
93)             while (my $file = readdir(DIR)) {
94)                 if (-d $file) {
95)                     if (-e "$file/$page") {
96)                         my $url = $urlbase.'/'.$WML_SRC_BASENAME.'.html.'.$file;
97)                         my $url2js = $WML_SRC_BASENAME.'.html.'.$file;
98)                         print '<option value="'.$url.'" onclick="window.location=\''.$url2js.'\'">'.$LANGUAGES{$file}.'</option>'."\n" unless not defined $LANGUAGES{$file};
99)                     }
100)                 }
101)             }
102)             closedir(DIR);
103)           }:>
104)           </select>
Sebastian Hahn de-xhtmlify more stuff

Sebastian Hahn authored 13 years ago

105)           <input class="go" type="submit" name="submit" value="Go">
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

106)         </form>
107)         <p>Questions on this? Visit <a href="http://www.debian.org/intro/cn#howtoset">how to set the default document language</a>.</p>
108)       </div>
Andrew Lewman fix the trademark-faq link

Andrew Lewman authored 13 years ago

109) -->