8e0a769c903d2d1b6fcaf2720d8d06c430175905
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

1) #!/usr/bin/env wml
2)     <div id="footer">
3)     	<div class="onion"><img src="$(IMGROOT)/onion.jpg" alt="Tor" /></div>
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 first cut of the new, shiny...

Andrew Lewman authored 13 years ago

11)         # This will grab the date from svn info but formatting is tedious
12)        	# REQUIRES svn for this to work
13)         <p>
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)         <br />
24)         <:{
25)           #my $compiledate = `date`;
26)           my $compiledate = `date +"%a %b %d %Y %k:%M:%S %z"`;
27)           print 'Last compiled: '.$compiledate."\n";
28)         }:>
29)         </p>
30)       </div>
31)       <!-- END ABOUT -->
Andrew Lewman comment out the newsletter...

Andrew Lewman authored 13 years ago

32)       <!-- WE HAVE NO NEWSLETTER SO REMOVE THIS
33)       <div class="newsletter">
34)         <form action="">
35)           <input class="textfield" type="text" name="email" value="Sign up for our newsletter! Enter email." onClick="clearDefault(this);" />
36)           <input class="signup" type="submit" name="submit" value="Sign Up" />
37)         </form>
38)       </div>
39)       END NEWSLETTER -->
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

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

Andrew Lewman authored 13 years ago

43)           <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

44)           <li><a href="<page about/torusers>">Users of Tor</a></li>
45)           <li><a href="<page about/corepeople>">Core Tor People</a></li>
46)           <li><a href="<page about/sponsors>">Sponsors</a></li>
47)           <li><a href="<page about/contact>">Contact Us</a></li>
48)         </ul>
49)       </div>
50)       <!-- END COL -->
51)       <div class="col">
52)       	<h4>Get Involved</h4>
53)         <ul>
54)           <li><a href="<page donate/donate>">Donate</a></li>
Andrew Lewman commit changes from my sand...

Andrew Lewman authored 13 years ago

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

Andrew Lewman authored 13 years ago

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

Andrew Lewman authored 13 years ago

68)           <li><a href="<wiki>">Tor Wiki</a></li>
Andrew Lewman clean up wiki and faq refer...

Andrew Lewman authored 13 years ago

69)           <li><a href="<wikifaq>">FAQ</a></li>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 13 years ago

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

Andrew Lewman authored 13 years ago

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

Andrew Lewman authored 13 years ago

74)       <div class="col wider">
75)       	<h4>Languages</h4>
76)         # this is a cgi trampoline to bounce us to the right page
77)         # alternately, if the client supports javascript we can redirect that way
78)         # noscript does not block onclick but clients may have disabled javascript completely
79)         #
80)         # for this to work we need to know the relative path from the document root
81)         # to the current directory that wml is in. 
82)         <form action="$(DOCROOT)/cgi-bin/languageswitch.cgi">
83)           <select name="Language" id="lang">
84)           <:{
85)             #import "perl-globals.wmi";
86)             use Cwd;
87)             use Cwd 'abs_path';
88)             use File::Spec;
89)             my $urlbase = File::Spec->abs2rel(getcwd(),abs_path("$(DOCROOT)"));
90)             my $LANGUAGES;
91)             my $page = $WML_SRC_FILENAME;
92)             opendir(DIR, getcwd()) or die $!;
93)             # take a look and see what language support we have
94)             while (my $file = readdir(DIR)) {
95)                 if (-d $file) {
96)                     if (-e "$file/$page") {
97)                         my $url = $urlbase.'/'.$WML_SRC_BASENAME.'.html.'.$file;
98)                         my $url2js = $WML_SRC_BASENAME.'.html.'.$file;
99)                         print '<option value="'.$url.'" onclick="window.location=\''.$url2js.'\'">'.$LANGUAGES{$file}.'</option>'."\n" unless not defined $LANGUAGES{$file};
100)                     }
101)                 }
102)             }
103)             closedir(DIR);
104)           }:>
105)           </select>
106)           <input class="go" type="submit" name="submit" value="Go" />
107)         </form>
108)         <p>Questions on this? Visit <a href="http://www.debian.org/intro/cn#howtoset">how to set the default document language</a>.</p>
109)       </div>
Andrew Lewman fix the trademark-faq link

Andrew Lewman authored 13 years ago

110) -->