' . e(py_t('作为顶级栏目')) . ''; foreach ($options as $opt) { if ((int) $opt['id'] === $exclude) { continue; } $html .= ''; } return $html; }; $renderModels = function (int $selected = 0) use ($models): string { $html = ''; foreach ($models as $model) { $html .= ''; } return $html; }; $renderTemplates = function (string $selected = '') use ($templateGroups): string { $html = ''; foreach ($templateGroups as $group) { $html .= ''; } return $html; }; $typeLabelsLocal = $typeLabels; $editorEnabled = !empty($editorConfig['enabled']); $uploadCard = function (string $field, string $value, string $label, string $tip): string { $has = $value !== ''; return '
| = py_sort_link('ID', 'id', $sort, $sortDir) ?> | = py_sort_link(py_t('栏目名称'), 'name', $sort, $sortDir) ?> | = py_sort_link(py_t('类型'), 'type', $sort, $sortDir) ?> | = py_sort_link(py_t('模型'), 'model_id', $sort, $sortDir) ?> | = e(py_t('模板')) ?> | = e(py_t('内容数')) ?> | = py_sort_link(py_t('状态'), 'status', $sort, $sortDir) ?> | = py_sort_link(py_t('排序'), 'sort', $sort, $sortDir) ?> | = e(py_t('操作')) ?> |
|---|---|---|---|---|---|---|---|---|
= e(py_t($recycle ? '回收站里还没有栏目。' : '还没有栏目,先创建一个内容栏目。')) ?> | ||||||||
| = (int) $row['id'] ?> | = str_repeat('│ ', max(0, (int) $row['level'] - 1)) ?> 0): ?>└ = e($row['name']) ?> = e($row['slug']) ?> | = e(py_t($typeLabelsLocal[$row['type']] ?? '列表类型')) ?> | = e($row['model_name'] ?: '-') ?> | = e($row['template'] ?: $row['suggest_template'] ?: '-') ?> | = (int) $row['article_count'] ?> | = (int) $row['status'] === 1 ? e(py_t('启用')) : e(py_t('停用')) ?> | = py_sort_input((int) $row['id'], (int) $row['sort'], 'category') ?> | |