Refactors returned default markup

This commit is contained in:
Rodrigo de Oliveira 2021-04-05 02:50:11 -03:00
parent 3392ddfa2d
commit c0df4dde06
1 changed files with 6 additions and 6 deletions

View File

@ -207,7 +207,7 @@ class Compound extends Metadata_Type {
$elements[] = '<div class="tainacan-compound-metadatum">' . implode("\n", array_merge($metadata_value, $metadata_value_not_ordinate)) . "</div> \n" ;
}
}
$return = '<div class="tainacan-compound-group">' . implode($separator, $elements) . '</div>';
$return = implode($separator, $elements);
} else {
$metadata_value = array_fill(0, count($value), null);
$metadata_value_not_ordinate = [];
@ -222,10 +222,10 @@ class Compound extends Metadata_Type {
}
}
}
$return = '<div class="tainacan-compound-group">' . implode("\n", array_merge($metadata_value, $metadata_value_not_ordinate)) . "</div> \n";
$return = implode("\n", array_merge($metadata_value, $metadata_value_not_ordinate));
}
return $return;
return "<div class='tainacan-compound-group'> {$return} </div>";
}
private function get_meta_html(Item_Metadata_Entity $meta) {