Browse Source

Bug 1817600 - Show NordVPN sponsorship image on the main page. r=frg

Ricardo Palomares 1 year ago
parent
commit
712bc319c2
2 changed files with 6 additions and 5 deletions
  1. 6 0
      lib/sidebar.tmpl
  2. 0 5
      lib/wrapper.tmpl

+ 6 - 0
lib/sidebar.tmpl

@@ -66,4 +66,10 @@
        PROCESS crumblist cnode=cnode.getParentNode();
        PROCESS crumblist cnode=cnode.getParentNode();
      END;
      END;
    END;
    END;
+
+   IF template.name == "index.en.html";
+     "<span style=\"font-size: x-small\">Sponsored by:</span><br>\n";
+     "<a href=\"https://go.nordvpn.net/aff_c?offer_id=15&aff_id=81347&url_id=902\">
+         <img src=\"/images/nordvpn-banner.png\" width=\"240\" height=\"240\"></a>";
+   END;
 %]
 %]

+ 0 - 5
lib/wrapper.tmpl

@@ -60,11 +60,6 @@
     <div id="content">
     <div id="content">
       <div id="side">
       <div id="side">
         [% INCLUDE $sidebar %]
         [% INCLUDE $sidebar %]
-        <div id="partnerships">
-          <a href="https://go.nordvpn.net/aff_c?offer_id=15&aff_id=81347&url_id=902" target="_blank">
-            <img src="/images/nordvpn-banner.png" />
-          </a>
-        </div>
       </div>
       </div>
       <div id="mainContent">
       <div id="mainContent">
         [% IF document.links.next || document.links.prev || document.links.toc -%]
         [% IF document.links.next || document.links.prev || document.links.toc -%]