Refactors returned default markup
This commit is contained in:
parent
3392ddfa2d
commit
c0df4dde06
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue