diff --git a/SchemaMN/SubsSchemaMN.php b/SchemaMN/SubsSchemaMN.php index 52cce88..14a40e3 100644 --- a/SchemaMN/SubsSchemaMN.php +++ b/SchemaMN/SubsSchemaMN.php @@ -734,21 +734,24 @@ public static function PrepareDisplayContext(&$output, &$message, $counter){ $prop_values = LoadSchemaMN::getSubItempropValues($value['itemprop_id']); //ini -> div - if ($itemprop_main != $prop_values[$value['itemprop_id']]['itemprop_main']){ + Ini: + if (empty($itemprop_main)){ $schema .= '
'. $prop_values[$value['itemprop_id']]['prop_label'].'
'; $itemprop_main = $prop_values[$value['itemprop_id']]['itemprop_main']; } - //itemprops - $schema .= ' -'. $prop_values[$value['itemprop_id']]['label'] .': '. $value['itemprop_value'] .'
'; - - if ($itemprop_main != $prop_values[$value['itemprop_id']]['itemprop_main']){ + //end div itemprop + if ($itemprop_main != $prop_values[$value['itemprop_id']]['itemprop_main']){ $schema .= ''. $prop_values[$value['itemprop_id']]['label'] .': '. $value['itemprop_value'] .'
'; } if ($show_subtypes){ $schema .= '