include/foot.wmi
2a9aaa80
 #!/usr/bin/env wml
3ed2fdbe
 #use "functions.wmi"
 
2a9aaa80
     <div id="footer">
c51e0207
     	<div class="onion"><img src="$(IMGROOT)/onion.jpg" alt="Tor"></div>
2a9aaa80
       <div class="about">
ae998a74
     <p>Trademark, copyright notices, and rules for use by third parties can be found
     <a href="<page docs/trademark-faq>">in our FAQ</a>.</p>
1df211d0
 <!--
7e8a34ba
         # This will grab the date from svn info/git
         # REQUIRES svn or git for this to work
2a9aaa80
         <:{
7e8a34ba
           my $svninfo = `svn info 2>/dev/null`;
           my $modifydate;
2a9aaa80
           if ($svninfo =~ m/Last Changed Date: (\d{4}-\d{2}-\d{2})\s(\d{2}:\d{2}:\d{2})\s(.*)\s\((.*)\)/) {
7e8a34ba
             $modifydate = "$4 $2 $3";
2a9aaa80
             # remove commas from date
             $modifydate =~ s/,//;
7e8a34ba
           } else {
             $modifydate = `git log --format=%cd -n 1`
2a9aaa80
           }
7e8a34ba
           print 'Last modified: '.$modifydate."\n";
2a9aaa80
         }:>
         <:{
           #my $compiledate = `date`;
           my $compiledate = `date +"%a %b %d %Y %k:%M:%S %z"`;
           print 'Last compiled: '.$compiledate."\n";
         }:>
1df211d0
 -->
2a9aaa80
       </div>
       <!-- END ABOUT -->
       <div class="col first">
       	<h4>About Tor</h4>
         <ul>
088de278
           <li><a href="<page about/overview>">What Tor Does</a></li>
2a9aaa80
           <li><a href="<page about/torusers>">Users of Tor</a></li>
           <li><a href="<page about/corepeople>">Core Tor People</a></li>
           <li><a href="<page about/sponsors>">Sponsors</a></li>
           <li><a href="<page about/contact>">Contact Us</a></li>
         </ul>
       </div>
       <!-- END COL -->
       <div class="col">
       	<h4>Get Involved</h4>
         <ul>
           <li><a href="<page donate/donate>">Donate</a></li>
1ef45efc
           <li><a href="<page docs/documentation>#MailingLists">Mailing Lists</a></li>
2a9aaa80
           <li><a href="<page docs/hidden-services>">Hidden Services</a></li>
           <li><a href="<page getinvolved/translation>">Translations</a></li>
bbfd0bef
 #          <li><a href="<page getinvolved/open-positions>">Careers</a></li>
2a9aaa80
         </ul>
       </div>
       <!-- END COL -->
       <div class="col">
       	<h4>Documentation</h4>
         <ul>
           <li><a href="<page docs/tor-manual>">Manuals</a></li>
           <li><a href="<page docs/documentation>">Installation Guides</a></li>
af6f65c4
           <li><a href="<wiki>">Tor Wiki</a></li>
8fae4e2a
           <li><a href="<page docs/faq>">General Tor FAQ</a></li>
2a9aaa80
         </ul>
       </div>
a4b5273f
         <div class="col">
b3233898
         <a href="https://internetdefenseleague.org/"><img src="$(IMGROOT)/InternetDefenseLeague-footer-badge.png" alt="Internet Defense League"></a>
a4b5273f
         </div>
2a9aaa80
       <!-- END COL -->
3ed2fdbe
 
818f5aed
 #	<!-- List available languages -->
 #	<div class="col wider">
 #	<h4>Languages</h4>
 #	<: if (has_translations()) {  :>
 #		<p>
 #		This page is also available in the following languages:
 #		<: print list_translations() :>.<br />
 #		How to set <a href="http://www.debian.org/intro/cn#howtoset">the default document language</a>.
 #		</p>
 #	<: }; :>
 #	</div>
3ed2fdbe
 
ae998a74
 # LANGUAGE SWITCH CGI
bbfd0bef
 #      <div class="col wider">
 #      	<h4>Languages</h4>
 #        # this is a cgi trampoline to bounce us to the right page
 #        # alternately, if the client supports javascript we can redirect that way
 #        # noscript does not block onclick but clients may have disabled javascript completely
 #        #
 #        # for this to work we need to know the relative path from the document root
ae998a74
 #        # to the current directory that wml is in.
bbfd0bef
 #        <form action="$(DOCROOT)/cgi-bin/languageswitch.cgi">
 #          <select name="Language" id="lang">
 #          <:{
 #            #import "perl-globals.wmi";
 #            use Cwd;
 #            use Cwd 'abs_path';
 #            use File::Spec;
 #            my $urlbase = File::Spec->abs2rel(getcwd(),abs_path("$(DOCROOT)"));
 #            my $LANGUAGES;
 #            my $page = $WML_SRC_FILENAME;
 #            opendir(DIR, getcwd()) or die $!;
 #            # take a look and see what language support we have
 #            while (my $file = readdir(DIR)) {
 #                if (-d $file) {
 #                    if (-e "$file/$page") {
 #                        my $url = $urlbase.'/'.$WML_SRC_BASENAME.'.html.'.$file;
 #                        my $url2js = $WML_SRC_BASENAME.'.html.'.$file;
 #                        print '<option value="'.$url.'" onclick="window.location=\''.$url2js.'\'">'.$LANGUAGES{$file}.'</option>'."\n" unless not defined $LANGUAGES{$file};
 #                    }
 #                }
 #            }
 #            closedir(DIR);
 #          }:>
 #          </select>
 #          <input class="go" type="submit" name="submit" value="Go">
 #        </form>
 #        <p>Questions on this? Visit <a href="http://www.debian.org/intro/cn#howtoset">how to set the default document language</a>.</p>
 #      </div>
 #
2a9aaa80
     </div>
     <!-- END FOOTER -->
 
   </div>
   <!-- END WRAP -->
 </body>
 </html>