isAuthenticated()): ?> Add Item

There's nothing here!



tabs('collection-tab', $sections, static function ($items, $section) use ($auth, $helper, $url, $collection_type) { $hasNotes = colNotEmpty($items, 'notes'); $hasMedia = $section === 'All'; $firstTh = ($auth->isAuthenticated()) ? ' ' : ''; $mediaTh = ($hasMedia) ? 'Media' : ''; $noteTh = ($hasNotes) ? 'Notes' : ''; $rendered = []; foreach ($items as $item) { $rendered[] = renderTemplate(__DIR__ . '/list-item.php', [ 'auth' => $auth, 'collection_type' => $collection_type, 'hasMedia' => $hasMedia, 'hasNotes' => $hasNotes, 'helper' => $helper, 'item' => $item, 'url' => $url, ]); } $rows = implode('', array_map('mb_trim', $rendered)); return << {$firstTh} Title {$mediaTh} Episode Count Episode Length Show Type TV Rating {$noteTh} Genres {$rows} HTML; }) ?>