<!DOCTYPE html>
<html lang="%lang;">
<head>
  <!-- $Id: perso.txt,v7.00 01/03/2018 11:44:53 $ -->
  <!-- Copyright (c) 1998-2017 INRIA -->
  <title>%nn;
    %if;has_public_name;
      %if;has_qualifiers;%public_name; %qualifier;
      %else;%public_name; %surname;%if;(occ!="" and occ!=0) (%occ;)%end;%end;
    %else;
      %if;has_qualifiers;%first_name; %qualifier;
      %else;%first_name; %surname;%if;(occ!="" and occ!=0) (%occ;)%end;%end;
    %end;
  </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="shortcut icon" href="%image_prefix;/favicon_gwd.png">
  <link rel="apple-touch-icon" href="%image_prefix;/favicon_gwd.png">
  %include;css
  %include;hed
</head>
<body%body_prop;>
%message_to_wizard;
<a href="#content" class="sr-only sr-only-focusable">Skip navigation menu</a>
<div class="container%if;(evar.wide="on")-fluid%end;">
%include;perso_utils
%include;menubar
<div id="content" tabindex="-1">

%define;init_nb_asc(tplnum)
  %let;templ;%bvar.perso_module_tplnum;%in
  %if;(templ = "famille" or templ = "arbre_3gen_v" or templ = "arbre_3gen_v_photo")
    %if;(count < 3)
      %reset_count;%incr_count;%incr_count;%incr_count;
    %end;
  %elseif;(templ = "arbre_4gen_v")
    %if;(count < 4)
      %reset_count;%incr_count;%incr_count;%incr_count;%incr_count;
    %end;
  %elseif;(templ = "arbre_5gen_h")
    %if;(count < 5)
      %reset_count;%incr_count;%incr_count;%incr_count;%incr_count;%incr_count;
    %end;
  %else;
    %if;(count < 1)
      %reset_count;%incr_count;
    %end;
  %end;
%end

%define;init_nb_desc(tplnum)
  %let;templ;%bvar.perso_module_tplnum;%in
  %if;(templ = "unions")
    %if;(count < 3)
      %reset_count;%incr_count;%incr_count;%incr_count;
    %end;
  %else;
    %if;(count < 1)
      %reset_count;%incr_count;
    %end;
  %end;
%end

%define;init_from_gen_desc(tplnum)
  %let;templ;%bvar.perso_module_tplnum;%in
  %if;(templ = "family")
    %if;(count < 3)
      %reset_count;%incr_count;%incr_count;%incr_count;
    %end;
  %else;
    %if;(count < 1)
      %reset_count;%incr_count;
    %end;
  %end;
%end

%define;init_cache(nb_asc, from_gen_desc, nb_desc)
  %init_cache.nb_asc.from_gen_desc.nb_desc;
%end;

%(note that p_mod= (b)%bvar.p_mod; or (e)%evar.p_mod;%)
%if;(evar.p_mod="zz" or (bvar.p_mod="zz" and evar.p_mod="") or
    (bvar.p_mod="" and evar.p_mod=""))
  %(Statique%)
  %apply;init_cache(3, 2, 2)
  %if;(has_parents and (father.has_parents or mother.has_parents))
     <div class="collapse" id="collapseExample1">
        %let;op_m;1%in;%include;modules/gr_parents
     </div>
  %end;
 <div class="row">
    %(be carefull h1 is col-12 for full width then an opening <div class="col-8"> is inside personnal_data %)
      %let;op_m;3%in;%include;modules/individu
      %let;op_m;2%in;%include;modules/unions
      %let;op_m;1%in;%include;modules/chronologie
      %let;op_m;1%in;%include;modules/notes
      %let;op_m;2%in;%include;modules/sources
    %if;(p_mod="" or p_mod="zz")</div>%end; %( end of <div class="col-8"> from personnal_data %)
    <div class="col-4">
      %if;has_parents;
        <div class="collapse show" id="collapseExample2">
          %let;op_m;2%in;%include;modules/arbre_3gen_photo
        </div>
      %end;
      %let;op_m;1%in;%include;modules/fratrie
      %let;op_m;1%in;%include;modules/relations
    </div>
  </div>
%else;
  %(Dynamic %)
  %apply;init_cache(3, 2, 2)
  <div class="mt-2">
    %for;i;0;p_mod_nbr;
      %let;mmi;%apply;mm(i)%in;
      %let;ooi;%apply;oo(i)%in;
      %if;(mmi!="" and ooi!=0)
        %apply;get_mod(mmi, ooi)
      %end
    %end;
  </div>
%end;

%if;(evar.opt = "misc")
  %misc_names;<p>
%end;
%if;(not cancel_links)
  %include;trl
  %include;copyr
%end;
</div>
</div>
%include;js
</body>
</html>