|
5 | 5 | </svg>
|
6 | 6 | </span>
|
7 | 7 | <ul class="dropdown">
|
8 |
| - <?php if ($container->user()->login() == $post['login']) : ?> |
9 |
| - <?php if ($post['my_post'] == $post['post_id']) : ?> |
| 8 | + <?php if ($container->user()->login() == $item['login']) : ?> |
| 9 | + <?php if ($item['my_post'] == $item['post_id']) : ?> |
10 | 10 | <li>
|
11 |
| - <a class="add-profile active lowercase" data-post="<?= $post['post_id']; ?>"> |
| 11 | + <a class="add-profile active lowercase" data-post="<?= $item['post_id']; ?>"> |
12 | 12 | · <?= __('app.from_profile'); ?>
|
13 | 13 | </a>
|
14 | 14 | </li>
|
15 | 15 | <?php else : ?>
|
16 | 16 | <li>
|
17 |
| - <a class="add-profile gray-600 lowercase" data-post="<?= $post['post_id']; ?>"> |
| 17 | + <a class="add-profile gray-600 lowercase" data-post="<?= $item['post_id']; ?>"> |
18 | 18 | · <?= __('app.in_profile'); ?>
|
19 | 19 | </a>
|
20 | 20 | </li>
|
21 | 21 | <?php endif; ?>
|
22 | 22 | <?php endif; ?>
|
23 | 23 |
|
24 |
| - <?php if ($container->access()->postAuthor($post, $blog['facet_user_id'] ?? 0) == true || $post['post_draft'] == true) : ?> |
| 24 | + <?php if ($container->access()->postAuthor($item, $blog['facet_user_id'] ?? 0) == true || $item['post_draft'] == true) : ?> |
25 | 25 | <li>
|
26 |
| - <a class="lowercase" href="<?= url('publication.form.edit', ['id' => $post['post_id']]); ?>"> |
| 26 | + <a class="lowercase" href="<?= url('publication.form.edit', ['id' => $item['post_id']]); ?>"> |
27 | 27 | · <?= __('app.edit'); ?>
|
28 | 28 | </a>
|
29 | 29 | </li>
|
30 | 30 | <?php endif; ?>
|
31 | 31 |
|
32 | 32 | <?php if ($container->user()->admin()) : ?>
|
33 | 33 | <li>
|
34 |
| - <a data-type="post" data-id="<?= $post['post_id']; ?>" class="type-action text-sm lowercase"> |
35 |
| - <?php if ($post['post_is_deleted'] == 1) : ?> |
| 34 | + <a data-type="post" data-id="<?= $item['post_id']; ?>" class="type-action text-sm lowercase"> |
| 35 | + <?php if ($item['post_is_deleted'] == 1) : ?> |
36 | 36 | <span class="sky">· <?= __('app.recover'); ?></span>
|
37 | 37 | <?php else : ?>
|
38 | 38 | · <?= __('app.remove'); ?>
|
39 | 39 | <?php endif; ?>
|
40 | 40 | </a>
|
41 | 41 | </li>
|
42 | 42 | <li>
|
43 |
| - <a data-id="<?= $post['post_id']; ?>" class="post-recommend lowercase"> |
44 |
| - <?php if ($post['post_is_recommend'] == 1) : ?> |
| 43 | + <a data-id="<?= $item['post_id']; ?>" class="post-recommend lowercase"> |
| 44 | + <?php if ($item['post_is_recommend'] == 1) : ?> |
45 | 45 | <span class="sky"> · <?= __('app.recommended'); ?></span>
|
46 | 46 | <?php else : ?>
|
47 | 47 | · <?= __('app.recommended'); ?>
|
48 | 48 | <?php endif; ?>
|
49 | 49 | </a>
|
50 | 50 | </li>
|
51 | 51 | <li>
|
52 |
| - <a href="<?= url('admin.logip', ['item' => $post['post_ip']]); ?>"> |
53 |
| - · <?= $post['post_ip']; ?> |
| 52 | + <a href="<?= url('admin.logip', ['item' => $item['post_ip']]); ?>"> |
| 53 | + · <?= $item['post_ip']; ?> |
54 | 54 | </a>
|
55 | 55 | </li>
|
56 | 56 | <?php endif; ?>
|
57 |
| - <?php if ($post['modified']) : ?> |
| 57 | + <?php if ($item['modified']) : ?> |
58 | 58 | <li>
|
59 | 59 | <div class="lowercase">
|
60 |
| - · <?= langDate($post['post_modified']); ?> <span class="gray-600">(<?= __('app.ed'); ?>)</span> |
| 60 | + · <?= langDate($item['post_modified']); ?> <span class="gray-600">(<?= __('app.ed'); ?>)</span> |
61 | 61 | </div>
|
62 | 62 | </li>
|
63 | 63 | <?php else : ?>
|
64 | 64 | <li>
|
65 | 65 | <div class="lowercase">
|
66 |
| - · <?= langDate($post['post_date']); ?> |
| 66 | + · <?= langDate($item['post_date']); ?> |
67 | 67 | </div>
|
68 | 68 | </li>
|
69 | 69 | <?php endif; ?>
|
|
0 commit comments