<?php
$defaults = [
  'items' => "acme\nkanba\ngoldline\nasgardia",
];

$values = array_merge($defaults, array_filter((array) $attributes, static function ($value) {
  return $value !== null && $value !== '';
}));

$raw_items = preg_split('/\r\n|\r|\n/', (string) $values['items']);
$items = [];
foreach ($raw_items as $item) {
  $item = trim($item);
  if ($item !== '') {
    $items[] = $item;
  }
}

if (!$items) {
  return;
}
?>
<div class="fjord-about-brands" aria-label="Brand partners">
  <div class="fjord-about-brands__track" aria-hidden="true">
    <?php foreach (array_merge($items, $items) as $item) : ?>
      <span><?php echo esc_html($item); ?></span>
    <?php endforeach; ?>
  </div>
</div>
