render('partials.tabs', $config); } /** * Create an HTML list by items * * @param array $items * @param string $tag * @return string */ public static function listify(array $items, string $tag = 'ul'): string { return '<'.$tag.'>
  • '.implode('
  • ', $items).'
  • '; } /** * Generate accordion * * @param mixed[] $items * @return string */ public static function accordion(array $items): string { // Plugin Profile $profile = Profile::getInstance(); return (new View($profile))->render('partials.accordions', compact('items')); } }