%if;(evar.m!="SND_IMAGE")
  %include;menu_search
%else;
  %if;not cancel_links;
    %if;(evar.n != "" or evar.i != "" or evar.ip !="" or evar.m !="")
      <table style="position:absolute;top:50px;float:%if;(evar.m="D" and evar.t="T" and (evar.slices="" or evar.slices !="on"))
        left;left:10px;%else;right;right:10px;%end;">
        <tr><td>
          %if;(referer != "")
            <a href="%referer;"><img src="%image_prefix;/left.png" %wid_hei;left.png; alt="&lt;&lt;" title="[*back]"></a>
          %end;
          <a href="%prefix;"><img src="%image_prefix;/up.png" %wid_hei;up.pnd; alt="^^" title="[*home]"></a>
          <a href="%url;cgl=on" target="_blank"><img style="border-width: thin"%sp;
            src="%image_prefix;/right.png"%wid_hei;right.png; alt="" title="[*cancel GeneWeb links]"></a>
        </td></tr>
      </table>
    %end;
    %if;(evar.digest = "" and evar.m!="SND_IMAGE")
      %nl;
      <div id="trl" style="clear:both;">
        <ul>
          <li><a href="%prefix_set.templ;templ=&%suffix;">default</a></li>
          <li><a href="%prefix_set.templ;templ=templm&%suffix;">templm</a></li>
        </ul>
      </div>
    %end;
  %end;
%end;
%define;lang(x)
  %apply;nth%with;
    /af/bg/br/ca/cs/da/de/en/eo/es/et/fi/fr/he/is/it/lv/nl/no/oc/pl/pt/pt-br/ro/ru/sk/sl/sv/zh/
  %and;x%end;
%end;
%define;language_link()
  %for;i;1;30;
    %let;l1;%apply;lang(i)%in;
    <a class="dropdown-item" href="%prefix_base_password;lang=%l1;&templ=%evar.templ;&%suffix;">%l1; %apply;language_name(l1)</a>
  %end;
%end;
<div id="footer" style="clear:both;">
  <table style="border:0;">
    <tr>
      <td>
        v.&nbsp;%version; - &copy;&nbsp;INRIA&nbsp;1998-2020<br>
        <a href="%url_set.templ;"
          title="Switch to %if(evar.templ!="templm")template m%else;default template%end;">default</a>
        %connections;%sq;
      </td>
      <td style="width:205px">
        <a href="https://github.com/geneweb/geneweb" target="_blank" title="GeneWeb sources on GitHub">
          <img src="%image_prefix;/logo_bas.png" alt="Logo GeneWeb bas"></a>
        %let;suffx;%if;(lang!="en")/%lang;%else;%end;%in;
        <a href="https://geneweb.tuxfamily.org/wiki/GeneWeb%suffx;" target="_blank" title="GeneWeb documentation MediaWiki">
          <img src="%image_prefix;/logo_bas_mw.png" alt="Manual of GeneWeb on Mediawiki"></a>
      </td>
    </tr>
  </table>
</div>
