]> git.bts.cx Git - cx.git/blob - cx/templates/admin/main.php
use site url
[cx.git] / cx / templates / admin / main.php
1 <?php cx_template_base('base'); ?>
2
3 <h2>Posts</h2>
4 <ul role="list">
5 <?php foreach (cx_posts_get(include_drafts: true) as $post): ?>
6 <li><a href="<?= cx_url_admin('/posts/edit?id=' . $post->id); ?>"><?= $post->title ?></a> <a href="<?= cx_url_admin('/posts/delete?id=' . $post->id); ?>">🚮</a></li>
7 <?php endforeach; ?>
8 </ul>
9
10 <h2>Pages</h2>
11 <ul role="list">
12 <?php foreach (cx_pages_get() as $post): ?>
13 <li><a href="<?= cx_url_admin('/posts/edit?id=' . $post->id); ?>"><?= $post->title ?></a> <a href="<?= cx_url_admin('/posts/delete?id=' . $post->id); ?>">🚮</a></li>
14 <?php endforeach; ?>
15 </ul>
16
17 <h2>Images</h2>
18 <ul role="list">
19 <?php foreach (cx_images_get() as $image): ?>
20 <li><a href="<?= cx_url_admin('/images/edit?id=' . $image->id); ?>"><?= $image->url ?></a> <a href="<?= cx_url_admin('/images/delete?id=' . $image->id); ?>">🚮</a></li>
21 <?php endforeach; ?>
22 </ul>