[tor-commits] [webwml/staging] Removing obsolete pages and includes

hiro at torproject.org hiro at torproject.org
Thu Sep 7 15:45:47 UTC 2017


commit 9d8227b9da745930cbdd3c1789226256427a051e
Author: hiromipaw <hiro at torproject.org>
Date:   Thu Sep 7 17:45:43 2017 +0200

    Removing obsolete pages and includes
---
 donate/en/thankyou.wml    |  41 -------------
 include/thankyou-head.wmi | 146 ----------------------------------------------
 2 files changed, 187 deletions(-)

diff --git a/donate/en/thankyou.wml b/donate/en/thankyou.wml
deleted file mode 100644
index 6cc70661..00000000
--- a/donate/en/thankyou.wml
+++ /dev/null
@@ -1,41 +0,0 @@
-## translation metadata
-# Revision: $Revision: 24807 $
-# Translation-Priority: 3-low
-
-#include "thankyou-head.wmi" TITLE="Tor Project: Donate to Tor" CHARSET="UTF-8"
-<!-- BEGIN CONTENT -->
-  <div id="thanks" class="clearfix hundred">
-  <div id="thanks_top">
-    <img class="thankyou_h1" src="../images/thankyou_h1.jpg" height="122" width="419" alt="Thank You!">
-    <p>Your donation helps support online privacy<br>& censorship circumvention around the globe!</p>
-  </div>
-  <div id="thanks_btm">
-  <div id="thanks_btm_inner">
-  <table>
-    <tr id="thanks_row">
-    <td id="thanks_l">
-      <img class="thankyou_h2" src="../images/thankyou_h2.png" height="46" width="195" alt="Keep In Touch!">
-      <p>Sign up for our <a href="https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-news">newsletter</a></p>
-      <form Method="POST" ACTION="https://lists.torproject.org/cgi-bin/mailman/subscribe/tor-news">
-	<p>
-	<label class="inactive" for="email">Enter your email address:</label><br>
-	<input type="text" name="email" id="email" size="25" value="">
-	<input id="submit" type="submit" name="email-button" value="GO">
-	</p>
-      </form>
-    </td>
-    <td id="thanks_c">
-      <div id="v_rule"></div>
-    </td>
-    <td id="thanks_r">
-      <img class="thankyou_h2" src="../images/thankyou_h3.png" height="46" width="142" alt="Got Skills?">
-      <p>Put them to good use</p>
-      <a href="<page getinvolved/volunteer>">Volunteer for The Tor Project »</a>
-    </td>
-    </tr>
-  </table>
-  </div>
-  </div>
-  </div>
-<!-- END CONTENT -->
-#include <foot.wmi>
diff --git a/include/thankyou-head.wmi b/include/thankyou-head.wmi
deleted file mode 100644
index 193c70bf..00000000
--- a/include/thankyou-head.wmi
+++ /dev/null
@@ -1,146 +0,0 @@
-#! /usr/bin/wml
-<: use strict; :>
-<: use warnings; :>
-#use "perl-globals.wmi"
-#use "links.wmi"
-#use "versions.wmi"
-#use "navigation.wmi"
-
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
-<html>
-<head>
-  <title>$(TITLE)</title>
-  <link rel="shortcut icon" type="image/x-icon" href="$(IMGROOT)/favicon.ico">
-  <ifneq "$(REDIRECT)" "" "<meta http-equiv="refresh" content="0;url=$(DOCROOT)/$(REDIRECT)">">
-  <ifneq "$(REDIRECT_GLOBAL)" "" "<meta http-equiv="refresh" content="0;url=$(REDIRECT_GLOBAL)">">
-
-  # begin WML to generate css/js paths
-  <ifneq "$(STYLESHEET)" "" "<link rel="stylesheet" type="text/css" href="$(DOCROOT)/$(STYLESHEET)">">
-  <ifeq "$(STYLESHEET)" "" "<link rel="stylesheet" type="text/css" href="$(DOCROOT)/css/master.min.css">">
-
-  <link href="$(DOCROOT)/css/thankyou.min.css" rel="stylesheet" type="text/css">
-  <!--[if lte IE 8]>
-  <link rel="stylesheet" type="text/css" href="$(DOCROOT)/css/ie8-and-down.min.css">
-  <![endif]-->
-  <!--[if lte IE 7]>
-  <link rel="stylesheet" type="text/css" href="$(DOCROOT)/css/ie7-and-down.min.css">
-  <![endif]-->
-  <!--[if IE 6]>
-  <link rel="stylesheet" type="text/css" href="$(DOCROOT)/css/ie6.min.css">
-  <![endif]-->
-#  <script language="javascript" type="text/javascript" src="$(DOCROOT)/global.js"></script>
-  # end WML to generate css/js paths
-
-  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
-  <meta name="author" content="The Tor Project, Inc.">
-  <meta name="keywords" content="anonymity online, tor, tor project, censorship circumvention, traffic analysis, anonymous communications research">
-<script type="text/javascript" src="$(DOCROOT)/js/jquery.min.js" charset="utf-8"></script>
-<script type="text/javascript" src="$(DOCROOT)/js/jquery.infieldlabel.min.js" charset="utf-8"></script>
-<script type="text/javascript" src="$(DOCROOT)/js/functions.min.js" charset="utf-8"></script>
-</head>
-<body>
-<div id="wrap">
-  <div id="header">
-    <h1 id="logo"><a href="<page index>">Tor</a></h1>
-      # navigation menu generation
-      <div id="nav">
-        <ul>
-        <:{
-            # create a hash and maintain order of keys
-            my %navigation;
-            my @keys;
-            while (@navigation) {
-              my $key = shift @navigation;
-              my $val = shift @navigation;
-              push @keys, $key;
-              $navigation{$key} = $val;
-            }
-
-            my $page = $WML_SRC_BASENAME;
-            my $lang = "$(LANG)";
-
-            for my $key (@keys) {
-              my ($dir, $base) = $key =~ m,^(?:(.*)/)?(.*?)$,;
-
-              # in directory of active link, set class active
-              my $class;
-              if ((defined $dir) and ($WML_SRC_DIRNAME =~/$dir/) or ($WML_SRC_BASENAME eq $base)) {
-                $class = 'class="active"';
-              } else {
-                $class = '';
-              }
-
-	            $dir = '.' unless defined $dir;
-
-              # translated version
-              if (-e "$(DOCROOT)/$dir/$lang/$base.wml") {
-                  printf '<li><a '.$class.' href="%s">%s</a></li>'."\n",
-                         stripDotSlashs("$(DOCROOT)/$dir/$base.html.$(LANG)"),$navigation{$key};
-              }
-              # english version
-              elsif (-e "$(DOCROOT)/$dir/en/$base.wml") {
-              	printf '<li><a '.$class.' href="%s">%s</a></li>'."\n",
-                  stripDotSlashs("$(DOCROOT)/$dir/$base.html"), $navigation{$key};
-              }
-              # full url
-              elsif ($key =~/^http/) {
-                printf '<li><a href="%s">%s</a></li>'."\n", $key, $navigation{$key};
-              } else {
-                warn "$WML_SRC_FILENAME has a [page $key] (parses to
-docdir: $(DOCROOT)/; dir: $dir; base: $base -> $(DOCROOT)/$dir/$lang/$base.wml), but that doesn't exist.";
-              }
-            }
-        }:>
-        </ul>
-      </div>
-      <!-- END NAV -->
-     # end navigation generation
-      <div id="calltoaction">
-        <ul>
-          <:{
-            my %calltoaction;
-            my @keys;
-            while (@calltoaction) {
-              my $key = shift @calltoaction;
-              my $val = shift @calltoaction;
-              push @keys, $key;
-              $calltoaction{$key} = $val;
-            }
-
-            my $page = $WML_SRC_BASENAME;
-            my $lang = "$(LANG)";
-            for my $key (@keys) {
-              my ($dir, $base) = $key =~ m,^(?:(.*)/)?(.*?)$,;
-
-              # in directory, set active
-              my $class;
-              if ((defined $dir) and ($WML_SRC_DIRNAME =~/$dir/) or ($WML_SRC_BASENAME eq $base)) {
-              #if ($WML_SRC_BASENAME eq $base) {
-                $class = 'class="active"';
-              } else {
-                $class = '';
-              }
-
-	          $dir = '.' unless defined $dir;
-              # try to use a translated version
-              if (-e "$(DOCROOT)/$dir/$lang/$base.wml") {
-                  printf '<li class="donate"><a '.$class.' href="%s">%s</a></li>'."\n",
-                         stripDotSlashs("$(DOCROOT)/$dir/$base.html.$(LANG)"),$calltoaction{$key};
-              }
-              # default to english version
-              elsif (-e "$(DOCROOT)/$dir/en/$base.wml") {
-              	printf '<li class="donate"><a '.$class.' href="%s">%s</a></li>'."\n",
-                  stripDotSlashs("$(DOCROOT)/$dir/$base.html"), $calltoaction{$key};
-              } else {
-                warn "$WML_SRC_FILENAME has a [page $key] (parses to docdir: $(DOCROOT)/; dir: $dir; base: $base -> $(DOCROOT)/$dir/$lang/$base.wml), but that doesn't exist.";
-              }
-            }
-          }:>
-        </ul>
-      </div>
-      <!-- END CALLTOACTION -->
-  </div>
-  <!-- END HEADER -->
-
-#<ifneq "$(REDIRECT)" "" "Redirecting to <a href="$(DOCROOT)/$(REDIRECT)">$(DOCROOT)/$(REDIRECT)</a>.">
-#<ifneq "$(REDIRECT_GLOBAL)" "" "Redirecting to <a href="$(REDIRECT_GLOBAL)">$(REDIRECT_GLOBAL)</a>.">



More information about the tor-commits mailing list