<!-- $Id: perso_mickroue1.txt,v 7.00 2014/12/01 11:48:10 mr Exp $ -->
%(<!-- relations - photos -->%)

%apply;lazy_print%with;
  <div class = "relations">
  <h2 class="ch2">[*relation/relations]1</h2>
  <ol>
%end;
%foreach;relation;
  %if;(relation_type != [foster father/foster mother/foster parents]0
   and relation_type != [foster father/foster mother/foster parents]1
   and relation_type != [foster father/foster mother/foster parents]2)
    %lazy_force;
    <li><em>%apply;capitalize(relation_type)</em> :
        %if;has_relation_him;
          %apply;somebody("relation_him")
          %if;has_relation_her; [and] %end;
        %end;
        %if;has_relation_her;
          %apply;somebody("relation_her")
        %end;
    </li>
  %end;
%end;
%foreach;related;
  %if;(related_type != [foster son/foster daughter/foster child]0
   and related_type != [foster son/foster daughter/foster child]1
   and related_type != [foster son/foster daughter/foster child]2)
    %lazy_force;
    <li><em>%apply;capitalize(related_type)</em> :
      %apply;somebody("related")
    </li>
  %end;
%end;
%foreach;event_witness_relation;
  %lazy_force;
  <li><em>%apply;capitalize(event_witness_relation.event.name)
    %if;event_witness_relation.event.has_date; %apply;on_edate("event_witness_relation.event")%end;
    %if;event_witness_relation.event.has_place; · %event_witness_relation.event.place;%end;</em> :
    %apply;somebody("event_witness_relation.person")
    %if;(event_witness_relation.event.spouse != "") [and] %apply;somebody("event_witness_relation.event.spouse")%end;
  </li>
%end;
%if;lazy_printed;
  </ol>
  </div>
  %if;not cancel_links;<div class="menu" style="position:relative">%apply;relations_tree(l_ref)</div>%end;
%end;
%apply;lazy_print%with;
  <div class = "relations">
  <h2 class="ch2">Photos</h2>
  <ul class="ul_0">
%end;
%foreach;relation;
  %if;(relation_type = [foster father/foster mother/foster parents]0
    or relation_type = [foster father/foster mother/foster parents]1
    or relation_type = [foster father/foster mother/foster parents]2)
    %lazy_force;
    %if;(has_relation_him)
      <li class="image_sheet">
        %apply;link_image("relation_him")
        %apply;somebody("relation_him")
      </li>
    %end;
    %if;(has_relation_her)
      <li class = "image_sheet">
        %apply;link_image("relation_her")
        %apply;somebody("relation_her")
      </li>
    %end;
  %end;
%end;
%foreach;related;
  %if;(related_type = [foster son/foster daughter/foster child]0
    or related_type = [foster son/foster daughter/foster child]1
    or related_type = [foster son/foster daughter/foster child]2)
    %lazy_force;
    <li class="image_sheet">
      %apply;link_image("related")
      %if;(cancel_links or related.is_restricted)
        %related.public_name; %related.qualifier;
      %else;
        <a href="%prefix;%related.access;;wide=%evar.wide;;maxlev=%evar.maxlev;;image=%evar.image;;spouse=%evar.spouse;">%related.public_name; %related.qualifier;</a>&nbsp;
      %end;
    </li>
  %end;
%end;
%if;lazy_printed;</ul></div>%end;%nl;