mirror of
https://github.com/sorenpeter/timeline.git
synced 2025-12-15 10:57:01 +00:00
41 lines
940 B
PHP
41 lines
940 B
PHP
<?php
|
|
|
|
// Get info about profile from URL as an objects
|
|
if (!empty($_GET['twts'])) {
|
|
$url = $twtsURL;
|
|
}
|
|
$profile = getTwtsFromTwtxtString($url);
|
|
|
|
?>
|
|
|
|
<div class="profile">
|
|
|
|
<a href="<?= $profile->mainURL ?>">
|
|
<img class="avatar" src="<?= $profile->avatar ?>" alt="" loading="lazy">
|
|
</a>
|
|
|
|
<section>
|
|
<a href="<?= $profile->mainURL ?>" class="author">
|
|
<strong><?= $profile->nick ?></strong>@<?= parse_url($profile->mainURL, PHP_URL_HOST); ?>
|
|
</a>
|
|
|
|
<blockquote><?= $profile->description ?></blockquote>
|
|
|
|
<nav>
|
|
<ul>
|
|
<li><a href="">Posts</a></li>
|
|
<li><a href="">Replies</a></li>
|
|
<li><a href="">Gallery</a></li>
|
|
<li><a target="_blank" href="<?= $profile->mainURL ?>"></i>twtxt.txt</a></li>
|
|
</ul>
|
|
</nav>
|
|
|
|
</section>
|
|
|
|
<!-- <aside>
|
|
<small>
|
|
<a href="https://yarn.social" class="button">How to follow...</a>
|
|
</small>
|
|
</aside> -->
|
|
|
|
</div>
|