diff options
Diffstat (limited to 'views/Profile/view.html.php')
-rw-r--r-- | views/Profile/view.html.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/views/Profile/view.html.php b/views/Profile/view.html.php new file mode 100644 index 0000000..c6c0ed1 --- /dev/null +++ b/views/Profile/view.html.php @@ -0,0 +1,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; ?>
\ No newline at end of file |