<!DOCTYPE html>
<html lang="%lang;">
<head>
<!-- $Id: welcome.txt v7.1 30/10/2023 23:08:30 $ -->
  <title>GeneWeb – %base.name;</title>
  <meta name="robots" content="none">
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <link rel="icon" href="%images_prefix;favicon_gwd.png">
  <link rel="apple-touch-icon" href="%images_prefix;favicon_gwd.png">
  %include;css
</head>
<body%body_prop;>
<div class="container">
%include;hed
%define;book_of(xx)[book of %s:::xx]%end;
%define;display_sosa_ref(xx)
  [*sosa reference][:]
  <href="%prefix;%sosa_ref.access;">%sosa_ref;</a>
%end;
%define;get_visitor_access_msg(lg)
  %if;(b.visitor_access_msg_lg!="")
    %b.visitor_access_msg_lg;
  %else;
    %if;(b.visitor_access_msg_en!="")
      %b.visitor_access_msg_en;
    %else;
      [restricted access]
    %end;
  %end;
%end;
%define;get_random(xxx)
  %random.init;
  %random.xxx;
%end;
%define;book_button(xxx,yyy,zzz)
  <a role="button" class="btn btn-outline-success mr-1 d-flex align-items-center"
    href="%prefix;m=MOD_DATA&data=xxx" title="[*modify] %apply;book_of%with;[yyy]1%end;%sp;
      ([wizard/wizards/friend/friends/exterior]0)">
    <i class="fa fa-zzz fa-fw mr-1"></i>
    <span class="text-nowrap">[*yyy]1</span>
  </a>
%end;
  <div class="d-flex flex-column flex-md-row justify-content-lg-center mt-lg-3">
    <div class="d-none d-lg-block col-md-3 order-md-1"></div>
    <div class="col-xs-12 col-md-3 order-md-3 ml-md-2 px-0">
      <div class="d-flex flex-column">
        %if;(cgi and (not wizard or not friend))
          <form class="form-inline" method="post" action="%action;">
            %hidden;
            <div class="input-group mt-1 w-100">
              %(<label for="w" class="sr-only">[user/password/cancel]0:[user/password/cancel]1</label>%)
              <input type="password" class="form-control" name="w" title="[wizard/wizards/friend/friends/exterior]2/[wizard/wizards/friend/friends/exterior]0"
              placeholder="[user/password/cancel]0:[user/password/cancel]1" aria-label="password input" aria-describedby="username:password" autofocus>
              <div class="input-group-append">
                <button type="submit" class="btn btn-primary">OK</button>
              </div>
            </div>
          </form>
        %end;
        %if;(b.auth_file="")
          <div class="btn-group btn-group-xs mt-1" role="group">
          %if;(b.friend_passwd!="" or b.friend_passwd_file!="")
            %if;(not friend)
              %if;(not cgi)
                <a href="%prefix;w=f" class="btn btn-outline-primary text-nowrap" role="button" title="[*wizard/wizards/friend/friends/exterior]2"><i class="fas fa-user mr-2" aria-hidden="true"></i>[*wizard/wizards/friend/friends/exterior]2</a>
              %end;
            %else;
              <a href="#" class="btn btn-primary disabled text-nowrap" role="button"><i class="fas fa-user mr-2" aria-hidden="true"></i>[*wizard/wizards/friend/friends/exterior]2</a>
            %end;
          %end;
          %if;(b.wizard_passwd!="" or b.wizard_passwd_file!="")
            %if;(not wizard)
              %if;(not cgi)
                <a href="%prefix;w=w" class="btn btn-outline-success text-nowrap" role="button"  title="[*wizard/wizards/friend/friends/exterior]0"><i class="fas fa-hat-wizard mr-2" aria-hidden="true"></i>[*wizard/wizards/friend/friends/exterior]0</a>
              %end;
            %else;
                <a href="#" class="btn btn-success disabled text-nowrap" role="button"><i class="fas fa-hat-wizard mr-2" aria-hidden="true"></i>[*wizard/wizards/friend/friends/exterior]0</a>
            %end;
          %end;
          </div>
        %end;
        %let;username;%if;(user.name="")%user.ident;%else;%user.name;%end;%in;
        %if;((wizard and (b.wizard_passwd_file!="" or b.wizard_passwd!=""))
          or (friend and (b.friend_passwd_file!="" or b.friend_passwd!="")))
          <a class="border border-%if;friend;primary%elseif;wizard;success%end; text-%if;friend;primary%elseif;wizard;success%end; rounded text-center mt-1 w-100 rounded-bottom"
            href="%apply;url_encode%with;"%prefix;m=S&n=%if;(user.key!="")%user.key;%elseif;(user.name!="")%user.name;%else;%user.ident;%end;%end;"
            title="%if;wizard;[*wizard/wizards/friend/friends/exterior]0%elseif;friend;[*wizard/wizards/friend/friends/exterior]2%end; %username;%if;(user.key="") ([no user key])%end;">%username;</a>
          <a class="btn btn-outline-danger mt-1 w-100" href="%prefix;w=" role="button"><i class="fas fa-right-from-bracket mr-1" aria-hidden="true"></i>[*disconnect]</a>
        %end;
      </div>
    </div>
    <div class="bg-white my-0 order-md-2 flex-fill text-lg-center align-self-md-center">
      %if;(b.welcome_logo!="")
        <img src="%prefix;m=IM;s=%b.welcome_logo;"
           style="%if;(b.welcome_logo_style!="")%b.welcome_logo_style;%end;"
           alt="MyBase" title="MyBase">
      %else;
        <img src="%images_prefix;gwlogo.png" alt="GeneWeb" title="GeneWeb">
      %end;
      <h1 class="font-weight-bolder">%apply;capitalize%with;[database]%end; %base.name;</h1>
      %if;(b.visitor_access!="no" or wizard or friend)
        <div class="d-flex justify-content-center">
          <span class="h2 font-weight-light">%base.real_nb_persons; %nn;
            %if;(base.real_nb_persons="0" or base.real_nb_persons="1")[person/persons]0%else;[person/persons]1%end;</span>
          %if;(base.real_nb_persons!="0")
            <a class="align-self-center" href="%prefix;i=%apply;get_random(nb_persons.v)"
              title="[*random individual]"><i class="fa-solid fa-dice ml-2 mb-2"></i></a>
          %end;
        </div>
      %end;
    </div>
  </div>
  <div class="d-flex justify-content-center mt-1 mt-lg-3">
    <div class="d-flex flex-column col-8">
      %if;(b.motd!="")%nn;
        <div class="display-5 lead font-weight-light text-center">%apply;interp(b.motd)</div>
      %end;
      %if;(browsing_with_sosa_ref and b.visitor_access!="no")
        <div class="text-center">%apply;display_sosa_ref%with;%sosa_ref;%end;</div>
      %end;
    </div>
  </div>
  %if;just_friend_wizard;
    <div class="col mt-1">
      <div class="text-center alert alert-danger alert-dismissible fade show" role="alert">
        <button type="button" class="close" data-dismiss="alert" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
        <span>
[
co: I <strong>diritti di i maghi</strong> sò attualmente<strong>disattivati</strong> per via d’una mantenenza.
en: <strong>Wizard rights</strong> are now <strong>suspended</strong> for maintenance.
fr: Les <strong>droits des magiciens</strong> sont actuellement <strong>suspendus</strong> pour maintenance.
]
        <span>
      </div>
    </div>
  %end;

  %if;(b.visitor_access!="no" or wizard or friend)
    %if;(nb_persons.v!=0)
      <div class="flex-row justify-content-center">
        %(<div class="col-lg-7 ml-lg-4 ml-xl-5 h4">
          <i class="fa fa-magnifying-glass fa-sm fa-fw mr-1 text-secondary"></i>[*search/case sensitive]0</div>%)
        <form class="mt-3 mt-xl-5" method="get" action="%prefix;">
          %hidden;
          <input type="hidden" name="m" value="S" class="has_validation">
          <div class="d-flex justify-content-center">
            <div class="d-flex flex-column justify-content-center col-xs-11 col-md-9 col-lg-7 w-75">
              <div class="d-flex%if;(b.fn_sn_order!="" and b.fn_sn_switch="on") order-2%end;">
                <div class="btn-group-vertical mr-2">
                  <a role="button" href="%prefix;m=N&tri=A"
                    title="[*surname/surnames]1, [sort by/date begin/alphabetic order/nb individuals/nb events]0 [display by/branch/alphabetic order]2"><i class="fa fa-arrow-down-a-z fa-fw"></i></a>
                  <a role="button" href="%prefix;m=N&tri=F"
                    title="[*frequency] [surname/surnames]1, [sort by/date begin/alphabetic order/nb individuals/nb events]0 [sort by/date begin/alphabetic order/nb individuals/nb events]3"><i class="fa fa-arrow-down-wide-short fa-fw"></i></a>
                </div>
                <label for="surname" class="sr-only col-form-label col-sm-2">[*surname/surnames]0</label>
                <input type="search" id="surname" class="form-control form-control-lg"
                  name="n" placeholder="[*surname/surnames]0, [public name], [alias]%if;browsing_with_sosa_ref;, [n° Sosa]%end;"
                  title="[*search/case sensitive]0 [surname/surnames]0, [public name], [alias]%if;browsing_with_sosa_ref;, [n° Sosa]%end;" autofocus tabindex="1">
              </div>
              <div class="d-flex mt-2">
                <div class="btn-group-vertical mr-2">
                  <a role="button" href="%prefix;m=P&tri=A"
                    title="[*first name/first names]1, [sort by/date begin/alphabetic order/nb individuals/nb events]0 [display by/branch/alphabetic order]2"><i class="fa fa-arrow-down-a-z fa-fw"></i></a>
                  <a role="button" href="%prefix;m=P&tri=F"
                    title="[*frequency] [first name/first names]1, [sort by/date begin/alphabetic order/nb individuals/nb events]0 [sort by/date begin/alphabetic order/nb individuals/nb events]3"><i class="fa fa-arrow-down-wide-short fa-fw"></i></a>
                </div>
                <label for="firstname" class="sr-only col-form-label col-sm-2">[*first name/first names]2</label>
                <input type="search" id="firstname"
                  class="form-control form-control-lg border-top-0"
                  name="p" placeholder="[*first name/first names]2"
                  title="[*search/case sensitive]0 [first name/first names]2" tabindex="2">
              </div>
            </div>
            %( TODO grey if inputs empty %)
            <button class="btn btn-outline-primary align-self-center ml-2" type="submit">
              <i class="fa fa-magnifying-glass fa-fw fa-2x mt-1"></i><br>
              [*search/case sensitive]0<br>[person/persons]0
            </button>
          </div>
        </form>
        %if;(b.propose_titles!="no")
          <form class="mt-2 mt-md-3 mt-lg-4" method="get" action="%action;">
            %hidden;
            <input type="hidden" name="m" value="TT">
            <div class="d-flex justify-content-center mx-5">
              <div class="d-flex flex-column justify-content-center col-xs-9 col-md-7 col-lg-5 w-75">
                <div class="d-flex">
                  <a class="mr-2 align-self-center" role="button"
                    href="%prefix;m=TT" title="[*all the titles]"><i class="fa fa-list-ul fa-fw"></i></a>
                  <label for="titles" class="sr-only col-form-label col-sm-2">[*title/titles]0</label>
                  <input type="search" class="form-control border-top-0 border-right-0 border-left-0"
                    name="t" id="titles" placeholder="[*title/titles]0" %(maxlength="200"%) tabindex="3">
                </div>
                <div class="d-flex mt-2">
                  <a class="mr-2 align-self-center" role="button"
                  href="%prefix;m=TT&p=*" title="[*all the estates]"><i class="fa fa-list-ul fa-fw"></i></a>
              <label for="estates"
                  class="sr-only col-form-label col-sm-2" >[*estate]0</label>
              <input type="search"
                  class="form-control border-top-0 border-right-0 border-left-0"
                name="p" id="estates" placeholder="[*estate]0" %(maxlength="200"%) tabindex="4">
                </div>
              </div>
              <button class="btn btn-outline-primary btn-sm align-self-center ml-2 px-0 py-3" type="submit"
                title="[*search/case sensitive]0 [title/titles]0/[estate]0">
                <i class="fa fa-magnifying-glass fa-fw fa-2x mx-3"></i>
              </button>
            </div>
          </form>
        %end;
      </div>
    %end;
    <div class="d-flex flex-column justify-items-lg-center mt-3 mt-lg-4">
      <div class="h4 text-lg-center"><i class="fas fa-screwdriver-wrench fa-sm fa-fw text-secondary mr-1"></i>[*tools]</div>
      <div class="d-inline-flex justify-content-lg-center">
        %if;(wizard and not base.has_notes)
          <a role="button" class="btn btn-outline-success mr-1"
            href="%prefix;m=MOD_NOTES">
            <i class="far fa-file-lines fa-fw mr-1" aria-hidden="true"></i>[*add base notes]
          </a>
        %end;
        %if;base.has_notes;
          <a role="button" class="btn btn-outline-primary mr-1"
           href="%prefix;m=NOTES">
            %if;(b.base_notes_title="")
              <i class="far fa-file-lines fa-fw mr-1" aria-hidden="true"></i>[*base notes]
            %else;%b.base_notes_title;%end;
          </a>
        %end;
        %if;has_misc_notes;
          <a role="button" class="btn btn-outline-primary mr-1"
            href="%prefix;m=MISC_NOTES"><i class="fas fa-align-justify fa-fw mr-1" aria-hidden="true"></i>[*base index notes]</a>
        %end;
        %if;((wizard or friend) and
            (b.wizard_passwd_file!="" or b.wizard_descr_file!=""))
           <a role="button" class="btn btn-outline-success mr-1"
            href="%prefix;m=WIZNOTES"><i class="far fa-file-lines fa-fw mr-1" aria-hidden="true"></i>[*base wizard notes]</a>
        %end;
        %if;(nb_persons.v!=0)
          <a role="button" class="btn btn-outline-primary mr-1" href="%prefix;m=STAT">
            <i class="far fa-chart-bar fa-fw mr-1" aria-hidden="true"></i>[*statistics]</a>
          <a role="button" class="btn btn-outline-primary%if;(has_history and b.history="yes") mr-1%end;"
            href="%prefix;m=ANM"><i class="fa fa-cake-candles fa-fw mr-1" aria-hidden="true"></i>[*anniversaries]</a>
          %if;(has_history and b.history="yes")
            <a role="button" class="btn btn-outline-primary%if;(b.disable_forum!="yes") mr-1%end;"
              href="%prefix;m=HIST&k=20"><i class="fas fa-clock-rotate-left fa-fw mr-1" aria-hidden="true"></i>[*history]</a>
          %end;
        %end;
        %if;(plugin.forum and b.disable_forum!="yes")
          <a class="btn  btn-outline-primary"
            href="%prefix;m=FORUM"><i class="far fa-comments fa-fw mr-1" aria-hidden="true"></i>[*forum]</a>
        %end;
      </div>
      <div class="d-inline-flex justify-content-lg-center mt-1 mt-lg-2">
        %if;(wizard and b.propose_add_family!="no")
          <a role="button" class="btn btn-outline-success mr-1" 
            href="%prefix;m=ADD_FAM"
            title="[*add::family/families]0 ([wizard/wizards/friend/friends/exterior]0)"><i class="fas fa-user-plus mr-1" aria-hidden="true"></i>[*add::family/families]0</a>
        %end;
        %if;(b.propose_place_surnames!="no" and nb_persons.v!=0)
          <a role="button" class="btn btn-outline-primary mr-1" 
            href="%prefix;m=PPS&bi=on&ba=on&ma=on&de=on&bu=on">
            <i class="fas fa-globe fa-fw mr-1" aria-hidden="true"></i>[*place/places]1/[surname/surnames]0</a>
        %end;
        %if;(b.hide_advanced_request="no")
          <a role="button" class="btn btn-outline-primary mr-1" 
            href="%prefix;m=AS">
            <i class="fa fa-magnifying-glass-plus fa-fw mr-1" aria-hidden="true"></i>[*advanced request]0</a>
        %end;
        <a role="button" class="btn btn-outline-primary mr-1" 
          href="%prefix;m=CAL">
          <i class="far fa-calendar-days fa-fw mr-1" aria-hidden="true"></i>[*calendar/calendars]1</a>
        %if;wizard;
          <a role="button" class="btn btn-outline-success mr-1" 
            href="%prefix;m=H&v=conf">
            <i class="fas fa-gear fa-fw mr-1" aria-hidden="true"></i>[*configuration]1</a>
        %end;
      </div>
    </div>
    %if;(wizard and nb_persons.v!=0)
      <div class="d-flex flex-column justify-content-lg-center mt-2 mt-lg-4">
        <div class="h4 align-self-lg-center mr-lg-2">
          <i class="fas fa-book fa-sm fa-fw text-muted mr-1"></i>[*book/books]1%nn;
        </div>
        <div class="d-flex flex-column">
          <div class="d-inline-flex justify-content-lg-center">
            %apply;book_button("fn","first name/first names","child")
            %apply;book_button("sn","surname/surnames","signature")
            %apply;book_button("pubn","public name/public names","pen")
            %apply;book_button("qual","qualifier/qualifiers","comment")
            %apply;book_button("alias","alias/aliases","mask")
          </div>
          <div class="d-inline-flex justify-content-lg-center mt-2">
            %apply;book_button("occu","occupation/occupations","user-doctor")
            %apply;book_button("place","place/places","map-location-dot")
            %apply;book_button("src","source/sources","box-archive")
            %apply;book_button("title","title/titles","crown")
            %apply;book_button("domain","domain/domains","chess-rook")
          </div>
        </div>
      </div>
    %end;
    %if;(plugins!="" and b.plugins!="")
      <div class="d-flex flex-column flex-lg-row justify-content-lg-center mt-2 mt-lg-4">
        <div class="h4 align-self-lg-center mr-lg-2">
          [*plugins][:]
          <span class="small">%b.plugins;</span>
        </div>
      </div>
    %end;
  %else;
    %let;lg;%lang;%in;
    <div class="text-lg-center alert alert-danger font-weight-bold" role="alert">
      <i class="fa fa-triangle-exclamation fa-fw mr-2"></i>
      <span>%apply;get_visitor_access_msg(lg)</span>
      <span class="fa fa-triangle-exclamation fa-fw"></span>
    </div>
  %end;

  <div class="row mt-2 mt-lg-4">
    <div class="col text-lg-center">
%if;(b.counter!="no")%apply;interp([
af: Daar was %nb_accesses; besoeke, %nb_accesses_to_welcome; van hulle
    aan hierdie blad, sedert %start_date;.
bg: От %start_date; насам е имало %nb_accesses; посещения, от които
    %nb_accesses_to_welcome; са на настоящата страница.
br: gweladennoù a zo bet : %nb_accesses;, er bajenn-mañ :
    %nb_accesses_to_welcome;, abaoe an deiz-mañ : %start_date;.
ca: Hi ha hagut %nb_accesses; consultes, de les quals
    %nb_accesses_to_welcome; en aquesta pàgina, des del %start_date;.
co: Ci hè statu %nb_accesses; cunsultazioni, è %nb_accesses_to_welcome; di
    i quale à sta pagina dapoi u %start_date;.
cs: %nb_accesses; přístupů, z toho %nb_accesses_to_welcome; na tuto
    stránku, od %start_date;.
da: Der har været %nb_accesses; opslag, %nb_accesses_to_welcome; af
    dem på denne side, siden %start_date;.
de: Seit dem %start_date; gab es %nb_accesses; Zugriffe, davon
    %nb_accesses_to_welcome; auf diese Seite.
en: There has been %nb_accesses; accesses, %nb_accesses_to_welcome; of
    them to this page, since %start_date;.
eo: Estis %nb_accesses; alirejoj, el kiuj %nb_accesses_to_welcome; al
    ĉi tiu paĝo, ekde la %start_date;.
es: Ha habido %nb_accesses; consultas, de las cuales
    %nb_accesses_to_welcome; corresponden a esta página, desde
    el %start_date;.
et: Alates andmebaasi loomise päevast (%start_date;) on selle poole
    pöördutud %nb_accesses; korda, neist %nb_accesses_to_welcome; korda
    sellele lehele.
fi: Tähän mennessä %nb_accesses; tapahtumaa, joista
    %nb_accesses_to_welcome; tälle sivulle %start_date; jälkeen.
fr: Il y a eu %nb_accesses; consultations, dont %nb_accesses_to_welcome; à
    cette page, depuis le %start_date;.
he: היו %nb_accesses; כניסות, כולל %nb_accesses_to_welcome;
    כניסות לעמוד זה, מאז %start_date;.
is: Það hafa verið %nb_accesses; heimsóknir, %nb_accesses_to_welcome; af
    þeim á þessa síðu, síðan %start_date;.
it: Dal %start_date; ci sono stati %nb_accesses; accessi,
    %nb_accesses_to_welcome; dei quali a questa pagina.
lt: Iš viso prisijungimų - %nb_accesses; lankyta kartų -
    %nb_accesses_to_welcome; iš jų šis puslapis, nuo %start_date;.
lv: Kopš %D datu bāze ir apmeklēta %nb_accesses; reizes,
    %nb_accesses_to_welcome; no tiem ir bijuši šinī lappusē.
nl: Deze paginas zijn sinds %start_date; reeds %nb_accesses; maal
    bezocht, waaronder %nb_accesses_to_welcome; maal deze verwelkomingspagina.
no: Det har vært %nb_accesses; aksesser, %nb_accesses_to_welcome; av
    dem til denne siden, siden %start_date;.
pl: Baza została od %start_date; odwiedzona %nb_accesses; razy (w tym
    %nb_accesses_to_welcome; razy strona tytułowa).
pt: Houve %nb_accesses; consultas, das quais %nb_accesses_to_welcome; foram
    a esta página, desde %start_date;.
ro: Au avut loc %nb_accesses; accese din care %nb_accesses_to_welcome; pe
    aceatsa pagina din %start_date;
ru: Всего было %nb_accesses; обращений, из них %nb_accesses_to_welcome; к
    этой странице, начиная с %start_date;.
sl: %nb_accesses; dostopov, %nb_accesses_to_welcome; od teh na to stran,
    od %start_date;.
sv: Det har varit %nb_accesses; åtkomster, %nb_accesses_to_welcome; av
    dem till den här sidan, sedan %start_date;.
tr: %nb_accesses var; erişimler, %nb_accesses_to_welcome;
    %start_date'den beri bu sayfaya;.
zh: 已经有 %nb_accesses; 次访问数据库，其中 %nb_accesses_to_welcome; 次访问本主页，
    自从 %start_date;。
])
%end;
    </div>
  </div>
%base_trailer;
%include;copyr
</div>
%include;js
</body>
</html>
