public function get_inherited_parent($content_id)
{
$inherit_from = $this->get_parents($content_id);
$found = 0;
if (!empty($inherit_from)) {
foreach ($inherit_from as $value) {
if ($found == 0) {
$par_c = $this->get_by_id($value);
if (isset($par_c['id']) and isset($par_c['active_site_template']) and isset($par_c['layout_file']) and $par_c['layout_file'] != 'inherit') {
return $par_c['id'];
}
}
}
}
}