/**
  *
  * @param array $children
  * @param array $options
  * @return string
  */
 static function show_children($pfx, $children, $options, $famc)
 {
     $pframe_color = isset($options['pframe_color']) && !empty($options['pframe_color']) ? $options['pframe_color'] : 'brown';
     $color = isset($options['group_fcolor']) && !empty($options['group_fcolor']) ? $options['group_fcolor'] : 'black';
     $bcolor = isset($options['group_bcolor']) && !empty($options['group_bcolor']) ? $options['group_bcolor'] : null;
     $img = isset($options['group_image']) && !empty($options['group_image']) ? $options['group_image'] : WP_PLUGIN_URL . '/rootspersona/images/familyGroupSidebar.jpg';
     $fill = "color:{$color};" . (empty($bcolor) ? "background-image:url('{$img}') !important;" : "background-image:none;background-color:{$bcolor} !important;");
     $isEdit = ($options['is_system_of_record'] == '1' ? true : false) && current_user_can("edit_pages");
     $a = '';
     if ($isEdit && isset($famc) && !empty($famc)) {
         $a = '<span style="float:right;"><a href="' . admin_url('/tools.php?page=rootsPersona&rootspage=edit&action=edit&famc=') . $famc . '">+</a></span>';
     }
     $block = '<tr><td class="full" colspan="4" style="' . $fill . 'border-color:' . $pframe_color . ' !important">' . __('CHILDREN', 'rootspersona') . $a . '</td></tr>';
     $cnt = count($children);
     for ($idx = 0; $idx < $cnt; $idx++) {
         $ppfx = $pfx . $idx . $children[$idx]->id;
         $birth_date = isset($children[$idx]->birth_date) ? @preg_replace('/@.*@(.*)/US', '$1', $children[$idx]->birth_date) : '';
         $birth_place = isset($children[$idx]->birth_place) ? $children[$idx]->birth_place : '';
         $death_date = isset($children[$idx]->death_date) ? @preg_replace('/@.*@(.*)/US', '$1', $children[$idx]->death_date) : '';
         $death_place = isset($children[$idx]->death_place) ? $children[$idx]->death_place : '';
         $row_span = 2 + count($children[$idx]->marriages);
         $block .= '<tr id="' . $ppfx . '" itemprop="children" itemscope itemtype="http://historical-data.org/HistoricalPerson.html">' . '<td class="gender" style="' . $fill . 'border-color:' . $pframe_color . ' !important" itemprop="gender">' . $children[$idx]->gender . '</td><td class="child" colspan="3" style="' . $fill . 'border-color:' . $pframe_color . ' !important">' . '<a href="' . $options['home_url'] . '?page_id=' . $children[$idx]->page . '" itemprop="name">' . $children[$idx]->full_name . '</a>' . '<span itemprop="birth" itemscope itemtype="http://historical-data.org/HistoricalEvent" itemref="' . $ppfx . '_bdate ' . $ppfx . '_bloc"></span>' . '<span itemprop="death" itemscope itemtype="http://historical-data.org/HistoricalEvent" itemref="' . $ppfx . '_ddate ' . $ppfx . '_dloc"></span>' . '<span itemprop="marriages" itemscope itemtype="http://historical-data.org/HistoricalEvent" itemref="' . $ppfx . '_mdate ' . $ppfx . '_mloc"></span>' . '</td></tr>' . '<tr id="' . $ppfx . '_birth">' . '<td class="inset" rowspan="' . $row_span . '" style="' . $fill . 'border-color:' . $pframe_color . ' !important"/>' . '<td class="label" style="border-color:' . $pframe_color . ' !important">' . __('Birth', 'rootspersona') . '</td>' . '<td id="' . $ppfx . '_bdate" itemprop="startDate" class="rp_date" style="border-color:' . $pframe_color . ' !important">' . ($options['hide_dates'] == 1 ? '' : $birth_date) . '</td><td id="' . $ppfx . '_bloc" itemprop="location" itemscope itemtype="http://schema.org/Place"' . ' class="notes" style="border-color:' . $pframe_color . ' !important">' . '<span itemprop="name">' . ($options['hide_places'] == 1 ? '' : $birth_place) . '</span></td></tr>' . '<tr id="' . $ppfx . '_death"><td class="label" style="border-color:' . $pframe_color . ' !important">' . __('Death', 'rootspersona') . '</td>' . '<td id="' . $ppfx . '_ddate" itemprop="startDate" class="rp_date" style="border-color:' . $pframe_color . ' !important">' . ($options['hide_dates'] == 1 ? '' : $death_date) . '</td>' . '<td id="' . $ppfx . '_dloc" itemprop="location" itemscope itemtype="http://schema.org/Place"' . ' class="notes" style="border-color:' . $pframe_color . ' !important">' . '<span itemprop="name">' . ($options['hide_places'] == 1 ? '' : $death_place) . '</span></td></tr>' . RP_Group_Sheet_Panel_Creator::show_marriage($ppfx, $children[$idx], $options);
     }
     return $block;
 }