summaryrefslogtreecommitdiff
path: root/src/web/_views/apps/profile/main.php
blob: afa45bcd952d6cdb41c06b08c7ac38d2d25eac75 (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
28
29
30
31
32
33
34
35
36
37
<div id="main-content">
	<div id="profile-header" class="col">
		<div class="banner image-loading">
			<img src="/api/rpc/profile_banner?user_id=<?=$user['id']?>">
		</div>
		<div class="info row">
			<div class="pfp-wrapper">
				<?php $this->view('template/pfp', array('user' => $user)); ?>
			</div>
			<div class="col content">
				<strong class="name"><?=$this->format_model->name($user)?></strong>
				<span class="dim"><?=lang('joined') . $this->format_model->date($user['created'])?></span>
			</div>
		</div>
		<hr>
		<div class="row options">
			<?=ilang('action_posts',
				sub: [$user['first_name']],
				class: 'btn'
			)?>
			<?=ilang('action_about',
				sub: [$user['first_name']],
				class: 'btn'
			)?>
			<?=ilang('action_friends',
				sub: [$user['first_name']],
				class: 'btn'
			)?>
		</div>
	</div>
	<div id="#tab-posts">
		<?php
			$_GET['user_id'] = $user['id'];
			$this->post_controller->index();
		?>
	</div>
</div>