public static function render_meta_component_order()
{
?>
<ul id="meta-component-order-sort" class="component-order ui-sortable">
<?php
// Get the current order
$component_order = self::get_value('meta_component_order');
if (!empty($component_order) && is_array($component_order)) {
foreach ($component_order as $component_name) {
echo sprintf('<li id="%s" class="ui-sortable-handle">%s</li>', esc_attr($component_name), esc_html(ucwords($component_name)));
}
}
?>
</ul>
<p class="description"><?php
esc_html_e('Drag to set the order of the meta components at the top of the article. These include the title, the cover (i.e. featured image) and byline which also includes the date.', 'apple-news');
?>
</p>
<?php
}