summaryrefslogtreecommitdiff
path: root/src/web/_views/apps/home/main.php
blob: 6112173799d4f97bf447d4be00c7b8d5a29ff9c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php /* Copyright (c) 2024 Freya Murphy */ ?>
<?php /* vi: syntax=php */ ?>
<div id="main-content" class="container">
<?php if ($self): ?>
	<div id="new-post" class="card">
		<div class="row grow">
			<?=pfp($self)?>
			<a
				id="action-new-post"
				class="btn btn-alt btn-wide ml"
				autocomplete="off"
				aria-label="<?=ucfirst(lang('action_new_post_tip'))?>"
			>
				<?=ucfirst(lang('action_new_post_text', sub: [$self['first_name']]))?>
			</a>
		</div>
		<script>
			$('#action-new-post').on('click', function() {
				$.get( "/modal/new_post", function (data) {
					$(document.body).append(data);
				});
			})
		</script>
	</div>
<?php endif; ?>
	<?php $this->post_controller->index(); ?>
</div>