forked from laysense/laysense.cn
Add canvas element tools and categorized article editing
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
use App\Content\View;
|
||||
|
||||
$e = View::escape(...);
|
||||
?>
|
||||
<div class="article-feed" <?= count($groups) > 1 ? 'data-article-tabs' : '' ?>>
|
||||
<?php if (count($groups) > 1): ?>
|
||||
<div class="filter-nav article-tabs" data-tab-list role="tablist" aria-labelledby="heading-<?= $e($sectionKey) ?>" hidden>
|
||||
<?php foreach ($groups as $index => $group): ?>
|
||||
<button type="button" role="tab" id="<?= $e($sectionKey) ?>-tab-<?= $index ?>" aria-controls="<?= $e($sectionKey) ?>-articles-<?= $index ?>"><?= $e($group['label']) ?></button>
|
||||
<?php endforeach ?>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
<?php foreach ($groups as $index => $group): ?>
|
||||
<div id="<?= $e($sectionKey) ?>-articles-<?= $index ?>" data-tab-panel>
|
||||
<?php if ($group['label'] !== ''): ?><h3 data-tab-heading><?= $e($group['label']) ?></h3><?php endif ?>
|
||||
<?= View::fragment('article-list', ['articles' => $group['articles']]) ?>
|
||||
</div>
|
||||
<?php endforeach ?>
|
||||
</div>
|
||||
Reference in New Issue
Block a user