';
if(!empty($schema_type) && isset($schema_template[$schema_type]) && $schema_type !== 'CustomSchema'){
$is_textarea = ['description', 'instructions', 'reviewBody', 'questions', 'step', 'ingredients', 'recipeInstructions', 'courseDescription', 'bookDescription', 'softwareRequirements', 'menu'];
$is_date_type = ['datePublished', 'dateModified', 'uploadDate', 'startDate', 'endDate', 'foundingDate', 'releaseDate'];
$is_bool_type = ['isFamilyFriendly'];
$is_required_field = ['contentUrl'];
foreach($schema_template[$schema_type] as $property => $default){
if(!is_array($default)){
echo '
'.esc_html(ucfirst(preg_replace('/([a-z])([A-Z])/', '$1 $2', $property))).':
';
if(in_array($property, $is_textarea)){
echo '
';
} else if(in_array($property, $is_date_type)){
echo '
';
} else if(in_array($property, $is_bool_type)){
echo '
';
} else if(($property === 'duration') && $schema_type === 'PodcastEpisode'){
echo '
'.esc_html__('Enter The duration in the ISO-8601 fromat. Example - PT30M, PT20M30S .','siteseo-pro').'
';
} else if(($property === 'image') && $schema_type === 'PodcastEpisode'){
echo '
';
} else{
echo '
';
}
echo '';
}else{
foreach($default as $innerKey => $innerDefault){
if($innerKey === '@type') continue;
echo '
'.esc_html(ucfirst(preg_replace('/([a-z])([A-Z])/', '$1 $2', $innerKey))) . (in_array($innerKey, $is_required_field) ? ' (Required)*' : '').':
';
if(in_array($innerKey, $is_textarea)){
echo '
';
} else if(in_array($innerKey, $is_date_type)){
echo '
';
} else {
echo '
';
}
echo '';
}
}
}
}
echo '