@@ 194-200 (lines=7) @@ | ||
191 | case 'son': |
|
192 | case 'dau': |
|
193 | case 'chi': |
|
194 | if ($n > 2 && preg_match('/fat|mot|par/', $relationships[$n - 2])) { |
|
195 | $table[$x + 1][$y - 1] = '<div style="background:url(' . $diagonal2 . '); width: 64px; height: 64px; text-align: center;"><div style="height: 32px; text-align: end;">' . Functions::getRelationshipNameFromPath($relationships[$n], Individual::getInstance($path[$n - 1], $WT_TREE), Individual::getInstance($path[$n + 1], $WT_TREE)) . '</div><div style="height: 32px; text-align: start;">' . $down_arrow . '</div></div>'; |
|
196 | $x += 2; |
|
197 | } else { |
|
198 | $table[$x][$y - 1] = '<div style="background:url(' . Theme::theme() |
|
199 | ->parameter('image-vline') . ') repeat-y center; height: 64px; text-align: center;"><div class="vline-text" style="display: inline-block; width:50%; line-height: 64px;">' . Functions::getRelationshipNameFromPath($relationships[$n], Individual::getInstance($path[$n - 1], $WT_TREE), Individual::getInstance($path[$n + 1], $WT_TREE)) . '</div><div style="display: inline-block; width:50%; line-height: 64px;">' . $down_arrow . '</div></div>'; |
|
200 | } |
|
201 | $y -= 2; |
|
202 | break; |
|
203 | case 'fat': |
|
@@ 206-212 (lines=7) @@ | ||
203 | case 'fat': |
|
204 | case 'mot': |
|
205 | case 'par': |
|
206 | if ($n > 2 && preg_match('/son|dau|chi/', $relationships[$n - 2])) { |
|
207 | $table[$x + 1][$y + 1] = '<div style="background:url(' . $diagonal1 . '); background-position: top right; width: 64px; height: 64px; text-align: center;"><div style="height: 32px; text-align: start;">' . Functions::getRelationshipNameFromPath($relationships[$n], Individual::getInstance($path[$n - 1], $WT_TREE), Individual::getInstance($path[$n + 1], $WT_TREE)) . '</div><div style="height: 32px; text-align: end;">' . $up_arrow . '</div></div>'; |
|
208 | $x += 2; |
|
209 | } else { |
|
210 | $table[$x][$y + 1] = '<div style="background:url(' . Theme::theme() |
|
211 | ->parameter('image-vline') . ') repeat-y center; height: 64px; text-align:center; "><div class="vline-text" style="display: inline-block; width: 50%; line-height: 32px;">' . Functions::getRelationshipNameFromPath($relationships[$n], Individual::getInstance($path[$n - 1], $WT_TREE), Individual::getInstance($path[$n + 1], $WT_TREE)) . '</div><div style="display: inline-block; width: 50%; line-height: 32px">' . $up_arrow . '</div></div>'; |
|
212 | } |
|
213 | $y += 2; |
|
214 | break; |
|
215 | } |