blob: c6c0ed19fc5b52483901414f9e470a0033e407a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<?= $this->form->create($photo, array('type' => 'file')); ?>
<?php if($photo): ?>
<?= $this->form->label("This is you"); ?>
<?php else: ?>
<h1>Upload a photo</h1>
<?= $this->form->field('file', array('type' => 'file')); ?>
<?php endif; ?>
<?= $this->form->end(); ?>
<h1> <?= $user->username ?> </h1>
<hr/>
profile views: <?= $user->profileViews ?><br/>
Last Online: <?= (empty($user->lastLogin)) ? "Never" : date('m/d/y', $user->lastLogin->sec); ?><br/>
<?php if (!empty($profile)): ?>
<?php foreach($profile as $key => $value): ?>
<?= $key ?> : <?= $value ?>
<?php endforeach; ?>
<?php else: ?>
<?= $this->html->link('Click to edit profile', "/profile/edit/$user->username"); ?>
<?php endif; ?>
|