This commit is contained in:
joyqi
2024-01-04 11:13:36 +08:00
committed by GitHub
parent d520a556cf
commit 81ad2232bf
12 changed files with 54 additions and 50 deletions
+1 -1
View File
@@ -98,7 +98,7 @@ $post = \Widget\Contents\Post\Edit::alloc()->prepare();
<label class="typecho-label"><?php _e('分类'); ?></label>
<?php \Widget\Metas\Category\Rows::alloc()->to($category); ?>
<ul>
<?php $categories = $post->categories->toArray('mid'); ?>
<?php $categories = array_column($post->categories, 'mid'); ?>
<?php while ($category->next()): ?>
<li><?php echo str_repeat('&nbsp;&nbsp;&nbsp;&nbsp;', $category->levels); ?><input
type="checkbox" id="category-<?php $category->mid(); ?>"