<!--  Union photo -->

%if;has_families;
  <h3 class="highlight">[*marriage/marriages]1 %if;has_children; [and::child/children]1%end;</h3>
  <ul class="marriage_perso">
    %( On remet les compteurs à zéro et on commence à compter à 1 %)
    %reset_count; %incr_count;
    %foreach;family;
      %apply;li_SD("spouse")
      	%if;spouse.has_image;
         <table>
           <tr>
             <td>
               <img src="%spouse.image_url;"%sp;%spouse.image_small_size; style="border: none" alt="[image/images]0" valign="top"%/>
             </td>
             <td>
        %end;
        %if;(wizard)
          <a href="%prefix;m=MOD_FAM;i=%family.index;;ip=%index;">
            <img src="%image_prefix;/picto_molette.png" width="13" height="13" alt="[modify]" title="[modify::family/families]0"%/>%nn;
          </a>
        %end;
        %apply;long_married("self")%sp;
        %apply;short_display_person("spouse")%sp;
        %if;spouse.has_parents;
          <span style="font-size: 90%%"><em> ([*parents] :
            %apply;short_display_person("spouse.father")
            &nbsp;&amp;&nbsp;
            %apply;short_display_person("spouse.mother"))</em>%nn;
          </span>
        %end;
        %if;has_witnesses;
          &nbsp;([witness/witnesses]w :
          %foreach;witness;
            %if;not is_first;, %end;
            %apply;short_display_person("witness")%nl;
          %end;)
        %end;
        %if;((wizard or friend or bvar.no_note_for_visitor="" or bvar.no_note_for_visitor="no") and has_comment) 
          ([see] <a href="#note-wed-%count;" name="wed-note-%count;" id="wed-note-%count;">[note/notes]0</a>)
          %incr_count;
        %end;
        %if;are_divorced;, [divorced]0%divorce_date;%sp,%end;
        %if;are_separated;, [separated]0%sp;%end;
        %if;(spouse.has_image and not has_children);
          </td></tr></table>
        %end;
        %if;has_children;[having as children]0
          %if;(spouse.has_image);
            </td></tr></table>
          %end;
          %( On sauvegarde l'ancienne valeur de count %)
          %let;prev_count;%count;%in;
          <ul>
            %foreach;child;
              %apply;li_SDC("child")
                %apply;short_display_person("child")
              </li>
            %end;
          </ul>
          %( On rétablie l'ancienne valeur de count %)
          %apply;init_count(prev_count)
        %end;
        %if;(evar.opt = "from" and wizard)<em>(%origin_file;)</em><br%/>%nl;%end;
      </li>
    %end;
  </ul>
%end;
