isAuthenticated()): ?> Add Item

There's nothing here!



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