HummingBirdAnimeClient/app/views/me.php

43 lines
1.2 KiB
PHP
Raw Normal View History

2017-03-08 13:46:50 -05:00
<main class="details">
<section class="flex flex-no-wrap">
<div>
<h2><?= $attributes['name'] ?></h2>
<img src="<?= $attributes['avatar']['original'] ?>" alt="" />
<br />
<br />
<table class="media_details">
<tr>
<td>Location</td>
<td><?= $attributes['location'] ?></td>
</tr>
2017-03-08 16:21:01 -05:00
<tr>
<td>Website</td>
<td><?= $helper->a($attributes['website'], $attributes['website']) ?></td>
</tr>
<?php if (array_key_exists('waifu', $relationships)): ?>
<tr>
<td><?= $escape->html($attributes['waifuOrHusbando']) ?></td>
<td>
<?php
2017-03-10 12:50:48 -05:00
$character = $relationships['waifu']['attributes'];
2017-03-08 16:21:01 -05:00
echo $helper->a(
$url->generate('character', ['slug' => $character['slug']]),
$character['name']
);
?>
</td>
</tr>
<?php endif ?>
2017-03-08 13:46:50 -05:00
</table>
</div>
<div>
<dl>
<dt>About:</dt>
2017-03-08 16:21:01 -05:00
<dd><?= $escape->html($attributes['bio']) ?></dd>
2017-03-08 13:46:50 -05:00
</dl>
2017-03-20 19:08:33 -04:00
<?php /* <pre><?= json_encode($attributes, \JSON_PRETTY_PRINT) ?></pre>
2017-03-08 13:46:50 -05:00
<pre><?= json_encode($relationships, \JSON_PRETTY_PRINT) ?></pre>
2017-03-20 19:08:33 -04:00
<pre><?= json_encode($included, \JSON_PRETTY_PRINT) ?></pre> */ ?>
2017-03-08 13:46:50 -05:00
</div>
</section>
</main>